Wireless MACs: MACAW/802.11

Similar documents
Link Layer II: MACA and MACAW

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

CMPE 257: Wireless and Mobile Networking

CSE 461: Wireless Networks

Wireless Local Area Networks. Networks: Wireless LANs 1

Wireless Local Area Networks (WLANs)) and Wireless Sensor Networks (WSNs) Computer Networks: Wireless Networks 1

Data and Computer Communications. Chapter 13 Wireless LANs

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

EE 122: Ethernet and

Mohamed Khedr.

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

Wireless Local Area Networks (WLANs) and Wireless Sensor Networks (WSNs) Primer. Computer Networks: Wireless LANs

Mobile and Sensor Systems

Multiple Access Links and Protocols

CMPE 257: Wireless and Mobile Networking

The MAC layer in wireless networks

Wireless LAN. Access Point. Provides network connectivity over wireless media

Link Layer: Retransmissions

Getting Connected (Chapter 2 Part 4) Networking CS 3470, Section 1 Sarah Diesburg

Media Access Control in Ad Hoc Networks

04/11/2011. Wireless LANs. CSE 3213 Fall November Overview

6.9 Summary. 11/20/2013 Wireless and Mobile Networks (SSL) 6-1. Characteristics of selected wireless link standards a, g point-to-point

Wireless and Mobile Networks 7-2

Lecture 16: QoS and "

ECE 4450:427/527 - Computer Networks Spring 2017

The MAC layer in wireless networks

Computer Communication III

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Wireless LAN -Architecture

Local Area Networks NETW 901

Chapter 12 Multiple Access 12.1

Wireless and WiFi. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Wireless & Mobile Networking

ICE 1332/0715 Mobile Computing (Summer, 2008)

Overview : Computer Networking. Spectrum Use Comments. Spectrum Allocation in US Link layer challenges and WiFi WiFi

Wireless Communication and Networking CMPT 371

Shared Access Networks Wireless. 1/27/14 CS mywireless 1

standard. Acknowledgement: Slides borrowed from Richard Y. Yale

CSCD 433 Network Programming Fall Lecture 7 Ethernet and Wireless

Last Lecture: Data Link Layer

WiFi Networks: IEEE b Wireless LANs. Carey Williamson Department of Computer Science University of Calgary Winter 2018

Wireless Networking & Mobile Computing

Wireless Communications

Multiple Access in Cellular and Systems

IEEE Medium Access Control. Medium Access Control

ECEN 5032 Data Networks Medium Access Control Sublayer

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Wireless Networks. CSE 3461: Introduction to Computer Networking Reading: , Kurose and Ross

Wireless LANs. ITS 413 Internet Technologies and Applications

4.3 IEEE Physical Layer IEEE IEEE b IEEE a IEEE g IEEE n IEEE 802.

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Link Layer. (continued)

Aloha and slotted aloha

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

Chapter 6 Wireless and Mobile Networks

Wireless Local Area Network (IEEE )

CS/ECE 439: Wireless Networking. MAC Layer Road to Wireless

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

Topic 2b Wireless MAC. Chapter 7. Wireless and Mobile Networks. Computer Networking: A Top Down Approach

MULTIPLE ACCESS PROTOCOLS 2. 1

Lecture 25: CSE 123: Computer Networks Alex C. Snoeren. HW4 due NOW

Logical Link Control (LLC) Medium Access Control (MAC)

CSE 461: Multiple Access Networks. This Lecture

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Multi-Channel MAC for Ad Hoc Networks: Handling Multi-Channel Hidden Terminals Using A Single Transceiver

Lecture 24: CSE 123: Computer Networks Stefan Savage. HW4 due NOW

Rahman 1. Application

Mobile & Wireless Networking. Lecture 7: Wireless LAN

Outline / Wireless Networks and Applications Lecture 9: Wireless LANs Aloha and 802 Wireless. Regular Ethernet CSMA/CD

COMP 3331/9331: Computer Networks and Applications

Wireless Local Area Networks (WLANs) Part I

Wireless Communication and Networking CMPT 371

