queue

Use queue to configure the drop-related parameters for a queue in the queue-based WRED table.

Use undo queue to restore the default.

Syntax

queue queue-id [ drop-level drop-level ] low-limit low-limit high-limit high-limit [ discard-probability discard-prob ]

undo queue { queue-id | all }

Default

After a WRED table is created, the lower limit is 100, the upper limit is 1000, and the drop probability is 10%.

Views

WRED table view

Predefined user roles

network-admin

Parameters

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

drop-level drop-level: Specifies a drop level. This argument is a consideration for dropping packets. The value 0 corresponds to green packets, the value 1 corresponds to yellow packets, and the value 2 corresponds to red packets. If you do not specify a drop level, the subsequent configuration takes effect on the packets in the queue regardless of the drop level.

low limit low-limit: Specifies the lower limit for the average queue length, in the range of 0 to 16000.

high-limit high-limit: Specifies the upper limit for the average queue length. The high-limit argument is in the range of 0 to 16000 and must be greater than the low-limit argument.

discard-probability discard-prob: Specifies the drop probability in percentage, in the range of 0 to 100.

Usage guidelines

When the average queue size is smaller than the lower limit, no packet is dropped. When the average queue size is between the lower limit and the upper limit, packets are dropped based on the user-configured drop probability. When the average queue size exceeds the upper limit, subsequent packets are dropped.

Examples

# In queue-based WRED table queue-table1, configure drop-related parameters for packets in queue 1 as follows:

<Sysname> system-view
[Sysname] qos wred queue table queue-table1
[Sysname-wred-table-queue-table1] queue 1 drop-level 1 low-limit 10 high-limit 20 discard-probability 30

Related commands