How to configure interface-based rate limiting on a CE series switch

- Configure interface-based rate limiting in the inbound direction. In the following example, QoS CAR profile qoscar1 is configured to specify the rate limit, and the profile is applied to 10GE1/0/1.
<HUAWEI> system-view [~HUAWEI] qos car qoscar1 cir 10000 cbs 10240 [*HUAWEI] interface 10ge 1/0/1 [*HUAWEI-10GE1/0/1] qos car inbound qoscar1 [*HUAWEI-10GE1/0/1] commit
Note: When the packet forwarding mode is set to Cut Through on a CE8860EI, CE7850EI, CE6850U-HI, CE6851HI, or CE6850HI switch, the switch does not support interface-based rate limiting in the inbound direction. Before configuring interface-based rate limiting in the inbound direction, run the assign forward mode store-and-forward command to change the packet forwarding mode to store-and-forward.
- Configure interface-based rate limiting in the outbound direction. In the following example, the qos lr cir cir-value [ kbps | mbps | gbps ] [ cbs cbs-value [ bytes | kbytes | mbytes ] ] [ outbound ] command is executed in the interface view to limit the rate of outgoing traffic on the interface. Note: When the packet forwarding mode is set to Cut Through on a CE8860EI, CE7850EI, CE6850U-HI, CE6851HI, or CE6850HI switch, the switch does not support interface-based rate limiting in the outbound direction. Before configuring interface-based rate limiting in the outbound direction, run the assign forward mode store-and-forward command to change the packet forwarding mode to store-and-forward.
- (Optional) Configure the inter-frame gap and preamble. In V100R005C00 and later versions, you can configure switches to calculate or not to calculate the inter-frame gap and preamble of packets during inbound traffic rate limit calculation on an interface. By default, a switch calculates the inter-frame gap and preamble of packets when it calculates the inbound traffic rate limit on an interface. You can run the qos car ifg disable command in the system view to configure a switch not to calculate the inter-frame gap and preamble of packets during inbound traffic rate limit calculation, to improve rate limit accuracy.

Scroll to top