Wireless Networked Systems

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

Outline. EEC-484/584 Computer Networks. Multiple Access Protocols. Wireless LAN Protocols. Lecture 9. Wenbing Zhao

EEC-484/584 Computer Networks

Department of Electrical and Computer Systems Engineering

Overview. Wireless networks basics IEEE (Wi-Fi) a/b/g/n ad Hoc MAC protocols ad Hoc routing DSR AODV

CMPE 257: Wireless and Mobile Networking

Reading. Read 3 MPLS links on the class website

Extending or Interconnecting LANS. Physical LAN segment. Virtual LAN. Forwarding Algorithm 11/9/15. segments. VLAN2, Port3. VLAN1, Port1.

Strengthening Unlicensed Band Wireless Backhaul

Unit 7 Media Access Control (MAC)

CE693: Adv. Computer Networking

Sample solution to Midterm

Outline. Lecture 16: Wireless Networking. Physical Layer (Layer 1) Ethernet: Wireless is Different. Attenuation Over Space

MSIT 413: Wireless Technologies Week 8

Computer Networks. Wireless LANs

CS 348: Computer Networks. - WiFi (contd.); 16 th Aug Instructor: Sridhar Iyer IIT Bombay

CSE 6811 Ashikur Rahman

CSE 461 Multiple Access. David Wetherall

Wireless Networks (CSC-7602) Lecture 6 (08 Oct. 2007) Seung-Jong Park (Jay) Wireless MAC

Wireless and Mobile Networks

Medium Access Control. IEEE , Token Rings. CSMA/CD in WLANs? Ethernet MAC Algorithm. MACA Solution for Hidden Terminal Problem

Outline. Wireless Channel Characteristics. Multi-path Fading. Opportunistic Communication - with a focus on WLAN environments -

Data Communications. Data Link Layer Protocols Wireless LANs

Announcements / Wireless Networks and Applications Lecture 9: Wireless LANs Wireless. Regular Ethernet CSMA/CD.

MAC. Fall Data Communications II 1

Lesson 2-3: The IEEE x MAC Layer

Introduction to Wireless Networking CS 490WN/ECE 401WN Winter Lecture 4: Wireless LANs and IEEE Part II

Transcription:

Wireless MACs: MACAW/802.11 Mark Handley UCL Computer Science CS 3035/GZ01 Fundamentals: Spectrum and Capacity A particular radio transmits over some range of frequencies; its bandwidth, in the physical sense Shannon s Theorem: there s a fundamental limit to channel capacity over a given spectrum range: C = B log 2 (1+S/N) C = capacity (bits/s), B = bandwidth (Hz), S/N = signal/noise power ratio (linear W) It s OK to have multiple simultaneous senders, but there s no free lunch! 2 1

Spectrum Allocation A particular radio transmits over some range of frequencies; its bandwidth, in the physical sense When we ve many senders near one another, how do we allocate spectrum among senders? Goals: Support for arbitrary communication patterns Simplicity of hardware Robustness to interference 3 Multi-Channel Suppose we ve 100 MHz of spectrum to use for a wireless LAN Subdivide into 50 channels of 2 MHz each: FDMA, narrow-band transmission Radio hardware simple, channels don t interfere with each other. 4 2

Narrow-Band Multipath Fading Wall Transmitter Receiver Out of phase signals interfere and may cancel out. 5 Multi-Channel Suppose we ve 100 MHz of spectrum to use for a wireless LAN Subdivide into 50 channels of 2 MHz each: FDMA, narrow-band transmission Radio hardware simple, channels don t mutually interfere Multi-path fading (mutual cancellation of out-of-phase reflections) Base station can allocate channels to users. How do you support arbitrary communication patterns? Other possibilities: FHSS 6 3

Single, Shared Channel Spread transmission across whole 100 MHz of spectrum Robust to multi-path fading (some frequencies fade, others arrive intact) Simple: symmetric radio behavior Supports peer-to-peer communication Collisions: a receiver must only hear one strong transmission at a time 7 Review: Ethernet MAC CS (Carrier Sense): listen for others transmissions before transmitting; defer to others you hear CD (Collision Detection): as you transmit, listen and verify you hear exactly what you send; if not, back off random interval, within exponentially longer range each time you transmit unsuccessfully Is CD possible on a wireless link? Why or why not? 8 4

