The qos queue command sets the scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.
The undo qos queue command restores the default scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.
By default, a flow queue uses PQ scheduling, PIR of a subscriber queue as the traffic shaping rate, and flow queue WRED drop profile default.
qos queue queue-index { { pq | wfq weight weight-value } | { shaping { shaping-value | shaping-percentage shaping-percentage-value } } | { flow-wred-profile flow-wred-profile-name } } *
undo qos queue queue-index { { pq | wfq } | shaping | flow-wred-profile } *
Parameter |
Description |
Value |
---|---|---|
queue-index |
Specifies the index of a flow queue. |
The value is an integer that ranges from 0 to 7. |
pq |
Indicates PQ scheduling. |
- |
wfq |
Indicates WFQ scheduling. |
- |
weight weight-value | Specifies the weight of WFQ scheduling. |
The value is an integer that ranges from 1 to 100. |
shaping shaping-value | Specifies the traffic shaping rate. |
The value is an integer that ranges from 64 to 10000000, in kbit/s. |
shaping-percentage shaping-percentage-value | Specifies the traffic shaping percentage, that is, percentage of the traffic shaping rate to the PIR of a subscriber queue. |
The value is an integer that ranges from 1 to 100. |
flow-wred-profile flow-wred-profile-name | Specifies the name of a flow queue WRED drop profile. |
The value must be the name of an existing flow queue WRED drop profile. |
Usage Scenario
To manage packets in a flow queue, run this command to set the scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.
Prerequisites
A flow queue profile has been created and the flow queue profile view has been displayed.
Precautions
The scheduling mode, traffic shaping rate, and flow queue WRED drop profile can be configured in any sequence. You can configure the scheduling mode, traffic shaping rate, and flow queue WRED drop profile independently or a combination of them.
# Configure flow queue profile flow1 where the WFQ weight of flow queue 0 is 50%, the traffic shaping percentage is 50%, and referenced flow queue WRED drop profile is wred1.
<HUAWEI> system-view [HUAWEI] flow-queue-profile flow1 [HUAWEI-flow-queue-flow1] qos queue 0 wfq weight 50 shaping shaping-percentage 50 flow-wred-profile wred1