rate-limit(Service policy view)

Function

The rate-limit command configures the inbound and outbound rate for the service policy template.

The undo rate-limit command restores the default configuration.

By default, no inbound and outbound rate for the service policy template is configured.

This command is supported only on the NetEngine 8000 F1A.

Format

rate-limit cir cir-value [ pir pir-value ] [ cbs cbs-value [ pbs pbs-value ] [ flow-queue-pbs flow-queue-pbs ] ] { inbound | outbound }

undo rate-limit [ cir cir-value [ pir pir-value ] [ cbs cbs-value [ pbs pbs-value ] [ flow-queue-pbs flow-queue-pbs ] ] ] { inbound | outbound }

Parameters

Parameter Description Value
pir pir-value

specifies the peak information rate.

It is an integer that ranges from 0 to 4294967294, in kbit/s. The rate is not restricted by default. If the CIR or PIR is set to 0, traffic is interrupted.

cbs cbs-value

Specifies the committed burst size.

It is an integer that ranges from 0 to 4294967294, in byte.

pbs pbs-value

Configure the peak burst size in CAR rate limit mode.

It is an integer that ranges from 0 to 4294967294, in byte.

flow-queue-pbs flow-queue-pbs

Configure the peak burst size in queue rate limit mode.

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

inbound

Indicates traffic policing in the inbound direction.

-

outbound

Indicates traffic policing in the outbound direction.

-

cir cir-value

Specifies committed information rate.

It is an integer that ranges from 0 to 4294967294, in kbit/s. The rate is not restricted by default. If the CIR or PIR is set to 0, traffic is interrupted.

Views

Service policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vas write

Usage Guidelines

Usage Scenario

This command configures the inbound and outbound rate for the service policy template.

Prerequisites

This service policy template has been created.

Configuration Impact

A service is generated according to a service policy template. The rate-limit determines the bandwidth of a service.

Precautions

This command is supported only on the admin VS.

  • The PIR must be greater than or equal to the CIR.
  • The PBS should be larger than the CBS.
  • The CBS and PBS should be larger than the 187 times of the packet length.
  • The flow-queue-pbs should be larger than the CBS.

Example

# Configure the inbound and outbound rate for the service policy template test.
<HUAWEI> system-view
[~HUAWEI] service-policy name test edsg
[*HUAWEI-service-policy-test] commit
[~HUAWEI-service-policy-test] rate-limit cir 100 pir 500 inbound
[*HUAWEI-service-policy-test] commit
[~HUAWEI-service-policy-test] rate-limit cir 200 pir 2000 outbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >