Professional Documents
Culture Documents
Lecture 2-WLAN
Last Experiment
Ethernet
Ethernet Overview
• CSMA/CD
• Evolution: Bus topology (90’s) Star topology (now)
Hub or switch
Advance
Octets 8 6 6 2 46-1500 4
Distributed System
contention
window
DIFS
1023
CW max
511
255
127
63
CW min 31
Fifth retransmission
Fourth retransmission
Third retransmission
Second retransmission
First retransmission
Initial attempt
https://blogs.arubanetworks.com/industries/understanding-802-11-medium-contention/
Backoff procedure
DIFS DIFS DIFS DIFS DIFS
CWindow CWindow
Frame Frame
A
defer
Frame
B
defer
Frame
C
defer
Frame
D
Data
Sender SIFS
Receiver ACK
DIFS contention
window
DIFS DIFS
PIFS
SIFS
medium busy contention next frame
t
direct access if
medium is free DIFS
P. Bhagwat
Carrier Sensing
• Carrier sensing (CS) also has problems
– Rules:
• carrier ==> do not transmit
• no carrier ==> OK to transmit
– But the above rules do not always apply to wireless.
Problems with carrier sensing
Hidden terminal problem
Z
Y
W
W finds that medium is free
and it transmits a packet to Z
/ OK to transmit
no carrier ===>
Problems with carrier sensing
Exposed terminal problem
W
Z is transmitting
to W
Z
X Y
Note: RTS/CTS does not solve exposed terminal problem. In the example
above, X can send RTS, but CTS from the responder may collide with Y’s data.
RTS/CTS exchange example
SIFS
DIFS
RTS Frame
Transmitter
CTS ACK
Receiver
352 304 8192 s 304
µs 10 µs 10 µs
10
µs µs µs
Other 1 NAV
Other 2 NAV
• Active Scanning
– node sends Probe frame
– all AP’s w/in reach reply with ProbeResponse frame
• Passive scanning:
– AP periodically sends Beacon frame
– Listen to beacons
• Association
– node selects one AP; sends it AssociateRequest frame
– AP replies with AssociationResponse frame