在带PFC的Catalyst 6000h上进行输出调度( 三 )


使用WRED作为丢弃机制的队列,配置阈值采用以下命令: wrr-queue random-dtect max-threshold 对于使用尾端丢弃作为丢弃机制的队列,采用以下命令: wrr-queue threshold 配置WRED队列: cosmos(config)# int gig 1/1 cosmos(config-if)#wrr-queue random-detect max-threshold1 50 80!-- 将队列1的阀值设置为50,最大阀值的80%配置于:Gi1/1 Gi1/2.cosmos(config-if)#wrr-queue random-detect max-threshold2 40 60!-- 将队列2的阀值设置为49,最大阀值的60%配置于:Gi1/1 Gi1/2.配置尾端丢弃队列:cosmos(config)#int fast e 3/1cosmos(config-if)#wrr-queue threshold ?<1-2> enter threshold queue id (1-2)cosmos(config-if)#wrr-queue threshold 1 ?<1-100>enter percent of queue size between 1 and 100cosmos(config-if)#wrr-queue threshold 1 50 100!-- 我们将队列1(低优先级)2q2t接口没有尾数的阀值设置为50,!-- 并填满整个缓冲器:threshold configured on: Fa3/1 Fa3/2 Fa3/3 Fa3/4 Fa3/5 Fa3/6 Fa3/7 Fa3/8 Fa3/9 Fa3/10 Fa3/11 Fa3/12cosmos(config-if)#cosmos(config-if)#cosmos(config-if)#wrr-queue threshold 2 40 100!-- 我们将队列2(高优先级)2q2t接口没有尾数的阀值设置为40,!-- 并填满整个缓冲器:threshold configured on: Fa3/1 Fa3/2 Fa3/3 Fa3/4 Fa3/5 Fa3/6 Fa3/7 Fa3/8 Fa3/9 Fa3/10 Fa3/11 Fa3/12cosmos(config-if)#
检查配置: cosmos#show queueing int gig 1/1 Interface GigabitEthernet1/1 queueing strategy:Weighted Round-RobinPort QoS is enabledPort is untrustedDefault cos is 0Transmit queues [type = 1p2q2t]:Queue IdSchedulingNum of thresholds----------------------------------------- 1 WRR low2 2 WRR high2 3 Priority1WRR bandwidth ratios:20[queue 1]80[queue 2]queue-limit ratios:70[queue 1]15[queue 2]queue random-detect-max-thresholds----------------------------------150[1] 80[2]240[1] 60[2]cosmos#show queueing int fa 3/1Interface FastEthernet3/1 queueing strategy:Weighted Round-RobinPort QoS is enabledPort is untrustedDefault cos is 0Transmit queues [type = 2q2t]:Queue IdSchedulingNum of thresholds----------------------------------------- 1 WRR low2 2 WRR high2WRR bandwidth ratios:100[queue 1] 255[queue 2]queue-limit ratios:90[queue 1]10[queue 2]queue tail-drop-thresholds--------------------------150[1] 100[2]240[1] 100[2]对于该队列,阈值的配置以及CoS的分配无法在逐个端口进行 。所有变化都应用于一组相邻的端口:
千兆线路卡的四个端口:端口1至端口4是一组,端口5至端口8是另一组
10/100端口或者100光纤端口的12个端口:1到12、13到24、25到36、36到48
监控输出调度以及配置检验对于某个和输出调度相关的端口,检验当前运行时间配置的最简单的命令是show queueing interface [ gigfast eth] [ slot/port]命令 。该命令显示端口上的队列类型、CoS到不同队列和阈值的映射、缓冲共享以及WRR加权(在这里,队列1为20% WRR,队列2为80% WRR) 。该命令显示输出调度的所有配置信息,以及每个队列的每个阈值所丢充的数据包数量:cosmos#show queueing int gig 1/1Interface GigabitEthernet1/1 queueing strategy:Weighted Round-RobinPort QoS is enabledPort is untrustedDefault COS is 0Transmit queues [type = 1p2q2t]:Queue IdSchedulingNum of thresholds----------------------------------------- 1 WRR low2 2 WRR high2 3 Priority1WRR bandwidth ratios:20[queue 1]80[queue 2]queue-limit ratios:70[queue 1]15[queue 2]queue random-detect-max-thresholds----------------------------------150[1] 80[2]240[1] 60[2]queue thresh cos-map---------------------------------------110 1122 3214 6227315Receive queues [type = 1p1q4t]:Queue IdSchedulingNum of thresholds----------------------------------------- 1 Standard4 2 Priority1queue tail-drop-thresholds--------------------------1100[1] 100[2] 100[3] 100[4]queue thresh cos-map---------------------------------------110 1122 3134146 7215Packets dropped on Transmit:BPDU packets:0queue threshdropped[cos-map]---------------------------------------------------110[0 1 ]120[2 3 ]210[4 6 ]220[7 ]310[5 ]Packets dropped on Receive:BPDU packets:0queue threshdropped[cos-map]---------------------------------------------------110[0 1 ]120[2 3 ]130[4 ]140[6 7 ]210[5 ]

推荐阅读