Sub topic 8
Slotted ALOHA and Its Throughput
This chapter assumes that you know bandwidth, frames, slots, and basic probability. It also assumes that offered load can be modeled with a Poisson distribution.
Slotted ALOHA is a random-access protocol. Many stations share one broadcast channel, but no station controls the channel permanently. Time is divided into equal slots. A station may begin transmitting only at the start of a slot.
How slotted ALOHA works
A station follows this procedure:
- If it has a frame, it transmits at the beginning of the next slot.
- If exactly one station transmits in that slot, the frame succeeds.
- If two or more stations transmit, their frames collide.
- Each station involved in a collision waits for a later slot and tries again.
All stations must agree on slot boundaries. This synchronization is the main difference between slotted ALOHA and pure ALOHA.
A slot must be at least as long as the time needed to transmit one frame. A station therefore knows whether its transmission succeeded or collided before the next transmission opportunity.
Deriving the throughput
Let:
Gbe the average number of transmission attempts per slot, including new attempts and retransmissions.Sbe the average number of successful frames per slot.
Assume that attempts follow a Poisson distribution. The probability of exactly k attempts in one slot is:
\[ P(k)=\frac{G^k e^{-G}}{k!} \]
A successful slot has exactly one attempt. Therefore:
\[ S=P(1) \]
Substituting k = 1 gives:
\[ S=\frac{G^1e^{-G}}{1!}=Ge^{-G} \]
Thus, the throughput of slotted ALOHA is:
\[ \boxed{S=Ge^{-G}} \]
The maximum occurs when G = 1:
\[ S_{\max}=1\cdot e^{-1}=\frac{1}{e}\approx0.368 \]
So the best possible throughput is about 36.8% of the channel capacity. The remaining time consists mainly of empty slots and collided slots.
| Offered load `G` | Throughput `S = Ge^-G` | Interpretation |
|---|---|---|
| 0.5 | 0.303 | Many slots are empty |
| 1.0 | 0.368 | Maximum throughput |
| 2.0 | 0.271 | Collisions become common |
import math
def slotted_aloha_throughput(G: float) -> float:
if G < 0:
raise ValueError("offered load cannot be negative")
return G * math.exp(-G)
for load in (0.5, 1.0, 2.0):
print(load, round(slotted_aloha_throughput(load), 3))Slotted versus pure ALOHA
Slotted ALOHA limits transmissions to slot boundaries. A frame can collide only with frames sent in the same slot. Pure ALOHA allows transmission at any time, so a frame is vulnerable to overlapping transmissions from a longer interval. Consequently, slotted ALOHA has the higher maximum throughput: approximately 36.8%, compared with approximately 18.4% for pure ALOHA.
Exercise
What is the throughput of slotted ALOHA when the offered load is G = 1?
Show answer
S = Ge^-G = 1/e ≈ 0.368, or 36.8%.