FAQ:ne40E如何配置业务的带宽保障

发布时间:  2014-12-29 浏览次数:  416 下载次数:  0
问题描述
ne40E如何配置业务的带宽保障
解决方案

C/S存在两条数据流,绿色为业务RSTP,黄色为测试
<HUAWEI>system-view
配置业务对应的ACL3000,当前业务为RSTP
[HUAWEI] acl number 3000
[HUAWEI-acl-basic-3000] rule 0 permit tcp destination-port eq 554
[HUAWEI-acl-basic-3000] quit
配置测试对应的ACL3001(略)

场景一:对业务带宽保障,但不占用测试的出接口15%的基础带宽
配置流分类
[HUAWEI]traffic classifier rtsp
[HUAWEI-classifier-rtsp] if-match acl 3000
[HUAWEI-classifier-rtsp] quit
配置流行为重标记IP优先级为5对应ef队列
[HUAWEI] traffic behavior rtsp
[HUAWEI-behavior-rtsp] remark ip-precedence 5 
[HUAWEI-behavior-rtsp] quit
配置流策略
[HUAWEI] traffic policy all
[HUAWEI-trafficpolicy-all] classifier rtsp behavior all
[HUAWEI-trafficpolicy-all] quit
 配置流量策略应用到业务对应的接收的接口入方向
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo shutdown
[HUAWEI-GigabitEthernet0/0/1] traffic-policy all inbound
[HUAWEI-GigabitEthernet0/0/1] quit
配置保障EF流量为接口流量85%的带宽
[HUAWEI] interface gigabitethernet0/0/0
[HUAWEI -GigabitEthernet0/0/0] undo shutdown
[HUAWEI-GigabitEthernet0/0/0] port-queue ef pq shaping shaping-percentage 85 outbound
[HUAWEI-GigabitEthernet0/0/0]quit

场景二:对业务带宽保障,可抢占测试的带宽,测试最大带宽为出接口的15%
配置流分类
[HUAWEI]traffic classifier rstp
[HUAWEI-classifier-rstp] if-match acl 3000
[HUAWEI-classifier-rstp] quit
[HUAWEI]traffic classifier test
[HUAWEI-classifier-test] if-match acl 3001
[HUAWEI-classifier-test] quit


配置流行为重标记业务的IP优先级为5对应ef队列及重标记测试的IP优先级为4对应af4
[HUAWEI] traffic behavior rstp
[HUAWEI-behavior-rstp] remark ip-precedence 5 
[HUAWEI-behavior-rstp] quit

[HUAWEI] traffic behavior test
[HUAWEI-behavior-test] remark ip-precedence 4 
[HUAWEI-behavior-test quit

[HUAWEI] traffic policy all
[HUAWEI-trafficpolicy-all] classifier rstp  behavior rstp
[HUAWEI-trafficpolicy-all] classifier test  behavior test
[HUAWEI-trafficpolicy-all] quit

 配置流量策略应用到业务对应的接收的接口入方向
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI -GigabitEthernet0/0/1] undo shutdown
[HUAWEI -GigabitEthernet0/0/1] traffic-policy all inbound
[HUAWEI -GigabitEthernet0/0/1] quit

配置af4低优先级调度最多15%的接口带宽
[HUAWEI] interface gigabitethernet0/0/0
[HUAWEI -GigabitEthernet0/0/0] undo shutdown
[HUAWEI-GigabitEthernet0/0/0] port-queue af4 lpq shaping shaping-percentage 15 outbound
[HUAWEI-GigabitEthernet0/0/0]quit

END