Sub topic 8
Pure ALOHA and Its Throughput
This chapter assumes you know what the data link layer does and what frame transmission time means. It also assumes basic probability, including the Poisson distribution. You should be comfortable with an expression like e^(-2G).
The setting
Pure ALOHA is the simplest random-access protocol. It was built at the University of Hawaii for radio links between islands. Stations share one channel and have no coordination. The rule is short:
- If you have a frame, send it immediately.
- Wait for an acknowledgment (ACK) for a time equal to the maximum round-trip delay.
- If no ACK arrives, assume a collision. Wait a random time, then resend.
- After a maximum number of attempts, give up.
The random wait in step 3 matters. If two colliding stations waited the same time, they would collide again forever.
Why frames collide
Assume all frames have the same length, and call the time to transmit one frame T. A frame sent at time t0 occupies the channel from t0 to t0 + T. Another station may start a frame at any moment, because there is no sensing and no time slot.
The frame collides with any other frame that overlaps it, even by one bit. Two cases overlap our frame:
- Another frame starts in the interval (t0 - T, t0). Its tail overlaps the start of our frame.
- Another frame starts in the interval (t0, t0 + T). Its head overlaps the end of our frame.
So the vulnerable period is 2T long.
Deriving the throughput
Define two quantities, both measured per frame time T:
- G is the offered load: the average number of frame transmission attempts per T. It counts new frames and retransmissions.
- S is the throughput: the average number of frames per T that get through successfully. S is at most 1.
Model the attempts as a Poisson process. The probability of k attempts in a window of length t is:
P(k) = ((G·t/T)^k · e^(-G·t/T)) / k!
For a frame to succeed, no other frame may start in the vulnerable period of 2T. That window holds on average 2G attempts, so:
P(no other attempt in 2T) = e^(-2G)
Of the G attempts per frame time, a fraction e^(-2G) succeed:
S = G · e^(-2G)
Finding the maximum
Differentiate and set the derivative to zero:
dS/dG = e^(-2G) − 2G·e^(-2G) = e^(-2G)(1 − 2G)
This is zero at G = 1/2. The second derivative is negative there, so it is a maximum. Substituting back:
S_max = (1/2)·e^(-1) = 1/(2e) ≈ 0.184
So pure ALOHA uses at most about 18.4% of the channel capacity. The remaining capacity is lost to collisions and idle time.
import math
def pure_aloha(G):
return G * math.exp(-2 * G)
for G in (0.1, 0.25, 0.5, 1.0, 2.0):
print(G, round(pure_aloha(G), 3))
# 0.1 0.082
# 0.25 0.152
# 0.5 0.184
# 1.0 0.135
# 2.0 0.037The output shows a rise to G = 0.5, then a decline. Past the peak, more offered load means less useful traffic, because collisions and retransmissions grow faster than successes.
Using the formulas with real units
GATE questions usually give a channel rate and frame size. Convert to frames per second first.
Example. A pure ALOHA channel has bandwidth 1 Mbps. Frames are 1000 bits. The network of stations together generates 500 frames per second, counting retransmissions. What is the throughput?
- Frame time T = 1000 / 10^6 = 1 ms.
- Attempts per frame time: G = 500 × 0.001 = 0.5.
- S = 0.5 · e^(-1) ≈ 0.184 frames per frame time.
- Successful frames per second = 0.184 / 0.001 ≈ 184.
- Useful bit rate ≈ 184 × 1000 = 184 kbps.
A related type of question gives only the frame generation rate and asks for the probability that a frame needs no retransmission. That is e^(-2G) with the same G. At G = 0.5 this is e^(-1) ≈ 0.368.
Edge cases and common errors
- G counts retransmissions. The offered load G is not the rate of new frames. If a question gives only the new-frame rate, the problem usually says whether retransmissions are included.
- Partial overlap is a collision. One overlapping bit destroys both frames. This is why the window is 2T and not T.
- The 2T window assumes fixed-length frames. With variable lengths the analysis changes, and the 18.4% bound no longer applies as stated.
- Throughput is not delay. At G above 0.5, S falls, and the average number of transmissions per frame, e^(2G), grows quickly. At G = 1 it is e² ≈ 7.4 attempts per success.
- The Poisson model is an assumption. It treats the population as infinite and attempts as independent. Real finite-station systems differ, but exam questions use the model.
- Unit mix-ups. Compute T from frame size divided by bandwidth before you compute G. Using the wrong unit for T is the most common numerical slip.
Summary of results
| Quantity | Pure ALOHA |
|---|---|
| Vulnerable period | 2T |
| Success probability for one attempt | e^(-2G) |
| Throughput | S = G e^(-2G) |
| Load at maximum | G = 0.5 |
| Maximum throughput | 1/(2e) ≈ 0.184 |
Exercise
A pure ALOHA channel runs at 2 Mbps with frames of 2000 bits. The stations together produce 750 frame attempts per second, including retransmissions. Find (a) the throughput in frames per second, and (b) the probability that a given attempt succeeds.
Show answer
T = 2000 / 2,000,000 = 1 ms. G = 750 × 0.001 = 0.75. (b) The success probability is e^(-2G) = e^(-1.5) ≈ 0.223. (a) S = G e^(-2G) = 0.75 × 0.223 ≈ 0.167 frames per frame time. Dividing by T = 0.001 s gives about 167 successful frames per second. Check: 750 × 0.223 ≈ 167.
Exercise
Why is the vulnerable period of pure ALOHA 2T and not T? What would the maximum throughput be if it were T?
Show answer
A frame collides if another frame starts up to T before it (overlapping its start) or up to T after it begins (overlapping its end), which gives a 2T window. If the window were T, the success probability would be e^(-G), so S = G e^(-G) with a maximum of 1/e ≈ 0.368 at G = 1. That is the slotted ALOHA result.
Exercise
At what offered load G is the average number of transmissions needed per successful frame equal to e^1 ≈ 2.72 in pure ALOHA?
Show answer
Each attempt succeeds with probability e^(-2G), so the expected number of attempts per success is e^(2G). Setting e^(2G) = e gives G = 0.5, which is also the load that maximizes throughput.