关键业务服务保证技术QoS理论和实践

时间:2025-03-27 22:44:43

入向限制策略

//流定义

acl name AAA advance

 rule x permit ip source destination

//流分类,匹配定义流

traffic classifier AAA

 if-match acl AAA

//流行为,限制多少带宽

traffic behavior AAA 

 car cir xxxxx kbps

//流行为,限制多少带宽

traffic policy AAA

 classifier AAA behavior AAA

//链路入接口调用

interface x/x/x  

 traffic-policy AAA inbound

出向QOS保障策略

//流定义

acl name AAA advance

 rule x permit ip source

//流分类,匹配定义流,允许匹配多个ACL流

traffic classifier AAA

 if-match acl name AAA

//流行为,标记DSCP

traffic behavior AAA 

 remark dscp af42

//流策略关联

traffic policy IN-QUEUE 

 share-mode

 statistics enable

classifier AAA behavior AAA

//流量入接口调用流策略标记DSCP值

interface x/x/x 

 traffic-policy IN-QUEUE inbound

//流量出接口配置流量调度策略

interface x/x/x 

port shaping xxxx

 port-queue af4 wfq weight 20 outbound

HQoS分层调度策略

//流定义

acl name AAA advance

 rule x permit ip source

//流分类,匹配定义流,允许匹配多个ACL流

traffic classifier AAA 

 if-match acl name AAA

//流行为,标记DSCP

traffic behavior AAA 

 remark dscp ef

//流策略关联

traffic policy IN-QUEUE 

 share-mode

 statistics enable

classifier AAA behavior AAA

//流队列调度方式

flow-queue BBB 

 queue be wfq weight 10

queue af4 wfq weight 30

//配置实际链路带宽和队列调度绑定

qos-profile CCC  

 user-queue cir xxxx flow-queue BBB

//流量入接口调用流策略,将流标记DSCP值

interface x/x/x  

 traffic-policy IN-QUEUE inbound 

//如果涉及流量到入接口分类完成后穿过其他链路再到出接口调度情况下需要在穿过的接口配置简单流分类

interface x/x/x

 trust upstream default

//流量出接口配置流量调度策略,匹配qos-profil的调度策略

interface x/x/x 

 qos-profile CCC outbound

 port shaping xxx