1.若是子接口,则接口需要使能LR功能以保证CBQ队列功能生效,同时需要配置qos max-bandwidth命令以提供CBQ计算的基准带宽。
2.qos max-bandwidth基准带宽仅80%用于流行为里面的限速,即基准带宽乘以0.8需大于等于流行为里限速的叠加(本案例即2250x0.8大于等于(1500+125+125+50))不满足则会报错,比如配置2048。
3.在未配置子接口基准带宽条件下,计算CBQ时实际使用的基准带宽取值为0Kbps,如:
traffic behavior 1
queue af bandwidth pct 5
#
interface
GigabitEthernet0/0/0.100
vlan-type dot1q vid 100
qos lr outbound cir 100 cbs 6225 ebs 0
qos apply policy 1 outbound
#
[SR6602X-1]dis qos poli int g
0/0/0.100
Interface: GigabitEthernet0/0/0.100
Direction: Outbound
Policy: 1
Classifier: default-class
Matched : 0(Packets) 0(Bytes)
5-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped: 0/0 (pps/bps)
Rule(s) : If-match any
Behavior: be
Default Queue:
Flow Based Weighted Fair Queuing
Max number of hashed queues: 256
Matched: 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Discard Method: Tail
Classifier: 1
Matched : 0(Packets) 0(Bytes)
5-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped: 0/0 (pps/bps)
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Assured Forwarding:
Bandwidth 0 (bps)
Matched: 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Discard Method: Tail
[SR6602X-1]int g 0/0/0.100
[SR6602X-1-GigabitEthernet0/0/0.100]qos
max-bandwidth 5000
[SR6602X-1-GigabitEthernet0/0/0.100]dis
this
#
interface
GigabitEthernet0/0/0.100
vlan-type dot1q vid 100
qos max-bandwidth 5000
qos lr outbound cir 100 cbs 6225 ebs 0
qos apply policy 1 outbound
#
return
[SR6602X-1-GigabitEthernet0/0/0.100]qui
[SR6602X-1]dis qos poli int g
0/0/0.100
Interface: GigabitEthernet0/0/0.100
Direction: Outbound
Policy: 1
Classifier: default-class
Matched : 0(Packets) 0(Bytes)
5-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped: 0/0 (pps/bps)
Rule(s) : If-match any
Behavior: be
Default Queue:
Flow Based Weighted Fair Queuing
Max number of hashed queues: 256
Matched: 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Discard Method: Tail
Classifier: 1
Matched : 0(Packets) 0(Bytes)
5-minute statistics:
Forwarded: 0/0 (pps/bps)
Dropped: 0/0 (pps/bps)
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Assured Forwarding:
Bandwidth 200 (kbps)
Matched: 0/0 (Packets/Bytes)
Enqueued : 0/0 (Packets/Bytes)
Discarded: 0/0 (Packets/Bytes)
Discard Method: Tail
4.流行为中配置实际带宽或者pct百分比注意事项是一样的。