HQoS基于层次化调度,cpe上支持三级队列:
level3流队列:每个用户的同类业务是一个业务流,针对每个用户不同的业务流进行队列调度,流队列一般与业务类型对应(EF、AF、BE等)。
level2用户队列:来自同一用户的所有业务可以被 认为是一个用户队列,可以使该 用户队列下的所有业务共享一个用户队列带宽。
level接口队列:每个接口一个队列,接口队列之间进行轮询调度,用户仅可以配置基于接口的流量 整形,且其调度方式不能配置。
R1
配置子策略:
acl number 3000 匹配语音端口
rule 5 permit udp destination-port eq 2944
acl number 3001 父策略用
rule 5 permit ip source 192.168.1.10 0
acl number 3002
rule 5 permit ip source 192.168.1.20 0
traffic classifier pc2 operator or
if-match acl 3002
traffic classifier voip operator or 流分类语音
if-match acl 3000
traffic classifier pc1 operator or
if-match acl 3001
traffic classifier data operator or 流分量数据
if-match any
traffic behavior pc2
gts cir 51200 cbs 1280000 queue-length 1
traffic-policy sub2
traffic behavior 20M
queue af bandwidth 20480
traffic behavior pc1
gts cir 30720 cbs 768000 queue-length 1
traffic-policy sub1
traffic behavior 10M
queue llq bandwidth 10240 cbs 256000
traffic behavior 40M
queue af bandwidth 40960
traffic policy sub1
classifier voip behavior 10M
classifier data behavior 20M
traffic policy sub2
classifier voip behavior 10M
classifier data behavior 40M
traffic policy father
classifier pc1 behavior pc1
classifier pc2 behavior pc2
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.252
traffic-policy father outbound
interface GigabitEthernet0/0/1
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/0/2
interface NULL0
ospf 1
area 0.0.0.0
network 10.0.0.1 0.0.0.0
network 192.168.1.1 0.0.0.0
R2
interface GigabitEthernet0/0/0
ip address 10.0.0.2 255.255.255.252
interface GigabitEthernet0/0/1
interface GigabitEthernet0/0/2
interface NULL0
ospf 1
area 0.0.0.0
network 10.0.0.2 0.0.0.0