Contention-Based: ALOHA and Slotted ALOHA. Csma. Csma/Cd
Contention-Based: ALOHA and Slotted ALOHA. Csma. Csma/Cd
Contention-based
ALOHA and Slotted ALOHA.
CSMA.
CSMA/CD.
The ALOHA Protocol
• Developed @ U of Hawaii in early 70’s.
• Packet radio networks.
• “Free for all”: whenever station has a frame to send, it
does so.
– Station listens for maximum RTT for an ACK.
– If no ACK after a specified amount of time (how long?), re-
sends frame after waiting a random amount of time
(otherwise?)
– It continues to retry for a number of times and then gives up.
– Receivers check FCS and destination address to ACK.
Collisions
• Invalid frames may be caused by channel
noise or
• Because other station(s) transmitted at the
same time: collision.
• Collision happens even when the last bit of
a frame overlaps with the first bit of the
next frame.
ALOHA’s Performance 1
2 G 0.1
Ge
0 0
0 1 2 3
0 G 3
G 0.2
G e
0 0
0 2 4
0 G 4
Slotted Aloha Performance
How long does it take to send a frame?
k 0 k 0
Expected
k 1 e e 1 e
G G k 1 G d G k
number of e
transmissions k 1 k 1 dk
d G
e G
dk k 1
1 e
G k
e
1 1
1
e G
1 e G
Carrier Sense Multiple Access
(CSMA)
• ALOHA Protocols have poor utilization.
• Key property of LANs: propagation delay
between stations is small compared to frame
transmission time.
• Consequence: stations can sense the
medium before transmitting.
• This can reduce the vulnerable period.
CSMA
• 1-persistent
– If medium is idle, then transmit.
– If medium is not idle, then wait until it is and then transmit.
• p-persistent (for slotted channels only)
– If medium is idle, then transmit.
– If medium is not idle, then wait until it is idle
– Once idle then transmit with probability p. And wait for the
next slot with probability 1-p and repeat.