The cir-parent-priority command configures a scheduling priority and weight for a flow queue with a specified CoS in a flow queue profile in enhanced 8-CoS mode.
The undo cir-parent-priority command restores the default scheduling priority and weight for a flow queue with a specified CoS in a flow queue profile in enhanced 8-CoS mode.
For the default parameter values of a flow queue profile in enhanced 8-CoS mode, see the table in the following usage scenario.
Parameter | Description | Value |
---|---|---|
weight cir-weight-value |
Specifies a CIR traffic scheduling weight. |
The value is an integer ranging from 1 to 100. A larger value indicates a higher weight. |
weight pir-weight-value |
Specifies a PIR traffic scheduling weight. |
The value is an integer ranging from 1 to 100. A larger value indicates a higher weight. |
pir-parent-priority pir-priority-value |
Specifies a PIR traffic scheduling priority. |
The value is an integer ranging from 1 to 3. A smaller value indicates a higher priority. A PIR traffic scheduling priority must be greater than a CIR traffic scheduling priority. |
cir-parent-priority cir-priority-value |
Specifies a CIR traffic scheduling priority. |
The value is an integer ranging from 0 to 2. A smaller value indicates a higher priority. |
Usage Scenario
You can configure scheduling parameters for eight priority flow queues in a flow queue profile in enhanced 8-CoS mode. To configure a scheduling priority and weight for a flow queue with specified priorities, run the cir-parent-priority command. After the configuration is complete, traffic in the flow queue is sent to the parent scheduler with a specified priority for scheduling. The scheduling weights take effect only when the scheduling mode of a user queue is WFQ.
Table 1: The default parameter values of a flow queue profile in enhanced 8-CoS mode
Queue | The Priority of CIR | The Priority of PIR | Weight | CIR | PIR | Drop Mode |
---|---|---|---|---|---|---|
cos 0 | 1 | 3 | 10 | None | None | Tail drop |
cos 1 | 1 | 3 | 10 | None | None | Tail drop |
cos 2 | 1 | 3 | 10 | None | None | Tail drop |
cos 3 | 1 | 3 | 15 | None | None | Tail drop |
cos 4 | 1 | 3 | 15 | None | None | Tail drop |
cos 5 | 0 | 2 | 20 | None | None | Tail drop |
cos 6 | 0 | 2 | 20 | None | None | Tail drop |
cos 7 | 0 | 2 | 20 | None | None | Tail drop |
Prerequisites
A flow queue profile in enhanced 8-CoS mode has been created, and a queue priority sub-view has been displayed.
Precautions
Only CR5DNPU48071/CR5DNPU1TM71 boards support a flow queue profile in enhanced 8-CoS mode.
<HUAWEI> system-view [~HUAWEI] flow-queue test 8cos-enhance-mode [*HUAWEI-flow-queue-template-test] cos 0 [*HUAWEI-flow-queue-template-test-cos0] cir-parent-priority 0 weight 10 pir-parent-priority 1 weight 5