Example for Configuring WMM and Priority Mapping
Networking Requirements
Enterprise users can access the network through WLANs, which is the basic requirement of mobile office. Furthermore, users' services are not affected during roaming in the coverage area.
After accessing the network, users encounter poor experience in voice and video services. The administrator wants to preferentially ensure forwarding of voice and video service traffic to improve user experience.
Data Planning
Item |
Data |
---|---|
AP group |
|
SSID profile |
|
VAP profile |
|
2G radio profile |
|
5G radio profile |
|
Traffic profile |
|
Configuration Roadmap
Configure the WMM function so that network bandwidth is preferentially allocated to voice and video services at the wireless side.
Configure priority mapping to ensure a higher priority of voice and video services so that network bandwidth is preferentially allocated to these services.
Configuration Notes
- No ACK mechanism is provided for multicast packet transmission on air interfaces. In addition, wireless links are unstable. To ensure stable transmission of multicast packets, they are usually sent at low rates. If a large number of such multicast packets are sent from the network side, the air interfaces may be congested. You are advised to configure multicast packet suppression to reduce impact of a large number of low-rate multicast packets on the wireless network. Exercise caution when configuring the rate limit; otherwise, the multicast services may be affected.
- In direct forwarding mode, you are advised to configure multicast packet suppression on switch interfaces connected to APs.
- In tunnel forwarding mode, you are advised to configure multicast packet suppression in traffic profiles of the AC.
Configure port isolation on the interfaces of the device directly connected to APs. If port isolation is not configured and direct forwarding is used, a large number of unnecessary broadcast packets may be generated in the VLAN, blocking the network and degrading user experience.
In tunnel forwarding mode, the management VLAN and service VLAN cannot be the same. Only packets from the management VLAN are transmitted between the AC and APs. Packets from the service VLAN are not allowed between the AC and APs.
Procedure
- Check the basic configuration of the WLAN.
Check Item
Command
Data
Check the AP group to which an AP belongs.
display ap all
AP group: ap-group1
Check all profiles referenced by the AP group.
display ap-group name ap-group1
- VAP profile: wlan-net
- 2G radio profile: wlan-radio2g
- 5G radio profile: wlan-radio5g
Check all profiles referenced by the VAP profile.
display vap-profile name wlan-net
SSID profile: wlan-net
- If an AP has different configurations from that in the AP group, the configuration on the AP takes precedence.
- A new profile takes effect only after being bound to an AP or an AP group.
- Configure the WMM function.# Enter 2G radio profile wlan-radio2g and set EDCA parameters on APs to enable voice and video services to preferentially use network bandwidth.
<HUAWEI> system-view [HUAWEI] sysname AC [AC] wlan [AC-wlan-view] radio-2g-profile name wlan-radio2g [AC-wlan-radio-2g-prof-wlan-radio2g] wmm edca-ap ac-vo aifsn 2 ecw ecwmin 2 ecwmax 4 txoplimit 0 ack-policy normal Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-2g-prof-wlan-radio2g] wmm edca-ap ac-vi aifsn 5 ecw ecwmin 3 ecwmax 5 txoplimit 0 ack-policy normal Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-2g-prof-wlan-radio2g] wmm edca-ap ac-be aifsn 12 ecw ecwmin 6 ecwmax 10 txoplimit 0 ack-policy normal Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-2g-prof-wlan-radio2g] wmm edca-ap ac-bk aifsn 12 ecw ecwmin 8 ecwmax 10 txoplimit 0 ack-policy normal Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-radio-2g-prof-wlan-radio2g] quit
# Enter 5G radio profile wlan-radio5g and set EDCA parameters on APs to enable voice and video services to preferentially use network bandwidth. The configuration is similar to that in the 2G radio profile and is not mentioned here.
# Enter SSID profile wlan-net and set EDCA parameters on STAs to enable voice and video services to preferentially use network bandwidth.[AC-wlan-view] ssid-profile name wlan-net [AC-wlan-ssid-prof-wlan-net] wmm edca-client ac-vo aifsn 2 ecw ecwmin 2 ecwmax 4 txoplimit 0 [AC-wlan-ssid-prof-wlan-net] wmm edca-client ac-vi aifsn 5 ecw ecwmin 3 ecwmax 5 txoplimit 0 [AC-wlan-ssid-prof-wlan-net] wmm edca-client ac-be aifsn 12 ecw ecwmin 6 ecwmax 10 txoplimit 0 [AC-wlan-ssid-prof-wlan-net] wmm edca-client ac-bk aifsn 12 ecw ecwmin 8 ecwmax 10 txoplimit 0 [AC-wlan-ssid-prof-wlan-net] quit
- Configuring priority mapping.
This example requires that voice and video packets have the highest priority so that these packets are preferentially transmitted. By default, the uplink and downlink mapping modes on the air interface are 802.11e and DSCP, respectively. The uplink and downlink priority mapping on the air interface can ensure that voice and video packets have the highest tunnel DSCP priority. Therefore, you do not need to modify default priority mapping.
To change the default priority mapping, for example, to enable video packets with a higher priority than voice packets, you can refer to this step.
By default, the user priority of voice packets is set to 6 or 7, and that of the video packets is set to 4 or 5. In this example, the tunnel DSCP priority of video packets is set to 48 and 56, and that of voice packets is set to 32 and 40. Video packets with a higher priority are preferentially transmitted.
# Create traffic profile wlan-traffic and configure priority mapping in the profile.[AC-wlan-view] traffic-profile name wlan-traffic [AC-wlan-traffic-prof-wlan-traffic] priority-map downstream trust dscp [AC-wlan-traffic-prof-wlan-traffic] priority-map downstream dscp 48 to 55 dot11e 4 [AC-wlan-traffic-prof-wlan-traffic] priority-map downstream dscp 56 to 63 dot11e 5 [AC-wlan-traffic-prof-wlan-traffic] priority-map downstream dscp 32 to 39 dot11e 6 [AC-wlan-traffic-prof-wlan-traffic] priority-map downstream dscp 40 to 47 dot11e 7 [AC-wlan-traffic-prof-wlan-traffic] priority-map tunnel-upstream trust dot11e [AC-wlan-traffic-prof-wlan-traffic] priority-map tunnel-upstream dot11e 6 dscp 32 [AC-wlan-traffic-prof-wlan-traffic] priority-map tunnel-upstream dot11e 7 dscp 40 [AC-wlan-traffic-prof-wlan-traffic] priority-map tunnel-upstream dot11e 4 dscp 48 [AC-wlan-traffic-prof-wlan-traffic] priority-map tunnel-upstream dot11e 5 dscp 56 [AC-wlan-traffic-prof-wlan-traffic] quit
# Bind traffic profile wlan-traffic to VAP profile wlan-net.[AC-wlan-view] vap-profile name wlan-net [AC-wlan-vap-prof-wlan-net] traffic-profile wlan-traffic Warning: This action may cause service interruption. Continue?[Y/N]y [AC-wlan-vap-prof-wlan-net] quit
- Verify the configuration.
Run the display radio-2g-profile name wlan-radio2g command on the AC to check the EDCA settings on APs in the 2G radio profile. The EDCA parameter priorities of AC_VI and AC_VO packets are higher than those of AC_BE and AC_BK packets. Therefore, voice and video services are enabled to preferentially use wireless channels. The configuration in the 5G radio profile is similar to that in the 2G radio profile and is not mentioned here.
[AC-wlan-view] display radio-2g-profile name wlan-radio2g ------------------------------------------------------------ ... ------------------------------------------------------------ AP EDCA parameters: ------------------------------------------------------------ ECWmax ECWmin AIFSN TXOPLimit(32us) Ack-Policy AC_VO 4 2 2 0 normal AC_VI 5 3 5 0 normal AC_BE 10 6 12 0 normal AC_BK 10 8 12 0 normal ------------------------------------------------------------
Run the display ssid-profile name wlan-net command on the AC to check the EDCA settings on STAs in the SSID profile. The EDCA parameter priorities of AC_VI and AC_VO packets are higher than those of AC_BE and AC_BK packets. Therefore, voice and video services are enabled to preferentially use wireless channels.
[AC-wlan-view] display ssid-profile name wlan-net ------------------------------------------------------------------- ... ------------------------------------------------------------------- WMM EDCA client parameters: ------------------------------------------------------------------- ECWmax ECWmin AIFSN TXOPLimit(32us) AC_VO 4 2 2 0 AC_VI 5 3 5 0 AC_BE 10 6 12 0 AC_BK 10 8 12 0 -------------------------------------------------------------------
Run the display traffic-profile name wlan-traffic command on the AC to check the priority mapping configuration in the traffic profile. The DSCP priorities of AC_VI and AC_VO packets are higher than those of AC_BE and AC_BK packets. Therefore, voice and video services will be preferentially transmitted.
[AC-wlan-view] display traffic-profile name wlan-traffic ---------------------------------------------------- ... CAPWAP priority upstream map mode: 802.11e map DSCP 0 map 0 1 map 8 2 map 16 3 map 24 6 map 32 7 map 40 4 map 48 5 map 56 CAPWAP priority upstream map mode: 802.11e map 802.1p 0 map 0 1 map 1 2 map 2 3 map 3 4 map 4 5 map 5 6 map 6 7 map 7 WMM priority downstream map mode: DSCP map 802.11e 0-7 map 0 8-15 map 1 16-23 map 2 24-31 map 3 48-55 map 4 56-63 map 5 32-39 map 6 40-47 map 7 WMM priority downstream map mode: 802.1p map 802.11e 0 map 0 1 map 1 2 map 2 3 map 3 4 map 4 5 map 5 6 map 6 7 map 7 ......
Configuration Files
AC configuration file
# sysname AC # wlan traffic-profile name wlan-traffic priority-map downstream dscp 48 to 55 dot11e 4 priority-map downstream dscp 56 to 63 dot11e 5 priority-map downstream dscp 32 to 39 dot11e 6 priority-map downstream dscp 40 to 47 dot11e 7 priority-map tunnel-upstream dot11e 6 dscp 32 priority-map tunnel-upstream dot11e 7 dscp 40 priority-map tunnel-upstream dot11e 4 dscp 48 priority-map tunnel-upstream dot11e 5 dscp 56 ssid-profile name wlan-net wmm edca-client ac-be aifsn 12 ecw ecwmin 6 ecwmax 10 txoplimit 0 wmm edca-client ac-bk aifsn 12 ecw ecwmin 8 ecwmax 10 txoplimit 0 wmm edca-client ac-vi aifsn 5 ecw ecwmin 3 ecwmax 5 txoplimit 0 wmm edca-client ac-vo aifsn 2 ecw ecwmin 2 ecwmax 4 txoplimit 0 vap-profile name wlan-net ssid-profile wlan-net traffic-profile wlan-traffic radio-2g-profile name wlan-radio2g wmm edca-ap ac-be aifsn 12 ecw ecwmin 6 ecwmax 10 txoplimit 0 ack-policy normal wmm edca-ap ac-bk aifsn 12 ecw ecwmin 8 ecwmax 10 txoplimit 0 ack-policy normal wmm edca-ap ac-vi aifsn 5 ecw ecwmin 3 ecwmax 5 txoplimit 0 ack-policy normal wmm edca-ap ac-vo aifsn 2 ecw ecwmin 2 ecwmax 4 txoplimit 0 ack-policy normal radio-5g-profile name wlan-radio5g wmm edca-ap ac-be aifsn 12 ecw ecwmin 6 ecwmax 10 txoplimit 0 ack-policy normal wmm edca-ap ac-bk aifsn 12 ecw ecwmin 8 ecwmax 10 txoplimit 0 ack-policy normal wmm edca-ap ac-vi aifsn 5 ecw ecwmin 3 ecwmax 5 txoplimit 0 ack-policy normal wmm edca-ap ac-vo aifsn 2 ecw ecwmin 2 ecwmax 4 txoplimit 0 ack-policy normal ap-group name ap-group1 radio 0 radio-2g-profile wlan-radio2g vap-profile wlan-net wlan 1 radio 1 radio-5g-profile wlan-radio5g vap-profile wlan-net wlan 1 ap-id 0 type-id 35 ap-mac 00e0-fc76-e360 ap-sn 210235554710CB000042 ap-name area_1 ap-group ap-group1 # return