< Home

qos lr inbound

Function

The qos lr inbound command configures traffic policing in the inbound direction on an interface.

The undo qos lr inbound command cancels traffic policing in the inbound direction on an interface.

By default, traffic policing is not configured in the inbound direction on an interface.

Format

qos lr inbound cir cir-value [ cbs cbs-value ]

undo qos lr inbound

Parameters

Parameter

Description

Value

cir cir-value

Specifies the committed information rate (CIR).

The value is an integer, in kbit/s. The value range differs depending on the interface type:

  • MultiGE interface: 64 to 10000000
  • Interfaces in a port group: 64 to 10000000
  • Other interfaces: 64 to X (the actual maximum rate supported by such an interface)

cbs cbs-value

Specifies the committed burst size (CBS).

The value is an integer that ranges from 4000 to 4294967295, in bytes.

If this parameter is not specified, the default CBS is 125 times the CIR.

NOTE:

On the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, the maximum CBS is 65535 bytes.

On the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI, the maximum value of the CBS is 65535 granularities. Each granularity depends on the CIR:

  • When the CIR is in the range of 64 kbit/s to 1023 kbit/s, each granularity is 1 byte.

  • When the CIR is in the range of 1024 kbit/s to 10230 kbit/s, each granularity is 8 bytes.

  • When the CIR is in the range of 10231 kbit/s to 102300 kbit/s, each granularity is 64 bytes.

  • When the CIR is in the range of 102301 kbit/s to 1023000 kbit/s, each granularity is 512 bytes.

  • When the CIR is in the range of 1023001 kbit/s to 10000000 kbit/s, each granularity is 4096 bytes.

Views

Ethernet interface view, MultiGE interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When data is sent from a high-speed link to a low-speed link, the bandwidth on the interface of the low-speed link is insufficient. As a result, a large number of packets are discarded. In this case, the data traffic rate needs to be limited. After the traffic policing rate for incoming packets on an interface is set by using the qos lr inbound command, if the rate of packets received by the interface is larger than the traffic policing rate and the queue buffer is full, the packets exceeding the rate limit are discarded.

Precautions

When interface-based 802.1X authentication is configured and the RADIUS server delivers the rate limit, the interface does not support the rate limit.

If both the IPSG function and inbound interface-based rate limiting are configured on an interface of the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI, both IPSG and interface-based rate-limiting configurations take effect as long as the configurations do not conflict. Otherwise, only the IPSG configuration takes effect.

The traffic-limit (interface view) command limits the rate of packets matching an ACL, whereas the qos lr inbound command limits the rate of all packets on an interface. If both of them are configured:
  • On the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI, the qos lr inbound command takes effect.
  • On the S5720-EI, S6720-EI, and S6720S-EI, rate limiting is inaccurate.
  • On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, the actual rate limit is the smaller CIR between CIR values configured by the two commands.

Configuring the qos lr inbound command occupies system resources. If system resources are insufficient, the configuration fails.

If you run the qos lr inbound command multiple times on the same interface, only the latest configuration takes effect.

If you need to set the same traffic policing rate on multiple interfaces, you can perform the configuration on a port group to reduce the workload.

Example

# Set the CIR of data packets received by the GE0/0/1 to 20000 kbit/s and the CBS to 375000 bytes.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] qos lr inbound cir 20000 cbs 375000
[HUAWEI-GigabitEthernet0/0/1] quit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >