Download Medium Access in WLANs: IEEE 802.11 and Bluetooth Frame Formats and Access Mechanisms and more Lecture notes Mobile Computing in PDF only on Docsity!
Lecture 7
Wireless Networks and Mobile Systems
Lecture Objectives
● Discuss how access to the wireless medium is
decided in IEEE 802.11 and Bluetooth networks
● Identify the hidden node and exposed node problems
and how the exchange of control messages can be
used to mitigate them
● Describe the frame formats for IEEE 802.11 and
Bluetooth
IEEE 802.11 Medium Access
● MAC frame format
● CSMA/CA
● RTS/CTS
● IEEE 802.11e
IEEE 802.11 Reference Model
Medium Access Control (MAC) sublayer
Physical Layer convergence procedure (PLCP) sublayer Physical medium Dependent (PMD) sublayer
MAC sublayer management
PHY sublayer management
station management
Data Link Layer
Physical Layer
Frame Control Field (1)
● Protocol Version (2 bits) – current version of the
standard
● Type (2 bits) – differentiates among a management
frame (00), control frame (01), or data frame (10)
● Subtype (4 bits) – further defines the type of frame
■ Type 00, subtype 0000 – association request ■ Type 00, subtype 0001 – association response ■ Type 01, subtype 1011 – RTS ■ Type 01, subtype 1100 – CTS ■ Type 01, subtype 1101 – ACK ■ Type 10, subtype 0000 – data ■ Many others…
Frame Control Field (2)
● To/from DS (1 bit each) – flags set when the frame is
sent to/from the distribution system
● More Fragment (1 bit) – flag set when more fragments
belonging to the same frame are to follow
● Retry (1 bit) – indicates that this frame is a
retransmission
● Power Management (1 bit) – indicates power
management mode (active, power saving)
● More data (1 bit) – more frames buffered by station
for the same destination
● WEP (1 bit) – payload encrypted with WEP
● Order (1 bit) – strictly-ordered service
Address Fields
1 1 RA TA DA SA
1 0 BSSID SA DA N/A
0 1 DA BSSID SA N/A
0 0 DA SA BSSID N/A
ToDS FromDS Addr.1 Addr. 2 Addr.3 Addr. 4
Indirection by Distribution System
- STA - STA - STA - AP - STA - STA - STA - AP
- BSS 1 BSS - SA = STA Distribution System (DS) - DA = STA - TA = AP - RA = STA
- SA = STA
- DA = STA
- TA = STA
- RA = AP
802.11b Long Preamble PLCP PDU
● Compatible with legacy IEEE 802.11 systems
● Preamble (SYNC + Start of Frame Delimiter) allows receiver to acquire the signal and synchronize itself with the transmitter
● Signal identifies the modulation scheme, transmission rate
● Length specifies the length of the MPDU (expressed in time to transmit it)
SYNC SFD Signal Service Length CRC MPDU
PLCP
Preamble
PLCP PDU (PPDU)
PLCP
Header
802.11b Short Preamble PLCP PDU
● Not compatible with legacy IEEE 802.11 systems
SYNC SFD Signal Service Length CRC MPDU
PLCP
Preamble
PLCP PDU (PPDU)
PLCP
Header
Why not use CSMA/CD?
● In IEEE 802.3 (Ethernet), nodes sense the medium,
transmit if the medium is idle, and listen for
collisions
■ If a collision is detected, after a back-off period, the node retransmits the frame
● Collision detection is not feasible in WLANs
■ Node cannot know whether the signal was corrupted due to channel impairments in the vicinity of the receiving node
● IEEE 802.11 uses Carrier Sense Multiple Access
(CSMA), but adopts collision avoidance, rather than
collision detection
CSMA
● Station waits a random amount of time before
transmitting, while still monitoring the medium
■ Avoids collisions due to multiple stations transmitting immediately after they sense the medium as idle
● Loss of throughput due to the waiting period is
compensated by fewer retransmissions
● No explicit collision detection
■ Retransmissions are triggered if ACK is not received ■ Exponential backoff similar to IEEE 802.
● Optionally, transmitting and receiving nodes can
exchange control frames to “reserve” the channel
Timeline
Starts sensing the medium (idle) Data
DIFS
Source
Destination
Another station
ACK
SIFS
Defers access
DIFS
time
Pick random backoff time in [0, Cwin]
Data
Cwin = contention window
Timeline Discussed
● DCF = Distributed Coordinated Function
■ Basic access method for 802.11 (uses CSMA/CA)
● DIFS = DCF Inter Frame Space
■ Stations must listen to an idle medium for at least that amount of time before transmitting
● SIFS = Short Inter Frame Space
■ Period between reception of the data frame and transmission of the ACK ■ SIFS < DIFS
● What happens if another station starts listening to
the medium exactly during the idle period between
data transmission and acknowledgment?