queue priority

Function

The queue priority command sets scheduling parameters for a flow queue, including the queue priority, shaping value, and flow-WRED settings.

The undo queue priority command restores default scheduling parameters for a flow queue.

By default, the default priority values of queues are used.

Format

queue cos-value { priority priority-value [ weight weight-value ] | { shaping { shaping-value | shaping-percentage shaping-percentage-value } [ pbs pbs-value ] } | flow-wred wred-name } *

undo queue cos-value [ priority | shaping | flow-wred ]

Parameters

Parameter Description Value
cos-value

Specifies the service class of a flow queue.

The value can be cs7, cs6, ef, af4, af3, af2, af1, or be.

priority-value

Specifies the priority value. Rate limiting is implemented based on the priority value.

The value is an integer ranging from 0 to 3. The smaller the value, the higher the priority.

weight weight-value

Specifies the WFQ scheduling weight.

The value is an integer ranging from 1 to 100.

shaping-value

Specifies the PIR value, which reflects the shaping bandwidth configured on an interface.

The value is an integer ranging from 8 to 4294967294, in kbit/s.

shaping-percentage shaping-percentage-value

Specifies the shaping rate percentage. The shaping rate percentage refers to the percentage of shaping rate in PIR.

The value is an integer ranging from 0 to 100.

pbs pbs-value

Specifies the depth of a shaping token bucket.

The value is an integer ranging from 1 to 4194304.

flow-wred wred-name

Specifies the name of a WRED object used by a flow queue.

The value is a string of 1 to 31 characters.

Views

Priority-mode flow queue template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To set scheduling parameters for a flow queue, including the queue priority, weight, shaping value, and flow-WRED settings, run the queue priority command.

**Table1 ** Default priority values of flow queues

Flow Queue Priority Value weight
BE 3 10
AF1 2 10
AF2 2 10
AF3 1 10
AF4 1 10
CS6 0 10
CS7 0 10
EF 0 10

Prerequisites

A priority-based flow queue has been created.

Configuration Impact

Queue scheduling of services is affected.

Example

# Set the priority of the EF queue to 2, weight to 20, and shaping value to 10 Mbit/s in the priority-based flow queue profile named test1.
<HUAWEI> system-view
[~HUAWEI] flow-queue test1 priority-mode
[*HUAWEI-flow-queue-template-test1] queue ef priority 2 weight 20 shaping 10000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >