Csma 3
Csma 3
Csma 3
Contents
CSMA/CD
(Flowchart)
CSMA/CA
(Flowchart)
wired LAN
transmission in downlink
AP (from the AP)
and
transmission in uplink
(from a station)
CSMA:
One packet at a time
Transmitted
frame
(A=>B) ACK
(B=>A)
If the received frame
is erroneous, no ACK
DIFS SIFS
will be sent
Earliest allowed
transmission time
Transmitted
of next frame
frame
(A=>B) ACK
(B=>A)
Next frame
(from any station)
DIFS SIFS DIFS
Station A ACK
Station B
Collision!
Station C
DIFS
Station B bn is large
Station C
DIFS bn is small
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)
DIFS
… CW = 210-1
retransmissions = 1023 slots
A X
SIFS SIFS
Danger of collision
AP CTS ACK
Short interval: collision not likely
AP ACK
Long interval: collision likely
Fragmentation
RTS
NAV in WS Frag 0
NAV in AP CTS ACK 0
Advantage of fragmentation
WBAN CSMA/CA
(Flowchart)
Collision Counter BC=rand (1,CW )
i,j
j=0
Backoff Counter
(BC)=rand (1,CWi ,min ) BC=rand (1,CW )
i,max
Y
Freeze the BC
CWi,j > CWi,max N
Y Channel is
Busy?
N New CW Size;
j
2
BC = BC-1 CW =2 CW
i,j i,min
N
BC=0? N j=j+1
Y N
access phases Y
CW > CW N
i,j i,max
Freeze the BC
Current time is
outside of suitable
access phase?
Y
N
Y New CW Size;
Channel is j
2
Busy?
BC = BC-1 CW =2 CW
i,j i,min
N
N
No enough time left N j=j+1
Y in the suitable access
BC=0?
phase(s) to transmit
the packet? N
Y
ACK received
Transmit Packet and
within timeout
Wait for ACK period?
End