4 Command Line Interface

queue bandwidth

This command assigns weighted round-robin (WRR) weights to the eight class of service (CoS) priority queues. Use the no form to restore the default weights.

Syntax

queue bandwidth weight1...weight4 no queue bandwidth

weight1...weight4 - The ratio of weights for queues 0 - 7 determines the weights used by the WRR scheduler. (Range: 1 - 15)

Default Setting

Weights 1, 2, 4, 6, 8, 10, 12, 14 are assigned to queues 0 - 7 respectively.

Command Mode

Interface Configuration (Ethernet Ports 1-8, Port Channel)

Command Usage

WRR controls bandwidth sharing at the egress port by defining scheduling weights.

Example

This example shows how to assign WRR weights to each of the priority queues:

Console#configure

Console(config)#int eth 1/5

Console(config-if)#queue bandwidth 1 3 5 7 9 11 13 15

Console(config-if)#

Related Commands

show queue bandwidth (4-190)

queue cos-map

This command assigns class of service (CoS) values to the priority queues (i.e., hardware output queues 0 - 7). Use the no form set the CoS map to the default values.

Syntax

queue cos-mapqueue_id [cos1 ... cosn] no queue cos-map

queue_id - The ID of the priority queue.

Ranges are 0 to 7, where 7 is the highest priority queue.

cos1 ... cosn - The CoS values that are mapped to the queue ID. It is a space-separated list of numbers. The CoS value is a number from 0 to 7, where 7 is the highest priority.

4-188