Queue bandwidth, Queue cos-map – LevelOne GTL-2690 User Manual

Page 613

Advertising
background image

Class of Service Commands

35-4

35

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 weight0...weight7
no queue bandwidth

weight0...weight7 - 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, Port Channel)

Command Usage

• WRR controls bandwidth sharing at the egress port by defining scheduling

weights.

• Bandwidth is allocated to each queue by calculating a precise number of bytes

per second that will be serviced on each round. The granularity used to
calculate this number is based on a unit of 2k bytes. The bytes serviced per
second per queue in each round is (queue weight*granularity).

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

Related Commands

show queue bandwidth (35-6)

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-map queue_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.

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

Advertising