The share-shaping command configures share-shaping for port queues.
The undo share-shaping command cancels share-shaping for port queues.
By default, share-shaping is not configured for port queues.
share-shaping { af1 | af2 | af3 | af4 | be | cs6 | cs7 | ef } * [ pq | wfq weight weight-value | lpq ] { shaping-value | shaping-percentage shaping-percentage-value } [ pbs pbs-value ]
undo share-shaping [ af1 | af2 | af3 | af4 | be | cs6 | cs7 | ef ] * [ pq | wfq weight weight-value | lpq ] [ shaping-value | shaping-percentage shaping-percentage-value ] [ pbs pbs-value ]
Parameter | Description | Value |
---|---|---|
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 value of a port queue participating in share-shaping. |
The value is an integer ranging from 1 to 100. |
lpq |
Specify low priority queue scheduler. |
- |
shaping-value |
Specifies the share-shaping rate of a port queue. |
The value is an integer ranging from 1 to 4294967294, in kbit/s. |
shaping-percentage shaping-percentage-value |
Specifies the share-shaping percentage of a port queue's share-shaping rate in configured interface bandwidth. |
The value is an integer ranging from 0 to 100, in percentage. |
pbs pbs-value |
Specifies a PBS. |
The value is an integer ranging from 1 to 4194304, in bytes. |
Usage Scenario
To configure share-shaping for port queues, run the share-shaping command. You can implement share-shaping for port queues with the same scheduling mode or based on the share-shaping percentage.
Prerequisites
A port queue profile has been created.
Precautions
If the share-shaping command is run more than once in the same view, the latest configuration overrides the previous one.
The share-shaping command is mutually exclusive with the port share-shaping command. After a port queue profile in which this command is configured is applied to a trunk interface, if the queue scheduling mode is changed by running the port-queue command on a member interface and becomes different from the queue scheduling mode during share-shaping, share-shaping does not take effect on the member interface. If a port queue profile in which the share-shaping command is configured is applied to a trunk interface and the port-queue cir command is run on a member interface of the trunk interface, share-shaping does not take effect on the member interface regardless of whether the two commands are configured for the same queue.