14-QoS Configuration Guide

HomeSupportConfigure & DeployConfiguration GuidesH3C Access Points Anchor AC Mode Configuration Guides(E2442 R2442)-6W10014-QoS Configuration Guide
02-WLAN QoS configuration
Title Size Download
02-WLAN QoS configuration 217.90 KB

Configuring WLAN QoS

About WLAN QoS

An 802.11 network provides contention-based wireless access. To provide applications with QoS services, IEEE developed 802.11e for 802.11-based WLANs.

WLAN QoS features include WMM, bandwidth guaranteeing, and client rate limiting.

WMM protocol

About this task

Wi-Fi Alliance defined the Wi-Fi Multimedia (WMM) standard to allow QoS provision devices of different vendors to interoperate. WMM enables a WLAN to provide QoS services, so that audio and video applications can have better performance in WLANs.

The Distributed Coordination Function (DCF) in 802.11 requires APs and clients to use the carrier sense multiple access with collision avoidance (CSMA/CA) access mechanism. APs or clients listen to the channel before they hold the channel for data transmission. When the specified idle duration of the channel times out, APs or clients randomly select a backoff slot within the contention window to perform backoff. The device that finishes backoff first gets the channel. With 802.11, all devices have the same idle duration and contention window. Therefore, they are equal when contending for a channel.

To provide QoS services, WMM divides data traffic into four ACs that have different priorities. Traffic in an AC with a high priority has a better chance to use the channel.

Terminology

·     Enhanced distributed channel access—EDCA is a channel contention mechanism defined by WMM to preferentially transmit packets with high priority and allocate more bandwidth to such packets.

·     Access category—WMM defines the following ACs: AC-VO for voice traffic, AC-VI for video traffic, AC-BE for best effort traffic, and AC-BK for background traffic. The priorities of the four ACs are in descending order.

·     Unscheduled automatic power save delivery—U-APSD is a power saving method defined by WMM to save client power.

EDCA parameters

·     Arbitration inter-frame spacing number—In 802.11-based WLAN, each client has the same idle duration (DIFS), but WMM defines an idle duration for each AC. The idle duration increases as the AIFSN increases.

·     Exponent form of CWmin/Exponent form of CWmax—ECWmin/ECWmax determines the backoff slots, which increase as the two values increase.

·     Transmission opportunity limit—TXOP limit specifies the maximum time that a client can hold the channel after a successful contention. A larger value represents a longer time. If the value is 0, a client can send only one packet each time it holds the channel.

Figure 1 EDCA parameters

U-APSD power-save mechanism

U-APSD enables clients in sleep mode to wake up and receive the specified number of packets only after receiving a trigger packet. U-APSD improves the 802.11 APSD power saving mechanism.

U-APSD is automatically enabled after you enable WMM.

ACK policy

WMM defines the following ACK policies:

·     Normal ACK—The recipient acknowledges each received unicast packet.

·     No ACK—The recipient does not acknowledge received packets during wireless packet exchange. This policy improves the transmission efficiency in an environment where communication quality is strong and interference is weak. If communication quality deteriorates, this policy might increase the packet loss rate. For A-MPDU packets sent by 802.11n clients, the No ACK policy does not take effect.

Bandwidth guaranteeing

This feature provides the following functions:

·     Ensures that traffic from all BSSs can pass through freely when the network is not congested.

·     Ensures that each BSS can get the guaranteed bandwidth when the network is congested.

This feature improves bandwidth efficiency and maintains fair use of bandwidth among WLAN services. For example, you assign SSID1, SSID2, and SSID3 25%, 25%, and 50% of the total bandwidth. When the network is not congested, SSID1 can use all idle bandwidth in addition to its guaranteed bandwidth. When the network is congested, SSID1 is guaranteed with 25% of the bandwidth.

This feature applies only to AP-to-client traffic.

Client rate limiting

This feature prevents aggressive use of bandwidth by one client and ensures fair use of bandwidth among clients associated with the same AP.

You can configure either of the following modes for client rate limiting:

·     Dynamic mode—Sets the total bandwidth shared by all clients. The rate limit for each client is the total rate divided by the number of online clients. For example, if the total rate is 10 Mbps and five clients are online, the rate limit for each client is 2 Mbps.

·     Static mode—Sets the bandwidth that can be used by each client. When the rate limit multiplied by the number of associated clients exceeds the available bandwidth provided by the AP, the clients might not get the set bandwidth.

