forwarding-class fcDiamond scheduler schDiamond;
forwarding-class fcGoldSilverCopper scheduler schGoldSilverCopper; } }
replace: schedulers {
schNetworkControl {
transmit-rate percent 5; buffer-size temporal 20000; priority strict-high; }
schCritical {
transmit-rate percent 60; buffer-size temporal 1000; priority high; }
schDiamond {
transmit-rate percent 10; buffer-size temporal 5000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropDiamondTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropDiamondNonTCP; }
schPlatinum {
transmit-rate percent 10; buffer-size temporal 5000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropPlatinumTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropPlatinumNonTCP; }
schGoldSilverCopper { transmit-rate percent 5; buffer-size temporal 10000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropGoldSilverCopperTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropGoldSilverCopperNonTCP; }
schDefault { priority low; }
schCritical-NGNDC1 {
transmit-rate percent 80; buffer-size temporal 1000; priority high; }
schPlatinum-NGNDC1 { transmit-rate percent 5; buffer-size temporal 5000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropPlatinumTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropPlatinumNonTCP; }
schDiamond-NGNDC1 { transmit-rate percent 3; buffer-size temporal 5000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropDiamondTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropDiamondNonTCP; }
schGoldSilverCopper-NGNDC1 { transmit-rate percent 2; buffer-size temporal 10000; priority medium-high;
drop-profile-map loss-priority low protocol tcp drop-profile
dropGoldSilverCopperTCP;
drop-profile-map loss-priority low protocol non-tcp drop-profile
dropDiamondNonTCP; }
schNCCritical {
transmit-rate percent 35; buffer-size temporal 5000; priority high; } }
2.4 华为NE80e配置模板
/*定义分类*/
[RouterB] acl number 2001
[RouterB-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0 [RouterB] acl number 2002
[RouterB-acl-basic-2002] rule permit source 1.1.1.2 0.0.0.0 [RouterB] traffic classifier a
[RouterB-classifier-a] if-match acl 2001 [RouterB-classifier-a] quit [RouterB] traffic classifier b
[RouterB-classifier-b] if-match acl 2002 [RouterB-classifier-b] quit
/*根据前面的分类结果,进行重新标记*/
[RouterA]traffic classifier remark_ip_pre
[RouterA-classifier-remark_ip_pre]if-match ip-precedence 5 [RouterA-classifier-remark_ip_pre]quit [RouterA]traffic behavior remark_ip_pre
[RouterA-behavior-remark_ip_pre]remark ip-precedence 6 [RouterA-behavior-remark_ip_pre]quit [RouterA]traffic policy remark_ip_pre
[RouterA-trafficpolicy-remark_ip_pre]classifier remark_ip_pre behavior remark_ip_pre
[RouterA-trafficpolicy-remark_ip_pre]quit [RouterA]interface Ethernet 0/0/0
[RouterA-Ethernet0/0/0]traffic-policy remark_ip_pre inbound [RouterA-Ethernet0/0/0]traffic-policy remark_ip_pre outbound
因为现在的QoS对所有的MPLS的报文全部都只是匹配外层的EXP值,而在MPLS报文出MPLS域的时候,需要执行倒数第二跳弹出策略,弹出是,外层标签的EXP值向内层标签的EXP值复制。
/*根据前面的分类结果,进行队列调度*/ 华为缺省支持8个队列,各个值的对应关系如下
1) 设置交换矩阵调度策略
华为设备在入端口方向支持4个队列,其中可以配置PQ队列的数量,保证PQ队列优先进入交换矩阵。
2) 根据前面的分类结果,设置丢包策略
/*配置WRED模板*/ 步骤 1
操作 进入系统视图
命令 system-view
wred template template-index color { green |
2
配置WRED模板
yellow | red } low-limited low-limited-value high-limited high-limited-value discard-percent discard-percent-value
/*为不同服务级别的队列在出方向指定WRED模板*/ 步骤 1 2 3
操作 进入系统视图 进入接口视图
为不同服务级别的队列在出方向指定WRED模板
命令 system-view
interface interface-type interface-number wred service-class template template-index outbound
/*队列调度*/ 步骤 1 2 3
操作 进入系统视图 进入接口视图
配置接口QoS服务级别承诺信息速率和峰值信息速率,以及队列调度的优先级
命令 system-view
interface interface-type interface-number qos queue service-class [ priority priority ] [ cir { cir-value | cir-percentage percentage } ] [ pir { pir-value | pir-percentage percentage } ] outbound
步骤 1 2 3
操作 进入系统视图 进入接口视图 配置物理接口限速
命令 system-view
interface interface-type interface-number qos lr cir cir-value
2.5 Alcatel 7750SR配置模板
/*定义分类*/
# 根据IP五元组进行分类,用sap端口部署
# 部署在Access端口,用于接入L2 汇聚层,终结qinq或者dot1q封装的大客户、VPN等业务 #-------------------------------------------------- config qos
sap-ingress 2 create # 用policy-id 2表示关键业务的id号 description xxxx
default-fc be # 未匹配的数据包进入be转发类
ip-criteria
entry 1 create
action fc af priority low # 设置转发类型
match protocol 6 # 匹配条件:ip层协议类型
exit
entry 5 create
action
match src-ip *.*.*.*/24 # 匹配条件:源Ip地址 exit
exit
entry 10 create
action
match dst-port eq 23 # 匹配条件:源应用层端口 exit
exit
entry 15 create
action fc be priority low match exit
exit
# sap qos策略的应用 config service
ies 1 customer 1 create
interface \
sap 1/1/1 create # 要在port 1/1/1上配置ethernet/mode
access
ingress
qos 2
exit
exit
# Network端口根据MPLS Exp或DSCP分类 config qos
network 3
description xxxx
ingress
default-action fc be # 未匹配的标记为3,5,7的数据包进入be
转发类
lsp-exp 6 fc nc dscp nc1 fc nc lsp-exp 4 fc L1 dscp cs4 fc L1 lsp-exp 2 fc af