port share-shaping

Function

The port share-shaping command configures share-shaping for port queues.

The undo port share-shaping command cancels share-shaping for port queues.

By default, share-shaping is not configured for port queues.

Format

port 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 port 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 ]

Parameters

Parameter Description Value
af1

Set the service name to AF1.

-

af2

Set the service name to AF2.

-

af3

Set the service name to AF3.

-

af4

Set the service name to AF4.

-

be

Set the service name to BE.

-

cs6

Set the service name to CS6.

-

cs7

Set the service name to CS7.

-

ef

Set the service name to EF.

-

pq

Specify priority queue scheduler.

-

wfq

Specify 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 the PBS.

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

Views

100GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, Eth-Trunk interface view, GE interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

When the outbound interfaces of port queues with different priorities are the same main interface, to perform share-shaping for the port queues using the same scheduling mode, run the port share-shaping command.

Precautions

If this command is configured for multiple times on an interface, the latest configuration overrides the previous configurations.

This command cannot be configured on a trunk member interface, and the interface on which this command is configured cannot be added to a trunk interface.

After this command is run on 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 the port share-shaping command is configured on 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.

The port share-shaping and share-shaping (port queue view) commands are mutually exclusive.

Example

# Set the share-shaping rate of AF1 and AF2 queues to 1000 kbit/s on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] port share-shaping af1 af2 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >