小乔 发表于 2023-9-10 15:33:04

华为WLAN配置基于应用协议的Qos策略示例

本帖最后由 小乔 于 2023-9-10 15:34 编辑

配置流程WLAN不同的特性和功能需要在不同类型的模板下进行配置和维护,这些模板统称为WLAN模板,如域管理模板、射频模板、VAP模板、AP系统模板、AP有线口模板、WIDS模板、WDS模板、Mesh模板。当用户在配置WLAN业务功能时,需要在对应功能的WLAN模板中进行参数配置,配置完成后,须将此模板引用到AP组或AP中,配置下发到AP,进而配置的功能在AP上生效。由于模板之间是存在相互引用关系的,因此在用户配置过程中,需要提前了解各个模板之间存在的逻辑关系。模板的逻辑关系和基本配置流程请参见WLAN业务配置流程。

组网需求如图28-41所示,某企业中部署WLAN网络。且数据转发方式为隧道转发。管理员希望在该网络中能够对员工的上网行为进行限制,因此需要部署基于应用协议的Qos策略。已知AP覆盖范围内的有FaceTime、SkypeForBusiness、QQ_VoIP等应用涉及语音、视频和数据业务,用户希望了解各种应用流量的使用情况,以便对网络进行容量规划以及定位网络中存在问题,包括丢弃FaceTime的报文,指定SkypeForBusiness的优先级,对QQ_VoIP进行限速等。图28-41 配置基于应用协议的Qos策略示例组网图
https://download.huawei.com/mdl/image/download?uuid=dbe83246679e4a07acf0bbd027c64468


配置思路
采用如下的思路配置基于应用协议的Qos策略:
[*]配置WLAN基本业务,保证用户能够连接到无线网络。
[*]配置应用可视化功能,包括指定SkypeForBusiness的优先级,丢弃FaceTime的报文和对QQ_VoIP进行限速。
表28-39 数据规划表

配置项数据
DHCP服务器AC作为DHCP服务器为STA和AP分配IP地址
AP的IP地址池10.23.100.2~10.23.100.254/24
STA的IP地址池10.23.101.2~10.23.101.254/24
AC的源接口IP地址VLANIF 100:10.23.100.1/24
AP组
[*]名称:ap-group1
[*]引用模板:VAP模板wlan-vap、域管理模板domain1、SAC模板wlan-sac

域管理模板
[*]名称:domain1
[*]国家码:CN

SSID模板
[*]名称:wlan-ssid
[*]SSID名称:wlan-net

安全模板
[*]名称:wlan-security
[*]安全策略:WPA2+PSK+AES
[*]密码:a1234567

VAP模板
[*]名称:wlan-vap
[*]转发模式:隧道转发
[*]业务VLAN:VLAN101
[*]引用模板:SSID模板wlan-ssid、安全模板wlan-security

SAC模板名称:wlan-sac




配置注意事项
[*]纯组播报文由于协议要求在无线空口没有ACK机制保障,且无线空口链路不稳定,为了纯组播报文能够稳定发送,通常会以低速报文形式发送。如果网络侧有大量异常组播流量涌入,则会造成无线空口拥堵。为了减小大量低速组播报文对无线网络造成的冲击,建议配置组播报文抑制功能。配置前请确认是否有组播业务,如果有,请谨慎配置限速值。

[*]业务数据转发方式采用直接转发时,建议在直连AP的交换机接口上配置组播报文抑制。
[*]业务数据转发方式采用隧道转发时,建议在AC的流量模板下配置组播报文抑制。
配置方法请参见:如何配置组播报文抑制,减小大量低速组播报文对无线网络造成的冲击?
[*]建议在与AP直连的设备接口上配置端口隔离,如果不配置端口隔离,尤其是业务数据转发方式采用直接转发时,可能会在VLAN内形成大量不必要的广播报文,导致网络阻塞,影响用户体验。
[*]隧道转发模式下,管理VLAN和业务VLAN不能配置为同一VLAN,且AP和AC之间只能放通管理VLAN,不能放通业务VLAN。


操作步骤
配置AC,使AP与AC之间能够传输CAPWAP报文
# 配置AC,将接口GE0/0/1加入VLAN100(管理VLAN)。

<HUAWEI> system-view
sysname AC
vlan batch 100 101
interface gigabitethernet 0/0/1
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100
quit
配置AC与上层网络设备互通

根据实际组网情况在AC上行口配置业务VLAN透传,和上行网络设备互通。

