一.学习qos其实看懂配置基本上就懂原理了,所以学习qos可以直接看怎么配置来学习qos是怎么工作的。
1.上面拓扑通过ospf 将三层路由打通,然后开始配置qos,首先配置qos的分流并打上DSCP值:
在AR1上面分流打标记
acl number 3000
rule 5 permit ip destination 172.16.1.2 0
acl number 3001
rule 5 permit ip destination 172.16.1.3 0
acl number 3002
rule 5 permit ip destination 172.16.1.4 0
#
traffic classifier pc2 operator or
if-match acl 3001
traffic classifier pc1 operator or
if-match acl 3000
traffic classifier pc3 operator or
if-match acl 3002
#
traffic behavior pc2
remark dscp af22
traffic behavior pc1
remark dscp af11
traffic behavior pc3
remark dscp ef
#
traffic policy test
classifier pc1 behavior pc1
classifier pc2 behavior pc2
classifier pc3 behavior pc3
traffic policy pc1
#
2.在AR2和AR3的入接口上面都要开启信任dscp,设备就能认识并通过dscp值进行默认队列了
可以对应此表看dscp值对应哪个队列,也可以自己在设备上面display看。
3.在AR3上面给队列进行调度调度方式wfq:
qos queue-profile test
queue 1 weight 63
queue 2 weight 16
schedule wfq 1 to 2
4.在AR3上面设置丢包模板:
drop-profile test
wred dscp
dscp af11 low-limit 30 high-limit 80 discard-percentage 30
dscp af22 low-limit 20 high-limit 60 discard-percentage 50
5.绑定丢包模板:
qos queue-profile test
queue 1 to 2 drop-profile test
大概配置就这些,后续有问题请留言,有问题后续改正!