Lectures 13 & 14 Packet Multiple Access: The Aloha Protocol
Lectures 13 & 14 Packet Multiple Access: The Aloha Protocol
Eytan Modiano
Massachusetts Institute of Technology
Eytan Modiano
Slide 1
Multiple Access
Eytan Modiano
Slide 2
Examples of Multiple Access Channels
• satellite channels
• Multi-drop telephone
• Wireless radio
• Contention systems
– Polling
– Random Access
Eytan Modiano
Slide 4
Aloha
Receiver
...
Transmitters
Eytan Modiano
Slide 5
Slotted Aloha
1 2 3 4 5
Success Idle Collision Idle Success
Eytan Modiano
Slide 6
Slotted Aloha Assumptions
Eytan Modiano
Slide 7
Markov chain for slotted aloha
P03
P13
P34
0 1 2 3
P10
pi,i+1= prob of one new arrival and one or more backlogged attempts
backlogged attempts
g(n) = λ + nqr
– P (m attempts) = g(n)me-g(n)/m!
– P (idle) = probability of no attempts in a slot = e-g(n)
– p (success) = probability of one attempt in a slot = g(n)e-g(n)
– P (collision) = P (two or more attempts) = 1 - P(idle) - P(success)
Eytan Modiano
Slide 9
Throughput of Slotted Aloha
e-1
Departure rate
g(n)e-g(n)
1
g(n)
negative drift
positive
drift G=0 G=1
G = λ + nq
r
Eytan Modiano
Slide 11
Stabilizing slotted aloha
Eytan Modiano
Slide 13
TDM vs. slotted aloha
TDM, m=16
8
DELAY
TDM, m=8
4
ALOHA
Eytan Modiano
Slide 14
Pure (unslotted) Aloha
New Arrivals
τ τ
3 4
t1 t 2
t t t
3 4 5
Collision
Eytan Modiano
Slide 15 Retransmission
Throughput of Unslotted Aloha
Eytan Modiano
Slide 16
Splitting Algorithms
On the next slot after this success, the other node transmits
The expected number of slots for the first success is 2, so the expected
number of slots to transmit 2 packets is 3 slots
Eytan Modiano
Slide 17
Tree algorithms
• After a collision, all new arrivals and all backlogged packets not
in the collision wait
• Each colliding packet randomly joins either one of two groups
(Left and Right groups)
– Toss of a fair coin
– Left group transmits during next slot while Right group waits
If collision occurs Left group splits again (stack algorithm)
Right group waits until Left collision is resolved
– When Left group is done, right group transmits
(1,2,3,4)
collision
Many variations and improvements
idle (2,3)
on the original tree splitting algorithm
success success
Eytan Modiano
Slide 18
2 3
Throughput comparison
Eytan Modiano
Slide 19