The queue command sets the scheduling parameters such as scheduling mode, PIR, WRED and CIR of a flow queue.
The undo queue command removes the scheduling parameter of a flow queue.
By default, the BE, AF1, AF2, AF3, and AF4 queues are scheduled using the WFQ scheduling mode, with the scheduling weights being 10, 10, 10, 15, and 15, respectively, and the EF, CS6, and CS7 queues are scheduled using the PQ scheduling mode. The shaping percentage is set to 100 for all queues, and the tail drop mode is used.
queue cos-value { { pq | wfq weight weight-value | lpq } | { shaping { shaping-value | shaping-percentage shaping-percentage-value } [ pbs pbs-value ] | car { car-value | car-percentage car-percentage-value } [ pbs pbs-value ] } | { flow-wred wred-name } | low-latency } *
undo queue cos-value [ pq | wfq | lpq | shaping | flow-wred | low-latency | car ]
queue cos-value cir { { cir-value [ cbs cbs-value ] cir-schedule pq pir pir-value } | { cir-percentage cir-percentage-value [ cbs cbs-value ] cir-schedule pq pir pir-percentage pir-percentage-value } } [ pbs pbs-value ] pir-schedule { pq | wfq weight weight-value | lpq } [ flow-wred wred-name ]
undo queue cos-value [ cir { { cir-value [ cbs cbs-value ] cir-schedule pq pir pir-value } | { cir-percentage cir-percentage-value [ cbs cbs-value ] cir-schedule pq pir pir-percentage pir-percentage-value } } [ pbs pbs-value ] pir-schedule { pq | wfq weight weight-value | lpq } [ flow-wred wred-name ] ]
Parameter | Description | Value |
---|---|---|
cos-value |
Specifies the flow queue name. |
The value can be BE, AF1 to AF4, EF, CS6, or CS7. |
pq |
Specify priority queue scheduler. |
- |
wfq |
Specify weighted fair queue scheduler. |
- |
weight weight-value |
Specifies the weight of the weighted fair queue. |
The value is an integer in the range of 1 to 100. |
lpq |
Specify low priority queue scheduler. |
- |
shaping shaping-value |
Specifies the shaping rate, which indicates the peer rate of each flow queue. |
The value is an integer in the range of 8 to 4294967294 Kbit/s. |
pbs pbs-value |
Specifies the value of the peak burst size (PBS), that is, the maximum volume of traffic that the interface can send after port shaping is configured. |
The value is an integer ranging from 1 to 4194304, in bytes. |
flow-wred wred-name |
Specify flow-wred template name. |
The value is a string of 1 to 31 characters. |
shaping-percentage shaping-percentage-value |
Specifies the percentage of the shaping rate over the total bandwidth of an interface. |
The value is an integer ranging from 0 to 100. |
car car-value |
Specifies the CAR value. The CAR rate refers to the flow queue rate which has applied CAR policy. If a board does not support the CAR function, this parameter takes effect as shaping-value. |
The value is an integer ranging from 8 to 4294967294, in kbit/s. |
car-percentage car-percentage-value |
Specifies the CAR percentage. The CAR percentage refers to the percentage of CAR in PIR. If a board does not support the CAR function, this parameter takes effect as shaping-percentage-value. |
The value is an integer ranging from 0 to 100. |
low-latency |
Indicates the low-delay mode. Services requiring low delays share bandwidths with other services. When other services are congested, services requiring low delays are affected. In low-delay mode, however, services requiring low delays are not affected by other services. |
- |
cir cir-value |
Specifies the CIR. |
The value is an integer ranging from 0 to 4294967294, in kbit/s. |
cbs cbs-value |
Specifies the CBS. |
The value is an integer ranging from 1 to 65535, in bytes. |
cir-schedule |
Specifies the scheduling mode for CIR. |
- |
pir pir-value |
Specifies the PIR. |
The value is an integer ranging from 0 to 4294967294, in kbit/s. |
cir-percentage cir-percentage-value |
Specifies the CIR percentage. |
The value is an integer ranging from 0 to 100. |
pir-percentage pir-percentage-value |
Specifies the PIR percentage. |
The value is an integer ranging from 0 to 100. |
pir-schedule |
Specifies the scheduling mode for PIR. |
- |
Usage Scenario
The queue command configures scheduling parameters for eight priority queues, including the scheduling mode (PQ, WFQ, or LPQ), traffic shaping value, commit information rate (CIR), drop policy (WRED) and low latency queue (LLQ), to control scheduling priorities, committed bandwidth, and scheduling delays for services of different priorities. For example, voice packets require preferential scheduling and short delays. You can run this command to set the priority queue of voice services to PQ and use a proper flow-WRED profile.
Configuration Impact
Modifying the user queue parameters will affect queue scheduling of services.
Precautions
<HUAWEI> system-view [~HUAWEI] flow-queue test [*HUAWEI-flow-queue-template-test] queue af1 cir 1000 cir-schedule pq pir 2000 pir-schedule pq
<HUAWEI> system-view [~HUAWEI] flow-wred test [*HUAWEI-flow-wred-test] quit [*HUAWEI] flow-queue test [*HUAWEI-flow-queue-template-test] queue af1 wfq weight 50 shaping 6000 pbs 1000 flow-wred test