Wi-Fi & 802.11 · Study deck
Wi-Fi MAC Layer and Protocols
Picture a door sensor trying to report while several cameras use the same air.
Radio Remi is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain how Wi-Fi MAC channel access shares airtime among IoT stations.
- Connect backoff, ACK, retry, hidden-terminal, RTS/CTS, QoS, aggregation, and power-save evidence to service outcomes.
- Separate MAC-layer evidence from application delivery evidence in readiness reviews.
- Build validation records that tie contention, latency, freshness, and supportability to the actual workload.
Major section
Start With the Wireless Story
Strong signal bars did not prove prompt delivery.
- The medium access control rule decides when each Wi-Fi device may speak.
- A protocol is an agreed set of message and timing rules.
- Latency means the time from sending to a useful result.
- Quality of service means rules that give some traffic different handling.
Major section
The Wi-Fi MAC Layer Shares Airtime
The Wi-Fi MAC layer is the rule set that decides when a station may use the wireless channel.
- In an IoT deployment, it connects radio behavior to product behavior: a sensor waits, transmits, receives an acknowledgment, retries if needed, sleeps, wakes, and eventually has to prove that the application received fresh enough data.
- The MAC evidence therefore sits between raw RF observations and service evidence.
- The beginner mistake is to treat Wi-Fi like a private wire.
- A review should ask what workload is sharing the airtime, not just whether the device joined the AP.
Major section
The Wi-Fi MAC Layer Shares Airtime (continued)
Devices listen before transmitting, defer when the channel appears busy, use random backoff, and compete with other devices that may have different traffic classes, power states, and locations.
- The map separates protocol evidence from the application-level acceptance claim.
- This layered reading connects shared-airtime mechanics to freshness, reliability, and energy requirements instead of judging the MAC by link rate alone.
- Data, management, and control frames provide different evidence.
Major section
The Wi-Fi MAC Layer Shares Airtime (continued)
Ten bytes sent at a quiet minute is easy; ten bytes sent by hundreds of devices at the same scheduled wake time can become a queue, a retry burst, or a stale dashboard.
- The acceptance record should name the traffic class, expected freshness, AP profile, channel plan, retry observations, service outcome, and retest trigger.
- That record keeps the airtime claim tied to the workload, not the payload size.
- If you only need the core idea, use this rule: a small payload does not make MAC behavior irrelevant.
Major section
The Wi-Fi MAC Layer Shares Airtime (continued)
Many small frames can still queue, collide, retry, or arrive too late when devices wake together.
- The station checks whether the medium appears free, waits when needed, and uses backoff so multiple stations do not all transmit at once.
- Sleeping devices may delay downlink commands or buffered frames, so freshness and command response need their own evidence.
- A room sensor that uploads ten bytes every minute can still fail a MAC review if every sensor wakes at the same time.
Major section
Build a MAC Evidence Record
A practical MAC review starts with the traffic class, not the protocol feature.
- The review should state which behavior is required, which evidence was observed, and which change would trigger retest.
- A warehouse adds Wi-Fi sensors near metal racks.
- The drawing distinguishes what each station can sense from what the access point or receiver must decode.
Major section
Under The Hood: Protocol Controls Change Tradeoffs
MAC controls can improve a bounded problem, but they also create tradeoffs.
- QoS can help selected latency-sensitive flows while failing if everything receives the same priority.
- Aggregation can reduce overhead for compatible batches while increasing delay for traffic that needs immediate delivery.
- The timeline above shows those same pauses as airtime.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
RTS/CTS adds a short reservation exchange before the data frame.
- A station waits for the required interframe space, chooses a random backoff from the current contention window, freezes that counter while the medium is busy, and retries with a larger window after a collision.
- The timeline separates mandatory interframe waiting, another station's busy period, and the random backoff that follows.
- A compact throughput estimate separates three probabilities.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
The frame-level collision probability is approximately p = 1 - (1 - tau)^(n: 1).
- The default contention window is only a starting point; the useful question is whether the selected access category, contention window, retry limit, and transmit opportunity match the number of contenders and the traffic promise.
- Another radio takes the lane, so Remi stops on the same stone instead of using up the count.
- The frame fields are part of the same evidence.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
The station's useful rate is not the PHY rate.
- The separate backoff ledger below shows what happens when a busy medium interrupts an in-progress countdown.
- The sender asks for the medium with Request to Send, the receiver answers with Clear to Send, and nearby stations that overhear either control frame treat the announced duration as busy in their Network Allocation Vector.
- A maintenance tablet controls equipment while moving through a site.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
That virtual carrier-sense state is why RTS/CTS can reduce some hidden-terminal collisions, while still adding control overhead that has to be justified by before-and-after retry and latency evidence.
- To understand why carrier sensing alone cannot solve hidden terminals, inspect Figure: RTS/CTS timeline across stations A across all four stations.
- The expected number of attempts before success is 1 + p + p^2 +. + p^K for a retry limit K.
- The expected backoff slots depend on the backoff stage, for example b_k = 2^k CWmin / 2 before any maximum-window cap is applied.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
An 802.11 data frame carries frame control, duration, receiver/transmitter addressing, sequence control, optional fourth address, payload, and frame check sequence.
- A slot can be idle, successful, or collided; a busy slot includes preamble, payload airtime, SIFS, ACK time, and AIFS.
- One explicit illustrative contention model makes the candidate optima reproducible.
- The resulting best backoff range depends on how many stations are active together.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
That trace is what stops a radio repair from masking a service problem.
- For equal-length packets at one PHY rate, a useful review can write the shape as S = useful payload / E[slot] and then test whether observed retry, busy-time, and latency evidence agree with that model.
- Both reduce overhead for compatible batches, but neither makes tiny urgent messages free.
- The review cannot approve the workflow from a single speed test.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
A MAC acknowledgment means that a frame exchange reached the expected receiver at the link layer.
- If the model says the window is too small for the contender count, the repair may be traffic staggering, AP/channel changes, QoS tuning, or a different radio plan rather than simply increasing transmit power.
- Evaluating CW∈{16,32,64,128,256,512,1024} gives the five-station maximum at CW=32: 7.79 Mbit/s, compared with 7.61 Mbit/s at 64.
- A useful review keeps link evidence, network evidence, service evidence, and product evidence in separate columns.
Major section
Under The Hood: Protocol Controls Change Tradeoffs (continued)
Frame-control bits such as type, subtype, To DS, From DS, retry, power management, and protected-frame state explain whether a capture is showing association traffic, data transfer, retry behavior, roaming, or security handling.
- Wi-Fi Multimedia (WMM) defines four Access Categories -- Voice, Video, Best Effort, and Background -- with different contention parameters, so a capable station can prioritize its latency-sensitive traffic.
- A rising retry count may point to weak signal, channel contention, hidden terminals, rate adaptation, roaming, or synchronized wake bursts.
- RTS/CTS may reduce hidden-terminal collisions while adding control overhead.
Deck summary
Key takeaways
Strong signal bars did not prove prompt delivery.
- The Wi-Fi MAC layer is the rule set that decides when a station may use the wireless channel.
- Devices listen before transmitting, defer when the channel appears busy, use random backoff, and compete with other devices that may have different traffic classes, power states, and locations.
- Ten bytes sent at a quiet minute is easy; ten bytes sent by hundreds of devices at the same scheduled wake time can become a queue, a retry burst, or a stale dashboard.
- Many small frames can still queue, collide, retry, or arrive too late when devices wake together.
Retrieval practice
Recall check 1 of 4

