组网及说明
现场客户使用MSR5660设备替换客户处原有华为的设备,之前华为的设备做了GTS流量整形和WFQ的带宽保证,需求见下面图片描述
配置步骤
一、针对G1/0/1口入方向进行本地优先级的映射:
(1)对进入设备G1/0/1口的流量进行识别和分类:
traffic classifierdot0 operator and
if-match customer-dot1p 0
traffic classifierdot1 operator and
if-match customer-dot1p 1
traffic classifierdot2 operator and
if-match customer-dot1p 2
traffic classifierdot3 operator and
if-match customer-dot1p 3
traffic classifierdot4 operator and
if-match customer-dot1p 4
traffic classifierdot5 operator and
if-match customer-dot1p 5
traffic classifierdot6 operator and
if-match customer-dot1p 6
traffic classifierdot7 operator and
if-match customer-dot1p 7
traffic classifier3201
if-match acl 3201
traffic classifier3202
if-match acl 3202
(2)配置相应的流量行为:
traffic behavior lp0
remark local-precedence 0
traffic behavior lp1
remark local-precedence 1
traffic behavior lp2
remark local-precedence 2
traffic behavior lp3
remark local-precedence 3
traffic behavior lp4
remark local-precedence 4
traffic behavior lp5
remark local-precedence 5
traffic behavior lp6
remark local-precedence 6
traffic behavior lp7
remark local-precedence 7
(3)配置QOS策略,将类和行为关联,将相应的802.1P优先级标记为本地优先级值。
qos policy in-qos
class dot0 beh lp2
class dot1 beh lp0
class dot2 beh lp1
class dot3 beh lp3
class dot4 beh lp4
class dot5 beh lp5
class dot6 beh lp6
class dot7 beh lp7
class 3201 beh lp6
class 3202 beh lp2
(4)接口下调用QOS:
[MSR5660-GigabitEthernet1/0/1]qos apply policy in-qos inbound
二、 针对G1/0/2口出方向进行流量的整形和带宽保证:
(1)配置QOS类,匹配相应的本地优先级:
traffic classifierlp0 operator and
if-match local-precedence 0
traffic classifierlp1 operator and
if-match local-precedence 1
traffic classifierlp2 operator and
if-match local-precedence 2
traffic classifierlp3 operator and
if-match local-precedence 3
traffic classifierlp4 operator and
if-match local-precedence 4
traffic classifierlp5 operator and
if-match local-precedence 5
traffic classifierlp6 operator and
if-match local-precedence 6
traffic classifierlp7 operator and
if-match local-precedence 7
(2)配置相应的QOS动作,将相应的流量入队列:
traffic behavior q7
queue sp
traffic behavior q6
queue ef bandwidth 1280 cbs 32000
gts cir 1280 cbs 32000
traffic behavior q2
queue af bandwidth remaining-pct 16
gts cir 1700 cbs 50000
traffic behavior q0
queue af bandwidth remaining-pct 16
traffic behavior q1
queue af bandwidth remaining-pct 16
traffic behavior q3
queue af bandwidth remaining-pct 16
traffic behavior q4
queue af bandwidth remaining-pct 16
traffic behavior q5
queue af bandwidth remaining-pct 16
(3)配置QOS策略,将类和行为做关联:
qos policy rtlimitQ
class lp7 beh q7
class lp6 beh q6
class lp5 beh q5
class lp4 beh q4
class lp3 beh q3
class lp2 beh q2
class lp1 beh q1
class lp0 beh q0
(4)
接口下调用QOS:
[MSR5660-GigabitEthernet1/0/2]qos apply policy
rtlimitQ outbound