share-shaping

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 | lpq ] shaping-value [ pbs pbs-value ]

share-shaping [ shap-id ] { af1 | af2 | af3 | af4 | be | cs6 | cs7 | ef } * 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.

lpq

Specifies the scheduling mode of the queue to the low priority queue scheduling.

-

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

Flow queue 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.

  • Unified traffic shaping applies to at least two flow queues.
  • Unified traffic shaping is applicable only to flow queues with the same scheduling algorithm.
  • If share-shaping is required for FQs on an interface equipped with an eTM subcard, the scheduling algorithm for share-shaping overwrites that configured for FQs. You can run display qos abnormal-info flow-queue command to query the overwritten FQ configuration based on the FQ profile.

Precautions

The share-shaping and queue cir commands are mutually exclusive.

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
[*HUAWEI-flow-queue-template-test] share-shaping af1 af2 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >