queue

Use queue to configure scheduling parameters for a queue.

Use undo queue to restore the default.

Syntax

queue queue-id { sp | wfq group 1 { byte-count | weight } schedule-value | wrr group 1 { byte-count | weight } schedule-value }

undo queue queue-id

Default

A queue uses SP queuing.

Views

Queue scheduling profile view

Predefined user roles

network-admin

Parameters

queue-id: Specifies a queue by its ID in the range of 0 to 7.

sp: Enables SP for the queue.

wfq: Enables WFQ for the queue.

wrr: Enables WRR for the queue.

byte-count: Allocates bandwidth to queues in terms of bytes.

weight: Allocates bandwidth to queues in terms of packets.

schedule-value: Specifies the number of bytes or packets sent each time, in the range of 1 to 15.

Usage guidelines

The queue-id argument can be either a number or a keyword. Table 33 shows the number-keyword map.

Examples

# Create a queue scheduling profile named myprofile, and configure queue 0 to use SP.

<Sysname> system-view
[Sysname] qos qmprofile myprofile
[Sysname-qmprofile-myprofile] queue 0 sp

# Create a queue scheduling profile named myprofile. Configure queue 1 to meet the following requirements:

<Sysname> system-view
[Sysname] qos qmprofile myprofile
[Sysname-qmprofile-myprofile] queue 1 wrr group 1 weight 10

Related commands