Introduction

When many stations share one broadcast channel (a coaxial cable, a hub, a radio frequency), two frames sent at overlapping times destroy each other: a collision. The medium access control (MAC) sublayer of the data link layer decides who may transmit when.

There are three families. Channel partitioning (TDMA, FDMA) gives each station a fixed share; it is collision-free but wastes the share of idle stations. Taking turns (polling, token passing) passes the right to send around; it is collision-free but has overhead and a single point of failure. Random access lets any station send when it has data and recovers from collisions; it is simple and efficient at light load. ALOHA, slotted ALOHA, CSMA and CSMA/CD are random-access protocols, and classic Ethernet is CSMA/CD.

The quantities are throughput formulas and their maxima (1/(2e)1/(2e) and 1/e1/e), vulnerable periods, the minimum frame size for collision detection, binary exponential backoff probabilities, and CSMA/CD efficiency.

Prerequisites

  • Network Performance Metrics: Delay, Throughput and BDP: transmission time TtT_t, propagation time TpT_p, and a=Tp/Tta = T_p/T_t.
  • Poisson arrivals: if events occur at rate λ\lambda, the number in an interval of length tt is Poisson with mean λt\lambda t, and the chance of none is e−λte^{-\lambda t}.

Core concepts

Load and throughput

Measure time in frame times TT (the transmission time of one frame, all frames of equal length). Let GG be the offered load: the mean number of transmission attempts (new frames and retransmissions) per frame time. Let SS be the throughput: the mean number of successful frames per frame time, so 0≤S≤10 \le S \le 1. Attempts are modelled as a Poisson process.

Pure ALOHA

A station sends whenever it has a frame. If it collides, it waits a random time and sends again. A frame sent at time t0t_0 survives only if no other frame starts in (t0−T,t0+T)(t_0 - T, t_0 + T): any frame starting in the previous TT is still on the channel, and any frame starting in the next TT overlaps its tail. The vulnerable period is 2T2T, so

S=Ge−2G,max⁡S=12e≈0.184 at G=0.5.S = G e^{-2G}, \qquad \max S = \frac{1}{2e} \approx 0.184 \text{ at } G = 0.5 .

Slotted ALOHA

Time is divided into slots of length TT; a frame may start only at a slot boundary. Two frames collide only if they choose the same slot, so the vulnerable period is TT:

S=Ge−G,max⁡S=1e≈0.368 at G=1.S = G e^{-G}, \qquad \max S = \frac{1}{e} \approx 0.368 \text{ at } G = 1 .
Two panels. Upper panel, pure ALOHA: a time axis with a shaded frame from t0 to t0 plus T; a bracket from t0 minus T to t0 plus T is labelled vulnerable period 2T, and two dashed frames, one starting just after t0 minus T and one just before t0 plus T, are shown overlapping the shaded frame. Lower panel, slotted ALOHA: the axis is divided into slots of length T; the shaded frame fills one slot, and the vulnerable period is that single slot, T.
Figure 1. The vulnerable period of a frame of length TT is 2T2T in pure ALOHA and TT in slotted ALOHA, which is why the maximum throughput doubles from 1/(2e)1/(2e) to 1/e1/e.

Finite-station form

With NN stations each transmitting in a slot with probability pp, a slot succeeds if exactly one transmits:

Pslotted=Np(1−p)N−1,Ppure=Np(1−p)2(N−1).P_{\text{slotted}} = N p (1 - p)^{N - 1}, \qquad P_{\text{pure}} = N p (1 - p)^{2(N - 1)} .

The slotted expression is largest at p=1/Np = 1/N, where it equals (1−1/N)N−1(1 - 1/N)^{N-1}, which falls to 1/e1/e as N→∞N \to \infty. The pure expression is largest at p=1/(2N−1)p = 1/(2N - 1) and tends to 1/(2e)1/(2e).

CSMA: listen before talking

Carrier sense multiple access stations sense the channel and do not start while another transmission is heard. Collisions remain possible because a signal needs time TpT_p to reach the other stations: the vulnerable period becomes the propagation delay.