MACAW: Context Published in SIGCOMM 1994, work 93-94 802.11 standardization proceeded in parallel IEEE standard in 1997 802.11 draws on MACAW, which draws on MACA No real research paper on 802.11 design; MACAW covers same area well Assumptions: uniform, circular radio propagation; fixed transmit power; equal interference and transmit ranges What are authors stated goals? Fairness in sharing of medium Efficiency (total bandwidth achieved) Reliability of data transfer at MAC layer 9 Hidden Terminal Problem A B C Nodes placed a little less than one radio range apart CSMA: nodes listen to determine channel idle before transmitting C can t hear A, so will transmit while A transmits; Result: collision at B Carrier Sense is not sufficient to detect all transmissions on wireless networks! Key insight: collisions are spatially located at receiver 10 5

Exposed Terminal Problem A B C B sends to A; C sends to a node other than B If C transmits, does it cause a collision at A? Yet C cannot transmit while B transmits to A due to carrier sense! Same insight: collisions are spatially located at receiver One possibility: directional antennas rather than omnidirectional. Why does this help? Why is it hard? Simpler solution: use receiver s medium state to determine transmitter behavior 11 RTS/CTS in MACA and MACAW 1. RTS, k bits 3. Data A B C 2. CTS, k bits defers Sender sends short, fixed-size RTS packet to receiver Receiver responds with CTS packet RTS and CTS both contain length of data packet to follow from sender Solves hidden terminal problem! If no CTS is received, sender backs off exponentially (BEB) before retrying RTS and CTS can still themselves collide at their receivers; less chance as they re short; any help on short data packets? 12 6

BEB in MACA Current backoff constant: B Maximum backoff constant: B M Minimum backoff constant: B 0 MACA sender: B 0 = 2 and B M = 64 Upon successful RTS/CTS, B! B 0 Upon failed RTS/CTS, B! min[2b,b M ] Before retransmission, wait a uniform random number of RTS lengths (30 bytes) in [0, B] Note: no carrier sense! Karn concluded useless because of hidden terminals 13 BEB in MACAW BEB can lead to unfairness: backed-off sender has decreasing chance to acquire medium ( the poor get poorer ) Simple example: two senders sending to the same receiver, each sending at a rate that can alone saturate the network MACAW proposal: senders write their B into packets; upon hearing a packet, adopt its B Result: dissemination of congestion level of winning transmitter to its competitors Is this a good idea? RTS failure rate at one node propagates far and wide Ambient noise? Regions with different loads? 14 7

Reliability: ACK MACAW introduces an Acknowledgment after data packets; not in MACA Sender retransmits if RTS/CTS succeeds but no Ack returns; doesn t back off Avoid TCP window reductions when interference Useful when there s ambient noise (e.g., microwave ovens ) Are Acks useful for multicast packets? Consequences for, e.g., ARP? 15 MACAW and 802.11 Differences 802.11 uses physical CS before transmissions and defers a uniform random period, in [0,B] Sets timer to count down random period Timer pauses when carrier sensed, continues when channel idle Packet transmitted when timer reaches zero 802.11 combines physical CS with virtual CS from RTS/CTS packets in the Network Allocation Vector (NAV) 802.11 uses BEB when an ACK doesn t return 16 8

Two Regimes in Wireless: Concurrency vs. Time-Multiplexing Far-apart links should send concurrently: Near links should time-multiplex: Carrier sense attempts to distinguish these cases Uses energy threshold to determine if medium occupied What about cases in between these extremes? Figures [Micah Brodsky] 17 When Does Carrier Sense Work Well? Agreement: Two senders and two receivers; They agree if both receivers achieve highest throughput when both use concurrency or when both use multiplexing. Far-apart links agree on concurrency Near links agree on time-multiplexing In between, there s a risk links don t agree; CS may not work well 18 9

