Professional Documents
Culture Documents
Gaurav S. Kasbekar
Dept. of Electrical Engineering
IIT Bombay
1-1
Reference
These are a modified version of slides by
Kurose and Ross available at:
http://ctas.poly.asu.edu/millard/CET459/lectno/K%
20-%20R%20stuff/index.html
1-2
Wi-Fi (802.11)
Mobile nodes and Access Point
communicate over wireless channel (shared
medium)
Access
Point
Mobile
nodes
5-3
Wireless Link Characteristics
Differences from wired link ….
A B C
B
A
A’s signal C’s signal
strength strength
5-6
Acknowledgement Packets
Bit error rate on wireless links very high
Hidden terminal problem
Heavy interference in ISM bands
So link highly unreliable
need ACK packets
When destination receives an error-free
packet, it sends an ACK to source
If source does not receive ACK, it knows
that packet must be retransmitted
Different from transport layer ACKs
Recall: no ACKs used in Ethernet
5-7
MAC Protocol in Wi-Fi
Binary exponential backoff based algorithm like
Ethernet, but differences
Collision Detection not implemented
Reasons:
1) Received signal often several orders of
magnitude weaker than node’s own transmitted
signal
Expensive hardware needed to detect it
2) Anyhow may be inaccurate due to hidden
terminals
CSMA used
inaccurate when hidden terminals present; works well
otherwise 5-8
MAC Protocol in Wi-Fi
Since collision detection not implemented, all
nodes involved in collision transmit full
packets
lot of time wasted per collision
MAC protocol in Wi-Fi designed to minimize
collisions
e.g., larger random backoff values than Ethernet,
not persistent
Called CSMA/CA
CA: Collision Avoidance
5-9
ACKs
5-10
Priority to ACKs
Node that wants to send a
data packet must wait for
at least time DIFS after
medium sensed idle
end of DIFS followed by a
random backoff
Node that wants to send an
ACK can send it once a time
SIFS elapses after medium
sensed idle
SIFS < DIFS
no random backoff used
5-11
802.11 CSMA/CA Algorithm
When node gets new packet:
3. Node starts transmitting
1. It senses channel. If when counter value
channel idle for DIFS, reaches zero
node starts to transmit
(can happen only when
packet.
channel idle)
If channel found busy
before DIFS elapses: 4. If ACK is received, node
is done with packet. If
2. Chooses a random
node has new packet,
backoff value K using
restarts from step 2.
binary exponential
backoff. If no ACK received,
repeats from step 2 with
Counts down this value
K chosen from a larger
once channel idle for DIFS.
interval.
Counter value remains frozen
when channel busy 5-12
Example
5-17
RTS/ CTS Mechanism
RTS-CTS-DATA-ACK constitutes a single
exchange
spaced apart by SIFS
priority over new exchanges
5-18