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