QoS Commands 291
User Guidelines
• You can use this command to distribute traffic into different queues, where each queue is configured
with different weighted round robin (WRR) parameters.
• To enable the expedite queues, use the
priority-queue out
Interface Configuration mode command
wrr-queue cos-map
.
Example
The following example maps CoS 3 to queue 4.
wrr-queue bandwidth
The wrr-queue bandwidth Interface Configuration mode command assigns Weighted Round Robin
(WRR) weights to egress queues. The weights ratio determines the frequency in which the packet
scheduler dequeues packets from each queue. Use the no form of this command to return to the default
values.
Syntax
•
wrr-queue bandwidth
weight1 weight2 ... weight_n
• no wrr-queue bandwidth
•
weight1...weight_n
— Sets the bandwidth ratio by the WRR packet scheduler for the packet
queues. Separate each value by spaces. (Range: 0 - 254)
Default Configuration
The default WRR weight ratio is 1:2:8:16:32:64:128:255.
Command Mode
Interface Configuration (Ethernet, port channel) mode.
User Guidelines
• The ratio for each queue is defined by the queue weight divided by the sum of all queue weights (i.e.,
the normalized weight). This actually sets the bandwidth allocation of each queue.
• A weight of 0 means no bandwidth is allocated for the same queue, and the share bandwidth is divided
among the remaining queues.
• All 8 queues are participating excluding the queues that are assigned as expedite queues. The weights
of these queues are ignored in the ratio calculation.
• All 8 queues participate in the WRR exclude the expedite queues, in which case the corresponded
weight 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.
Console(config)# wrr-queue cos-map 4 3
5400_CLI.book Page 291 Wednesday, December 17, 2008 4:33 PM