Recall warm-up
- Vulnerable time of slotted ALOHA?
Stuck? Peek at 2.3.2 Pure and slotted ALOHA: vulnerable time, throughput, maximum efficiency
- T = frame time; G = attempts per T.
- Pure: vulnerable 2T, S = G·e⁻²ᴳ, max 1/(2e) ≈ 0.184 at G = 0.5.
- Slotted: vulnerable T, S = G·e⁻ᴳ, max 1/e ≈ 0.368 at G = 1.
- Finite N: P(success) = N·p·(1 − p)ᴺ⁻¹.
- Why does TDMA waste capacity?
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.
- RTT for a tiny signal on a link with propagation delay T_p?
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
Polite people at a meeting listen before speaking, and if two start at once, both stop mid-sentence and try again later. Networks copy both habits: carrier sense (listen first) and collision detection (stop as soon as a clash is heard). But a speaker far away is heard only after a delay — and that delay sets a rule on how long every frame must be.
Predict First
Station A starts sending. Station B at the far end of a cable cannot hear A until A's first bit arrives, Tp later. If B starts just before that, how long after A started can A first hear the collision?
,Up to 2·Tp: A's signal takes Tp to reach B, and B's colliding signal takes another Tp to come back. If A finished sending before then, it would never know its frame was destroyed. So A must still be transmitting at 2·Tp: the frame must last at least 2·Tp.
Core Concept
CSMA: listen before talking
Collisions still happen because of propagation delay: two stations may both sense "idle" before each other's signal arrives. The vulnerable time shrinks to about Tp.
Persistence: what to do when the channel is busy
| Variant | If busy | If idle | Trade-off |
|---|---|---|---|
| 1-persistent | keep sensing; send the instant it becomes idle | send at once | low delay, many collisions when several wait |
| Non-persistent | wait a random time, then sense again | send at once | fewer collisions, more idle time |
| p-persistent (slotted) | keep sensing until idle | send with probability p, else wait one slot and repeat | between the two |
CSMA/CD: stop on collision
Collision detection works only on links where a station can hear while it sends (classic wired shared cables), i.e. it is a half-duplex scheme.
Minimum frame size L ≥ 2·T_p·B
To detect a collision, the sender must still be transmitting when the collision news returns, which can take up to the round trip 2·Tp across the longest path:
Equivalently, for a given minimum frame size, the cable can be at most dmax = Lmin·v / (2B) long. A classic 10 Mbps shared LAN fixes Lmin at 512 bits = 64 bytes, its slot time.
CSMA/CA (Foundation)
Putting it together
- CSMA listens first; CSMA/CD also listens while sending and aborts on collision.
- Persistence variants trade delay against collisions.
- Collision detection needs frames lasting at least 2·T_p: L_min = 2·T_p·B.
Visual
| Quantity | Formula |
|---|---|
| Minimum frame size | L_min = 2·T_p·B |
| Maximum length for a given L_min | d_max = L_min · v / (2B) |
| Condition | T_t ≥ 2·T_p (i.e. a ≤ 1/2) |
Worked Examples
A CSMA/CD network: cable 1 km, signal speed 2 × 10⁸ m/s, rate 1 Gbps. Minimum frame size?
Show the full solution
Tp = 1000 / 2×10⁸ = 5 µs. Lmin = 2 × 5 µs × 10⁹ = 10,000 bits = 1250 bytes.
10 Mbps, 2500 m, v = 2 × 10⁸ m/s. Minimum frame size in bits?
Show the full solution
Tp = 12.5 µs. Lmin = 2 × 12.5 × 10⁻⁶ × 10⁷ = 250 bits. (Real 10 Mbps LANs use 512 bits to allow for repeaters and safety margins.)
A CSMA/CD network runs at 100 Mbps with a minimum frame of 512 bits. Signal speed 2 × 10⁸ m/s. Maximum distance between two stations?
Show the full solution
Tt(512 bits) = 5.12 µs ≥ 2Tp → Tp ≤ 2.56 µs → d ≤ 2.56 × 10⁻⁶ × 2 × 10⁸ = 512 m.
GATE Traps
- Use the round trip 2·T_p, not T_p, in the minimum frame size.
- CSMA reduces but cannot eliminate collisions — propagation delay leaves a window.
- 1-persistent sends immediately when the channel frees, so waiting stations collide with each other.
- CSMA/CD needs to hear while sending: half-duplex shared wires, not wireless.
Memory Hook
"You must still be talking when the echo of a clash comes back": T_t ≥ 2·T_p.
Connect the Dots
After a collision, both stations must retry — but if they retry at the same moment they collide again. Next (2.3.4): how do they pick random waiting times, and how likely is each to win the next round?
Self-Test
- NAT
CSMA/CD: rate 10 Mbps, longest path 2 km, v = 2 × 10⁸ m/s. Minimum frame size in bits?
Write your answer before opening the key.
- NAT
Minimum frame 1000 bits at 1 Gbps, v = 2 × 10⁸ m/s. Maximum cable length in metres?
Write your answer before opening the key.
- MCQ
A station that waits a random time whenever it finds the channel busy is:
- 1-persistent
- non-persistent
- p-persistent
- TDMA
- MSQ
Which are true of CSMA/CD?
- A station stops sending when it detects a collision.
- Collisions are impossible.
- Frames must last at least 2·T_p.
- A jam signal announces the collision.
- MCQ
Doubling the bit rate of a CSMA/CD network while keeping the minimum frame size requires the maximum length to:
- double
- halve
- stay the same
- quadruple
Rule Card
- CSMA: sense before sending; collisions still possible within T_p.
- 1-persistent / non-persistent / p-persistent: what to do when busy.
- CSMA/CD: listen while sending; on collision jam, stop, back off.
- L_min = 2·T_p·B; d_max = L_min·v/(2B); i.e. T_t ≥ 2T_p.
- CSMA/CA (Foundation): wireless avoids collisions instead of detecting them.
Concept Ledger
- carrier sense, CSMA
- 1-persistent / non-persistent / p-persistent
- collision detection, CSMA/CD
- jam signal
- minimum frame size L_min = 2·T_p·B
- CSMA/CA (Foundation)
Answer Vault
Try the questions first. Open when you are ready to check.
Warm-up answers
- T (one frame time).
- Idle stations' slots go unused.
- 2·T_p.
Self-test answers
- 200 — T_p = 10 µs; 2 × 10 µs × 10⁷ = 200 bits.
- 100 — T_t = 1 µs → T_p ≤ 0.5 µs → 100 m.
- B — Non-persistent backs off randomly instead of watching continuously.
- A: Watches and sends immediately on idle.
- C: Watches and sends with probability p.
- D: Not carrier sensing.
- ACD — Abort, minimum length, jam.
- B: Propagation delay still allows collisions.
- B — d_max = L_min·v/(2B): inversely proportional to B.
- A: Opposite direction.
- C: B appears in the formula.
- D: Not quadratic.
Flashcards
- Minimum frame size for CSMA/CD?
Reveal answer
L_min = 2·T_p·B. - Why can CSMA still collide?
Reveal answer
Propagation delay: a station may sense idle before another's signal arrives. - Non-persistent behaviour when busy?
Reveal answer
Wait a random time, then sense again.
Exam shortcuts
- L_min = 2·T_p·B; d_max = L_min·v/(2B). — CSMA/CD on a shared medium; T_p over the longest station-to-station path.
- Raising the rate B (same L_min) shrinks the allowed length proportionally. — fixed minimum frame size, same signal speed.