Protocols and standards

·     802.11e-2005, Amendment 8: Medium Access Control (MAC) Quality of Service Enhancements, IEEE Computer Society, 2005

·     Wi-Fi, WMM Specification version 1.1, Wi-Fi Alliance, 2005

Restrictions and guidelines: WLAN QoS configuration

You can configure APs by using the following methods:

·     Configure APs one by one in AP view.

·     Assign APs to an AP group and configure the AP group in AP group view.

·     Configure all APs in global configuration view.

For an AP, the settings made in these views for the same parameter take effect in descending order of AP view, AP group view, and global configuration view.

Configuring WMM

WMM tasks at a glance

To configure WMM, perform the following tasks:

1.     Enabling WMM

2.     (Optional.) Choose one of the following tasks:

¡     Enabling auto adjustment of EDCA parameters

¡     Setting EDCA parameters

3.     (Optional.) Setting EDCA parameters of AC-BE or AC-BK queues for clients

4.     (Optional.) Setting EDCA parameters of AC-VI or AC-VO queues for clients

5.     (Optional.) Configuring a port to trust packet priority for priority mapping

6.     (Optional.) Enabling U-APSD

Enabling WMM

About this task

All 802.11n, 802.11ac, and 802.11ax clients must support WMM. For 802.11n, 802.11ac, or 802.11ax clients to communicate with the associated AP, enable WMM when the radio operates in 802.11an, 802.11gn, 802.11ac, or 802.11ax mode.

Procedure

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Enable WMM.

wmm enable

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, WMM is enabled.

Enabling auto adjustment of EDCA parameters

About this task

This feature enables the system to automatically adjust EDCA parameters for the AC-BE and AC-BK queues based on the number of online clients.

Restrictions and guidelines

As a best practice, enable this feature when a large number of clients exist.

This feature does not take effect on a radio if the radio uses manually specified EDCA parameters instead of default parameters.

Procedure

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Enable auto adjustment of EDCA parameters.

edca auto enable

By default:

¡     In radio view, the AP uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, auto adjustment of EDCA parameters is enabled.

Setting EDCA parameters

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Set EDCA parameters.

edca radio { ac-be | ac-bk | ac-vi | ac-vo } { ack-policy { noack | normalack } | aifsn aifsn-value | ecw ecwmin ecwmin-value ecwmax ecwmax-value | txoplimit txoplimit-value } *

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, the values for EDCA parameters are shown in Table 1.

Table 1 Default EDCA parameter values

AC

AIFSN

ECWmin

ECWmax

TXOP Limit

AC-BK

7

4

10

0

AC-BE

3

4

6

0

AC-VI

1

3

4

94

AC-VO

1

2

3

47

Setting EDCA parameters of AC-BE or AC-BK queues for clients

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Set EDCA parameters of AC-BE or AC-BK queues for clients.

edca client { ac-be | ac-bk } { aifsn aifsn-value | ecw ecwmin ecwmin-value ecwmax ecwmax-value | txoplimit txoplimit-value } *

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, the values for EDCA parameters of AC-BE or AC-BK queues are shown in Table 2.

Table 2 Default EDCA parameter values of AC-BE or AC-BK queues for clients

AC

AIFSN

ECWmin

ECWmax

TXOP Limit

AC-BK

7

4

10

0

AC-BE

3

4

10

0

Setting EDCA parameters of AC-VI or AC-VO queues for clients

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Set EDCA parameters of AC-VI or AC-VO queues for clients.

edca client { ac-vi | ac-vo } { aifsn aifsn-value | ecw ecwmin ecwmin-value ecwmax ecwmax-value | txoplimit txoplimit-value } *

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, the values for EDCA parameters of AC-VI or AC-VO queues are shown in Table 3.

Table 3 Default EDCA parameter values of AC-VI or AC-VO queues for clients

AC

AIFSN

ECWmin

ECWmax

TXOP Limit

AC-VI

2

3

4

94

AC-VO

2

2

3

47

Configuring a port to trust packet priority for priority mapping

About this task

When the packet trust mode is disabled, an AP assigns the port priority to all packets for the service template.

Restrictions and guidelines

This feature takes effect only on uplink packets.

The port priority setting does not take effect if the trusted packet priority type is configured.

Procedure

1.     Enter system view.

system-view

2.     Enter service template view.

wlan service-template service-template-name

