pir (user queue template)

Function

The pir command sets scheduling parameters for user queues in a user queue profile.

The undo pir command deletes the scheduling parameter configurations for user queues in a user queue profile.

By default, no user queue scheduling parameters is created.

Format

pir { pir-value [ pbs pbs-value ] [ cir cir-value [ cbs cbs-value ] ] | percentage pir-percent [ pbs pbs-value ] [ cir percentage cir-percent [ cbs cbs-value ] ] }

undo pir { pir-value [ pbs pbs-value ] [ cir cir-value [ cbs cbs-value ] ] | percentage pir-percent [ pbs pbs-value ] [ cir percentage cir-percent [ cbs cbs-value ] ] }

Parameters

Parameter Description Value
pbs pbs-value

Specifies the PBS(Peak Burst Size) value for the user queue.

The value is an integer that ranges from 1 to 4194304, byte as unit.

cir cir-value

Specifies the CIR value for the user queue.

The value is 0 or an integer ranging from 16 to 4294967294, kbit/s as unit.

cbs cbs-value

Specifies the CBS(Committed Burst Size) value for the user queue.

The value is an integer that ranges from 1 to 4194304, byte as unit.

percentage pir-percent

Specifies the PIR percent value for the user queue.

The value is an integer that ranges from 0 to 100.

percentage cir-percent

Specifies the CIR percent value for the user queue.

The value is an integer that ranges from 0 to 100.

pir pir-value

Specifies the PIR value for the user queue.

The value is 0 or an integer ranging from 16 to 4294967294, kbit/s as unit.

Views

User queue template

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To limit service traffic based on the PIR, CIR, or CBS of a user queue, configure scheduling parameters in a user queue profile. After the configuration is complete, the user queue needs to be bound to a QoS profile, implementing HQoS traffic control based on the QoS profile.

Example

# Set both the PIR and CIR to 1000 kbit/s in a user queue profile named test.
<HUAWEI> system-view
[~HUAWEI] user-queue test
[*HUAWEI-user-queue-template-test] pir 1000 cir 1000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >