Lecture Mac 802.11
Lecture Mac 802.11
1
Wired Vs Wireless Media Access
2
The Channel Access Problem
MAC Protocols
Suggests a scheme to schedule communication
• Maximize number of communications
• Ensure fairness among all transmitters
3
The Trivial Solution
A
A B
B CC
collision
4
The Simple Fix Don’t
Don’t
transmit
transmit
A
A B
B CC
Can
Can collisions
collisions still
still occur?
occur?
When collision:
Entire packet
transmission
time wasted
note:
Role of distance & propagation
delay in determining collision
probability
6
CSMA/CD (Collision Detection)
If (Transmitted_Signal != Sensed_Signal)
Sender knows it’s a Collision
ABORT
7
2 Observations on CSMA/CD
8
Unfortunately …
Because …
9
Wireless Medium Access Control
C D
A B
Signal
power
SINR threhold
Distance
10
Wireless Media Disperse Energy
A cannot send and listen in parallel
C D
A B
Signal
power
SINR threhold
Distance
11
Collision Detection Difficult
B
A C
D
12
Calculating SINR
B
A C
D
SignalOfInterest ( SoI )
SINR =
Interference( I ) + Noise( N )
A
A
Ptransmit A
Ptransmit
SoI =
d αAB
B α
d
SINRBA = AB
C
P C Ptransmit
C
I = transmit N+ α
B α d CB
d CB
13
Red signal >> Blue signal Red < Blue = collision
C D
X
A B
Signal
power
SINR threhold
Distance
14
Important: C has not heard A, but can interfere at receiver B
C D
X
A B
Signal
power
SINR threhold
Distance
15
Important: X has heard A, but should not defer transmission to Y
C D
X
A B
Signal
power
SINR threhold
Distance
16
Any Questions
at this point?
17
So, how do we cope with
Hidden/Exposed Terminals?
18
How to prevent C from trasmitting?
C D
X
A B
Signal
power
SINR threhold
Distance
19
A Project Idea!
C D
A B
20
A Project Idea!
C D
X
A B
Signal
power
SINR threhold
Sensitivity threshold
Distance
21
A Project Idea!
Will this solve the wireless MAC problem? Do not
transmit in
this region
C D
X
A B
Signal
power
SINR threhold
T
Sensitivity threshold
Distance
22
Whatever the answer …
23
The Emergence of MACA, MACAW, &
802.11
Wireless MAC proved to be non-trivial
24
IEEE 802.11
S RTS D
CTS
X
K
25
IEEE 802.11
silenced
M
Y
S silenced
Data D
ACK
X silenced
K
silenced
26
802.11 Steps
All backlogged nodes choose a random number
R = rand (0, CW_min)
27
802.11 Steps
Receiver replies with CTS
Also contains (DATA + ACK) duration.
Neighbors update NAV again
28
But is that enough?
29
RTS/CTS
Does it solve hidden terminals ?
Assuming carrier sensing zone =
communication zone
E RTS
F
CTS
A B C D
E RTS
F
CTS
A B C D
Data
31
Hidden Terminal Problem
But what if barriers/obstructions ??
E doesn’t hear C Carrier sensing does not
help
E RTS
F
CTS
A B C D
Data
32
Exposed Terminal
B should be able to transmit to A
RTS prevents this
E
RTS
CTS
A B C D
33
Exposed Terminal
B should be able to transmit to A
Carrier sensing makes the situation worse
E
RTS
CTS
A B C D
34
Thoughts !
802.11 does not solve HT/ET completely
Only alleviates the problem through RTS/CTS and
recommends larger CS zone
35
Takes on 802.11
Role of RTS/CTS
Useful? No?
Is it a one-fit-all? Where does it not fit?
Is ACK necessary?
MACA said no ACKs. Let TCP recover from losses
36
MACA-BI [GerlaUCLA]
37
DBTMA [HaasCornell98]
Rx Busy tone
RTS CTS Signal X
A B X Y
38
Implicit MACKnowledgment
APs typically backlogged with traffic
Persistent traffic possibility of optimzation
Gain
Implicit
ACK
39
Hybrid Channel Access
T R T R T R
RTS RTS RTS
Backoff
Backoff
ACK
Backoff
Data
CTS
Backoff
Data
Poll +ACK
ACK RTS Data
Backoff
CTS +ACK
40
Seedex [KumarUIUC03]
41
Hot Research Topics
Power control increases spatial reuse
Whisper in the room so that many people can talk
42
Questions ?
43
Announcements
Reviews:
You are forgetting to appreciate the paper
There is a reason why the paper was accepted
46
Today’s Discussions
48
IEEE 802.11 in OSI Model
Wireless
49
802.11 Scope & Modules
LLC
PLCP Sublayer
PHY Layer
PHY
Management
PMD Sublayer
50
Applications
Single Hop
Home networks
Enterprise networks (e.g., offices, labs, etc.)
Outdoor areas (e.g., cities, parks, etc.)
Multi-hops
Adhoc network of small groups (e.g.,aircrafts)
Balloon networks (SpaceData Inc.)
Mesh networks (e.g., routers on lamp-posts)
51
802.11 Architecture – Two modes
52
802.11 PHY Technologies
53
Why Spread Spectrum ?
C = B*log2(1+S/N) . . . [Shannon]
To achieve the same channel capacity C
Large S/N, small B
Small S/N, large B
Increase S/N is inefficient due to the logarithmic relationship
power power
signal
noise, interferences
signal
frequency B B
e.g. B = 30 KHz e.g. B = 1.25 MHz
54
Spread Spectrum
55
Frequency Hopping SS (FHSS)
f f f f f f f f f f f
signal
noise, interferences
signal
frequency B
f f f f f f f f f f f
B
Simple radio design with FHSS
Data rates ~ 2 Mbps
57
Direct Sequence SS
58
IEEE 802.11b DSSS
60
PHY Sublayers
61
PLCP (802.11b)
long
preamble
192us
short
preamble
96us
(VoIP, video)
62
PLCP (802.11b)
long
preamble
192us
Note:
64
802.11 MAC (DCF)
65
802.11 MAC (DCF)
66
Physical Carrier Sense & Backoff
67
MAC Management Layer
Synchronization
Finding and staying with a WLAN
• Uses TSF timers and beacons
Power Management
Sleeping without missing any messages
• Periodic sleep, frame buffering, traffic indication map
68
Synchronization
Timing Synchronization Function (TSF)
Enables synchronous waking/sleeping
Enables switching from DCF to PCF
Enables frequency hopping in FHSS PHY
• Transmitter and receiver has identical dwell interval at
each center frequency
Achieving TSF
All stations maintain a local timer.
AP periodically broadcasts beacons containing
timestamps, management info, roaming info, etc.
• Not necessary to hear every beacon
Beacon synchronizes entire BSS
• Applicable in infrastructure mode ONLY
Distributed TSF (for Independent BSS) more difficult
69
Power management
Battery powered devices require power efficiency
LAN protocols assume idle nodes are always ON and thus
ready to receive.
Idle-receive state key source of power wastage
Beacon
Timestamp, Beacon Interval, Capabilities, ESSID,
Supported Rates, parameters
Traffic Indication Map
Probe
ESSID, Capabilities, Supported Rates
Probe Response
Timestamp, Beacon Interval, Capabilities, ESSID,
Supported Rates, parameters
same for Beacon except for TIM
Association Request
Capability, Listen Interval, ESSID, Supported Rates
Association Response
Capability, Status Code, Station ID, Supported Rates
72
MAC Management Frame
Reassociation Request
Capability, Listen Interval, ESSID, Supported Rates,
Current AP Address
Reassociation Response
Capability, Status Code, Station ID, Supported Rates
Disassociation
Reason code
Authentication
Algorithm, Sequence, Status, Challenge Text
Deauthentication Reason
73
Security
Range of attacks huge in wireless
Easy entry into the network
Jamming, selfish behavior, spatial overhearing
74
PLCP
75
PLCP Header
76
Power management approach
77
Scanning
78
Active scanning example
79
Collision Detection
80