Your Wi-Fi carries calls, films, web pages and backups at the same time. Quality of service is how the network decides who goes first when they all want the air at once.
In plain words. Think of four queues at a theme park. The fast-track queue waits a little less than the others, so VIPs usually get on the ride first, but only when the park is busy. Each packet wears a number that says which queue it joins.
Where it livesWhich protocol, which layer, which frame
| Question | Answer |
|---|---|
| Which standard added it? | IEEE 802.11e (2005), now part of the base standard, IEEE Std 802.11-2020, where it is called EDCA (enhanced distributed channel access). The Wi-Fi Alliance certification name is WMM (Wi-Fi Multimedia). |
| Which layer? | The MAC layer (channel access). The priority label starts higher up, in the IP header (DSCP) or a VLAN tag, and is copied into the MAC header by the sender. |
| Which frame carries it? | Every QoS Data frame: a 2-byte QoS Control field in the MAC header holds the label. The access point’s waiting rules are announced in the Beacon, Probe Response and Association Response, in the EDCA Parameter Set element (element ID 12). |
| Which Wi-Fi generations? | Wi-Fi 4 (802.11n) and later devices are QoS devices by definition, so Wi-Fi 4, 5, 6, 6E and 7. Older 802.11a/b/g devices only have it if they were WMM certified. |
| Anything new in Wi-Fi 6? | MU EDCA (802.11ax): the access point can make a station wait longer after it has been served in a multi-user transmission, so one device cannot hog the air. |
1. DefinitionWhat is QoS in Wi-Fi?
EDCA keeps the normal Wi-Fi rule (listen first, wait, then send, as in the MAC topic) but runs it four times in parallel, once per access category. Each category has its own waiting rules, so voice usually beats video, video beats normal traffic and normal traffic beats background.
2. PurposeWhy not treat everything the same?
Wi-Fi is shared, so every device waits for its turn. A call that waits too long breaks up, while a backup that waits a second is unnoticed. EDCA gives delay-sensitive traffic a head start without any central control.
3. MechanismThe label, the four lines and the waiting rules
The sender puts a user priority (0 to 7) on each packet. It decides the access category:
| User priority | Name used by Wireshark | Access category | Typical traffic |
|---|---|---|---|
| 1, 2 | Background, Spare | Background (AC_BK) | backups, bulk transfers |
| 0, 3 | Best Effort, Excellent Effort | Best effort (AC_BE) | web, email, anything unlabelled |
| 4, 5 | Controlled Load, Video | Video (AC_VI) | streaming and conferencing video |
| 6, 7 | Voice, Network Control | Voice (AC_VO) | voice calls |
Each category waits AIFS = SIFS + AIFSN × slot, then counts down a random backoff from 0 to CWmin. These are the defaults for OFDM PHYs; the access point can announce others.
| Access category | AIFSN | CWmin | CWmax | Average wait |
|---|---|---|---|---|
| Voice | 2 | 3 | 7 | 47.5 µs |
| Video | 2 | 7 | 15 | 65.5 µs |
| Best effort | 3 | 15 | 1023 | 110.5 µs |
| Background | 7 | 15 | 1023 | 146.5 µs |
From IEEE Std 802.11-2020, Table 9-155, with SIFS 16 µs and slot 9 µs (OFDM, 20 MHz). Average wait = SIFS + AIFSN × slot + (CWmin / 2) × slot. The standard also gives each category a TXOP limit, the longest time it may keep the channel; it is not shown here.
Try this. In the player, change what you are doing, then press “Run another race” several times. The call line wins most races, but not every one: the priority is statistical, not a guarantee.
4. MathematicsWorking out the wait
- Voice: 16 + 2 × 9 = 34 µs fixed, plus on average 3 / 2 = 1.5 slots = 13.5 µs, so 47.5 µs.
- Background: 16 + 7 × 9 = 79 µs fixed, plus 15 / 2 = 7.5 slots = 67.5 µs, so 146.5 µs.
- The difference is about 99 µs per turn. That is tiny, but when ten devices compete for hundreds of turns a second, the lines with the smaller waits win far more of them.
5. Real-world behaviourWhy a label does not always help
- Nothing happens on a quiet network. With no competition everyone sends at once.
- Many apps never set a label. Everything then lands in best effort and the voice and video lines stay empty.
- Routers can rewrite the label. The common shortcut of using the top three bits of the DSCP value as the Wi-Fi priority sends EF (DSCP 46, the usual voice marking) to priority 5, video. RFC 8325 recommends a mapping that sends it to 6.
- It only applies on the Wi-Fi hop. The label does nothing for congestion elsewhere on the path, such as your internet connection.
- Turn WMM on. On most access points it is on by default; turning it off can also limit the link speed of newer devices.
In your captureWhere to find it and how to filter it
These filters were tested with TShark 4.6 on a hand-built capture file with the same frame layout. Check them on your own capture and version, and remember that a monitor-mode capture only shows what your adapter heard.
| What you want to see | Which frame and element | Display filter |
|---|---|---|
| Packets that use QoS at all | QoS Data frames (type/subtype 0x28). Plain Data frames are 0x20. | wlan.fc.type_subtype == 0x0028 |
| The priority of each packet | QoS Data frame → QoS Control → Priority and TID. Right-click Priority and choose Apply as Column. | wlan.qos.priority == 6wlan.qos.priority >= 4 |
| How the packet is acknowledged | QoS Control → Ack Policy (0 normal, 1 none, 3 Block Ack). | wlan.qos.ack == 3 |
| The access point’s waiting rules | Beacon or Association Response → EDCA Parameter Set → one Ac Parameters entry per category: AIFSN, ECWmin/ECWmax, TXOP limit. | wlan.fc.type_subtype == 0x0008 && wlan.tag.number == 12 |
| The same rules as WMM | The vendor-specific WMM/WME Parameter Element (Wi-Fi Alliance) in the same frames. | wlan.wfa.ie.wme.subtype |
| The MU EDCA rules (Wi-Fi 6) | Beacon → MU EDCA Parameter Set extension element. | wlan.ext_tag.mu_edca_parameter_set.mu_edca_timer |
| The IP-level label | The IP header, only visible on a wired capture or after decryption. Over the air, WPA2 and WPA3 hide it. | ip.dsfield.dscp == 46 |
- Healthy: voice and video apps show priority 5 or 6, ordinary browsing shows 0, and the beacon lists four categories with voice and video using the smaller values.
- Problem: everything shows priority 0 (the label is missing or was rewritten), or the beacon has no EDCA element (the network is not using WMM).
- Reading the beacon: Wireshark shows the contention window as an exponent (ECW). CWmin = 2ECWmin − 1, so ECWmin 4 means 15. The TXOP limit is in units of 32 µs, and 0 means one frame.
- Question: a call app is marked DSCP 46 on the laptop, but the Wi-Fi capture shows priority 5. Where did the label change?
Check your understandingQuick quiz
ReferencesSources and further reading
- IEEE Std 802.11-2020 (IEEE Xplore)
- Wi-Fi Alliance: specifications
- IETF RFC 8325: Mapping Diffserv to IEEE 802.11
- Wireshark display filter reference: IEEE 802.11 (wlan)
The access categories, mapping and default values were checked against IEEE Std 802.11-2020 (Table 9-155 and the user priority mapping) and against the labels Wireshark itself uses. The WMM certification details are the Wi-Fi Alliance’s; see its specifications page. The simulation is a teaching model.