wrr-queue bandwidth
wrr-queue bandwidth
Use the wrr-queue bandwidth interface configuration command to assign weighted round robin (WRR)
weights to the egress queues on Gigabit-capable ports and 10/100 Ethernet ports. The ratio of the weights
is the ratio of frequency in which the WRR scheduler dequeues packets from each queue. Use the no
form of this command to return to the default setting.
Syntax Description
weight1 weight2
weight3 weight4
Weight1, weight2, weight3, and weight4 are 25 (1/4 of the bandwidth is allocated to each queue).
Defaults
Command Modes
Interface configuration
Command History
Release
12.1(4)EA1
12.1(13)EA1
Usage Guidelines
The absolute value of each weight is meaningless, and only the ratio of parameters is used.
WRR allows bandwidth sharing at the egress port.
All four queues participate in the WRR unless the expedite queue (queue 4) is enabled, in which case
weight4 is ignored (not used in the ratio calculation). The expedite queue is a priority queue, and it is
serviced until empty before the other queues are serviced. You enable the expedite queue by using the
priority-queue out interface configuration command.
A weight of 1 means that the minimum bandwidth is allocated for that queue.
To allocate no bandwidth for a queue, use the wrr-queue cos-map interface configuration command.
The available bandwidth is shared among the remaining queues.
Examples
This example shows how to configure the weight ratio of the WRR scheduler running on the egress
queues. In this example, four queues are used (no expedite queue), and the ratio of the bandwidth
allocated for each queue is 1/(1+2+3+4), 2/(1+2+3+4), 3/(1+2+3+4), and 4/(1+2+3+4), which is 1/10,
1/5, 3/10, and 2/5 for queues 1, 2, 3, and 4.
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# wrr-queue bandwidth 1 2 3 4
Catalyst 3550 Multilayer Switch Command Reference
2-656
wrr-queue bandwidth weight1 weight2 weight3 weight4
no wrr-queue bandwidth
The ratio of weight1, weight2, weight3, and weight4 determines the ratio of
the frequency in which the WRR scheduler dequeues packets. Separate each
value with a space. The range is 1 to 65536.
Modification
This command was introduced.
The range changed from 0 to 65536 to 1 to 65536.
Chapter 2 Catalyst 3550 Switch Cisco IOS Commands
OL-8566-01