Communication Networks · Visualized

CSMA/CA (Wi-Fi)

Media Access

Sharing one wire or radio channel fairly: ALOHA, CSMA/CD and collision handling.

3 interactive subtopics — each one animated, step-through and explained.

CSMA/CA (Wi-Fi)

Media Access

Ethernet listens while talking, so collisions are detected instantly (CSMA/CD). A radio transmitter is deaf while sending — it would never hear a collision. Wi-Fi therefore avoids collisions instead: listen before sending, wait a random backoff, and rely on immediate ACKs; optional RTS/CTS handshakes reserve the channel for hidden terminals.

How CSMA/CA (Wi-Fi) Works

  1. Sense the channel: if busy, keep listening until it goes idle.
  2. After the idle period, wait a random backoff (a counter ticking down only while idle).
  3. Transmit the frame; the receiver validates it and answers with an ACK after a short gap.
  4. No ACK means the frame was lost (collision or interference) — back off exponentially and retry.
  5. Hidden terminals optionally send Request-To-Send / Clear-To-Send first to reserve the medium.

CSMA/CA (Wi-Fi) Worked Example

Try it: Two laptops + an access point, with laptop B hidden from laptop A.

A and B can both reach the AP but not each other. A senses silence and transmits — B (deaf to A) starts too and the two signals collide at the AP. With RTS/CTS: A's small reservation frame silences everyone near the AP; only then does A send its data — the collision is avoided, not detected.

ABAPbackoff 3backoff 5channel idle? 👂time →
station A station B ACK / reservation
Stage 1 / 5
Both stations sense the channel. It is idle — but WAIT: after an idle period there is a mandatory random BACKOFF. (Ethernet could just go; radio cannot detect a collision, so Wi-Fi avoids it instead.)

CSMA/CA (Wi-Fi): Key Facts to Remember

Why not CD?a radio's own transmit power drowns its receiver — collisions are undetectable on-air
ACK-drivenevery unicast frame is individually acknowledged — Wi-Fi retries at layer 2
Hidden terminaltwo stations in range of the AP but not of each other — the reason RTS/CTS exists

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.