Contention-Based Medium Access
ALOHA exposes the mathematics of random access; carrier sensing and backoff reduce wasted attempts but cannot remove propagation delay or hidden-terminal uncertainty. This entry derives pure and slotted ALOHA throughput and connects the model to historical Ethernet CSMA/CD and current Wi-Fi CSMA/CA.
Contention trades reservation overhead for collisions and variable waiting. Each station decides when to attempt transmission using local information; when attempts overlap incompatibly, affected frames fail and must be retried. ALOHA makes this trade mathematically visible. CSMA improves it by listening first, while collision detection or avoidance addresses what listening cannot know soon enough.
Pure ALOHA #
Assume every frame takes time , attempted frame starts form a Poisson process, and the offered load is attempts per frame time—including retransmissions. A frame beginning at time succeeds only if no other frame begins in : the vulnerable interval is .
For a Poisson process, the probability of zero other attempts in an interval with mean is . Successful throughput in frames per frame time is therefore
Differentiating,
gives and
Even at its optimum, pure ALOHA converts only about 18.4% of frame-time capacity into successful frames under these assumptions. More offered load beyond the optimum reduces useful throughput because retries create still more collisions.
Slotted ALOHA #
If all starts are restricted to slot boundaries and one frame occupies one slot, only attempts in the same slot collide. The vulnerable interval falls to :
Slot synchronization doubles the ideal maximum throughput but adds clock/distribution requirements and waiting until the next boundary.
Stability depends on retransmission control #
includes new traffic and retries. Let fresh load be and retry load be ; then . If every backlogged station retries aggressively, one collision creates multiple near-simultaneous retries, which create more backlog. The system can move from a low-load stable operating point to persistent collision even while fresh traffic is below the theoretical peak.
Random backoff decorrelates retries. A useful backoff policy must answer:
- how the contention window changes after failure and success;
- whether countdown continues while the medium is busy;
- the retry limit and final failure signal;
- fairness between old backlog and new arrivals;
- how much delay tail is acceptable.
Maximum throughput alone is insufficient: a policy can achieve good aggregate throughput while starving one station or producing an operationally unacceptable access-delay tail.
Carrier sense and propagation #
CSMA listens before transmitting. If the medium is busy, a station defers; this avoids starting on top of a signal that has already arrived. It cannot prevent two distant stations from beginning within one propagation delay of each other.
Let one-way propagation be and frame transmission time be . The ratio
captures how stale carrier sense can be relative to a frame. Small improves contention efficiency because stations learn of another start quickly. Higher link rate or shorter frames reduces , so the same physical span becomes harder unless the collision domain is constrained.
CSMA/CD: detect and abort #
Shared half-duplex Ethernet used carrier-sense multiple access with collision detection. A transmitter monitored the medium while sending; upon collision it stopped the failed frame, signaled the event, and retried after a randomized binary exponential backoff. The minimum frame and maximum collision-domain extent ensured a transmitter was still sending when a worst-case collision propagated back.
Modern switched full-duplex Ethernet links do not contend: each direction is point-to-point, so CSMA/CD is unnecessary there. Output-queue congestion and packet loss can still occur inside a switch, but they are not link collisions.
CSMA/CA: reduce collision probability #
A Wi-Fi transmitter cannot reliably infer at its antenna that every intended receiver decoded its frame. IEEE 802.11 distributed access therefore uses collision avoidance:
- observe the channel idle for the required interframe interval;
- choose a random backoff counter from the current contention window;
- decrement it only during eligible idle slots and freeze it while busy;
- transmit when it reaches zero;
- infer success from an acknowledgement, otherwise enlarge the contention window and retry subject to limits.
Collisions remain possible when contenders choose the same slot or are hidden from each other. RTS/CTS can reduce the cost of some hidden-terminal collisions by reserving airtime with shorter control frames, but its overhead is not automatically worthwhile for every frame.
| Mechanism | Knowledge before start | Failure evidence | Main residual problem |
|---|---|---|---|
| pure ALOHA | none | missing acknowledgement | vulnerable interval |
| slotted ALOHA | common slot boundary | missing acknowledgement | same-slot attempts |
| CSMA/CD | local carrier plus live collision observation | detected collision | propagation within shared wired domain |
| CSMA/CA | local carrier, random countdown, optional reservation | missing acknowledgement | hidden nodes and uncertain receiver conditions |
What to measure #
- offered attempts , successful throughput , and fresh application load separately;
- collision or missing-ack retry counts by contention stage;
- contention-window distribution and access-delay percentiles;
- channel busy time split into successful payload, control, retransmission, and foreign energy;
- hidden-node/asymmetric-link evidence and capture effects;
- fairness per station and per unit airtime.
Random access works well when demand is sparse and failures are quickly decorrelated. As offered load rises, the mechanism must make congestion visible through backoff, delay, or admission rather than letting retries hide overload as “more traffic.”