Sub topic 9
Slotted ALOHA and its throughput
This chapter assumes you know the pure ALOHA model from the previous chapter: frames arrive as a Poisson process, a station sends immediately, and a collision destroys every frame involved. You should also be comfortable with the Poisson probability P(k) = (λ^k · e^−λ) / k!. Everything below builds on those two facts.
The idea: transmit only at slot boundaries
Pure ALOHA wastes capacity because a frame can collide with any frame that starts within one frame time before or after it. Slotted ALOHA removes the partial overlaps.
- Time is divided into slots. Each slot is exactly one frame time, T.
- All stations are synchronized to the slot boundaries, for example by a clock broadcast from a central station.
- A station with a new frame waits for the next slot boundary and then sends the whole frame.
- If two or more stations send in the same slot, they collide completely. The stations detect this by missing an acknowledgment, and each retransmits in a later slot chosen at random.
Two frames can now either share a slot completely or not overlap at all. A frame is therefore vulnerable only to frames that start in the same slot. The vulnerable period shrinks from 2T to T.
Deriving the throughput
Let G be the average number of transmission attempts per slot. This count includes both new frames and retransmissions. Assume attempts form a Poisson process. The number of attempts in one slot is then Poisson with mean G:
P(k attempts in a slot) = (G^k · e^−G) / k!
A slot carries a successful frame only when exactly one station transmits, so k = 1:
S = G · e^−G
Here S is the throughput, meaning the average number of successful frames per slot. It is also the fraction of slots that carry a useful frame.
To find the maximum, differentiate:
dS/dG = e^−G − G · e^−G = e^−G (1 − G)
This is zero at G = 1. At that point S = 1/e ≈ 0.368. Pure ALOHA has S = G · e^−2G, because its vulnerable period is 2T. Its maximum is 1/(2e) ≈ 0.184 at G = 0.5. Slotted ALOHA therefore doubles the peak throughput.
The upper line is slotted ALOHA and the lower line is pure ALOHA.
Where the slots go at G = 1
Every slot has one of three outcomes:
| Outcome | Probability | Value at G = 1 |
|---|---|---|
| Empty (0 attempts) | e^−G | 0.368 |
| Success (1 attempt) | G · e^−G | 0.368 |
| Collision (2 or more attempts) | 1 − e^−G − G · e^−G | 0.264 |
At the optimum, the empty and successful fractions are equal. About 26% of slots are lost to collisions. The remaining 37% are idle, and no station used them.
import math
def slot_outcomes(G):
empty = math.exp(-G)
success = G * math.exp(-G)
collision = 1 - empty - success
return empty, success, collision
for G in (0.5, 1.0, 2.0):
e, s, c = slot_outcomes(G)
print(f"G={G}: empty={e:.3f} success={s:.3f} collision={c:.3f}")Running this prints:
G=0.5: empty=0.607 success=0.303 collision=0.090
G=1.0: empty=0.368 success=0.368 collision=0.264
G=2.0: empty=0.135 success=0.271 collision=0.594The finite-station view
GATE questions often give N stations, each transmitting in a slot with probability p, instead of a Poisson load. A particular station succeeds when it transmits and the other N − 1 stay silent:
P(station i succeeds) = p · (1 − p)^(N−1)
The probability that some station succeeds is
S = N · p · (1 − p)^(N−1)
This is maximized at p = 1/N. For N = 10 and p = 0.1, S = 10 × 0.1 × 0.9^9 ≈ 0.387. As N grows, (1 − 1/N)^(N−1) approaches 1/e, which matches the Poisson result.
Worked example
A 1 Mbps shared channel carries fixed 1000-bit frames, so each slot lasts 1 ms and there are 1000 slots per second.
- At the optimum, G = 1 and S = 0.368.
- Successful frames per second: 1000 × 0.368 ≈ 368.
- Useful data rate: 368 × 1000 bits ≈ 368 kbps.
The expected number of transmission attempts per delivered frame is G/S = e^G. At G = 1 this is e ≈ 2.72. Each frame needs on average about 2.7 attempts.
Edge cases and common errors
- Two loads give the same throughput. The S curve rises and then falls, so most values of S below 0.368 correspond to two values of G. For S = 0.2, solving G · e^−G = 0.2 gives G ≈ 0.26 and G ≈ 2.54. The first is a lightly loaded channel. The second is an overloaded channel with many collisions. If a question asks for G given S, check which regime it intends.
- G is not the arrival rate of new frames. G counts retransmissions too. At high G the new-frame rate is much lower than G, because most attempts are retries.
- The slot must fit the frame. Slot length equals the frame transmission time. If frames are shorter than a slot, the unused remainder lowers the real efficiency. Frames longer than a slot cannot be sent at all.
- Slotting costs delay at low load. A frame that arrives mid-slot waits, on average, half a slot before it can go. Pure ALOHA has no such wait.
- The model is unstable. If G stays above 1, collisions create retransmissions, which raise G further, and throughput drifts toward zero. Real systems add backoff control to prevent this.
- Do not mix up the formulas. Slotted is G · e^−G with a peak at G = 1. Pure is G · e^−2G with a peak at G = 0.5.
Summary of results
- Vulnerable period: T (pure ALOHA: 2T).
- Throughput: S = G · e^−G.
- Maximum: S = 1/e ≈ 0.368 at G = 1.
- Pure ALOHA maximum: 1/(2e) ≈ 0.184 at G = 0.5.
- Finite stations: S = N · p · (1 − p)^(N−1), maximized at p = 1/N.
Exercise
A slotted ALOHA channel has a capacity of 2 Mbps and 500-bit frames. The offered load is G = 2 attempts per slot. (a) What is the throughput S per slot? (b) How many frames per second are delivered successfully? (c) What fraction of slots end in a collision?
Show answer
The slot length is 500 bits / 2 Mbps = 250 µs, so there are 4000 slots per second. (a) S = G · e^−G = 2 · e^−2 ≈ 2 × 0.1353 = 0.271. (b) Successful frames per second = 4000 × 0.271 ≈ 1083. (c) Empty slots are e^−2 ≈ 0.135 and successful slots are 0.271, so collisions are 1 − 0.135 − 0.271 ≈ 0.594, or about 59% of slots.
Exercise
Ten stations each transmit in a slot with probability p, independently. Find the p that maximizes the probability that a slot is successful, and give that maximum probability.
Show answer
S = 10 · p · (1 − p)^9, which is maximized at p = 1/N = 0.1. The maximum is 10 × 0.1 × 0.9^9 = 0.9^9 ≈ 0.387. This is slightly above 1/e ≈ 0.368 because N is finite.