WMM Specification v1.1 PDF
WMM Specification v1.1 PDF
Wi-Fi Alliance
Version 1.1
WMM_Specification_1-1.doc Page 1 of 36
Contents
Contents.......................................................................................................................................................... 2
1 Overview ................................................................................................................................................ 4
1.1 Purpose of This Document ............................................................................................................. 4
1.2 Terms and Definitions .................................................................................................................... 4
1.3 WMM Features............................................................................................................................... 5
2 WMM Frame Formats ............................................................................................................................ 6
2.1 Data Frame Formats ....................................................................................................................... 6
2.1.1 Fields ...................................................................................................................................... 6
2.1.2 Frame Control Field................................................................................................................ 6
2.1.3 Duration Field......................................................................................................................... 7
2.1.4 Addresses................................................................................................................................ 7
2.1.5 Sequence Control Field........................................................................................................... 7
2.1.6 QoS Control Field................................................................................................................... 7
2.2 Management Frame Formats .......................................................................................................... 8
2.2.1 WMM Information Element ................................................................................................... 8
2.2.2 WMM Parameter Element.................................................................................................... 10
2.2.3 Beacon Frame ....................................................................................................................... 12
2.2.4 Probe Request Frame............................................................................................................ 12
2.2.5 Probe Response Frame ......................................................................................................... 12
2.2.6 Association Request Frame .................................................................................................. 12
2.2.7 Association Response Frame ................................................................................................ 12
2.2.8 Re-Association Request Frame............................................................................................. 12
2.2.9 Re-Association Response Frame .......................................................................................... 12
2.2.10 Management Action Frame .................................................................................................. 12
2.2.11 WMM TSPEC Element ........................................................................................................ 14
3 WMM Protocol Specification............................................................................................................... 17
3.1 Association and Capability Negotiation ....................................................................................... 17
3.1.1 Procedure at an AP ............................................................................................................... 17
3.1.2 Procedure at a STA in an Infrastructure Network................................................................. 17
3.1.3 Procedure at a STA in an IBSS............................................................................................. 17
3.2 Setting of WMM Parameters ........................................................................................................ 18
3.2.1 Default WMM parameters .................................................................................................... 18
3.2.2 WMM Parameters in an Infrastructure Network .................................................................. 18
3.2.3 WMM Parameters in an IBSS .............................................................................................. 18
3.3 Assignment of Frames to Queues ................................................................................................. 18
WMM_Specification_1-1.doc Page 2 of 36
3.3.1 Mappings for Unicast Frames............................................................................................... 18
3.3.2 Mappings for Received Unicast Frames at an AP ................................................................ 19
3.3.3 Mappings for Group Addressed and Buffered Frames at an AP .......................................... 19
3.4 Channel Access Protocol .............................................................................................................. 20
3.4.1 Reference Implementation.................................................................................................... 20
3.4.2 Transmit Opportunities & TXOP Limits .............................................................................. 20
3.4.3 Obtaining an EDCA TXOP .................................................................................................. 21
3.4.4 Obtaining a Continuation of TXOP ...................................................................................... 23
3.4.5 Backoff Procedure ................................................................................................................ 23
3.4.6 Retransmit Procedures .......................................................................................................... 24
3.5 ADDTS and DELTS Procedures .................................................................................................. 24
3.5.1 Admission Control Procedures ............................................................................................. 25
3.5.2 Procedures at the AP............................................................................................................. 25
3.5.3 Procedure at STAs ................................................................................................................ 26
3.6 WMM Power Save (PS) Procedures............................................................................................. 27
3.6.0 U-APSD General Operation ................................................................................................. 27
3.6.1 U-APSD AP Operation......................................................................................................... 28
3.6.2 U-APSD STA Operation ...................................................................................................... 29
A.1 QoS Parameter Updates................................................................................................................ 31
A.2 Use of Admission Control and Downgrading............................................................................... 31
A.3 Deriving Medium Time ................................................................................................................ 31
A.4 WMM AP Default Parameter ....................................................................................................... 32
A.5 Changes to WPA for WMM ......................................................................................................... 32
A.5.1 Michael MIC Generation...................................................................................................... 32
A.5.2 TKIP Replay Counters.......................................................................................................... 32
A.6 Conveyance of 802.1Q VLAN tags.............................................................................................. 33
A.7 CCMP processing with QC .......................................................................................................... 33
A.7.1 AAD Construction with QC ................................................................................................. 34
A.7.2 CCM Nonce with Priority Octet ........................................................................................... 34
A.8 Differences between Legacy DCF Formulation and WMM......................................................... 34
A.9 Configuration State of AP for one example AC (Informative)..................................................... 35
WMM_Specification_1-1.doc Page 3 of 36
1 Overview
1.1 Purpose of This Document
This document defines the specification for WMM, an 802.11 quality of service (QoS) implementation
based on a subset of the draft 802.11e standard supplement [2]. It is motivated by the need to prevent
market fragmentation caused by multiple, non-interoperable pre-standard subsets of the draft 802.11e
standard that would otherwise occur. It is intended that WMM can be implemented, subjected to
interoperability testing and deployed in the market before the availability of 802.11e. This is facilitated by
selecting a subset of the features of 802.11e. In no way should WMM be taken to detract from 802.11e
itself, which is viewed as the long term endpoint of WMM. Deployment of WMM will deliver useful QoS
functionality for voice over 802.11, streaming media and also provide key lessons which will benefit
eventual deployment of 802.11e.
WMM_Specification_1-1.doc Page 4 of 36
Service Period (SP): A service period is a contiguous time during which one or more downlink unicast
frames are transmitted to a WMM STA and/or one or more TXOPs are granted to the same WMM STA.
Service Periods can be Scheduled or Unscheduled. For a WMM STA, there can be at most one Service
Period active at any time.
Unscheduled Service Period (USP): The Service Period that is started when a WMM STA transmits a
trigger frame to the WMM AP.
WMM_Specification_1-1.doc Page 5 of 36
2 WMM Frame Formats
2.1 Data Frame Formats
2.1.1 Fields
Data, Control and Management frames are indicated by a type subfield in the frame control field, as defined
for [1]. Data frames include additional WMM-specified subtypes and conditional fields.
The general frame format for data type frames is shown in Figure 1.
2 2 6 6 6 2 6 or 0 2 or 0 n 4
Frame Dur Address Address Address Seq Address QoS Body FCS
Control 1 2 3 Control 4 Control
MAC Header
The Address 4 and QoS control fields are conditionally present in the MAC header, determined by values
in the frame control field. The Address 4 field is present if and only if both toDS and fromDS bits are set in
the frame control field (see 2.1.2). The QoS control field is present if and only if the frame is of subtype
QoS data or QoS null.
15 14 13 12 11 10 9 8 7 4 3 2 1 0
Order WEP More Power Retry More From To Subtype Type Version
Data Manage- Frag Ds DS
ment
WMM_Specification_1-1.doc Page 6 of 36
2.1.3 Duration Field
The definition of the duration field is unchanged from [1] aside from the addition of the following
provision:
When transmitting bursts of multiple MSDUs using continuation TXOPs, the duration field of a data or
management frame in that burst may be selected to protect, using the NAV mechanism, either:
a) only the acknowledgement frame, if present, or
b) the acknowledgement frame, if present, plus the following data or management frame and its
expected acknowledgement, if present or
c) the entire burst of frames.
2.1.4 Addresses
The definition and interpretation of address fields is unchanged from [1].
15 4 3 0
Sequence and fragment numbers shall be selected and inserted on the initial transmission attempt of each
data or management frame. Any subsequent retransmissions shall use the same sequence control field as
the first transmission attempt.
The sequence number is selected by the transmitter from a modulo-4096 counter, which shall be
incremented by 1 for each unique MSDU or MMPDU that is queued to the associated AC for delivery.
In addition to the RA and TA of the frame, the receiver shall use the UP field that is carried in the QoS
Control field in order to allow correct differentiation of the sequence number spaces among frames sent
using different ACs. The receiver shall use the mappings in Table 14 to identify the sending AC from the
received UP field.
15 7 6 5 4 3 2 0
0 ack EO 0 UP
policy SP
The three bit UP field carries the priority bits of the 802.1D Priority and is used to signal the priority for
this frame. It also implies the sending AC according to the mappings in Table 14. The UP for each MPDU
of a MSDU shall be the same value.
WMM_Specification_1-1.doc Page 7 of 36
The Ack Policy field specifies the expected acknowledgement response and contains one of the values
shown in Table 2. All other bits are reserved and shall be set to zero on transmission and ignored on
receipt.
The End of Service Period (EOSP) field is set by the WMM AP to 1 at the end of an Unscheduled Service
Period (USP), and is set to 0 otherwise.
Octets:1 1 3 1 1 1 1
Field Value
Element ID 221
Length 7
OUI Type 2
OUI Subtype 0
Version 1
WMM_Specification_1-1.doc Page 8 of 36
The QoS Info field is shown in Figure 6. The QoS Info field contains the Parameter Set Count, which is
initially arbitrary and is incremented each time any of the AC parameters changes.
7 6 4 3 0
The reserved bits are set to 0 upon transmission and should be ignored upon reception. When set to 1, the
U-APSD bit indicates the WMM AP is currently supporting unscheduled automatic power save delivery as
described in §3.6.
The format of the QoS Info field, when sent by the WMM STA, is defined in Figure 7.
7 6 5 4 3 2 1 0
Reserved Max SP Reserved AC_BE AC_BK AC_VI AC_VO
Length U-APSD U-APSD U-APSD U-APSD
Flag Flag Flag Flag
Figure 7 QoS Info field when sent from WMM STA
Each of the ACs U-APSD Flag subfield is one bit in length and set to 1 in (re) association request frames to
indicate that the corresponding AC (AC_BE, AC_BK, AC_VI, or AC_VO) is both trigger-enabled and
delivery-enabled. It is set to 0 in (re) association request frames to indicate that the corresponding AC is
neither trigger-enabled nor delivery-enabled. MMPDUs are considered part of AC_VO for the purposes of
U-APSD delivery. A TSPEC as described in sections 2.2.11 and 3.6 may be used to make a particular AC
exclusively either trigger-enabled or delivery-enabled. These subfields are always set to 0 when the U-
APSD subfield in the Qos Info Field of a WMM Information Element is set to 0.
Max SP Length subfield is 2 bits in length and indicates the maximum number of total buffered MSDUs
and MMPDUs the WMM AP may deliver to a WMM STA during any Service Period triggered by the
WMM STA. This subfield is reserved when the U-APSD subfield in the QoS Info Field of a WMM
Information Element is set to 0. This subfield is also reserved when all four U-APSD flags are set to 0. If
the U-APSD subfield in the QoS Info Field of a WMM Information Element sent by a WMM AP is set to 1
and at least one of the four AC U-APSD flags is set to 1, the settings of the values in the Max SP Length
subfield are defined in the following Table 4
WMM_Specification_1-1.doc Page 9 of 36
2.2.2 WMM Parameter Element
The WMM Parameter Element contains a set of parameters (EDCA parameters) for the EDCF channel
access protocol and is shown in Figure 8. The fields contained in the WMM Parameter Element are listed in
Table 5. The WMM Parameter Element contains a QoS Info field. The format of the QoS Info field is
shown in Figure 6 and Figure 7. The QoS Info field contains the Parameter Set Count, which is initially
arbitrary and is incremented each time any of the AC parameters changes. The reserved bits are set to 0
upon transmission and shall be ignored upon reception.
Octets: 1 1 3 1 1 1 1 1 16
Field Value
Element ID 221
Length 24
OUI Type 2
OUI Subtype 1
Version 1
Reserved 0
Each access category (AC) parameter record has the format shown in Figure 9. The formats of the
ACI/AIFSN and ECWmin/ECWmax fields are shown in Figure 10 and Figure 11, respectively.
WMM_Specification_1-1.doc Page 10 of 36
Octets: 1 1 2
7 6 5 4 3 0
The value of TXOP limit is specified as an unsigned integer, with the least significant octet transmitted
first, in units of 32μs. A TXOP limit value of 0 indicates that a single MPDU, in addition to a possible
RTS/CTS exchange or CTS to itself, may be transmitted at any rate for each TXOP. The value of the ACI
references the AC to which all parameters in this record correspond. The mapping between AC index (ACI)
and AC is defined in Table 6. The AIFSN value indicates the number of time slots inside the Arbitration
Interframe space to be used. The minimum value for AIFSN shall be 2.
The ACM (Admission Control Mandatory) flag indicates that Admission Control is required for the AC. If
bit ACM is set to 0, the AC may be used without Admission Control. If bit ACM is set to 1, admission
control must be performed prior to transmission with the parameters of the corresponding AC Parameter
Record.
7 4 3 0
ECWmax ECWmin
The fields ECWmin and ECWmax encode the values of CWmin and CWmax respectively in an exponent
form. The values ECWmin and ECWmax are defined such that:
CWmin = 2 ECWmin − 1
CWmax = 2 ECWmax − 1
Hence the minimum encoded value of CWmin is 0, and the maximum value is 32767.
WMM_Specification_1-1.doc Page 11 of 36
2.2.3 Beacon Frame
Every beacon frame transmitted by a WMM-enabled AP shall contain, in addition to those elements
specified in [1], either a WMM Information Element or a WMM Parameter Element.
24/30 1 1 1 1 4
WMM_Specification_1-1.doc Page 12 of 36
Table 7 Management Action Frame Fields
Field Value
Category code 17
The ADDTS request, ADDTS response, and DELTS management action frames are used for Admission
Control and Power Management and shall at minimum contain a WMM TSPEC element.
The Dialog Token field shall be set by the STA to a non-zero value in the ADDTS request frame and shall
be copied into the corresponding ADDTS response management action frame. The Dialog Token shall be
set to 0 in the DELTS management action frame.
The status code field is only filled in for the ADDTS response, and contains the values shown in Table 9.
For other action codes, this field should be set to zero and ignored on receive.
Value Operation
0 Admission accepted
1 Invalid parameters
2 Reserved
3 Refused
4-255 Reserved
WMM_Specification_1-1.doc Page 13 of 36
2.2.11 WMM TSPEC Element
The format of the WMM TSPEC element is shown in Figure 13. The fields contained in the WMM
TSPEC element are listed in Table 10. (Note: The fields are a snapshot of the TSPEC element in IEEE Std
802.11e/D6 plus an appended Medium Time field.) Fields marked with a hyphen are optional, and shall be
set to zero if not used. The value of zero for any field is a special reserved value, meaning "no information
provided". The WMM TSPEC body format is shown in Figure 14.
Octets: 1 1 3 1 1 1 55
ID Length OUI OUI Type OUI Subtype Version WMM TSPEC body
Octets: 3 2 2 4 4 4 4 4 4
TS Info Nominal Maximum Minimu Maximu Inactivit Suspensi Service Minimum
MSDU MSDU m m y on Start Data Rate
Size Size Service Service Interval Interval Time
Interval Interval
4 4 4 4 4 2 2
Mean Peak Data Maximum Delay Minimum Surplus Medium
Data Rate Burst Size Bound PHY Rate Bandwidth Time
Rate Allowance
A WMM TSPEC request shall be transmitted by a STA to an AP in order to request admission for an AC
that requires admission control. The STA may transmit unadmitted traffic for those ACs for which the AP
does not mandate admission control. A STA may need to transmit a WMM TSPEC request for an AC that
does not mandate admission control, e.g for the establishment of the triggered power save mode of
operation.
WMM_Specification_1-1.doc Page 14 of 36
Table 10 WMM TSPEC Element Field Values
Field Value
Element ID 221
Length 6 + 55 = 61
OUI 00:50:f2 (hex)
OUI Type 2
OUI Subtype 2
Version 1
TS Info See below
Nominal MSDU Size See below
Maximum MSDU Size -
Minimum Service Interval -
Maximum Service Interval -
Inactivity Interval -
Suspension Interval -
Service Start Time -
Minimum Data Rate -
Mean Data Rate See below
Peak Data Rate -
Maximum Burst Size
Delay Bound -
Minimum PHY Rate See below
Surplus Bandwidth Allowance See below
Medium Time See below
The TS Info field contains the subfields shown in Figure 15. The TID field, combined with the RA and the
TA of the frame containing the TSPEC element, uniquely identifies the TS for which a request is being
made. The UP field contains the 802.1D priority information, and is the same value used in QoS data
frames associated with this TS. The direction field contains values shown in Table 11.
23 17 16 15 14 13 11 10 9 8 7 6 5 4 1 0
WMM_Specification_1-1.doc Page 15 of 36
Table 11 Direction Field Values
The uplink and downlink characteristics are symmetric for a bidirectional reservation. The value of a
TSPEC field for a bidirectional reservation represents the resources for one direction.
The Power Save Behavior (PSB) field is coded according to Table 12.
The PSB bit determines the power save method of delivery of buffered traffic used when the station is
operating in PS-mode, as described in section 3.6.
The Nominal MSDU Size field is 2 octets long and contains an unsigned integer that specifies the nominal
size, in octets, of MSDUs belonging to the traffic under this traffic specification and is defined in Figure
16. If the Fixed subfield is set to 1, then the size of the MSDU is fixed and is indicated by the Size
Subfield. If the Fixed subfield is set to 0, then the size of the MSDU might not be fixed and the Size
indicates the nominal MSDU size.
15 14 0
Fixed Size
The Mean Data Rate field is 4 octets long and contains an unsigned integer that specifies the average data
rate, in units of bits per second, for transport of MSDUs belonging to this traffic within the bounds under
this traffic specification. The Mean Data Rate does not include the MAC and PHY overheads incurred in
transferring the MSDUs.
The Minimum PHY Rate field is 4 octets long and contains an unsigned integer that specifies the minimum
PHY rate, in units of bits per second that is required for transport of the MSDUs belonging to the traffic in
this TSPEC.
The Surplus Bandwidth Allowance Factor field is 2 octets long and specifies the excess allocation of time
(and bandwidth) over and above the stated rates required to transport an MSDU belonging to the traffic in
this TSPEC. This field is represented as an unsigned binary number with an implicit binary point after the
leftmost 3 bits. This field is included to account for retransmissions. As such, the value of this field must
be greater than unity.
Medium Time is a 16-bit unsigned integer that describes the amount of time admitted to access the
medium, in units of 32 microsecond periods per second.
WMM_Specification_1-1.doc Page 16 of 36
3 WMM Protocol Specification
3.1 Association and Capability Negotiation
3.1.1 Procedure at an AP
An AP that supports WMM shall include either a WMM Information Element or a WMM Parameter
Element in every beacon. In response to a probe request, a WMM-enabled AP shall include a WMM
Parameter Element in its probe response.
On receipt of an association request and subsequent transmission of a corresponding association response:
the AP shall include a WMM Parameter Element in the association response if the corresponding
association request contained a WMM Information element and shall treat the association as WMM
association. The same applies to re-association request / re-association response.
If the destination address of a data frame to be transmitted on the wireless medium corresponds to a STA
with a WMM association, the AP shall use WMM QoS data subtype frame formats when transmitting the
frame to it. If the destination address corresponds to a STA associated as a non-WMM STA, the AP shall
not use QoS subtype data frames.
WMM_Specification_1-1.doc Page 17 of 36
3.2 Setting of WMM Parameters
WMM_Specification_1-1.doc Page 18 of 36
priority order. The UP field is carried in the QoS control field of an MPDU. The UP field references the
AC the MPDU is transmitted at using the mapping defined in Table 14. At the receiver, the UP field carried
in the MPDU shall be used to re-create the 802.1D priority information of the MSDU.
(= UP)
1 BK
lowest
2 - AC_BK Background
0 BE
4 CL
5 VI AC_VI Video
6 VO
highest
7 NC AC_VO Voice
Transmit frames are then placed in queues according to AC. The AP and STA may implement more queues
for internal prioritization. Data frames with no priority information are treated as best effort.
Management frames have no QoS Control field, but should be transmitted with parameters of AC_VO
PS-Poll frames should be mapped to AC_BE.
WMM_Specification_1-1.doc Page 19 of 36
3.4 Channel Access Protocol
mapping to
access category
(AC)
transmit queues
Per queue
channel access
functions with
internal collision
resolution and
sequence
number counter
A model of the reference implementation is shown in Figure 17 and illustrates the mapping of the priority
bits of the 802.1D Priority information that is contained in the MSDU to UP, access category (AC), the four
transmit queues, and four independent channel access functions, one for each queue. The mapping of AC to
priority is described in section 3.3. Each AC is associated with its own sequence number counter as
described in 2.1.5.
WMM_Specification_1-1.doc Page 20 of 36
An STA shall fragment an MSDU so that the transmission of the first MPDU of the TXOP does not cause
the TXOP limit to be exceeded at the PHY rate selected for the initial transmission attempt of that MPDU.
The TXOP limit may be exceeded, when using a lower PHY rate than selected for the initial transmission
attempt of the first MPDU, for a retransmission of an MPDU, or for the initial transmission of an MPDU if
any previous MPDU in the current MSDU has been retransmitted. When the TXOP limit is exceeded due
to the retransmission of a MPDU at a reduced PHY rate, the STA shall not transmit more than one MPDU
in the TXOP.
The specific slot boundaries at which exactly one of these operations shall be performed are defined as
follows, for each channel access function:
a) Following AIFSN[AC] * aSlotTime – aRxTxTurnaraoundTime of medium idle indication after
SIFS (not necessarily idle time) after the last busy medium on the antenna, if the last busy medium
indication was the result of a frame reception with a correct FCS ; or
b) Following EIFS – DIFS + AIFSN[AC] * aSlotTime of medium idle indication after the last
indicated busy medium as determined by the carrier sense mechanism if the last busy medium
indication was the result of a frame reception with an FCS error or PHY-RXEND.indication
(RXERROR), where the value of RXERROR is not NoError.
c) When any other channel access function at this QSTA transmitted a frame requiring
acknowledgement, the earlier of:
a. the end of the ACK-Timeout interval timed from the PHY_TXEND.confirm, followed
by AIFSN[AC] * aSlotTime – aTxRxTurnaraoundTime of IDLE Time
b. at the end of the first AIFSN[AC] * aSlotTime – aTxRxTurnaraoundTime of IDLE
medium after the PHY-RXEND.indication when a PHY-RXSTART.indication occurs as
specified in subclause 9.2.8 of [1],
d) following AIFSN[AC] * aSlotTime– aTxRxTurnaraoundTime of medium idle indication after
SIFS (not necessarily idle time) after the last indicated busy medium on the antenna that was the
result of a transmission of a frame for any channel access function and which did not require an
acknowledgement; or
e) following AIFSN[AC] * aSlotTimeof medium idle time indication after the last indicated idle
medium as indicated by the carrier sense mechanism that is not covered by a) through d).
f) following aSlotTime of medium idle indication which occurs immediately after a decrement of the
backoff counter for that channel access function.
WMM_Specification_1-1.doc Page 21 of 36
At each of the above-described specific slot boundaries, each channel access function shall initiate a
transmission sequence, if:
a) there is a frame available for transmission at that channel access function, and
b) the backoff timer for that channel access function has a value of zero, and
c) initiation of a transmission sequence is not allowed to commence at this time for a channel access
function of higher UP.
At each of the above-described specific slot boundaries, each channel access function shall decrement the
backoff timer by one, if:
a) The backoff timer for that channel access function has a value which is greater than zero.
At each of the above-described specific slot boundaries, each channel access function shall invoke the
backoff procedure due to an internal collision, if:
a) There is a frame available for transmission at that channel access function, and
b) the backoff timer for that channel access function has a value of zero, and
c) initiation of a transmission sequence is allowed to commence at this time for a channel access
function of higher UP.
At each of the above-described specific slot boundaries, each channel access function shall do nothing, if
none of the above actions is taken.
Earliest possible
transm ission on-air
Initial backoff counter when AIFSN=2
value of 0
Initial backoff
DIFS counter value of 1
Medium Busy
D1 Rx/Tx
M1 D2 D2 D2
CCADel CCADel CCADel
M2 M2 M2
Rx/Tx Rx/Tx Rx/Tx
WMM_Specification_1-1.doc Page 22 of 36
following the end of the medium busy condition. Note: The end of the medium busy condition happens at
the end of M1 in Figure 18. If, in this example, the backoff counter contained a value of 1 at the time the
medium became idle, transmission would start as a result of an EDCA TXOP on-air at a time
aSIFSTime + 3 × aSlotTime
following the end of the medium busy condition.
WMM_Specification_1-1.doc Page 23 of 36
1) if CW[AC] is less than CWmax[AC], CW[AC] shall be set to the value
(CW[AC]+1)*2-1
2) if CW[AC] is equal to CWmax[AC], CW[AC] shall remain unchanged for the
remainder of any retries
Following the update of the value of CW[AC], the backoff timer is set to an integer value chosen randomly
with a uniform distribution taking values in the range (0,CW[AC]) inclusive.
WMM_Specification_1-1.doc Page 24 of 36
3.5.1 Admission Control Procedures
WMM STA may support admission control procedures. APs shall support admission control procedures, at
least to the minimal extent of advertising that admission is not mandatory on its ACs.
The AP uses the ACM (admission control mandatory) flags advertised in the WMM Parameter element to
indicate whether admission control is required for each of the ACs, as a matter of policy. While the
CWmin, CWmax, AIFS, TXOP limit parameters may be adjusted over time by the AP, the ACM bit shall
be static for the duration of the lifetime of the BSS. A WMM TSPEC request shall be transmitted by a STA
to an AP in order to request admission of a TS in any direction (uplink, downlink, or bidirectional) using
the AC parameters of those ACs that require admission control.
A WMM STA may choose to aggregate data flows locally by combining the parameters of multiple flows
into a single TSPEC, thereby allowing more than one data flow to exist per TS. The STA may transmit
unadmitted traffic using AC parameters of those ACs which the AP does not require admission control.
Each channel access function shall maintain two variables. The first of these is the admitted time, and the
second is the used time. The admitted time and used time shall be set at association time to zero.
The channel access function shall update the value of used time:
a) at one second intervals
used_time = max((used_time - admitted_time), 0)
b) after each frame exchange
used_time = used_time + FrameExchangeTime.
The FrameExchangeTime equals the time required to transmit the frame plus one ACK frame plus one
SIFS interval. If the used time reaches or exceeds the admitted time value, the corresponding channel
access function shall no longer transmit using the EDCA parameters for that AC as specified in the QoS
parameter set element.
If an explicit admission is torn down, the admitted time and the used time for the AC shall both be set to
zero.
A Setup request (ADDTS) for a TS (TID) that has an established explicit admission shall be regarded as a
request for a change to the existing admitted TS.
If a request for a change to an admitted TS is refused, the previously accepted admission for the same TS
remains valid.
Admitted time for each channel access function is the sum of the Medium time values for all admitted TS
that map into that AC. A WMM STA may choose to police admitted time and used time on a per-TS basis,
with the rules for not transmitting when admitted time is exceeded applying per TS as well.
It should be noted that acceptance by an AP of a STA association request that specifies U-APSD flags does
not constitute admission to the corresponding ACs. Uplink traffic from a STA must still be admitted using
the ADDTS request mechanism in order to transmit in an AC for which the ACM bit is set to 1.
WMM_Specification_1-1.doc Page 25 of 36
The AP may use any algorithm in making such a determination. If the AP decides to accept the request, the
AP shall also derive the Medium Time from the information conveyed in the WMM TSPEC request
element. The AP may use any algorithm in deriving the Medium Time, but normally it will use the
procedure described in the Annex. Having made such a determination, the AP shall transmit a WMM
TSPEC element to the requesting STA contained in a ADDTS response management action frame. If the
AP is accepting the request, the Medium Time field shall be specified.
The AP may choose at any time to tear down an explicit admission by sending a management action frame
with the action code set to DELTS.
By observing the used time and the admitted time variables for admitted traffic destined to an STA, the AP
may drop MPDUs that are in excess of the admitted traffic using an unspecified algorithm.
WMM_Specification_1-1.doc Page 26 of 36
3.6 WMM Power Save (PS) Procedures
3.6.0.1 The procedures defined in this section apply to unicast QoS-Data and QoS-Null frames that are
to be delivered to a WMM STA when the STA is in PS-mode. U-APSD shall only be used to
deliver unicast frames to a WMM STA. Broadcast/multicast frame delivery shall follow the
frame delivery rules defined for broadcast/multicast frames (See 11.2.1.4 in [1]).
3.6.0.2 The WMM power-save procedures are based on the legacy procedures defined in [1], but an
option for unscheduled automatic power-save delivery (U-APSD) is added. WMM APs capable
of supporting U-APSD (“U-APSD-capable WMM AP”) shall signal this capability through the
use of the U-APSD subfield (b7) in the QoS Info Field in Beacon, Probe Response and
(Re)Association Response management frames.
3.6.0.3 In order to configure a WMM AP to deliver frames, the WMM STA designates one or more of
its ACs to be delivery-enabled ACs and one or more of its AC to be trigger-enabled ACs. A
WMM STA may configure a WMM AP to use U-APSD using two methods.
3.6.0.4 First, a WMM STA may set individual U-APSD Flag bits (b3~b0) in the QoS Info field of the
WMM Information element carried in (re) association request frames (see §2.2.1). When a
U-APSD Flag bit is set to 1, it indicates that the corresponding AC is both a delivery-enabled
AC and trigger-enabled AC. When a U-APSD Flag bit is set to 0, it indicates that the
corresponding AC is neither a deliver-enabled AC nor a trigger-enabled AC. When all four
U-APSD Flag subfields are set to 1 in the most recent (re) association request frames, all the
ACs associated with the WMM STA are trigger-enabled ACs and delivery-enabled ACs upon
successful (re) association. When all four U-APSD Flag subfields are set to 0 in (re) association
request frames, the ACs associated with the WMM STA are neither trigger-enabled ACs nor
delivery-enabled ACs upon successful (re) association.
3.6.0.5 Alternatively, a WMM STA may request one or more AC as a trigger-enabled AC and one or
more AC as delivery-enabled ACs by sending an ADDTS request per AC to the WMM AP with
the PSB subfield (b10) in the TS Info field in the TSPEC element. In an ADDTS Response, a
WMM AP must preserve the setting of the PSB subfield from the ADDTS Request. Requests to
designate an AC as a delivery-enabled AC or trigger-enabled AC are admitted when the Status
Code is equal to 0 in an ADDTS response. A WMM STA may request an AC to be a trigger-
enabled AC with a TSPEC with the PSB subfield set to 1 in the uplink direction. A WMM STA
may request an AC to be a delivery-enabled AC with a TSPEC with the PSB subfield set to 1 in
the downlink direction. A bi-directional TSPEC with the PSB subfield set to 1, makes an AC
both a trigger-enabled AC and delivery-enabled AC. A bi-directional TSPEC with the PSB
subfield set to 0, makes that AC neither a trigger-enabled AC nor a delivery-enabled AC.
3.6.0.6 APSD settings in an admitted TSPEC (i.e., Status Code equal to 0 in an ADDTS response) take
precedence over the static U-APSD settings carried in the WMM Information element in the
most recent (re) association request. In other words, an admitted TSPEC overwrites any previous
U-APSD setting of an AC. An acknowledged DELTS for an AC reverts that AC to the static U-
APSD settings carried in the WMM Information element in the most recent (re) association
request.
3.6.0.7 WMM STAs use the Power Management field (b12) in the frame control field (§2.1.2) of a
frame to indicate whether it is in active or power-save mode. As U-APSD is a mechanism for
the delivery of downlink frames to powersaving stations, the uplink frames sent by a WMM
STA using U-APSD shall have the Power Management bit in the frame control field set to 1 for
WMM_Specification_1-1.doc Page 27 of 36
buffering to take place at the WMM AP. WMM STAs may use U-APSD to have some or all
frames of delivery-enabled ACs delivered during Unscheduled Service Periods (USPs). A
WMM STA chooses legacy versus U-APSD behavior on a per-AC basis.
3.6.0.8 If, for a particular WMM STA, an AC is not a delivery-enabled AC, then all downlink frames
destined to that WMM STA that map to that AC are buffered and delivered using the procedures
described in [1]. The buffer used to hold these frames will be referred to as the legacy PS buffer.
The WMM AP uses the TIM and the More Data bit (b13) carried in Frame Control Field to
indicate the status of the legacy PS buffer as specified in [1].
3.6.0.9 Transmission of a Trigger Frame is not implicitly allowed by admission of a downlink TS. If
the Trigger Frame maps to an AC that has ACM=1, then the WMM STA must establish a
suitable uplink TS before sending Trigger Frames.
3.6.0.10 The WMM STA must remain awake as long as an USP is still in progress.
3.6.1.1 WMM APs shall maintain a Power Management status for each currently associated STA that
indicates in which Power Management mode the STA is currently operating. U-APSD-capable
WMM APs shall maintain the per-AC U-APSD status for each currently associated WMM STA.
3.6.1.2 If a WMM STA is in power-save mode, as indicated by a 1 in the power management field (b12)
in the frame control field (§2.1.2), an AP shall temporarily buffer the MSDUs or MMPDUs
destined to the STA. If a WMM STA is in Active mode, as indicated by a 0 in the power
management field (b12) in the frame control field (§2.1.2), MSDUs or MMPDUs destined to
that STA shall not be buffered for power management reasons by the WMM AP.
3.6.1.3 MSDUs or MMPDUs in delivery-enabled ACs (as described in §3.6) destined for a particular
WMM STA using APSD shall be temporarily buffered in the U-APSD-capable WMM AP. The
algorithm to manage this buffering is beyond the scope of this standard, with the exception that
since the AP is WMM-enabled, it shall preserve the order of arrival of frames on a per TID, per
STA basis.
3.6.1.4 At every beacon interval, the U-APSD-capable WMM AP shall assemble the Partial Virtual
Bitmap containing the buffer status of non delivery-enabled ACs (if there exists at least one non
delivery-enabled AC) per destination for WMM STAs in PS mode, and shall send this out in the
TIM field of the beacon. In case all ACs are delivery-enabled ACs, the U-APSD-capable WMM
AP shall assemble the Partial Virtual Bitmap containing the buffer status for all ACs per
destination for WMM STAs. .
3.6.1.5 If the WMM STA has set up to use USPs by configuring trigger-enabled ACs, the WMM AP
shall buffer frames belonging to delivery-enabled ACs until it has received a Trigger Frame
associated with a trigger-enabled AC from the WMM STA, which indicates the start of an USP.
A Trigger Frame received by the WMM AP from a WMM STA that already has an USP
underway shall not trigger the start of a new USP. The WMM AP transmits frames destined for
the WMM STA and associated with delivery-enabled ACs during an USP.
3.6.1.6 For a WMM STA using U-APSD, the WMM AP transmits one frame destined for the WMM
STA from any AC that is not a delivery-enabled AC in response to a PS-Poll from the WMM
STA. In case all ACs associated with the WMM STA are delivery-enabled ACs, then no ACs
have been selected for legacy power-save, and the AP shall immediately send either an ACK
frame, a Null function Data frame with the More Data bit set to zero, or a Null function QoS
WMM_Specification_1-1.doc Page 28 of 36
Data frame with the More Data bit and the EOSP bit set to zero in response to the receipt of a
PS-Poll frame. If the AP sends an ACK frame in immediate response to the PS-Poll frame, it
also shall later send a Null Function Data frame with the More Data bit set to zero or a Null
function QoS Data frame with the More Data bit set to zero and the EOSP bit set to zero. In
MSDUs sent in response to PS-Poll from a WMM STA using U-APSD, the More Data bit (b13)
field shall be set to indicate the presence of further buffered MSDUs or MMPDUs that do not
belong to delivery-enabled ACs.
3.6.1.7 At each USP for a WMM STA, the WMM AP shall attempt to transmit at least one MSDU or
MMPDU, but no more than the value encoded in the Max SP Length field in the QoS Info Field
of a WMM Information Element from delivery-enabled ACs, that are destined for the WMM
STA. Each buffered frame shall be delivered using the access parameters of its AC. The More
Data bit (b13) of the directed MSDU or MMPDU associated with delivery-enabled ACs and
destined for that WMM STA indicates that more frames are buffered for the delivery-enabled
ACs. The More Data bit set in MSDUs or MMPDUs associated with non delivery-enabled ACs
and destined for that STA indicates that more frames are buffered for the non delivery-enabled
ACs. For all frames except for the final frame of the SP, the EOSP subfield of the QoS Control
field of the QoS data frame shall be set to 0 to indicate the continuation of the SP. MMPDUs
also indicate the continuation of an SP because they do not contain an EOSP subfield. If the
WMM AP has no buffered MSDU or MMPDU to transmit or needs to otherwise terminate a
USP, the WMM AP may generate an extra QoS Null frame, with the EOSP set to 1. When the
WMM AP has transmitted a directed frame to the WMM STA with the EOSP subfield set to 1
during the SP except for retransmissions of that frame, the WMM AP shall not transmit any
more frames using this mechanism until the next SP. The WMM AP shall set EOSP subfield to 1
to indicate the end of SP in APSD.
3.6.1.8 If the WMM AP does not receive an Ack to a directed MSDU sent with the EOSP subfield set to
1, it shall retransmit that frame at least once within the same USP - subject to applicable retry or
lifetime limit. The maximum number of retransmissions within the same USP is the lesser of the
Max Retry Limit and the MIB attribute dot11QAPMissingAckRetryLimit. If an Ack to the
retransmission of this last frame in the same USP is not received, it may wait until the next USP
to further retransmit that frame subject to its applicable retry or lifetime limit.
3.6.1.9 A WMM AP shall have an aging function to delete pending traffic when it is buffered for an
excessive time period. The WMM AP may base the aging function on the listen interval
specified by the WMM STA in the most recent (re)association request. The AP may discard
buffered frames during power save mode transitions between APSD and legacy power save or
vice versa.
3.6.1.10 The AP shall deliver all frames from the legacy PS buffer using the power management
procedures described in [1].
3.6.2.1 WMM STAs in PS-mode shall operate as follows to receive buffered frames from the WMM
AP.
3.6.2.2 WMM STAs shall use the power management procedures defined in [1] to retrieve frames held
in the legacy PS buffer.
3.6.2.3 In case one or more ACs are not delivery-enabled ACs, the WMM STA may retrieve MSDUs
and MMPDUs belonging to those ACs by sending PS-Polls to the WMM AP. In case all ACs
WMM_Specification_1-1.doc Page 29 of 36
are delivery enabled ACs, WMM STA should only use trigger frames to retrieve MSDUs and
MMPDUs belonging to those ACs, and it should not send PS-Poll frames.
3.6.2.4 To initiate an USP to retrieve MSDUs and MMPDUs from delivery-enabled ACs, a WMM STA
shall wake up and transmit a Trigger Frame to the WMM AP. . Frames of delivery-enabled
ACs are delivered during a USP that begins after the WMM AP acknowledges the trigger frame
transmitted by the WMM STA. The WMM STA shall remain awake until it receives a QoS
Data or Null frame addressed to it, with the EOSP subfield in QoS Control field set to 1.
3.6.2.5 A WMM STA may send additional PS-Polls if the More Data subfield is set to 1 in downlink
unicast MSDU or MMPDUs that do not belong to any deliver-enabled ACs. WMM STA may
send additional trigger frames if the More Data subfield is set to 1 in downlink unicast MSDUs
or MMPDUs that belong to delivery-enabled ACs.
3.6.2.6 The WMM STA is recommended to go into active mode to receive buffered frames before
transitioning between APSD and legacy power save modes because the WMM AP may discard
buffered frames during power save mode transitions between APSD and legacy power save.
WMM_Specification_1-1.doc Page 30 of 36
WMM (Informative) Recommended Practices Annex
A.1 QoS Parameter Updates
It is recommended that the mechanism to update QoS parameters by way of the WMM Parameter Element
in beacon frames be used infrequently. It is not the intent of the designers of the protocol to specify this as a
dynamic adaptation mechanism, but rather as a means of auto-configuring policy at different locations.
However, in the event that the number of associated STAs changes or some other event occurs that
significantly alters the conditions, it is expected that the AP may change the policy settings. There is no
expectation of rapid update by the STAs, which may take of the order of seconds or tens of seconds if
necessary to update their parameter settings.
To assure that all STAs use the proper QoS parameters following modification of AC parameters, the
WMM Parameter Element should be present for multiple beacon intervals as specified in 3.2.2.
WMM_Specification_1-1.doc Page 31 of 36
A.4 WMM AP Default Parameter
It is recommended that the AP uses the default EDCA parameter listed in Table 15 and advertises the Table
13 values in WMM Parameter Elements.
6 6 1 3 M 1 1 1 1 1 1 1 1
DA SA Priority 0 Data M0 M1 M2 M3 M4 M5 M6 M7
Figure 19 is treated as a byte stream using the conventions described in Clause 7.1.1 of IEEE Std. 802.11,
1999 Edition. M0 – M7 are each byte of the Michael MIC.
On transmit, the MSDU priority used to calculate the Michael MIC shall be the numeric value of the UP for
each MPDU of the MSDU. On receive, the MSDU priority shall be the numeric value of the UP for each
MPDU of the MSDU.
A.5.2 TKIP Replay Counters
Each receiver shall maintain at least 4 unicast replay counters for each MAC address it receives WMM
traffic (at least 1 for each AC). (Note: All WPA stations must also maintain 1 replay counter for each
MAC address it receives multicast traffic.) The number of unicast replay counters supported by a receiving
station is indicated by the Number of Replay Counters sub-field in the RSN Capabilities field of the WPA
IE (a value of 2 = 4 replay counters, a value of 3 = 16 replay counters). When a receiver supports 4 replay
counters, transmitters shall not ‘reorder’ MPDUs within an AC that have the same MAC address, but
different TID, once the TSC has been assigned (prevents discarding out of order MPDUs at the receiver).
Receivers may support 16 unicast replay counters, as indicated by the Number of Replay Counters. In this
case, there will be 1 replay counter for each TID and transmitters may ‘reorder’ MPDUs within an AC that
have the same MAC address but different TID, after the TSC has been assigned. Note: It is never allowed
to reorder MPDUs within an AC that have the same MAC address and TID.
WMM_Specification_1-1.doc Page 32 of 36
A.6 Conveyance of 802.1Q VLAN tags
If an 802.1Q VLAN tag is present within a WMM frame, the frame should have the SNAP encoded tag
format as defined in [4] (see section 9.3). The frame format is shown in Figure 20. For comparison a frame
without 802.1Q VLAN tag is depicted in Figure 21. The general format of IP Datagrams over IEEE 802
networks and the SNAP header are defined in [3].
24-32 0 or 4 6 2 2 2 n 4
24-32 0 or 4 6 2 n 4
WMM STAs shall be able to receive frames with and without VLAN tag as depicted in Figure 20 and
Figure 21.
When a VLAN tag is present, the CFI bit in the VLAN tag will be set to 0.
In general, VLAN tags should NOT be present within WMM frames. The UP of the QOS subfield contains
the information contained in the priority field of the VLAN tag, such that a priority tagged frame (i.e. a
frame with a VLAN tag where VLAN_ID = 0) is not necessary.
In the case of a non-zero VLAN_ID, the use of VLAN tags is generally restricted to trunking links which
comprise a larger switching network's backbone, or for the connection of VLAN aware servers. WDS
frames would more naturally be employed for trunking purposes, and therefore, VLAN Tags may be
deemed necessary within WDS frame types. VLAN tags may appear in non-WDS WMM frames, e.g. when
attaching a VLAN aware server to the network wirelessly.
Additionally, VLAN tags may be deemed necessary by some protocols in order to convey priority
information across the WMM link where QOS subtypes are not used. In such cases, a priority tagged frame
would be employed (i.e. a VLAN tag with VLAN_ID = 0).
Best effort, non-QOS subtype frames should not include VLAN tags where those frames may have a non-
WMM STA as the intended receiver. A non-WMM STA might not be capable of interpreting the frame
format of Figure 20. WMM STAs shall be able to parse non-QOS subtype frames with a VLAN tag. This
ensures that if you are using a mix of legacy and WMM APs a WMM STA works in both situations where
tags are present on the network.
WMM_Specification_1-1.doc Page 33 of 36
A.7.1 AAD Construction with QC
The format of the AAD when the QC field is used is shown in Figure 22. The length of the AAD is 24
octets long when the MPDU includes QC but not A4 and 30 octets long when the MPDU includes both A4
and QC.
2 6 6 6 2 6 2
FC SC QC
(bits 4,5,6,11,12,13 =0) A1 A2 A3 A4
(bits 4 to 15=0) (bits 4 to 15=0)
(bit 14=1)
The calculation of the AAD is as described in the 802.11i specification with the addition that the QC field
is now included in the AAD. Only the QC TID is used in the AAD and the remaining QC fields are set to
zero for the AAD calculation (bits 4 to 15 are set to zero)
A.7.2 CCM Nonce with Priority Octet
The CCMP Priority must be set to the value of the QC TID field when the QC field is available in the
header. The priority is set from bits 0 to 3 of the QC field. The priority bits 4, 5, 6 and 7 are reserved, and
they are always set to zero. The Priority Octet is set to the fixed value 0 (0x00) when there is no QC field.
The AP may choose to adjust the backoff parameters for WMM STAs to mitigate differences in the access
priority with respect to Best_Effort traffic and legacy STAs.
WMM_Specification_1-1.doc Page 34 of 36
A.9 Configuration State of AP for one example AC (Informative)
Not Associated
(¶3.6.0.4) (¶3.6.0.4) This transition is a new
Association Association downlink TSPEC *replaces* a
U-APSD QoS Info (b3~b0) = 0 U-APSD QoS Info (b3~b0) = 1 bidirectional one (¶3.5)
(¶3.5)
Downstream ADDTS
PSB (b10) = 0 (¶3.6.0.5)
Downstream
or
Delivery Enabled (not trigger enabled) ADDTS PSB
DELTS and
(b10) = 1
U-APSD QoS Info (¶3.6.0.6)
(b3~b0) = 0 (¶3.5)
(¶3.6.0.5)
(¶3.6.0.5)
Associated
WMM_Specification_1-1.doc Page 35 of 36
References
[1] ISO/IEC 8802-11:1999(E) ANSI/IEEE Std 802.11, 1999 Reaffirmed 2003 edition
[2] IEEEP802.11e/D6.0 November 2003; Draft amendment to IEEE Std. 802.11, 1999 Edition
(Reaff 2003).
[3] IETF RFC1042: A Standard for the Transmission of IP Datagrams over IEEE 802 Networks.
[4] IEEE Std 802.1Q-1998s
[5] IEEEP802.11e/D7.0 January 2004; Draft amendment to IEEE Std. 802.11, 1999 Edition (Reaff
2003).
WMM_Specification_1-1.doc Page 36 of 36