Wi-Fi WMM: How Priorities Work

Wi-Fi Multimedia (WMM) lets voice and video go ahead of downloads and backups. Follow a packet from an app to one of four queues, then watch the queues race for the air: see why a voice call stays smooth while someone downloads, and what happens when WMM is off.

Four queues, four head starts

Every Wi-Fi device, access points included, keeps four transmit queues called access categories: Voice, Video, Best effort and Background. They all compete for the same air with the usual listen-before-talk rules, but with different settings: higher-priority queues wait a shorter fixed time (AIFS) after the channel goes quiet, pick their random backoff from a smaller range, and may keep the channel for several frames in a row (a TXOP). Priority isn't guaranteed; it's a much better chance of going first.

Which queue a packet uses depends on the priority marking (DSCP) the app or network put in its IP header.

1 · From app to queue

Pick what the traffic is. The DSCP value in the packet's IP header is translated to an 802.11 User Priority, which picks the queue.

Traffic
Traffic class (RFC 8325)DSCPUser PriorityAccess category

2 · The race for the air

Phones on voice calls (Voice), laptops in video calls, the first one also browsing the web (Video + Best effort), PCs downloading (Best effort) and a NAS backing up (Background), all on one 5 GHz channel. Each row is one queue. The traffic is random: voice packets every 20 ms or so, video frames in bursts of packets, and the web, downloads and backup switching on and off. New random run draws new traffic; switching WMM replays the same traffic, so you compare like with like.

WMM
WMM gives higher priorities
Speed
Window
AIFS: fixed wait after the channel goes quiet Random backoff, counting down (paler bar) Solid: transmitting ACK / Block Ack Collision ◆ internal collision: two queues in one device tied, the lower priority backs off ▼ … waited: a voice packet arrives, and how long it waited to go on the air

3 · WMM on vs off

The first 2 seconds of , the random traffic in the timeline above, played with WMM on and off. Press New random run to see how much the results vary. Access delay is how long a frame waits, from reaching the front of its queue until it starts transmitting. Voice needs this well under 20–30 ms; a few milliseconds is ideal.

Backoff picks

Every time a queue gets a frame ready, it picks a random number of empty slots (9 µs each) to count down, from 0 up to its contention window (CW). Darker = picked more often. The outline is the starting range; picks beyond it come after collisions, when the range doubles.

4 · The WMM parameters

The EDCA parameters most APs advertise on 5 GHz: the Wi-Fi Alliance WMM defaults (slot 9 µs, SIFS 16 µs). AIFS = SIFS + AIFSN × slot. The AP advertises the values clients must use in its beacons; the AP itself uses slightly shorter waits.

Access categoryUser PrioritiesAIFSN (client / AP)AIFS (client)Contention windowTXOP limitTypical traffic
Voice (AC_VO)6, 72 / 134 µs0–3, up to 0–71.5 msVoice calls, some network control
Video (AC_VI)4, 52 / 134 µs0–7, up to 0–153 msVideo calls, streaming marked by the network
Best effort (AC_BE)0, 33 / 343 µs0–15, up to 0–1023one exchangeEverything unmarked: web, most apps, most streaming
Background (AC_BK)1, 27 / 779 µs0–15, up to 0–1023one exchangeBackups, updates, bulk transfers marked as low priority

Notes and simplifications