# 配置AC上行接口GE0/0/2加入VLAN101(业务VLAN)。

interface gigabitethernet 0/0/2
port link-type trunk
port trunk allow-pass vlan 101
quit
配置AC作为DHCP服务器,为STA和AP分配IP地址
# 配置基于接口地址池的DHCP服务器,其中,VLANIF100接口为AP提供IP地址,VLANIF101为STA提供IP地址。


DNS服务器地址请根据实际需要配置。常用配置方法如下:
接口地址池场景,需要在VLANIF接口视图下执行命令dhcp server dns-list ip-address &<1-8>。
全局地址池场景,需要在IP地址池视图下执行命令dns-list ip-address &<1-8>。
dhcp enable
interface vlanif 100
ip address 10.23.100.1 24
dhcp select interface
quit
interface vlanif 101
ip address 10.23.101.1 24
dhcp select interface
quit
配置AP上线
# 创建AP组,用于将相同配置的AP都加入同一AP组中。

wlan
ap-group name ap-group1
quit
# 创建域管理模板,在域管理模板下配置AC的国家码并在AP组下引用域管理模板。

regulatory-domain-profile name domain1
country-code cn
quit
ap-group name ap-group1
regulatory-domain-profile domain1
Warning: Modifying the country code will clear channel, power and antenna gain configurations of the radio and reset the AP. Continue?:y
quit
quit
# 配置AC的源接口。

capwap source interface vlanif 100
# 在AC上离线导入AP,并将AP加入AP组“ap-group1”中。假设AP的MAC地址为00e0-fc76-e360,并且根据AP的部署位置为AP配置名称,便于从名称上就能够了解AP的部署位置。例如MAC地址为00e0-fc76-e360的AP部署在1号区域,命名此AP为area_1。

ap auth-mode命令缺省情况下为MAC认证,如果之前没有修改其缺省配置,可以不用执行ap auth-mode mac-auth命令。

举例中使用的AP为AP5030DN,具有射频0和射频1两个射频。AP5030DN的射频0为2.4GHz射频,射频1为5GHz射频。

wlan
ap auth-mode mac-auth
ap-id 0 ap-mac 00e0-fc76-e360
ap-name area_1
Warning: This operation may cause AP reset. Continue? :y
ap-group ap-group1
Warning: This operation may cause AP reset. If the country code changes, it will clear channel, power and antenna gain configuration s of the radio, Whether to continue? :y
quit
# 将AP上电后,当执行命令display ap all查看到AP的“State”字段为“nor”时,表示AP正常上线。

display ap all
Total AP information:
nor: normal         
Extrainfo : Extra information
P: insufficient power supply
--------------------------------------------------------------------------------------------------
ID   MAC            Name   Group   IP            Type            State STA Uptime      ExtraInfo
--------------------------------------------------------------------------------------------------
0    00e0-fc76-e360 area_1 ap-group1 10.23.100.254 AP5030DN      nor   0   10S         -
--------------------------------------------------------------------------------------------------
Total: 1
配置WLAN业务参数
# 创建名为“wlan-security”的安全模板,并配置安全策略。

举例中以配置WPA2+PSK+AES的安全策略为例,密码为“a1234567”,实际配置中请根据实际情况,配置符合实际要求的安全策略。

security-profile name wlan-security
security wpa2 psk pass-phrase a1234567 aes
quit
# 创建名为“wlan-ssid”的SSID模板,并配置SSID名称为“wlan-net”。

ssid-profile name wlan-ssid
ssid wlan-net
quit
# 创建名为“wlan-vap”的VAP模板,配置业务数据转发模式、业务VLAN,并且引用安全模板和SSID模板。

vap-profile name wlan-vap
forward-mode tunnel
Warning: This action may cause service interruption. Continue?y
service-vlan vlan-id 101
security-profile wlan-security
ssid-profile wlan-ssid
quit
# 配置AP组引用VAP模板,AP上射频0和射频1都使用VAP模板“wlan-vap”的配置。

ap-group name ap-group1
vap-profile wlan-vap wlan 1 radio 0
vap-profile wlan-vap wlan 1 radio 1
quit
配置AP射频的信道和功率

射频的信道和功率自动调优功能默认开启,如果不关闭此功能则会导致手动配置不生效。举例中AP射频的信道和功率仅为示例,实际配置中请根据AP的国家码和网规结果进行配置。

