3550(config)# interface gigabitethernet0/1
3550(config-if)# wrr-queue random-detect max-threshold 1 50 100
3550(config-if)# wrr-queue random-detect max-threshold 2 70 100
3550(config-if)# wrr-queue random-detect max-threshold 3 50 100
3550(config-if)# wrr-queue random-detect max-threshold 4 70 100
可以通过下面的命令来验证每个队列的类型(WRED或其他):
nifnif#sh mls qos int gi 0/1 buffers
GigabitEthernet0/1
..
qid WRED thresh1 thresh2
1 dis 10 100
2 dis 10 100
3 ena 10 100
4 dis 100 100
ena 表示enable,队列使用WRED方式 。dis 表示 disable,队列使用Tail Drop(tail drop)方式。
使用下面命令可以监视在每个极限值下丢弃的包的数量 。
sh mls qos int gig x/x stat
WRED drop counts:
qid thresh1 thresh2 FreeQ
1 : 327186552 8 1024
2 : 0 0 1024
3 : 37896030 0 1024
4 : 0 0 1024
Catalyst 3550 交换机的Tail Drop
Tail Drop是3550交换机的千兆端口上的缺省的治理机制 。每个千兆端口可以有两个尾部极限值 。每个Tail Drop极限值所标识的整套的DSCP 使用同样的DSCP极限值映射表,本文档的WRED章节已经定义 。当达到极限值,所有的数据包都将被丢弃的极限值 。使用下面命令配置尾部丢弃极限值:
(config-if)# wrr-queue threshold queue-id threshold-percentage1 threshold-percentage2
下面的配置示例定义了Q1的尾部丢弃极限值1 = 50%,极限值2 = 100%,以及极限值1 = 70% 和极限值2 = 100%
Switch(config-if)# wrr-queue threshold 1 50 100
Switch(config-if)# wrr-queue threshold 2 70 100
Switch(config-if)# wrr-queue threshold 3 60 100
Switch(config-if)# wrr-queue threshold 4 80 100
配置千兆端口上的队列大小
3550 交换机使用中心缓存 。这意味着每个端口上没有固定的缓存大小 。
但是,千兆端口上的固定数量的数据包可以被排列 。这些数量固定为4096 。缺省的,千兆端口上的每个队列可以达到1024个数据包,而不管包的大小 。可以使用下面的命令更改这4096个数据包在四个队列中的分配:
wrr-queue queue-limit Q_size1 Q_size2 Q_size3 Q_size4
如下例所示:
3550(config)# interface gigabitethernet0/1
3550(config-if)# wrr-queue queue-limit 4 3 2 1
这些队列的大小参数是相关的,上例表示队列Q1的数据包大小是Q4的4倍,Q2是Q4的3倍,Q3是Q4的2倍 。4096个数据包被重新分配如下:
· Q1 = [4 /(1 2 3 4) ] * 4096 = 1639 packets
· Q2 = 0.3 * 4096 = 1229 packets
· Q3 = 0.2 * 4096 = 819 packets
· Q1 = 0.1 * 4096 = 409 packets
下面的命令可以显示四个队列中分割的缓冲区之间相关的权值:
cat3550# sh mls qos int buffers
GigabitEthernet0/1
Notify Q depth:
qid-size
1 - 4
2 - 3
3 - 2
4 - 1
...
你也可以使用下面的命令来察看每个队列中还保持了多少空闲的数据包:
(config-if)# sh mls qos int gig x/x stat
WRED drop counts:
qid thresh1 thresh2 FreeQ
1 : 0 0 1639
2 : 0 0 1229
3 : 0 0 819
4 : 0 0 409
推荐阅读
- 一 3550交换机QoS时序及队列讨论
- 高端交换机的弹性分组环技术实现
- 三 3550交换机QoS时序及队列讨论
- MEMS交换机可降低通讯基础设施成本
- 二手房证不满两年高税怎么算
- 医治网络设备 交换机故障轻松排除
- CISCO Catalyst 4000系列交换机产品介绍
- Catalyst 3500 XL系列交换机产品介绍
- Catalyst 2900 XL系列交换机产品介绍
- Catalyst 2900G系列交换机产品介绍
