现场在子接口上配置了qos限速,发现只有父策略有匹配数,子策略没有匹配数
#
interface Ten-GigabitEthernet0/21.1501
bandwidth 200000
traffic-statistic enable
ip address X.X.X.X
qos apply policy 200M_QOS outbound
#
qos policy 200M_QOS
classifier class-default behavior class-default_200M_QOS
#
traffic classifier class-default operator and
if-match acl name class-default
#
acl advanced name class-default
rule 0 permit ip
#
traffic behavior class-default_200M_QOS
traffic-policy QOS
gts cir 200000 cbs 12500000 ebs 0 queue-length 50
#
qos policy QOS
classifier Tnet_traffic behavior Tnet_traffic
classifier voice behavior voice
#
traffic classifier Tnet_traffic operator and
if-match acl name Tnet_traffic_QOS
#
acl advanced name Tnet_traffic_QOS
……
#
traffic behavior Tnet_traffic
queue af bandwidth 10000
#
#
traffic classifier voice operator and
if-match acl name voice_QOS
#
acl advanced name voice_QOS
……
#
traffic behavior voice
queue ef bandwidth 30000 cbs 750000
#
接口没发生拥塞,父策略的Dropped、Delayed都是0,所以没拥塞到队列,所以子策略没有匹配数。
实机打流不拥塞/拥塞测试结果如下
测试配置:
traffic classifier 3000 operator and
if-match acl 3000
#
traffic classifier 3001 operator and
if-match acl 3001
#
traffic classifier 3002 operator and
if-match acl 3002
#
traffic behavior 3000
traffic-policy 1
gts cir 50000 cbs 3125000 ebs 0 queue-length 50
#
traffic behavior 3001
queue ef bandwidth 30000 cbs 750000
#
traffic behavior 3002
queue ef bandwidth 15000 cbs 375000
#
qos policy 1
classifier 3001 behavior 3001
classifier 3002 behavior 3002
#
qos policy 2
打流40Mbps,不拥塞:
<H3C>display qos policy interface
Interface: GigabitEthernet0/2
Direction: Outbound
Policy: 2
Classifier: default-class
Matched : 0 (Packets) 0 (Bytes)
1-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match any
Behavior: be
-none-
Classifier: 3000
Matched : 713520 (Packets) 1067425920 (Bytes)
1-minute statistics:
Forwarded: 3289/39368736 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3000
Behavior: 3000
General Traffic Shaping:
CIR 50000 (kbps), CBS 3125000 (Bytes), EBS 0 (Bytes)
Queue size : 0 (Packets)
Passed : 713523 (Packets) 1067430408 (Bytes)
Discarded: 0 (Packets) 0 (Bytes)
Delayed : 0 (Packets) 0 (Bytes)
Nest Policy: 1
Classifier: default-class
Matched : 428116 (Packets) 640461536 (Bytes)
1-minute statistics:
Forwarded: 1973/23621241 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match any
Behavior: be
Default Queue:
Flow based Weighted Fair Queue:
Max number of hashed queues: 256
Matched : 0 (Packets) 0 (Bytes)
Enqueued : 0 (Packets) 0 (Bytes)
Discarded: 0 (Packets) 0 (Bytes)
Discard Method: Tail
Classifier: 3001
Matched : 142707 (Packets) 213489672 (Bytes)
1-minute statistics:
Forwarded: 657/7873747 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3001
Behavior: 3001
Expedited Forwarding:
Bandwidth 30000 (kbps) CBS 750000 (Bytes)
Matched : 0 (Packets) 0 (Bytes)
Enqueued : 0 (Packets) 0 (Bytes)
Discarded: 0 (Packets) 0 (Bytes)
Classifier: 3002
Matched : 142708 (Packets) 213491168 (Bytes)
1-minute statistics:
Forwarded: 657/7873747 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3002
Behavior: 3002
Expedited Forwarding:
Bandwidth 15000 (kbps) CBS 375000 (Bytes)
Matched : 0 (Packets) 0 (Bytes)
Enqueued : 0 (Packets) 0 (Bytes)
打流60Mbps,拥塞:
<H3C>display qos policy interface
Interface: GigabitEthernet0/2
Direction: Outbound
Policy: 2
Classifier: default-class
Matched : 0 (Packets) 0 (Bytes)
1-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match any
Behavior: be
-none-
Classifier: 3000
Matched : 1626957 (Packets) 2433927672 (Bytes)
1-minute statistics:
Forwarded: 4177/49999511 (pps/bps)
Dropped : 1259/15077086 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3000
Behavior: 3000
General Traffic Shaping:
CIR 50000 (kbps), CBS 3125000 (Bytes), EBS 0 (Bytes)
Queue size : 191 (Packets)
Passed : 1527318 (Packets) 2284867728 (Bytes)
Discarded: 99454 (Packets) 148783184 (Bytes)
Delayed : 291582 (Packets) 436206672 (Bytes)
Nest Policy: 1
Classifier: default-class
Matched : 976183 (Packets) 1460369768 (Bytes)
1-minute statistics:
Forwarded: 2062/24685396 (pps/bps)
Dropped : 1199/14360403 (pps/bps)
Operator: AND
Rule(s) :
If-match any
Behavior: be
Default Queue:
Flow based Weighted Fair Queue:
Max number of hashed queues: 256
Matched : 234745 (Packets) 351178520 (Bytes)
Enqueued : 140613 (Packets) 210357048 (Bytes)
Discarded: 94132 (Packets) 140821472 (Bytes)
Discard Method: Tail
Classifier: 3001
Matched : 325397 (Packets) 486793912 (Bytes)
1-minute statistics:
Forwarded: 1087/13015399 (pps/bps)
Dropped : 0/0 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3001
Behavior: 3001
Expedited Forwarding:
Bandwidth 30000 (kbps) CBS 750000 (Bytes)
Matched : 78250 (Packets) 117062000 (Bytes)
Enqueued : 78250 (Packets) 117062000 (Bytes)
Discarded: 0 (Packets) 0 (Bytes)
Classifier: 3002
Matched : 325398 (Packets) 486795408 (Bytes)
1-minute statistics:
Forwarded: 1027/12298715 (pps/bps)
Dropped : 59/716683 (pps/bps)
Operator: AND
Rule(s) :
If-match acl 3002
Behavior: 3002
Expedited Forwarding:
Bandwidth 15000 (kbps) CBS 375000 (Bytes)
Matched : 78254 (Packets) 117067984 (Bytes)
Enqueued : 72930 (Packets) 109103280 (Bytes)
Discarded: 5324 (Packets) 79
接口没发生拥塞,父策略的Dropped、Delayed都是0,所以没拥塞到队列,所以子策略没有匹配数。但子策略是生效了,就是Behavior里因为没拥塞所以不显示计数。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作