3.     Configure the trusted packet priority type.

qos trust { dot11e | dscp }

By default, the port priority is trusted.

4.     Set the port priority.

qos priority priority

By default, the port priority is 0.

Enabling U-APSD

Restrictions and guidelines

As a best practice, enable this feature to improve the power-save capability of clients if the clients support unscheduled automatic power-save delivery (U-APSD).

This feature is configurable when the service template is disabled.

Procedure

1.     Enter system view.

system-view

2.     Enter service template view.

wlan service-template service-template-name

3.     Enable U-APSD.

u-apsd enable

By default, U-APSD is enabled.

Configuring bandwidth guaranteeing

1.     Enter system view.

system-view

2.     Set the maximum bandwidth for the specified radio mode.

wlan max-bandwidth { dot11a | dot11ac | dot11an | dot11b | dot11g | dot11gac | dot11gn | dot11ax | dot11gax } bandwidth

The following default settings apply:

¡     30000 Kbps for dot11a and dot11g.

¡     250000 Kbps for dot11an, dot11gn, dot11gac, and dot11gax.

¡     500000 Kbps for dot11ac and dot11ax.

¡     7000 Kbps for dot11b.

3.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

4.     Enter radio view.

radio radio-id

5.     Configure bandwidth guaranteeing.

bandwidth-guarantee { disable | enable }

By default:

¡     In radio view, if the service template setting in AP group view is used, a radio uses the configuration in an AP group's radio view. If a service template is manually bound to the radio, bandwidth guaranteeing is disabled.

¡     In an AP group's radio view, bandwidth guaranteeing is disabled.

6.     Set a guaranteed bandwidth percentage for the specified service template.

bandwidth-guarantee service-template service-template-name percent percent

By default:

¡     In radio view, if the service template setting in AP group view is used, a radio uses the configuration in an AP group's radio view. If a service template is manually bound to the radio, no guaranteed bandwidth percentage is set for the service template.

¡     In an AP group's radio view, no guaranteed bandwidth percentage is set for a service template.

Configuring client rate limiting

About client rate limiting

By rate limit method, you can configure service-template-based, radio-based, or client-type-based client rate limiting. By rate limit mode, you can configure the dynamic or static mode for client rate limiting.

If more than one method and mode are configured, all settings take effect. The rate for a client will be limited to the minimum value among all the client rate limiting settings.

Restrictions and guidelines

Service-template-based client rate limiting takes effect on all clients associated with the same service template.

Radio-based client rate limiting takes effect on all clients associated with the same radio.

Client-type-based client rate limiting takes effect on all clients of the specified protocol.

Configuring service-template-based client rate limiting

1.     Enter system view.

system-view

2.     Enter service template view.

wlan service-template service-template-name

3.     Configure service-template-based client rate limiting.

client-rate-limit { inbound | outbound } mode { dynamic cir cir [ min min-cir ] [ max max-cir ] | static cir cir } [ cbs cbs ]

By default, service-template-based client rate limiting is not configured.

Configuring radio-based client rate limiting

1.     Enter system view.

system-view

2.     Enter AP view or an AP group's AP model view.

¡     Enter AP view.

wlan ap ap-name

¡     Execute the following commands in sequence to enter an AP group's AP model view:

wlan ap-group group-name

ap-model ap-model

3.     Enter radio view.

radio radio-id

4.     Enable or disable radio-based client rate limiting.

client-rate-limit { disable | enable }

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, radio-based client rate limiting is disabled.

5.     Configure radio-based client rate limiting.

client-rate-limit { inbound | outbound } mode { dynamic cir cir [ min min-cir ] [ max max-cir ] | static cir cir }

By default:

¡     In radio view, a radio uses the configuration in an AP group's radio view.

¡     In an AP group's radio view, radio-based client rate limiting is not configured.

Configuring client-type-based client rate limiting

1.     Enter system view.

system-view

2.     Configure client-type-based client rate limiting.

wlan client-rate-limit { dot11a | dot11ac | dot11an | dot11b | dot11g | dot11gac | dot11gn | dot11ax | dot11gax } { inbound | outbound } cir cir [ cbs cbs ]

By default, client-type-based client rate limiting is not configured.

Display and maintenance commands for WMM

Execute display commands in any view and reset commands in user view.

 

Task

Command

Display WMM statistics for clients.

display wlan wmm client [ ap ap-name | mac-address mac-address ]

