It is vital to understand the 802.11 link layer transport mechanism before learning about WMM.
In the 802.11 protocol, DCF is mandatory, and PCF is optional.
According to the 802.11 protocol, the receiver must return an ACK frame each time it receives a data frame.
Concepts
Contention window: backoff time. Backoff time is a multiple of slot time, and its length depends on the physical layer technology. When multiple STAs need to transmit data but detect that all channels are busy, the STAs use the backoff algorithm. The STAs wait for a random number of slot times, and then transmit data. A STA detects channel status during the slot time interval. When detecting an idle channel, the STA starts the backoff timer. If all channels become busy, the STA freezes the remaining time in the backoff timer. When a channel becomes idle, the STA waits until DIFS times out, and continues the backoff timer. When the backoff timer is reduced to 0, the STA starts to send data frames. Figure 2 shows the data frame transmission process.
Channel competition is based on DCF. To all STAs, the DIFS is fixed and backoff time is random. Therefore, all the STAs fairly compete for channels. WMM enhances the 802.11 protocol, changing the channel competition mode.
EDCA parameters
WMM defines a set of Enhanced Distributed Channel Access (EDCA) parameters, which distinguishes high priority packets and enables these packets to preempt channels.
Each AC queue defines a set of EDCA parameters, which determines the capability of occupying channels. These parameters ensure that high priority ACs have a higher probability of preempting channels than low priority ones.
Parameter |
Meaning |
---|---|
Arbitration Interframe Spacing Number (AIFSN) |
The DIFS has a fixed value. WMM provides different DIFS values for different ACs. A large AIFSN value means that the STA must wait for a long time and has a low priority. |
Exponent form of CWmin (ECWmin) and exponent form of CWmax (ECWmax) |
ECWmin specifies the minimum backoff time, and ECWmax specifies the maximum backoff time. Together, they determine the average backoff time. Large ECWmin and ECWmax values mean a long average backoff time for the STA and a low STA priority. |
Transmission Opportunity Limit (TXOPLimit) |
After preempting a channel, the STA can occupy the channel within the period of TXOPLimit. A large TXOPLimit value means that the STA can occupy the channel for a long time. If the TXOPLimit value is 0, the STA can only send one data frame every time it preempts a channel. |
As shown in Figure 3, the AIFSN (AIFSN[6]) and the backoff time of voice packets are shorter than those of Best Effort packets. When both voice packets and Best Effort packets need to be sent, voice packets preempt the channel.
ACK policy
WMM defines two ACK policies: normal ACK and no ACK.
Normal ACK: The receiver must return an ACK frame each time it receives a unicast packet.
No ACK: The receiver does not need to return ACK frames after receiving packets. This mode is applicable to environments with high communication quality and little interference.