Example for Configuring a WLAN QoS Policy
Networking Requirements
As shown in Figure 5-8, STA1 and STA2 connect to the Internet through a router, and STA2 is a VIP customer. The router functions as a Fat AP and provides voice, video, and data services within the AP coverage. Users expect that requirements on video services be preferentially met and VIP customers have the highest priority to use the resources when the WLAN bandwidth is insufficient.
Configuration Roadmap
The configuration roadmap is as follows:
- Configure basic WLAN services to ensure that users can access the WLAN.
- Configure AP parameters to ensure that video services take precedence over voice and data services and network requirements of VIP customers are preferentially met.
Procedure
- Configure basic AP attributes.
# Configure the country code for the AP.
<Huawei> system-view [Huawei] wlan global country-code cn
# Configure VLANIF interfaces, assign IP addresses to them for Layer 3 packet forwarding, and enable the DHCP server function on them. Configure an IP address pool on VLANIF 101 to assign an IP address to STA1, and configure an IP address pool on VLANIF 102 to assign an IP address to STA2.
[Huawei] dhcp enable [Huawei] vlan batch 101 102 [Huawei] interface vlanif 101 [Huawei-Vlanif101] ip address 192.168.10.1 24 [Huawei-Vlanif101] dhcp select interface [Huawei-Vlanif101] quit [Huawei] interface vlanif 102 [Huawei-Vlanif102] ip address 192.168.11.1 24 [Huawei-Vlanif102] dhcp select interface [Huawei-Vlanif102] quit
- Configure a WMM profile and a radio profile for the AP.
Create a WMM profile.
# Create a WMM profile huawei-vip and change the queue priority to enable the AC_VI queue to have a higher priority than the AC_VO queue.
[Huawei] wlan [Huawei-wlan-view] wmm-profile name huawei-vip [Huawei-wlan-wmm-prof-huawei-vip] wmm edca ap ac-vi ecw ecwmin 1 ecwmax 3 aifsn 1 txoplimit 36 ack-policy normal [Huawei-wlan-wmm-prof-huawei-vip] wmm edca client ac-vi ecw ecwmin 1 ecwmax 3 aifsn 1 txoplimit 36 [Huawei-wlan-wmm-prof-huawei-vip] quit
# Create a radio profile and bind the WMM profile to it.
[Huawei-wlan-view] radio-profile name huawei-vip [Huawei-wlan-radio-prof-huawei-vip] wmm-profile name huawei-vip [Huawei-wlan-radio-prof-huawei-vip] quit [Huawei-wlan-view] quit
# Bind radio profile huawei-vip to a radio interface.
[Huawei] interface wlan-radio 0/0/0 [Huawei-Wlan-Radio0/0/0] radio-profile name huawei-vip [Huawei-Wlan-Radio0/0/0] quit
- Configure a WLAN-BSS interface, security profile, traffic profile, and service set, and bind the WLAN-BSS interface, security profile, traffic profile to the service set.
# Configure a WLAN-BSS interface so that radio packets sent from users can be sent to the WLAN service processing module after reaching the AP.
[Huawei] interface Wlan-Bss 1 [Huawei-Wlan-Bss1] port hybrid tagged vlan 101 [Huawei-Wlan-Bss1] quit [Huawei] interface Wlan-Bss 2 [Huawei-Wlan-Bss2] port hybrid tagged vlan 102 [Huawei-Wlan-Bss2] quit
# Configure a security profile huawei and set non-authentication and non-encryption in the security policy.
[Huawei] wlan [Huawei-wlan-view] security-profile name huawei [Huawei-wlan-sec-prof-huawei] quit
# Create a traffic profile named huawei and limit the VAP upstream rate to 1024 kbit/s and STA upstream rate to 512 kbit/s.
[Huawei-wlan-view] traffic-profile name huawei [Huawei-wlan-traffic-prof-huawei] rate-limit client up 512 [Huawei-wlan-traffic-prof-huawei] rate-limit vap up 1024 [Huawei-wlan-traffic-prof-huawei] quit
# Create a traffic profile huawei-vip and limit the VAP upstream rate to 2048 kbit/s and STA upstream rate to 1024 kbit/s.
[Huawei-wlan-view] traffic-profile name huawei-vip [Huawei-wlan-traffic-prof-huawei-vip] rate-limit client up 1024 [Huawei-wlan-traffic-prof-huawei-vip] rate-limit vap up 2048 [Huawei-wlan-traffic-prof-huawei-vip] quit
- Configure service sets for the AP.
- # Create service set huawei-1, specify SSID huawei-1 for it, and bind traffic profile huawei, security profile huawei and wlan-bss interface wlan-bss 1 to it.
[Huawei-wlan-view] service-set name huawei-1 [Huawei-wlan-service-set-huawei-1] ssid huawei-1 [Huawei-wlan-service-set-huawei-1] traffic-profile name huawei [Huawei-wlan-service-set-huawei-1] security-profile name huawei [Huawei-wlan-service-set-huawei-1] wlan-bss 1 [Huawei-wlan-service-set-huawei-1] quit
- # Create service set huawei-2, specify SSID huawei-2 for it, and bind traffic profile huawei-vip, security profile huawei and wlan-bss interface wlan-bss 2 to it.
[Huawei-wlan-view] service-set name huawei-2 [Huawei-wlan-service-set-huawei-2] ssid huawei-2 [Huawei-wlan-service-set-huawei-2] traffic-profile name huawei-vip [Huawei-wlan-service-set-huawei-2] security-profile name huawei [Huawei-wlan-service-set-huawei-2] wlan-bss 2 [Huawei-wlan-service-set-huawei-2] quit
- # Create service set huawei-1, specify SSID huawei-1 for it, and bind traffic profile huawei, security profile huawei and wlan-bss interface wlan-bss 1 to it.
- Configure a VAP.
# Bind the radio profile and service sets huawei-1 and huawei-2 to a radio interface on the AP. Then VAP information is automatically created on the Router.
[Huawei] interface Wlan-Radio 0/0/0 [Huawei-Wlan-Radio0/0/0] service-set name huawei-1 [Huawei-Wlan-Radio0/0/0] service-set name huawei-2 [Huawei-Wlan-Radio0/0/0] quit
- Verify the configuration.
# Two WLANs with SSIDs huawei-1 and huawei-2 are available for STAs connected to the Router. STA 1 and STA2 select WLANs with SSIDs huawei-1 and huawei-2. When the network bandwidth is insufficient, STA2 can accesses the network but STA1 cannot or accesses the WLAN at a low speed.
Configuration Files
Configuration file of the Router
# vlan batch 101 to 102 # dhcp enable # interface Vlanif101 ip address 192.168.10.1 255.255.255.0 dhcp select interface # interface Vlanif102 ip address 192.168.11.1 255.255.255.0 dhcp select interface # interface Wlan-Bss1 port hybrid tagged vlan 101 # interface Wlan-Bss2 port hybrid tagged vlan 102 # wlan wmm-profile name wmmf id 0 wmm-profile name huawei-vip id 1 wmm edca ap ac-vi aifsn 1 ecw ecwmin 1 ecwmax 1 txoplimit 36 wmm edca client ac-vi aifsn 1 ecw ecwmin 1 ecwmax 3 txoplimit 36 traffic-profile name traf id 0 traffic-profile name huawei id 1 rate-limit client up 512 rate-limit vap up 1024 traffic-profile name huawei-vip id 2 rate-limit client up 1024 rate-limit vap up 2048 security-profile name secf id 0 security-profile name huawei id 1 service-set name huawei-1 id 0 Wlan-Bss 1 ssid huawei-1 traffic-profile id 1 security-profile id 1 service-set name huawei-2 id 1 Wlan-Bss 2 ssid huawei-2 traffic-profile id 2 security-profile id 1 radio-profile name radiof id 0 wmm-profile id 0 radio-profile name huawei-vip id 1 wmm-profile id 1 # interface Wlan-Radio0/0/0 radio-profile id 1 service-set id 0 wlan 1 service-set id 1 wlan 2 # return