Radio Remi says: answer from memory, then check your reasoning.
Q1A team says an IoT sensor's Wi-Fi MAC behavior is safe because each telemetry payload is only a few bytes. How should reviewers assess the small-payload MAC claim?
Show answer
Answer: C Small frames still compete for shared airtime and can fail during synchronized or congested periods.
Retrieval practice
Recall check 2 of 4

Radio Remi says: answer from memory, then check your reasoning.
Q2Two sensors can both reach the access point but cannot reliably hear each other across metal racks. Retries rise when they report together. Which action best fits a MAC-layer review?
Show answer
Answer: D Hidden-terminal symptoms need location-aware evidence and measured repair options.
Retrieval practice
Recall check 3 of 4

Radio Remi says: answer from memory, then check your reasoning.
Q3Alarm messages become stale during a busy shift. What should a MAC validation record tie together?
Show answer
Answer: B The record links shared-airtime behavior to the alarm workload.
Retrieval practice
Recall check 4 of 4

Radio Remi says: answer from memory, then check your reasoning.
Q4Why should a Wi-Fi MAC review keep ACK and retry evidence separate from application delivery evidence?
Show answer
Answer: A MAC evidence is necessary but not sufficient for product readiness.
Print reference
Answers
Answer key.
- C · Small frames still compete for shared airtime and can fail during synchronized or congested periods.
- D · Hidden-terminal symptoms need location-aware evidence and measured repair options.
- B · The record links shared-airtime behavior to the alarm workload.
- A · MAC evidence is necessary but not sufficient for product readiness.