Display WMM statistics for radios.

display wlan wmm radio [ ap ap-name ]

Clear WMM statistics for clients.

reset wlan wmm client [ ap ap-name | mac-address mac-address ]

Clear WMM statistics for radios.

reset wlan wmm radio [ ap ap-name ]

WLAN QoS configuration examples

Example: Configuring basic WMM

Network configuration

As shown in Figure 2, enable WMM on the AC so that the AP and the client can prioritize the traffic.

Figure 2 Network diagram

Procedure

# Create a service template named market, set the SSID to market, and enable the service template.

<AC> system-view

[AC] wlan service-template market

[AC-wlan-st-market] ssid market

[AC-wlan-st-market] service-template enable

[AC-wlan-st-market] quit

# Create a manual AP named ap1, and specify the AP model and serial ID.

[AC] wlan ap ap1 model WA6330

[AC-wlan-ap-ap1] serial-id 219801A28N819CE0002T

# Enable WMM, bind service template market to radio 1, and enable radio 1.

[AC-wlan-ap-ap1] radio 1

[AC-wlan-ap-ap1-radio-1] wmm enable

[AC-wlan-ap-ap1-radio-1] service-template market

[AC-wlan-ap-ap1-radio-1] radio enable

[AC-wlan-ap-ap1-radio-1] quit

[AC-wlan-ap-ap1] quit

Verifying the configuration

# Display WMM statistics for radios.

[AC] display wlan wmm radio

 AP ID : 1   AP Name : ap1

 

 Radio : 1

 Client EDCA updates : 0

 QoS mode     : WMM

 WMM status : Enabled

 Radio max AIFSN          : 15            Radio max ECWmin : 10

 Radio max TXOPLimit      : 32767         Radio max ECWmax : 10

 CAC information

 Clients accepted                      : 0

  Voice                                : 0

  Video                                : 0

 Total request medium time(μs)          : 0

  Voice(μs)                            : 0

  Video(μs)                            : 0

Calls rejected due to insufficient resources    : 0

Calls rejected due to invalid parameters        : 0

Calls rejected due to invalid medium time        : 0

Calls rejected due to invalid delay bound        : 0

Radio : 2                                                                     

 Client EDCA updates : 0                                                       

 QoS mode   : WMM                                                              

 WMM status : Enabled                                                          

 Radio max AIFSN     : 15         Radio max ECWmin : 10                        

 Radio max TXOPLimit : 32767      Radio max ECWmax : 10                        

 CAC information                                                               

 Clients accepted                : 0                                           

  Voice                          : 0                                           

  Video                          : 0                                           

 Total request medium time(μs)    : 0                                           

  Voice(μs)                      : 0                                          

  Video(μs)                      : 0                                          

 Calls rejected due to insufficient resources  : 0                             

 Calls rejected due to invalid parameters      : 0                             

 Calls rejected due to invalid medium time      : 0                             

 Calls rejected due to invalid delay bound      : 0                            

Example: Configuring traffic differentiation

Network configuration

As shown in Figure 3, configure priority mapping on the AC to add 802.11 packets from the client to the AC-VO queue.

Figure 3 Network diagram

Procedure

# Create a service template named market, and set the SSID to market.

<AC> system-view

[AC] wlan service-template market

[AC-wlan-st-market] ssid market

# Configure priority mapping, and enable the service template.

[AC-wlan-st-market] qos priority 7

[AC-wlan-st-market] service-template enable

[AC-wlan-st-market] quit

# Create a manual AP named ap1, and specify the AP model and serial ID.

[AC] wlan ap ap1 model WA6330

[AC-wlan-ap-ap1] serial-id 219801A28N819CE0002T

# Enable WMM.

[AC-wlan-ap-ap1] radio 1

[AC-wlan-ap-ap1-radio-1] wmm enable

# Bind service template market to radio 1, and enable radio 1.

[AC-wlan-ap-ap1-radio-1] service-template market

[AC-wlan-ap-ap1-radio-1] radio enable

[AC-wlan-ap-ap1-radio-1] quit

[AC-wlan-ap-ap1] quit

Verifying the configuration

# Perform the following tasks on the AC:

·     Execute the terminal monitor command to enable monitoring of logs on the current terminal.

·     Execute the terminal debugging command to enable display of debugging information on the current terminal.

·     Execute the debugging wlan wmm all command to enable all the WMM debugging features.

