Documente Academic
Documente Profesional
Documente Cultură
Outline:
• design challenges for wireless MAC
– hidden/exposed stations
– flexible control for QoS support
• two design paradigms
– multiple access based
– token based
• rationale for design choices
Wireless Networking Environment
• A simple model:
– A single shared physical channel among users
– Omni-directional antenna, limited transmission range
– Same transmission rate for all users
• Channel characteristics(illustrated with examples)
– wireless transmission is spatial and local
– sender & receiver: different views of the world
– relevant contention is at the receiver side
– contention may induce collisions
– contention/collision/congestion is location dependent
– channel access is a collective behavior from the fairness
perspective: the notion of “local” is misnomer
• Wireless MAC: how to address channel access in a
wireless environment
Design Goals for Wireless MAC
• Requirements for a wireless MAC protocol:
– robustness
– efficiency
– fairness
– support for priority and QoS
– support for multicast
Hidden Station Problem
• Hidden Stations: within the range of the intended
receiver, but out of range of the transmitter
– hidden sender C
A B C D
Problem: A transmits to B, if C transmits (to D), collision at B
Solution: hidden sender C needs to defer (Question: who tells C, A or B?)
– hidden receiver C
A B C D
Problem: A transmits to B, if D xmits to C, C cannot reply. D confuses (4 cases)
Solution: D needs to be notified that its receiver C is hidden
Exposed Station Problem
• Exposed Stations: within the range of the intended
sender, but out of range of the receiver
– exposed sender B
A B C D
Problem: C transmits to D, if B transmits (to A), B cannot hear from A
Solution: exposed sender B needs to defer
– exposed receiver B
A B C D
Problem: C transmits to D, if A xmits to B, B cannot reply. A confuses (4 cases)
Solution: A needs to be notified that its receiver B is exposed (how can B hears A?)
Summary of hidden and exposed
station problem
• Receiver’s perception of a clean/collided packet is
critical
• Hidden/exposed senders need to defer their
transmissions
• Hidden/exposed receivers need to notify their
senders about their status
MAC Protocol
Resolve channel contention & access:
• Channel access arbitration
– know who are there
– allocate the channel among multiple senders & receivers who
share the channel
• Collision avoidance
– multiple access based
– token based
• Collision resolution
– backoff based
Solution Space for channel contention
• Multiple access approach
– with carrier sensing
• carrier sensing: provides collision information at the sender, NOT the
receiver
• FAMA, 802.11
– without carrier sensing
• MACA, MACAW
– cons and pros: robust, solves hidden/exposed station
problem, hard to provide QoS
• Token based approach
– TDMA, DQRUMA
– cons and pros: easy to provide QoS, less robust, hard to
handle hidden/exposed stations
IEEE 802 Standards Working Groups
The important ones are marked with *. The ones marked with are
hibernating. The one marked with † gave up.
IEEE Standards for Wireless Networks
802.11b/g Wi-Fi
802.15.1 Bluetooth
802.15.4 ZigBee
802.16 WiMAX
Categories of Wireless Networks
• Base Station :: all communication through
an access point {note hub topology}. Other
nodes can be fixed or mobile.
• Infrastructure Wireless :: base station
network is connected to the wired Internet.
• Ad hoc Wireless :: wireless nodes
communicate directly with one another.
• MANETs (Mobile Ad Hoc Networks) :: ad
hoc nodes are mobile.
Wireless LANs
fixed terminal
mobile terminal
server
infrastructure network
access point
application application
TCP TCP
IP IP
LLC LLC LLC
802.11 MAC 802.11 MAC 802.3 MAC 802.3 MAC
802.11 PHY 802.11 PHY 802.3 PHY 802.3 PHY
Wireless Physical Layer
• Physical layer conforms to OSI (five options)
– 1997: 802.11 infrared, FHSS, DHSS
– 1999: 802.11a OFDM and 802.11b HR-DSSS
– 2001: 802.11g OFDM
• 802.11 Infrared
– Two capacities 1 Mbps or 2 Mbps.
– Range is 10 to 20 meters and cannot penetrate walls.
– Does not work outdoors.
• 802.11 FHSS (Frequence Hopping Spread Spectrum)
– The main issue is multipath fading.
– 79 non-overlapping channels, each 1 Mhz wide at low end of 2.4 GHz
ISM band.
– Same pseudo-random number generator used by all stations.
– Dwell time: min. time on channel before hopping (400msec).
Wireless Physical Layer
• 802.11 DSSS (Direct Sequence Spread Spectrum)
– Spreads signal over entire spectrum using pseudo-random sequence (similar
to CDMA).
– Each bit transmitted using an 11 chips Barker sequence, PSK at 1Mbaud.
– 1 or 2 Mbps.
• 802.11a OFDM (Orthogonal Frequency Divisional Multiplexing)
– Compatible with European HiperLan2.
– 54Mbps in wider 5.5 GHz band transmission range is limited.
– Uses 52 FDM channels (48 for data; 4 for synchronization).
– Encoding is complex ( PSM up to 18 Mbps and QAM above this capacity).
– E.g., at 54Mbps 216 data bits encoded into into 288-bit symbols.
– More difficulty penetrating walls.
Wireless Physical Layer
• 802.11b HR-DSSS (High Rate Direct Sequence
Spread Spectrum)
– 11a and 11b shows a split in the standards committee.
– 11b approved and hit the market before 11a.
– Up to 11 Mbps in 2.4 GHz band using 11 million chips/sec.
– Note in this bandwidth all these protocols have to deal with
interference from microwave ovens, cordless phones and
garage door openers.
– Range is 7 times greater than 11a.
– 11b and 11a are incompatible!!
Wireless Physical Layer
• 802.11g OFDM(Orthogonal Frequency Division
Multiplexing)
– An attempt to combine the best of both 802.11a and
802.11b.
– Supports bandwidths up to 54 Mbps.
– Uses 2.4 GHz frequency for greater range.
– Is backward compatible with 802.11b.
802.11 - MAC layer
• Access methods
– MAC-DCF CSMA/CA (mandatory)
• collision avoidance via randomized “back-off”
mechanism
• minimum distance between consecutive packets
• ACK packet for acknowledgements (not for broadcasts)
– MAC-DCF w/ RTS/CTS (optional)
• Distributed Foundation Wireless MAC
• avoids hidden terminal problem
– MAC- PCF (optional)
• access point polls terminals according to a list
Distribute Coordination Function (DCF)
DIFS DIFS
PIFS
SIFS
medium busy contention next frame
t
Access (after CWmin) if
medium is free DIFS
802.11 - CSMA/CA basic access method
contention window
DIFS DIFS (randomized back-off
mechanism)
direct access if t
medium is free DIFS slot time
– station ready to send starts sensing the medium (Carrier Sense based
on CCA, Clear Channel Assessment)
– if the medium is free for the duration of an Inter-Frame Space (IFS),
the station can start sending after CWmin (IFS depends on packet type)
– if the medium is busy, the station has to wait for a free IFS, then the
station must additionally wait a random back-off time (collision
avoidance, multiple of slot-time)
– if another station occupies the medium during the back-off time of the
station, the back-off timer stops (fairness)
802.11 - CSMA/CA (cont)
• Sending unicast packets
– station has to wait for DIFS (and CWmin) before sending data
– receivers acknowledge at once (after waiting for SIFS) if the
packet was received correctly (CRC)
– automatic retransmission of data packets in case of transmission
errors
DIFS
data
sender
SIFS
ACK
receiver
DIFS
other data
stations t
waiting time contention
IEEE 802.11 MAC Protocol
CSMA Version of the Protocol:
sense channel idle for DISF sec (Distributed Inter Frame Space)
transmit frame (no Collision Detection)
receiver returns ACK after SIFS (Short Inter Frame Space)
if channel sensed busy => binary backoff
NAV: Network Allocation Vector (min time of deferral)
802.11 - CSMA/CA with RTS/CTS
• Sending unicast packets
– station can send RTS with reservation parameter after waiting for DIFS
(reservation declares amount of time the data packet needs the medium)
– acknowledgement via CTS after SIFS by receiver (if ready to receive)
– sender can now send data at once, acknowledgement via ACK
– other stations store medium reservations distributed via RTS and CTS
DIFS
RTS data
sender
SIFS SIFS
CTS SIFS ACK
receiver
t0 t1
SuperFrame
t2 t3 t4
PIFS SIFS
D3 D4 CFend
point
coordinator SIFS
U4
wireless
stations
stations‘ NAV
NAV contention free period contention t
period
DCF and PCF Co-Existence
• Distributed and centralized control can co-exist using
InterFrame Spacing.
• SIFS (Short IFS) :: is the time waited between packets
in an ongoing dialog (RTS,CTS,data, ACK, next frame)
• PIFS (PCF IFS) :: when no SIFS response, base station
can issue beacon or poll.
• DIFS (DCF IFS) :: when no PIFS, any station can
attempt to acquire the channel.
• EIFS (Extended IFS) :: lowest priority interval used to
report bad or unknown frame.
Interframe Spacing in 802.11.
CSMA/CA Protocol:
congestion control
Congestion Avoidance:
IEEE 802.1 DCF
B1 = 25 B1 = 5
wait data
data wait
B2 = 20 B2 = 15 B2 = 10
A B
Two flows
C D
Fairness Issue
• Assume that initially, A and B both choose a backoff
interval in range [0,31] but their RTSs collide
A B
Two flows
C D
Fairness Issue
• Observation: unfairness occurs when one
node has backed off much more than some
other node
A B
Two flows
C D
MACAW Solution for Fairness
• When a node transmits a packet, it appends
its current cw value to the packet
• All nodes hearing that cw value use it for
their future transmission attempts
• The effect is to reset all competing nodes to
the same ground rule
Weighted Fair Queueing
B1 = 15 B1 = 10 B1 = 5
wait wait
Collision !
data data
B2 = 5 B2 = 5 B2 = 5