VariantChannel busyChannel idle
1-persistentKeep sensing; send the moment it goes idleSend at once
Non-persistentWait a random time, then sense againSend at once
pp-persistent (slotted)Wait for the next slot and sense againSend with probability pp; otherwise wait one slot and repeat

1-persistent has the least delay at light load but collides whenever two stations are waiting for the same frame to end. Non-persistent wastes idle time but collides less at heavy load.

CSMA/CD: detect and abort

With collision detection a station listens while it sends. On detecting a collision it stops at once, sends a short jam signal so every station notices, and backs off. This saves the rest of the frame time that ALOHA and plain CSMA waste on a doomed frame.

Minimum frame size. A sender can only know that a collision happened if it is still transmitting when the collision noise reaches it. In the worst case, station A at one end starts at time 0; just before A's first bit reaches the far end at TpT_p, station B starts; B's signal reaches A at almost 2Tp2T_p. So

Tt≥2Tp⟺Lmin⁡=2TpR=2dRv.T_t \ge 2T_p \quad\Longleftrightarrow\quad L_{\min} = 2 T_p R = \frac{2 d R}{v} .

Classic 10 Mbps Ethernet fixes the slot time at 512 bit times (51.2 µs) and the minimum frame at 64 bytes, which bounds the network diameter.

A distance-time diagram with station A at the left end and station B at the right end of a 1 km cable, time increasing downward in microseconds. A starts transmitting at 0. A's first bit reaches B at 5. B starts just before 5 and detects the collision almost immediately. The collision signal travels back and reaches A at 10. A shaded band shows that A is still transmitting at 10 only if its frame lasts at least 10 microseconds, which at 1 Gbps is 10000 bits.
Figure 2. Worst-case collision on a 1 km, 1 Gbps CSMA/CD link: the collision reaches A at 2Tp=102T_p = 10 µs, so a frame must last at least 10 µs, which is 10,000 bits.

Binary exponential backoff

After the nn-th consecutive collision of a frame, the station picks KK uniformly from {0,1,…,2m−1}\{0, 1, \ldots, 2^{m} - 1\} with m=min⁡(n,10)m = \min(n, 10) and waits KK slot times (512 bit times) before sensing again. After 16 failed attempts the frame is dropped and an error is reported. The range doubles with each collision, so the expected wait adapts to the number of contending stations.

Mathematical explanation

Throughput of pure ALOHA. A given attempt succeeds if no other attempt occurs in a window of 2T2T, which for Poisson attempts at rate GG per frame time has probability e−2Ge^{-2G}. Attempts occur at rate GG, so S=Ge−2GS = G e^{-2G}. Setting dS/dG=e−2G(1−2G)=0dS/dG = e^{-2G}(1 - 2G) = 0 gives G=1/2G = 1/2 and S=1/(2e)S = 1/(2e). For slotted ALOHA the window is one slot, S=Ge−GS = Ge^{-G}, maximum at G=1G = 1, S=1/eS = 1/e.

CSMA/CD efficiency. Two standard models give approximations of the same shape:

ηKurose-Ross≈11+5a,ηTanenbaum=11+2ea≈11+5.44a,\eta_{\text{Kurose-Ross}} \approx \frac{1}{1 + 5a}, \qquad \eta_{\text{Tanenbaum}} = \frac{1}{1 + 2ea} \approx \frac{1}{1 + 5.44a},

with a=Tp/Tta = T_p/T_t and TpT_p the maximum end-to-end propagation delay. In the Tanenbaum model each contention slot has length 2Tp2T_p and, with optimal persistence among many stations, a slot is won with probability 1/e1/e, so on average ee slots of 2Tp2T_p precede each frame. Both formulas give η→1\eta \to 1 as a→0a \to 0 (long frames, short cable) and η→0\eta \to 0 as aa grows.

Backoff probabilities. If two stations pick KK independently and uniformly from ranges of sizes r1r_1 and r2r_2, they collide again with probability min⁡(r1,r2)/(r1r2)\min(r_1, r_2)/(r_1 r_2); for equal ranges of size rr, that is 1/r1/r.

Worked examples

Example 1: ALOHA throughput

200-bit frames on a 200 kbps channel, so T=1T = 1 ms. Pure ALOHA:

Frames offered per secondGGS=Ge−2GS = Ge^{-2G}Successful frames per second
100010.1353about 135
5000.50.1839about 184
2500.250.1516about 152

Slotted ALOHA at G=1G = 1 (1000 frames per second offered) gives S=e−1≈0.3679S = e^{-1} \approx 0.3679, about 368 frames per second. Successful frames per second are S/TS/T, that is SS times 1000 here; equivalently, the offered frames per second times the survival probability e−2Ge^{-2G} (for 500 frames per second, 500×e−1≈184500 \times e^{-1} \approx 184). Multiplying SS by the offered frames per second counts the load twice and gives a wrong answer such as 92.

Example 2: finite stations

Ten stations, each sending in a slot with probability 0.1: P=10×0.1×0.99≈0.3874P = 10 \times 0.1 \times 0.9^9 \approx 0.3874. This is the maximum over pp for N=10N = 10, already close to 1/e≈0.36791/e \approx 0.3679 from above.

Example 3: minimum frame size

A 1 km cable at 1 Gbps, v=2×108v = 2 \times 10^8 m/s: Tp=5T_p = 5 µs, so Lmin⁡=2×5×10−6×109=10,000L_{\min} = 2 \times 5 \times 10^{-6} \times 10^9 = 10{,}000 bits (1250 bytes). At 10 Mbps over 2500 m: Tp=12.5T_p = 12.5 µs and Lmin⁡=250L_{\min} = 250 bits.

Reverse question: with 64-byte (512-bit) minimum frames at 100 Mbps, Tt=5.12T_t = 5.12 µs, so 2Tp≤5.122T_p \le 5.12 µs and the cable can be at most 2.56×10−6×2×108=5122.56 \times 10^{-6} \times 2 \times 10^8 = 512 m.

Example 4: CSMA/CD efficiency

With a=0.1a = 0.1: 1/(1+5×0.1)≈0.6671/(1 + 5 \times 0.1) \approx 0.667 in the Kurose and Ross form, 1/(1+2e×0.1)≈0.6481/(1 + 2e \times 0.1) \approx 0.648 in the Tanenbaum form. With a=0.01a = 0.01: 0.952 and 0.948.

Example 5: backoff

Stations A and B collide. Each picks K∈{0,1}K \in \{0, 1\}: they collide again with probability 1/21/2. After a second collision each picks from {0,1,2,3}\{0, 1, 2, 3\}: probability 1/41/4.

Now suppose A is on its first retry (KA∈{0,1}K_A \in \{0, 1\}) and B on its second (KB∈{0,1,2,3}K_B \in \{0, 1, 2, 3\}). A wins outright if KA<KBK_A < K_B: if KA=0K_A = 0, B must pick 1, 2 or 3 (probability 3/43/4); if KA=1K_A = 1, B must pick 2 or 3 (1/21/2). So P(A wins)=12(34+12)=58P(\text{A wins}) = \frac{1}{2}\left(\frac{3}{4} + \frac{1}{2}\right) = \frac{5}{8}. B wins only if KA=1K_A = 1 and KB=0K_B = 0, probability 1/81/8; they collide again (KA=KBK_A = K_B) with probability 1/41/4, which matches min⁡(2,4)/(2×4)\min(2, 4)/(2 \times 4).

Example 6: when each station detects the collision

A 2 km bus with v=2×108v = 2 \times 10^8 m/s (Tp=10T_p = 10 µs) at 10 Mbps. A starts sending at time 0. B, at the far end, starts at 6 µs, because A's first bit reaches B only at 10 µs and B still hears an idle channel. The two signals meet at 8 µs, 1600 m from A. B hears A at 10 µs, after sending for 4 µs (40 bits); A hears B at 6+10=166 + 10 = 16 µs, after sending 160 bits. The later B starts, the later A finds out: if B starts just before 10 µs, A hears the collision just before 2Tp=202T_p = 20 µs. So A's frame must last at least 20 µs, which is 200 bits, the value Lmin⁡=2TpRL_{\min} = 2T_pR gives.