# Ping the client and the switch on the AP to verify that the network connections are correct.

# Verify that the priority of packets from the client to the AP is changed to 7 and the priority of packets from the AP to the client is not changed.

Example: Configuring bandwidth guaranteeing

Network configuration

As shown in Figure 4, Clients 1, 2, and 3 access the network through SSIDs research, office, and entertain, respectively.

For the network to operate correctly, guarantee 20% of the bandwidth for SSID office, 80% for research, and none for entertain.

Figure 4 Network diagram

Procedure

# Create a service template named office, set the SSID to office, and enable the service template.

<AC> system-view

[AC] wlan service-template office

[AC-wlan-st-office] ssid office

[AC-wlan-st-office] service-template enable

[AC-wlan-st-office] quit

# Create a service template named research, set the SSID to research, and enable the service template.

[AC] wlan service-template research

[AC-wlan-st-research] ssid research

[AC-wlan-st-research] service-template enable

[AC-wlan-st-research] quit

# Create a service template named entertain, set the SSID to entertain, and enable the service template.

[AC] wlan service-template entertain

[AC-wlan-st-entertain] ssid entertain

[AC-wlan-st-entertain] service-template enable

[AC-wlan-st-entertain] quit

# Set the maximum bandwidth to 10000 Kbps for the 802.11ac radio.

[AC] wlan max-bandwidth dot11ac 10000

# Create a manual AP named ap1, and specify the AP model and serial ID.

[AC] wlan ap ap1 model WA6330

[AC-wlan-ap-ap1] serial-id 210235A1BSC123000050

# Set the radio mode to dot11ac for radio 1, bind the service templates office, research, and entertain to radio 1, and enable radio 1.

[AC-wlan-ap-ap1] radio 1

[AC-wlan-ap-ap1-radio-1] type dot11ac

[AC-wlan-ap-ap1-radio-1] service-template office

[AC-wlan-ap-ap1-radio-1] service-template research

[AC-wlan-ap-ap1-radio-1] service-template entertain

[AC-wlan-ap-ap1-radio-1] radio enable

# Enable bandwidth guaranteeing.

[AC-wlan-ap-ap1-radio-1] bandwidth-guarantee enable

# Set the guaranteed bandwidth percentage to 20% for the service template office and 80% for service template research.

[AC-wlan-ap-ap1-radio-1] bandwidth-guarantee service-template office percent 20

[AC-wlan-ap-ap1-radio-1] bandwidth-guarantee service-template research percent 80

[AC-wlan-ap-ap1-radio-1] return

Verifying the configuration

# Verify that the rate of traffic from the AP to any client is not limited when the total traffic rate is lower than 10000 Kbps.

# Send traffic from the AP to Client 1 and Client 2 at a rate of over 2000 Kbps and over 8000 Kbps, respectively, to verify the following items:

·     The AP sends traffic to Client 1 at 2000 Kbps.

·     The AP sends traffic to Client 2 at 8000 Kbps.

·     The rate of traffic from the AP to Client 3 is limited.

Example: Configuring service-template-based client rate limiting

Network configuration

As shown in Figure 5, the AC is in the same network as the AP. Perform the following tasks on the AC:

·     Configure static mode client rate limiting to limit the rate of incoming client traffic.

·     Configure dynamic mode client rate limiting to limit the rate of outgoing client traffic.

Figure 5 Network diagram

Procedure

# Create a service template named service, and set its SSID to service.

<AC> system-view

[AC] wlan service-template service

[AC-wlan-st-service] ssid service

# Limit the rate of incoming traffic to 8000 Kbps in static mode, and limit the rate of outgoing traffic to 8000 Kbps in dynamic mode.

[AC-wlan-st-service] client-rate-limit inbound mode static cir 8000

[AC-wlan-st-service] client-rate-limit outbound mode dynamic cir 8000

[AC-wlan-st-service] service-template enable

[AC-wlan-st-service] quit

# Create a manual AP named ap1, and specify the AP model and serial ID.

[AC] wlan ap ap1 model WA6330

[AC-wlan-ap-ap1] serial-id 210235A1BSC123000050

# Bind service template service to radio 1, and enable radio 1.

[AC-wlan-ap-ap1] radio 1

[AC-wlan-ap-ap1-radio-1] service-template service

[AC-wlan-ap-ap1-radio-1] radio enable

[AC-wlan-ap-ap1-radio-1] return

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网