Professional Documents
Culture Documents
Wireless Personal 1
Medium Access Control (MAC)
Access methods:
:
FDMA Assigning channels in frequency domain
LLC
TDMA Assigning time slots in time domain
MAC
CDMA Assigning code sequences in code domain
PHY
CSMA Assigning transmission opportunities in
time domain on a statistical basis
Wireless Personal 2
CSMA/CD vs. CSMA/CA (1)
Wireless Personal 3
CSMA/CD vs. CSMA/CA (2)
Wireless Personal 4
Basic wireless medium access
wired LAN
We shall next investigate
AP Infrastructure BSS only.
As far as medium access is
concerned, all stations and
AP have equal priority
transmission in downlink
CSMA:
(from the AP) and uplink
One packet at a time
(from a station) is similar.
Wireless Personal 5
DCF (CSMA/CA) vs. PCF
Wireless Personal 6
Wireless medium access (1)
Cyclic Redundancy
Check (CRC) is used
Transmitted
for error detection
frame
(A=>B) ACK
(B=>A)
If the received frame
is erroneous, no ACK
DIFS SIFS
will be sent
Wireless Personal 7
Wireless medium access (2)
Earliest allowed
transmission time
Transmitted
of next frame
frame
(A=>B) ACK
(B=>A)
Next frame
(from any station)
DIFS SIFS DIFS
Wireless Personal 8
Wireless medium access (3)
Transmitted
frame
(A=>B) ACK
(B=>A)
Next frame
Wireless Personal 9
Wireless medium access (4)
Wireless Personal 10
Wireless medium access (5)
Wireless Personal 11
Wireless medium access (6)
Transmission is not
allowed as long as
Transmitted
NAV is non-zero
frame
ACK
NAV value is
given here NAV Next frame
Wireless Personal 12
Wireless medium access (7)
Long transaction
Transmitted ACK
frame ACK
NAV
Wireless Personal 13
NAV value is carried in MAC header
Wireless Personal 14
Wireless medium access (8)
Wireless Personal 15
Wireless medium access (9)
Wireless Personal 16
No backoff => collision is certain
Station A ACK
Station B
Collision!
Station C
DIFS
Wireless Personal 17
Backoff => collision probability is reduced
Station B bn is large
Station C
DIFS bn is small
Wireless Personal 18
Contention window (CW) for 802.11b
Wireless Personal 19
Contention window (CW) for 802.11g
802.11g
CW
Initial attempt DIFS … CW = 24-1 = 15 slots
(slot = 9 µ s)
1st retransm. DIFS …
CW = 25-1 = 31 slots
:
6th (and further) … CW = 210 -1
retransmissions DIFS = 1023 slots
Wireless Personal 20
Selection of random backoff
Wireless Personal 21
Wireless medium access (1)
Wireless Personal 22
Wireless medium access (2)
3) Station D
Station A also wishes to
send a packet
Station B 4 4) However,
station B is
”winner” and
Station C ACK
starts sending
3 packet
Station D Defer
DIFS DIFS
Wireless Personal 23
Wireless medium access (3)
5) Station D
Station A starts sending
packet. Now
there is no
Station B ACK
competition.
Station C
5
Station D
DIFS DIFS
Wireless Personal 24
No shortcuts for any station…
Wireless Personal 25
ACK frame structure
No MAC
0 0 1 0 1 0 1 1 payload
Wireless Personal 26
Usage of RTS & CTS
Wireless Personal 27
Reservation of medium using NAV
SIFS SIFS
Wireless Personal 28
Danger of collision only during RTS
Danger of collision
Wireless Personal 29
Advantage of RTS & CTS (1)
AP CTS ACK
Short interval: collision not likely
AP ACK
Long interval: collision likely
Wireless Personal 30
Advantage of RTS & CTS (2)
Wireless Personal 31
Fragmentation
RTS
NAV in WS Frag 0
NAV in AP CTS ACK 0
Wireless Personal 32
Sequence control field
Wireless Personal 33
Advantage of fragmentation
Wireless Personal 34