Important properties and observations

  • Vulnerable periods. Pure ALOHA 2T2T; slotted ALOHA TT; CSMA TpT_p.
  • Maxima. 1/(2e)≈0.1841/(2e) \approx 0.184 at G=0.5G = 0.5; 1/e≈0.3681/e \approx 0.368 at G=1G = 1. Beyond the maximum, extra load lowers throughput.
  • CSMA/CD needs Tt≥2TpT_t \ge 2T_p. That is the entire basis of the 64-byte minimum Ethernet frame and of padding short frames.
  • CSMA/CD needs a wired medium. On radio a station cannot hear collisions at the receiver while transmitting (and hidden stations exist), so Wi-Fi uses collision avoidance instead.
  • Switched full-duplex Ethernet has no collisions, so CSMA/CD is inactive there (Ethernet, Switches and Bridges).

Common misconceptions.

  • "ALOHA's maximum is 18.4% of the offered load." It is 18.4% of the channel capacity, reached when the offered load is half a frame per frame time.
  • "Doubling the bit rate keeps the minimum frame the same." Lmin⁡=2TpRL_{\min} = 2T_pR doubles with RR.
  • "Backoff uses 2n2^n values." After the nn-th collision there are 2min⁡(n,10)2^{\min(n,10)} values, 00 to 2min⁡(n,10)−12^{\min(n,10)} - 1.

Polling (a master invites each station in turn) and token passing (a token circulates; only its holder sends) avoid collisions at the cost of polling or token-rotation delay.

Token-passing cycle. Let NN stations share a ring; a station holding the token sends one frame (time TtT_t) if it has data and passes the token on as soon as it has finished, and the token needs a total ring latency τ\tau to travel once round the ring. With every station busy, one rotation takes NTt+τN T_t + \tau, so the efficiency is NTt/(NTt+τ)N T_t/(N T_t + \tau). For N=10N = 10, Tt=100T_t = 100 µs and τ=50\tau = 50 µs (5 µs per hop): a rotation takes 1050 µs, the efficiency is 1000/1050≈0.9521000/1050 \approx 0.952, and a busy station waits 950 µs between the end of one of its frames and the start of its next. If only one station has data, it sends once every Tt+τ=150T_t + \tau = 150 µs and gets 100/150=2/3100/150 = 2/3 of the link. The ratio of τ\tau to TtT_t plays the part that aa plays in CSMA/CD.

Wi-Fi uses CSMA/CA: a station senses the channel, defers for a random backoff counted down only while the channel is idle, and relies on link-layer acknowledgements because it cannot detect collisions.

GATE examination perspective

  • Throughput questions. Convert the offered frames per second into GG per frame time, then use Ge−2GGe^{-2G} or Ge−GGe^{-G}. SS is successes per frame time: divide by TT for successes per second; do not multiply SS by the offered rate.
  • Maxima and where they occur. G=0.5G = 0.5 for pure, G=1G = 1 for slotted.
  • Minimum frame or maximum length. Lmin⁡=2dR/vL_{\min} = 2dR/v; solve for dd or RR as asked. Use the one-way end-to-end propagation delay.
  • Backoff probabilities. Enumerate the KK pairs; the ranges are 2min⁡(n,10)2^{\min(n,10)} after the nn-th collision.
  • Who detects first. Trace both signal fronts: the station that started later hears the other first; the earlier sender can need almost 2Tp2T_p (Example 6).
  • Efficiency formula. Use the one the question's options imply; both models give 1/(1+c a)1/(1 + c\,a) with cc about 5.

Summary

Sources

  1. A. S. Tanenbaum, D. J. Wetherall, Computer Networks, 5th ed., Pearson, 2011, Section 4.2.1 (ALOHA), Section 4.2.2 (Carrier Sense Multiple Access Protocols), Section 4.2.3 (Collision-Free Protocols), Section 4.3.2 (Classic Ethernet MAC Sublayer Protocol, binary exponential backoff) and Section 4.3.3 (Ethernet Performance).
  2. J. F. Kurose, K. W. Ross, Computer Networking: A Top-Down Approach, 8th ed., Pearson, 2021: Section 6.3.2 (Random Access Protocols: slotted ALOHA, ALOHA, CSMA, CSMA/CD and its efficiency).
  3. B. A. Forouzan, Data Communications and Networking, 5th ed., McGraw-Hill, 2013: Chapter 12 (Media Access Control).

Next steps