queue

Function

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.

Format

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

Parameters

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.

-

Views

Flow queue view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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

  • Only PQ queues can be configured to work in low-latency mode. A queue that is configured to work in low-latency mode is scheduled preferentially if congestion occurs.
  • The priorities of CS7, CS6, EF, AF4, AF3, AF2, AF1, and BE queues are placed in descending order. The low-latency function is preferentially guaranteed for the three high-priority (CS7, CS6, and EF) queues. Therefore, configure the low-latency function for the three high-priority (CS7, CS6, and EF) queues. If you configure the low-latency function for the five low-priority queues, ensure that the three high-priority queues are not congested. Otherwise, the low-latency function cannot be guaranteed for the five low-priority queues.
  • Do not configure both the shaping rate and CIR for one queue.
  • CIR supports only overlay delivery.
  • In the scheduling parameters of the flow queue, if you need to switch the CIR to another parameter, you must execute the command unundo queue to cancel the CIR in the flow queue scheduling before you can configure the other parameters of the flow queue scheduling.
  • You can configure the CIR for a maximum of two queues on one interface.
  • The share-shaping and queue cir commands are mutually exclusive.

Example

# For outgoing traffic in the AF1 queue on GE 0/1/0, set the CIR to 1000 kbit/s, scheduling mode for CIR to PQ, PIR to 2000 kbit/s, and scheduling mode for PIR to PQ.
<HUAWEI> system-view
[~HUAWEI] flow-queue test
[*HUAWEI-flow-queue-template-test] queue af1 cir 1000 cir-schedule pq pir 2000 pir-schedule pq
# In flow queue WRED template, set the weight to 50 and the shaping rate to 6 Mbit/s for queue AF1.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >