cir (user group queue view)

Function

The cir command sets the CIR for a user group queue.

The undo cir command deletes the CIR of a user group queue.

By default, the CIR for user group queue is not configured.

Format

cir cir-value [ cbs cbs-value ] [ pir pir-value [ pbs pbs-value ] ] outbound

undo cir [ cir-value [ cbs cbs-value ] pir pir-value [ pbs pbs-value ] ] outbound

Parameters

Parameter Description Value
cbs cbs-value

Specifies the CBS.

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

If cbs-value is smaller than the MTU or the actual packet length, packet loss occurs. Therefore, set proper values when configuring this command.

pir pir-value

Specifies the PIR.

The value is an integer ranging from 66 to 4294967294, in kbit/s. The minimum value of the PIR can be set to the specified value of the CIR.

pbs pbs-value

Specifies the PBS.

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

If pbs-value is smaller than the MTU or the actual packet length, packet loss occurs. Therefore, set proper values when configuring this command.

outbound

Specifies the outbound direction.

-

cir cir-value

Specifies the CIR.

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

Views

User group queue view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

When planning network traffic, you can run this command to implement rate limiting based on user group queues. You can set the CIR and PIR for user group queues to have traffic sent at an even rate.

Precautions

If cbs-value and pbs-value are smaller than the MTU or the actual packet length, packet loss occurs. Therefore, set proper values when configuring this command.

This command is mutually exclusive with the shaping shaping-value [ pbs pbs-value ] outbound command.

Example

# Set the CIR for a user group queue.
<HUAWEI> system-view
[~HUAWEI] user-group-queue test
[*HUAWEI-user-group-queue-test] cir 300 cbs 10000 outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >