Hello everyone,
Today I will share with you how to configure the interface-based rate limiting.
Configuring Interface-based Rate limiting in the inbound direction
Configure a QoS CAR profile named qoscar1, specify the rate limit in the QoS profile, and apply the profile to GE0/0/1.
<HUAWEI> system-view
[HUAWEI] qos car qoscar1 cir 10000 cbs 10240
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] qos car inbound qoscar1
Configuring interface-based Rate limiting in the outbound direction
Run the qos lr cir cir-value [ cbs cbs-value ] [ outbound ] command in the interface view to limit the rate of traffic passing through the interface.
(Optional) Configuring the Inter-frame Gap and Preamble
In V200R005C00 and later versions, you can configure the switch whether to calculate the inter-frame gap and preamble of packets during rate limit calculation on the interface. By default, the switch calculates the inter-frame gap and preamble of packets when the device calculates the rate limit. You can run either of the following commands in the system view to configure the device to not calculate the inter-frame gap and preamble of packets during rate limit calculation, to improve rate limit accuracy.
Inbound: qos-car exclude-interframe
Outbound: qos-shaping exclude-interframe
More Information: S Series Switches Common Operation Guide
That is all I want to share with you! Thank you!