skip to content

In the 802.11 MAC, how do the Duration field and the NAV give stations virtual carrier sense, and why is physical sensing alone not enough?

level: middleimportance: should knowfreq 30%

answer

  1. a timer every listener keeps
  2. a reservation carried in the header
  3. busy even when the air is quiet
  4. each frame announces the remainder

basics

~20 s

Most 802.11 frames carry a Duration field announcing how long the medium stays reserved after them. Stations that decode it load their NAV timer and treat the medium as busy until it expires, even when they sense no energy.

solid answer

~50 s

Physical carrier sense, clear channel assessment, only tells a station whether it detects a signal right now. It misses the silent gaps inside an exchange, such as the SIFS before an ACK, and it misses transmitters the station cannot hear. So each frame's `Duration` field announces, in microseconds, how much longer the exchange will hold the medium: a data frame covers the SIFS and the ACK, a CTS covers the data and its ACK, an RTS the whole CTS, data and ACK sequence. Every station that decodes a frame addressed to someone else loads that value into its **network allocation vector (NAV)** when it is longer than the time left, and counts it down. The medium counts as busy while the NAV is running or the radio senses energy, so a station defers through gaps and for a transmitter it cannot hear, provided it heard any one frame of the exchange.

go deeper

for a junior

Recall that the NAV is a timer inside each station, set from the Duration field of frames it overhears, and that it makes the medium count as busy.

for a middle

Explain what each frame's Duration value covers in an RTS, CTS, data and ACK exchange, and why gaps and unheard transmitters defeat energy sensing.

for a senior

Use the NAV to explain field behaviour: why the receiver's CTS rescues hidden stations, why EIFS exists, and why reservations spill into neighbouring cells on the same channel.

for a principal

Recognise that every reservation is airtime taken from every cell on the channel, so the cost of control exchanges grows with co-channel overlap, which ties MAC behaviour to channel reuse decisions.

## Two kinds of carrier sense An 802.11 station must decide, slot by slot, whether the shared medium is busy. It uses two independent signals and treats the medium as busy if **either** says so: - **Physical carrier sense**, called **clear channel assessment (CCA)**: the radio detects energy above a threshold or a decodable 802.11 preamble on the channel right now. - **Virtual carrier sense**: a countdown timer in every station called the **network allocation vector (NAV)**. While the NAV is above zero, the station behaves as if the medium were busy, even when its radio hears nothing at all. The NAV is not a field in any frame; it is local state. What travels on the air is the **`Duration` field** in the MAC header of nearly every frame (the field is named Duration/ID because in one control frame, the PS-Poll, it carries an association ID instead; the full header layout is covered with the 802.11 frame types). ## Why physical sensing alone is not enough Physical carrier sense only answers "is something on the air at this instant?". That fails in two predictable places: 1. **Gaps inside an exchange.** Between a data frame and its ACK, or between an RTS and its CTS, the medium is silent for a SIFS. A station that judged only by energy could see an idle medium at exactly the wrong moment. 2. **Transmitters you cannot hear.** A station out of range of a sender senses nothing while that sender talks to the access point. If it hears any other frame of the same exchange, such as the AP's CTS or ACK, the `Duration` value in that frame tells it how long to stay quiet. ## What the Duration field reserves The `Duration` value is a time in microseconds announcing how long the medium stays reserved **after the end of the current frame**: | Frame | Duration covers | |---|---| | RTS | SIFS + CTS + SIFS + data + SIFS + ACK | | CTS | SIFS + data + SIFS + ACK | | Individually addressed data frame | SIFS + ACK | | Final ACK of an exchange | Normally zero: nothing follows | Each frame in the chain re-announces the remainder, so a station that hears only part of the exchange still learns when it ends. ## How a station uses the NAV 1. It decodes a frame whose receiver address is some other station. 2. If that frame's `Duration` value is longer than what is left on its NAV, it reloads the NAV with the new value; a shorter value does not shorten the reservation. 3. It counts the NAV down in real time and does not start, or resume, its backoff while the NAV is above zero. 4. The station a frame is addressed to does not set its NAV from it; it is the party expected to respond. ## Where virtual carrier sense falls short - **It needs a decodable frame.** A frame received with errors yields no trustworthy `Duration` value. The station then waits an **extended interframe space (EIFS)** instead of a DIFS before contending, so it does not trample an ACK it could not see coming. - **It needs a frame you can hear.** A station that hears neither the sender nor the receiver gets no reservation, which is harmless only because it is also unlikely to interfere at that receiver. - **It is shared across cells.** Any station on the same channel that decodes the frame sets its NAV, including stations of a neighbouring cell. Reservations quietly consume airtime across every cell sharing the channel, which is one reason channel reuse matters (covered with channel planning). ## Reading it in practice - When the CTS of an RTS/CTS exchange comes from the access point, every station that hears the AP sets its NAV, which is how RTS/CTS rescues hidden nodes. - CTS-to-self relies on the same mechanism: a station sends a CTS addressed to itself so that stations hearing it, including older ones that cannot decode the data frame's modulation, set their NAV. - Because every frame of an exchange re-announces the remainder, a station that tunes in mid-exchange defers correctly as soon as it decodes any later frame of that exchange.

  • Why does the NAV rescue a hidden 802.11 station only if that station hears some frame of the exchange?
    The NAV is loaded only from a frame the station decodes. A hidden station cannot hear the sender, so the sender's own Duration value never reaches it. If the receiver, typically the AP, sends a CTS or an ACK the hidden station can hear, that frame's Duration value sets its NAV. That is exactly why RTS/CTS works: it makes the receiver announce the reservation.
  • What does an 802.11 station do after receiving a frame with errors, since it cannot trust that frame's Duration value?
    It waits an extended interframe space, EIFS, instead of a DIFS before contending again. EIFS is longer than DIFS, which leaves room for the ACK that probably follows the corrupted frame. Without it, a station that missed the reservation could start transmitting on top of that ACK and cause the sender to retransmit needlessly.

The NAV works like a 'room booked until 10:40' sign on a meeting-room door: everyone who reads the sign stays out until that time, even if the room sounds silent, and nobody needs to hear the meeting itself to respect the booking.

  • The NAV is a field carried in the header of every 802.11 frame.
  • Only the station a frame is addressed to reads its Duration value.
  • Virtual carrier sense replaces physical carrier sense in modern Wi-Fi.
  • A station can set its NAV from a frame it failed to decode.
  • If the channel is quiet, a station may transmit even while its NAV is running.