Exercises — Wi-Fi (IEEE 802.11) — CSMA - CA, bands
Before we start, one figure fixes the vocabulary in your eye so no symbol appears unexplained.

Read it left to right: the channel goes idle, everyone waits the long gap DIFS, then each station counts down its own backoff number one slot at a time. The first to reach transmits, and after the tiny gap SIFS the receiver answers with an ACK. Keep this picture beside you.
Level 1 — Recognition
Goal: name the mechanism. No computation.
Recall Solution
The medium is half-duplex (and broadcast): a radio can transmit or receive, not both at once, because its own transmitter drowns its receiver. So collision detection mid-send is impossible → Wi-Fi uses CSMA/CA, not CSMA/CD.
Recall Solution
(a) DIFS — the longer gap for ordinary data. (b) SIFS — the shortest gap, guaranteeing the handshake reply wins the channel. Shorter wait = higher priority.
Recall Solution
The NAV (Network Allocation Vector). This is virtual carrier sense: you trust a neighbour's announced duration instead of listening. See MAC Layer and ARQ / ACK for where the ACK fits.
Level 2 — Application
Goal: plug numbers into one formula.
Recall Solution
Backoff time . Each idle slot decrements the counter by one; slots of each = . (This ignores DIFS itself, which is the fixed gap before counting begins.)
Recall Solution
. The cap is not reached, so no clamping. Why the then ? A window " to " has slots; doubling slots () gives range " to ". The algebra just re-encodes "double the number of slots."
Recall Solution
. Slot count went , so the range is now " to ."
Level 3 — Analysis
Goal: reason through a scenario, comparing choices.
Recall Solution
(a) X has the smaller count, so X reaches first — after 4 idle slots (). (b) While X counts , Y counts . The moment X starts transmitting the channel is busy, so Y freezes at counter . (c) Y resumes from 3 (freeze, not reset). It needs only more idle slots — it kept its lead, giving fairness and avoiding starvation. Contrast this with ALOHA and Slotted ALOHA, which has no countdown memory at all.
Recall Solution
Physical carrier sense only reports what you can hear. A and C are hidden from one another, so each honestly measures "idle" while their frames still collide at B. The rescue is RTS/CTS: A sends a tiny RTS, B replies with a CTS that both A and C hear; C then sets its NAV and stays quiet. Virtual carrier sense fixes what physical sensing cannot. Full treatment in Hidden and Exposed Terminal Problems.
Recall Solution
No 5 GHz signal: higher frequency ⇒ shorter wavelength ⇒ waves are more strongly absorbed and scattered by walls, so the energy dies before reaching the laptop. Slow-but-stable 2.4 GHz: longer wavelength diffracts around and penetrates obstacles (reach), but 2.4 GHz has only 3 non-overlapping channels and is crowded by Bluetooth/microwaves, capping throughput. This is a range-vs-throughput trade-off — see Frequency, Wavelength and Attenuation and Bandwidth vs Throughput.
Level 4 — Synthesis
Goal: combine multiple mechanisms and quantify.
Recall Solution
Apply four times:
- After 1st:
- After 2nd:
- After 3rd:
- After 4th: Sequence: . None hits the cap . The final window " to " offers 256 slot choices, so two retrying stations now have only a chance of picking the same slot — doubling the window each time makes repeat collisions exponentially unlikely.
Recall Solution
Add the pieces in order (look at figure s01's timeline): Note the ACK waits only SIFS (16), not DIFS — that short gap is what keeps the handshake from being pre-empted.
Recall Solution
No. RTS/CTS is worth it only when the data frame is large, because then a collision wastes a lot of airtime and the small handshake cost is cheap insurance. For tiny frames, the RTS+CTS+SIFS overhead can rival or exceed the frame itself, so you pay more than a collision would cost. That is why real stacks use an RTS threshold: apply the handshake only above some frame size.
Level 5 — Mastery
Goal: design/derive from first principles across topics.
Recall Solution
A fixed is tuned for one load. If many stations suddenly contend, a fixed keeps producing the same collision rate — no self-correction — so throughput collapses (the classic ALOHA and Slotted ALOHA instability). Binary exponential backoff is feedback-driven: each collision doubles the window, cutting each station's effective transmit probability, which spreads retries and lowers pressure exactly when congestion rises. When traffic clears, a successful ACK resets to its minimum, restoring responsiveness. It self-tunes; fixed cannot.
Recall Solution
Priority in CSMA/CA is inverse to waiting gap: shorter gap → wins. To beat ACK (which uses SIFS) it must wait less than SIFS. So define a new interframe space . Constraint: must still be longer than the receiver's turnaround time (the time to switch from receive to transmit), otherwise the reply starts before the radio is physically ready. So . (Real 802.11e uses exactly this idea with AIFS values per traffic class.)
Recall Solution
Same countdown ⇒ both reach after 2 idle slots () and transmit simultaneously → collision at the receiver. Neither gets an ACK within the SIFS window, so both assume loss. Each doubles its window: . They then re-draw backoff from " to " — now choices, so the chance they collide again drops to . This is the avoidance loop closing: random draw → tie → collision → widen window → re-draw.
Recall One-line recap of every level
Recognition ::: half-duplex radio ⇒ CA not CD; SIFS < DIFS; NAV = virtual sense. Application ::: backoff time = counter × slot; capped at . Analysis ::: smaller count wins, loser freezes (fairness); hidden terminals need RTS/CTS. Synthesis ::: full timeline DIFS+backoff+DATA+SIFS+ACK; RTS/CTS only for big frames. Mastery ::: exponential backoff self-tunes; IFS ordering encodes priority.