priority shaping

Function

The priority shaping command sets shaping parameters for a GQ of a specific priority.

The undo priority shaping command cancels the configured shaping parameters and token bucket depth for a GQ of a specific priority.

By default, traffic shaping is not configured for a GQ.

Format

[ priority priority-value ] shaping shaping-value [ pbs pbs-value ] outbound

undo [ priority priority-value ] shaping outbound

Parameters

Parameter Description Value
priority-value

Specifies the priority value. Rate limiting is implemented based on the priority value.

The value is an integer ranging from 0 to 2. The smaller the value, the higher the priority.

shaping-value

Specifies the PIR value, which reflects the shaping bandwidth configured on an interface.

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

pbs pbs-value

Specifies the volume of the allowed peak traffic on an interface after traffic shaping is configured on the interface. The value is equal to the PBS.

The value is an integer ranging from 64 to 2097152, in bytes.

outbound

Indicates the scheduling parameters for outgoing packets.

-

Views

Priority-mode GQ template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To set shaping parameters for a GQ of a specific priority, run the priority shaping command.

Prerequisites

A priority-based GQ has been created by user-group-queue group-name priority-mode command.

Example

# Set the shaping rate to 600 kbit/s and PBS to 10000 bytes for outgoing packets of the GQ with the priority value being 2.
<HUAWEI> system-view
[~HUAWEI] user-group-queue test priority-mode
[*HUAWEI-user-group-queue-test] priority 2 shaping 600 pbs 10000 outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >