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.
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. |
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: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.