skip to content

In a warehouse, 802.11 handheld scanners at opposite ends of an aisle both reach the AP but not each other, and retries climb; what is happening, and how does RTS/CTS help?

level: seniorimportance: must knowfreq 34%

answer

  1. both see a clear channel
  2. a collision only the AP hears
  3. a short request, a reply all hear
  4. the reply sets the NAV
  5. the threshold belongs to the sender

basics

~20 s

It is the hidden-node problem: each scanner senses an idle channel and transmits, and their frames collide at the AP. With RTS/CTS, the AP's CTS reaches both scanners and sets their NAV, so the other scanner defers.

solid answer

~50 s

This is the **hidden-node problem**. Carrier sense works at the transmitter, but the collision happens at the receiver: scanner A cannot hear scanner B, so both see an idle medium, count down and transmit to the AP together. Neither gets an ACK, both retransmit from a wider contention window, and the share of frames with the `Retry` bit climbs. **RTS/CTS** moves the reservation to the receiver: the scanner sends a short RTS, the AP answers with a CTS after a SIFS, and the CTS's `Duration` sets the NAV of every station that hears the AP, including the hidden scanner. A collision now costs a short RTS instead of a long data frame. The threshold belongs to the sender: these collisions are uplink, so the scanners must use RTS/CTS, while hostapd's `rts_threshold` governs only the AP's own transmissions. Since Wi-Fi 6, an AP can also advertise a duration-based threshold that Wi-Fi 6 and later clients use.

go deeper

for a junior

Recall the picture: two clients both hear the AP but not each other, so both think the channel is free and their frames collide at the AP.

for a middle

Explain the RTS, CTS, data and ACK exchange and why the AP's CTS sets the hidden client's NAV, plus what the RTS threshold does.

for a senior

Diagnose from evidence such as uplink-only retries from clients at opposite edges, then point out that the threshold belongs to the sender, so the clients must use RTS/CTS.

for a principal

Weigh RTS/CTS as a stopgap against fixing the cell geometry, and decide where client-side thresholds can actually be enforced across the device fleet.

## The scenario as the radios see it Two handheld scanners, A and B, work at opposite ends of a long warehouse aisle. The access point hangs near the middle. Both scanners hear the AP well, but racking and distance mean A and B cannot hear each other. Uplink traffic from the scanners suffers: retries climb and scans stall, while the signal strength each scanner reports looks fine. This is the **hidden-node problem**. | Step | What happens | |---|---| | 1 | A senses the medium: idle. It counts down its backoff and starts a data frame to the AP. | | 2 | B senses the medium: idle, because it cannot hear A. It counts down and starts its own frame. | | 3 | Both signals arrive at the AP together; neither frame can be decoded. | | 4 | The AP sends no ACK to either scanner. | | 5 | Both retransmit with the `Retry` bit set and a larger contention window, and the cycle can repeat. | ## Why carrier sense fails here - **Carrier sense is done at the transmitter, but the collision happens at the receiver.** "The channel is idle where I am" says nothing about the AP's position. - **Virtual carrier sense cannot help without a frame to hear.** B never decodes A's frame, so B's NAV is never set. - **The sender learns nothing until the ACK fails to arrive**, and it cannot tell a collision from interference, so rate adaptation may lower the scanners' rate, lengthening every frame and widening the window in which they collide. ## How RTS/CTS rescues it **RTS/CTS** moves the reservation to the one radio both scanners can hear: the AP. 1. A sends a short **RTS** (request to send) to the AP. Its `Duration` field covers the whole exchange that follows. 2. After a SIFS the AP answers with a **CTS** (clear to send) addressed to A. Its `Duration` covers the data frame, the ACK and the SIFS gaps. 3. **B hears the AP's CTS**, loads the `Duration` value into its NAV and stays silent, even though it never heard A. 4. A sends its data frame; the AP acknowledges it after a SIFS. Two things improve. B now defers for the length of A's exchange, and if A's RTS does collide with something, the loss is a short control frame rather than a long data frame. ## The RTS threshold, and whose it is RTS/CTS is applied per transmitter: a station precedes a frame with RTS/CTS when the frame is longer than **its own** RTS threshold. - hostapd.conf documents `rts_threshold=-1` (disabled) as its default, with a range of -1 to 65535; if the line is omitted, hostapd leaves the driver's own setting alone. - That setting governs **the AP's transmissions**: downlink. The warehouse collisions are **uplink**, so the scanners must use RTS/CTS, which means setting their threshold through their own driver or device management. - Since Wi-Fi 6 (802.11ax-2021), an AP can also advertise a duration-based RTS threshold in its HE Operation element (hostapd's `he_rts_threshold`, in units of 16 microseconds per its comment). Wi-Fi 6 and later clients use it to decide when to open a transmission with RTS/CTS; older clients ignore it. ## What RTS/CTS does not fix - **Overhead.** Every protected frame pays for an RTS, a CTS and two extra SIFS, usually at a low basic rate. Enabled for all frame sizes in a busy cell, it can cost more airtime than the collisions it prevents. - **The exposed node.** A station that hears a neighbour's transmission defers even when its own frame to a different receiver would not interfere; RTS/CTS does nothing for that lost opportunity. - **CTS-to-self is a different tool.** A station that sends a CTS addressed to itself reserves the medium for stations that hear *it*, which is how newer stations protect their frames from older stations that cannot decode the newer modulation. It does nothing for hidden nodes, because those cannot hear the sender. - **The geometry stays wrong.** RTS/CTS manages the symptom. Moving or adding access points so that clients sharing a cell can hear each other removes the cause; that design work is covered with channel planning and surveys. ## Confirming the diagnosis - Retries concentrated on **uplink** frames from specific clients, while downlink to the same clients is healthy. - Clients at **opposite edges** of one cell, with good signal at the AP. - Retry share drops when the scanners are configured to use RTS/CTS, or when one of them moves closer to the other.

  • Why does CTS-to-self, used to protect frames from older 802.11 stations, not help with hidden nodes?
    With CTS-to-self the sender transmits a CTS addressed to itself, so only stations that hear the sender set their NAV. A hidden station by definition cannot hear the sender, so it never receives that reservation. CTS-to-self is cheaper than RTS/CTS and suits protecting newer modulations from older stations nearby; RTS/CTS works for hidden nodes because the receiver sends the CTS.
  • What is the exposed-node problem on an 802.11 channel, and does RTS/CTS fix it?
    An exposed station hears a neighbour transmitting and defers, even though its own frame to a different receiver would not have interfered there. The result is lost airtime rather than collisions. RTS/CTS does not fix it: hearing an RTS or CTS makes the station defer just the same. Carrier sense is deliberately conservative, and the exposed node is the price.
  • Why can turning on RTS/CTS for every frame make a busy 802.11 cell slower?
    Each protected frame pays for an RTS, a CTS and two more SIFS, usually at a low basic rate. For short frames or fast links, that handshake can take as long as the data. Each CTS also silences stations in neighbouring cells on the same channel. Where stations already hear each other, the cost buys nothing, so throughput falls.

  • Raising the AP's transmit power will make the scanners hear each other.
  • Setting rts_threshold on a hostapd AP makes the associated clients use RTS/CTS.
  • RTS/CTS removes collisions completely once it is enabled.
  • CTS-to-self solves the hidden-node problem just as well as RTS/CTS.
  • Hidden-node trouble shows up as weak signal from the clients at the AP.

Assumes Wi-Fi 7 (802.11be-2024); the duration-based RTS threshold an AP advertises in its HE Operation element arrived with Wi-Fi 6 (802.11ax-2021), so older clients ignore it.