weight

Function

The weight command sets a weight value for an SQ.

The undo weight command restores the default setting.

By default, the weight value of SQ is 10.

Format

weight weight-value [ inbound | outbound ]

undo weight [ weight-value ] [ inbound | outbound ]

Parameters

Parameter Description Value
weight-value

Specifies the weight value of a specified SQ.

The value is an integer ranging from 1 to 63.

inbound

Indicates the incoming packets.

-

outbound

Indicates the outgoing packets.

-

Views

QoS profile view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

In the case of traffic congestion, the weight command can be used to set weight values for SQs so that the SQs can be scheduled based on the weights.

The scheduling algorithm for SQs is CIR + (weight/∑weight) x (GQ Shaping - ∑CIR).

WFQ is implemented for SQs under the condition that the CIRs are guaranteed.

If the available bandwidth of a user calculated using the algorithm is larger than the PIR value, the PIR value takes effect, and the remaining bandwidth is allocated to other users based on the weight values.

Precautions

In a QoS profile, the direction-oriented weight and directionless weight cannot be configured at the same time.

Example

# Set a weight value for an SQ.
<HUAWEI> system-view
[~HUAWEI] qos-profile test
[*HUAWEI-qos-profile-test] weight 20 outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >