Sub topic 14
CSMA/CA and the Hidden Terminal Problem
Prerequisites and the basic idea
This chapter assumes that you know carrier sensing, collision domains, propagation delay, and the difference between a sender and a receiver. CSMA means Carrier Sense Multiple Access. A station listens to the wireless channel before transmitting.
Wireless LANs usually use CSMA/CA, or Carrier Sense Multiple Access with Collision Avoidance. Unlike wired CSMA/CD, a wireless station generally cannot detect a collision while it is transmitting. Its own signal is much stronger than a received signal, and stations may not hear every other station.
A station follows this general process:
- Listen to the channel.
- If the channel is busy, wait.
- If the channel is idle, choose a random backoff value.
- Decrease the backoff counter while the channel remains idle.
- Transmit when the counter reaches zero.
- Wait for an acknowledgment, or ACK.
- If no ACK arrives, assume a collision or loss and retry with a larger contention window.
The random backoff reduces the chance that several waiting stations transmit at the same instant. The sender cannot be certain that a frame arrived unless the receiver returns an ACK.
The hidden terminal problem
Consider three stations arranged in a line:
Suppose A and C both need to send a frame to B. A senses the channel and hears nothing from C. C also senses the channel and hears nothing from A. Both conclude that the channel is free and transmit. Their signals collide at B.
A and C are hidden terminals because each is hidden from the other, even though both interfere at the receiver. Carrier sensing alone cannot prevent this collision.
RTS/CTS protection
Wireless LANs can use a short control exchange:
- A sends RTS, or Request to Send, to B.
- B replies with CTS, or Clear to Send.
- A sends the data frame.
- B sends an ACK.
Other stations that hear the CTS defer their transmissions. The CTS is especially useful because it can reach stations near B that cannot hear A. Each control frame also carries a duration value. Stations use this value to set a Network Allocation Vector, which is a timer estimating how long the medium will remain reserved.
| Mechanism | Purpose |
|---|---|
| Carrier sensing | Avoids transmitting over a signal that can be heard |
| Random backoff | Separates competing transmitters in time |
| RTS/CTS | Reserves the channel near the receiver |
| ACK | Confirms successful reception |
RTS/CTS adds overhead, so it is most useful for long frames or networks with many hidden terminals. For short frames, the extra control exchange may reduce efficiency more than it reduces collisions.
Common errors
- CSMA/CA does not detect collisions during transmission as CSMA/CD does.
- A station may sense an idle channel while the intended receiver is experiencing interference.
- RTS/CTS is optional protection, not a requirement for every frame.
- The exposed terminal problem is different: a station may defer unnecessarily after hearing a transmission that would not interfere with its own receiver.
Exercise
A and C cannot hear each other, but both can hear B. Which problem occurs when both send to B, and how can RTS/CTS help?
Show answer
This is the hidden terminal problem. RTS from one sender and CTS from B reserve the medium near B, causing other stations that hear the CTS to defer.