share-shaping (priority-mode flow queue template view)

Function

The share-shaping command configures unified traffic shaping for multiple flow queues.

The undo share-shaping command cancels the configuration.

By default, unified traffic shaping is not configured.

Format

share-shaping [ shap-id ] { af1 | af2 | af3 | af4 | be | cs6 | cs7 | ef } * [ [ pq | wfq ] | weight weight-value ] * shaping-value [ pbs pbs-value ]

undo share-shaping [ shap-id ]

Parameters

Parameter Description Value
shap-id

Specifies the shap id.

The value is 1.

af1

Set the service type to AF1.

-

af2

Set the service type to AF2.

-

af3

Set the service type to AF3.

-

af4

Set the service type to AF4.

-

be

Set the service type to BE.

-

cs6

Set the service type to CS6.

-

cs7

Set the service type to CS7.

-

ef

Set the service type to EF.

-

pq

Specify weighted fair queue scheduler.

-

wfq

Specify weight of the 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.

shaping-value

Specifies the unified traffic shaping value for multiple flow queues.

The value is an integer ranging from 1 to 4294967294, in kbit/s.

pbs pbs-value

Specifies the peak burst size (PBS).

The value is an integer ranging from 1 to 4194304, in bytes.

Views

Priority-mode flow queue template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

Usage Scenario

When multi-play services are running, some services need to share the bandwidth. To configure unified traffic shaping for multiple flow queues, run the share-shaping command.

For example, 0 to 3 refer to four sub-schedulers (priority 0 to priority 3). Share shaping applies to the BE queue and AF1 to AF4 queues, with the scheduling mode being PQ. If the scheduling mode for sub-scheduler 0 is WFQ, sub-scheduler 0 schedules share-shaping-capable queues based on priorities and then implements WFQ scheduling for the EF queue and share-shaping-capable queues as a whole.

NOTE:

  • Unified traffic shaping applies to at least two flow queues.
  • Unified traffic shaping is applicable only to flow queues with the same scheduling algorithm.

Precautions

Unified traffic shaping applies to at least two flow queues.

Unified traffic shaping is applicable only to flow queues with the same scheduling algorithm.

Example

# In the flow queue profile named test, set the unified traffic shaping value to 1000 kbit/s for the AF1 and AF2 queues.
<HUAWEI> system-view
[~HUAWEI] flow-queue test priority-mode
[*HUAWEI-flow-queue-template-test] share-shaping af1 af2 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >