Recall warm-up
- After the 3rd collision, K is chosen from which range?
Stuck? Peek at 2.3.4 Binary exponential backoff; probability of winning
- After the n-th collision: K uniform in {0, …, 2^min(n,10) − 1}; wait K × slot; abort after 16.
- Slot = 512 bit times (51.2 µs at 10 Mbps).
- P(A wins) = #{K_A < K_B} / (a·b); both at range 2: win 1/4, tie 1/2.
- Capture: A at range 2 vs B at range 4 → A wins 5/8.
- Name the three MAC families.
Stuck? Peek at 2.3.1 The multiple access problem; collisions; channel partitioning
- Collision: overlapping transmissions on a shared link; all involved frames lost.
- MAC families: partitioning (TDMA/FDMA), random access (send freely, recover from collisions), taking turns (an orderly schedule).
- TDMA/FDMA: R/N per station, no collisions, idle shares wasted, wait up to (N − 1) slots.
- a = ?
Stuck? Peek at 1.3.3 RTT, bandwidth-delay product, utilisation and a = Tp/Tt
- RTT = 2·Tp for tiny signals (add Tt / queuing if stated).
- BDP = B × Tp bits in flight; B × RTT before any reply.
- a = Tp / Tt.
- Send-and-wait: U = Tt/(Tt + 2Tp) = 1/(1 + 2a); throughput = U·B.
- To keep the link busy: about 1 + 2a units in flight.
The Hook
A teacher can call students one by one ("Ravi? Anything to say?"), or the class can pass a talking stick around the circle — only the holder may speak. Both avoid collisions completely. Networks call these polling and token passing; GATE asks for their efficiency.
Predict First
A token circles a ring of N stations. A station that grabs the token sends one frame and then releases the token. Does it matter whether it releases the token right after sending, or only after its frame has gone all the way round the ring and come back?
,Yes. Releasing immediately (early release) lets the next station start almost at once. Waiting for the frame to return (delayed release) idles the ring for a whole trip around it each time — a big loss when the ring is long compared with the frame.
Core Concept
Polling
A primary (master) node asks each station in turn whether it has data. The station sends, then the primary polls the next one. No collisions, but each poll costs time and the primary is a single point of failure.
If each station sends one frame of time Tt per poll and a poll costs Tpoll, efficiency = Tt / (Tt + Tpoll). E.g. Tpoll = Tt/4 → 0.8.
Token passing and the ring
Ring latency = time for a bit to go once round the ring = propagation round the ring + the small delay each station adds (b bits per station): d/v + N·b/R.
Token ring efficiency
With N stations, each sending one frame per token visit, a = Tp/Tt where Tp is the propagation time once round the ring:
| Release policy | When the token is released | Efficiency |
|---|---|---|
| Early token release (ETR) | right after the frame is sent | η = 1 / (1 + a/N) |
| Delayed token release (DTR) | after the frame returns to the sender | η = 1 / (1 + a(N + 1)/N) |
Where the formulas come from
ETR: each of the N stations sends Tt; the token walks once round the ring (Tp) per cycle: η = N·Tt / (N·Tt + Tp) = 1/(1 + a/N).
DTR: each station also holds the ring for its frame's full trip (Tp) before releasing: η = N·Tt / (N·Tt + N·Tp + Tp) = 1/(1 + a(N + 1)/N).
Putting it together
- Taking turns avoids collisions at the cost of polls or token walks.
- Early token release keeps a long ring busy; delayed release wastes a ring trip per frame.
- Token-ring efficiency falls as a grows.
Visual
Worked Examples
Token ring, N = 10, a = 0.5. Efficiency with early and with delayed token release?
Show the full solution
ETR: 1/(1 + 0.05) = 0.9524. DTR: 1/(1 + 0.5 × 11/10) = 1/1.55 = 0.6452.
A ring of 2 km (v = 2 × 10⁸ m/s), 50 stations each adding 1 bit of delay, at 10 Mbps. Ring latency?
Show the full solution
Propagation: 2000 / 2×10⁸ = 10 µs. Station delays: 50 × 1 / 10⁷ = 5 µs. Ring latency = 15 µs.
Token ring with N = 5 and a = 2. Compare ETR and DTR efficiency.
Show the full solution
ETR: 1/(1 + 2/5) = 1/1.4 = 0.7143. DTR: 1/(1 + 2 × 6/5) = 1/3.4 = 0.2941. With a long ring (a = 2), delayed release wastes most of the time.
GATE Traps
- In token-ring a, T_p is the propagation time once round the whole ring.
- Delayed release adds the frame's return trip for every station — it hurts most when a is large.
- Polling's primary is a single point of failure; token passing must handle a lost token.
Memory Hook
"Pass the stick early and the circle keeps talking."
Connect the Dots
Chapter 2.3 is complete: partitioning, random access, taking turns. Next (Ch 2.4): the link layer that actually carries our frame from the laptop on most wired LANs — its frame format, address types and size limits, all of which follow from what we just learned.
Self-Test
- NAT
Token ring, N = 20, a = 1. Early token release efficiency (3 decimals)?
Write your answer before opening the key.
- NAT
Token ring, N = 4, a = 1. Delayed token release efficiency (3 decimals)?
Write your answer before opening the key.
- MCQ
In polling, which node decides who sends next?
- Any idle node
- The primary (master)
- The node with the token
- Nobody — random choice
- NAT
Ring of 1 km (v = 2 × 10⁸ m/s), 100 stations each adding 2 bits, at 100 Mbps. Ring latency in µs?
Write your answer before opening the key.
- MSQ
Which are true?
- Token passing has no collisions.
- DTR is never better than ETR.
- Polling has no overhead.
- Higher a lowers token ring efficiency.
Rule Card
- Polling: primary asks each station; η = T_t/(T_t + T_poll); single point of failure.
- Token passing: only the token holder sends (token holding time).
- Ring latency = d/v + N·b/R.
- ETR η = 1/(1 + a/N); DTR η = 1/(1 + a(N+1)/N).
Concept Ledger
- polling, primary
- token passing, token, token holding time
- token ring, ring latency
- early vs delayed token release efficiency
Answer Vault
Try the questions first. Open when you are ready to check.
Warm-up answers
- {0, …, 7}.
- Channel partitioning, random access, taking turns.
- T_p / T_t.
Self-test answers
- 0.952..0.953 — 1/(1 + 1/20) = 0.9524.
- 0.444..0.445 — 1/(1 + 5/4) = 4/9 = 0.444.
- B — The primary polls stations one by one.
- A: Not in polling.
- C: That is token passing.
- D: That is random access.
- 7 — 5 µs + 2 µs = 7 µs.
- ABD — Collision-free; ETR ≥ DTR; efficiency falls with a.
- C: Each poll costs time.
Flashcards
- ETR efficiency?
Reveal answer
1/(1 + a/N). - DTR efficiency?
Reveal answer
1/(1 + a(N + 1)/N). - Ring latency?
Reveal answer
d/v + N·b/R.
Exam shortcuts
- ETR 1/(1 + a/N); DTR 1/(1 + a(N+1)/N). — N stations, one frame per token visit, a = ring propagation / frame time.
- Ring latency = d/v + N·b/R. — b = bits of delay added at each station.