# 关闭AP射频0的信道和功率自动调优功能,并配置AP射频0的信道和功率。
ap-id 0
radio 0
calibrate auto-channel-select disable
calibrate auto-txpower-select disable
channel 20mhz 6
Warning: This action may cause service interruption. Continue?y
eirp 127
quit
# 关闭AP射频1的信道和功率自动调优功能,并配置AP射频1的信道和功率。
radio 1
calibrate auto-channel-select disable
calibrate auto-txpower-select disable
channel 20mhz 149
Warning: This action may cause service interruption. Continue?y
eirp 127
quit
quit
配置应用可视化
# 使能安全引擎。
quit
defence engine enable

使能安全引擎后,系统自动加载默认特征库。
特征库中包含语音和视频业务优化功能所支持的语音和视频协议。
# 创建名为“wlan-sac”的SAC模板视图,并进入模板视图。
wlan
sac-profile name wlan-sac
# 配置VAP协议统计功能。
vap-protocol-statistic enable
# 配置用户协议统计功能。
user-protocol-statistic enable
# 配置SkypeForBusiness的DSCP优先级为40。
application-group instant_message app-protocol skypeforbusiness remark dscp 40
# 配置丢弃FaceTime的报文。
application-group voip app-protocol facetime deny
# 配置对QQ_VoIP的限速为1000kbit/s。
application-group voip app-protocol qq_voip car 1000
quit
# 将SAC模板“wlan-sac”绑定到的VAP模板“wlan-vap”下,使配置的策略生效。
vap-profile name wlan-vap
sac-profile wlan-sac
quit
quit
quit
验证配置结果
# 查看SAC功能是否开启。
<AC> display sac information
------------------------------------------------------------------------------
    SAC status            : enabled                                             
    App protocol number   : 1630                                                
    SAC signature status: loaded                                             
    SAC signature version : 7.2.1059.1                                          
------------------------------------------------------------------------------
# 查看area_1的射频0上的VAP对QQ_VoIP报文的统计信息。
<AC> display sac protocol-statistic total inbound protocol qq_voip ap-name area_1 radio-id 0 ssid wlan-net
Protocol       Direction   Packets      Bytes
--------------------------------------------------------------------------
qq_voip      inbound       4096         100000
--------------------------------------------------------------------------
# 查看MAC地址为286E-D488-BF0B的用户的QQ_VoIP报文的统计信息。
<AC> display sac protocol-statistic total inbound protocol qq_voip user 286E-D488-BF0B
Protocol       Direction   Packets      Bytes
--------------------------------------------------------------------------
qq_voip      inbound       1000         100000
--------------------------------------------------------------------------
配置文件
AC的配置文件

#
defence engine enable
sysname AC
#
vlan batch 100 to 101
#
dhcp enable
#
interface Vlanif100
ip address 10.23.100.1 255.255.255.0
dhcp select interface
#
interface Vlanif101
ip address 10.23.101.1 255.255.255.0
dhcp select interface
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 101
#
capwap source interface vlanif100
#
wlan
security-profile name wlan-security
security wpa2 psk pass-phrase %^%#Z'(8*=Q-k%k:|I&[!)+39P:g%^%# aes
ssid-profile name wlan-ssid
ssid wlan-net
sac-profile name wlan-sac
vap-protocol-statistic enable
user-protocol-statistic enable
application-group instant_message app-protocol skypeforbusiness remark dscp 40
application-group voip app-protocol qq_voip car 1000
application-group voip app-protocol facetime deny
vap-profile name wlan-vap
forward-mode tunnel
service-vlan vlan-id 101
ssid-profile wlan-ssid
security-profile wlan-security
sac-profile wlan-sac
regulatory-domain-profile name domain1
ap-group name ap-group1
regulatory-domain-profile domain1
radio 0
   vap-profile wlan-vap wlan 1
radio 1
   vap-profile wlan-vap wlan 1
ap-id 0 type-id 19 ap-mac 60de-4476-e360 ap-sn 210235554710CB000042
ap-name area_1
ap-group ap-group1
radio 0
   channel 20mhz 6
   eirp 127
   calibrate auto-channel-select disable
   calibrate auto-txpower-select disable
radio 1
   channel 20mhz 149
   eirp 127
   calibrate auto-channel-select disable
   calibrate auto-txpower-select disable
#
return



honghulinqin 发表于 2024-3-9 14:17:31

{:6_268:}
页: [1]
查看完整版本: 华为WLAN配置基于应用协议的Qos策略示例