Simulation Study of CS [Brodsky and Morris, 2009] Place sender S and interferer I at fixed locations Place receiver from S uniformly at random within some radius of S Compare throughputs at receiver over all locations Vary distance between sender and interferer 19 Individual Receivers [Brodsky and Morris, 2009] figure [Micah Brodsky] 20 10

Receiver Preference as Interferer Distance Varies [B&M, 2009] figures [Micah Brodsky] 21 802.11: A Dose of Reality The canonical wireless link in the research community. Why? Hardware commoditized, cheap First robust (DSSS) wireless network with LAN-like bitrate Many wireless system papers based on simulations of 802.11 networks Caveat simulator: simulating a real link layer doesn t mean realistic simulations. Reflection, absorption, and interference models? Traffic patterns? Mobility patterns? Have I been wasting your time? In practice RTS/CTS dropped out of use with 802.11g (Note: CS works pretty well) Why? Are MACAW and the hidden terminal problem irrelevant? 22 11

802.11, Base Stations, and Hidden Terminals To first order, everyone uses base stations, not peer-to-peer 802.11 networks When base station transmits, there can be no hidden terminals within one LAN. Why? Clients can be hidden from one another. But what s the usual packet output stream of a wireless client (e.g., laptop)? Packet sizes? TCP ACKs; short packets. What s the cost of RTS/CTS? How big are RTS and CTS packets? Greatest cost when RTS/CTS same size as data. 802.11 end-user documentation recommends disabling RTS/ CTS unless you are experiencing unusually poor performance Many device drivers leave it off by default 23 802.11, Peer-to-Peer Traffic, and Hidden Terminals In MACAW, successful communication range and interference range are equal. In 802.11, interference range often more than double successful communication range How useful is RTS/CTS in 802.11? Consider A " B! C classic hidden terminal case When A transmits, C may often sense A s carrier directly; often no need for RTS/CTS Studies show RTS/CTS does not improve throughput in multi-hop 802.11 networks (see Roofnet paper in M038/GZ06 next term ) 24 12

802.11 Variants and Bit-Rates 802.11b: 2.4 GHz, 20 MHz channel; 1, 2, 5.5, 11 Mbps 802.11a: 5 GHz, 20 MHz channel: 6, 9, 12, 18, 24, 36, 48, 54 Mbps 802.11g: 2.4 GHz, 20 MHz channel; 6, 9, 12, 18, 24, 36, 48, 54 Mbps 802.11n: 2.4 or 5Ghz, 20 or 40MHz channel, up to 4 spatial streams when using multiple antennas 6-150Mb/s with one spatial stream, 600Mb/s w/ 4 spatial streams 3 non-overlapping channels in 2.4Ghz w/ 20MHz channels >= 12 non-overlapping channels in 5GHz band 25 802.11 Variants and Bit-Rates 802.11ac: 2.4 or 5GHz, up to 160MHz channel in 5GHz Up to 8 spacial streams, transmitting to up to 4 clients simultaneously More dense modultation(256-qam). Beamforming As bit-rate increases, SNR required at receiver Link data rates up to ~2Gb/s possible in ideal to conditions. successfully Reality decode is somewhat signal increases lower. Sender adapts bit-rate to maximize throughput 26 13

Link utilization reduces with link bitrate: Data packet at 54Mb/s: Prev. pkt. Preamble Data packet Ack time DIFS CW [0:B] Data packet at 600Mb/s: Prev. pkt. Ack SIFS time DIFS CW [0:B] SIFS Packet time at 54Mb/s Packet time at 600Mb/s Not 10x faster! 802.11n Frame Aggregation Data packet at 600Mb/s: Prev. pkt. Block Ack DIFS CW [0:B] SIFS Up to 64Kbytes or 64 packets can be aggregated and sent in one burst. Greatly improves utilization. Default is not to send for more than 4ms in one go. AP occasionally collides with its own client (p=~6%) 4ms is a very long time to waste if you collide RTS/CTS does improve performance if large aggregates are sent. 14