CS Atlas GATE 2027
Computer Networks course
0 / 90 complete

Computer Networks/Phase 2 · Data Link Layer

Lesson 2.3.5 · Item 35 of 90

Controlled access: polling, token passing and its efficiency

Read at your own pace. Try the questions before opening the answers.

On this page

Recall warm-up

  1. 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.

    Read lesson 2.3.4

  2. 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.

    Read lesson 2.3.1

  3. 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.

    Read lesson 1.3.3

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.

PrimaryStation 1Station 2poll: anything to send?data framepollnothing
Polling: one station at a time, on request.

Token passing and the ring

Token passing: a special short frame, the token, circulates; only the station holding it may transmit, for at most the token holding time. Then it passes the token to the next station.

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 →S1S2S3S4S5
A token ring: only the station holding the token (S1) may send.

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 policyWhen the token is releasedEfficiency
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)
Token ring efficiency formulas.

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).

Textbooks write token-ring efficiency in several forms (some use separate cases for a < 1 and a > 1). The two formulas above are the convention used by GATE-style questions in Indian coaching material; when a question gives its own model, follow it.
ETR
1/(1 + a/N)
DTR
1/(1 + a(N+1)/N)
Early release always wins when a is large.

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

0.9520.645a=0.5, N=100.7140.294a=2, N=5
ETRDTR
Early vs delayed token release for two rings (computed).

Worked Examples

Easy

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.

Medium

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.

GATE

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

  1. NAT

    Token ring, N = 20, a = 1. Early token release efficiency (3 decimals)?

    Write your answer before opening the key.

  2. NAT

    Token ring, N = 4, a = 1. Delayed token release efficiency (3 decimals)?

    Write your answer before opening the key.

  3. MCQ

    In polling, which node decides who sends next?

    1. Any idle node
    2. The primary (master)
    3. The node with the token
    4. Nobody — random choice
  4. 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.

  5. MSQ

    Which are true?

    1. Token passing has no collisions.
    2. DTR is never better than ETR.
    3. Polling has no overhead.
    4. 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

  1. {0, …, 7}.
  2. Channel partitioning, random access, taking turns.
  3. T_p / T_t.

Self-test answers

  1. 0.952..0.953 — 1/(1 + 1/20) = 0.9524.
  2. 0.444..0.445 — 1/(1 + 5/4) = 4/9 = 0.444.
  3. B — The primary polls stations one by one.
    • A: Not in polling.
    • C: That is token passing.
    • D: That is random access.
  4. 7 — 5 µs + 2 µs = 7 µs.
  5. ABD — Collision-free; ETR ≥ DTR; efficiency falls with a.
    • C: Each poll costs time.

Flashcards

  1. ETR efficiency?
    Reveal answer1/(1 + a/N).
  2. DTR efficiency?
    Reveal answer1/(1 + a(N + 1)/N).
  3. Ring latency?
    Reveal answerd/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.

Ready for the next idea?

Mark this item complete when you’ve finished reading and working through it.