Configuring Inbound Interface-based Rate Limiting
Context
If rates of traffic sent from users are not limited, continuous burst data from many users congests the network. Inbound interface-based rate limiting controls the rate of traffic entering an interface within a specified range.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Run qos-car exclude-interframe
The system is configured not to count the inter-frame gap and preamble of packets when calculating inbound interface-based rate limiting.
By default, the system counts the inter-frame gap and preamble of packets when calculating the traffic rate for inbound interface-based rate limiting.
- Run qos car car-name cir cir-value [ cbs cbs-value [ pbs pbs-value ] | pir pir-value [ cbs cbs-value pbs pbs-value ] ]
A QoS CAR profile is created, and rate limiting parameters are configured in the profile.
- Run interface interface-type interface-number
The interface view is displayed.
- Run qos car inbound car-name
The QoS CAR profile is applied to the interface.
After a CAR profile is applied to an interface, the device limits the rate of all traffic entering the interface.
If a QoS CAR profile is applied to a VLAN to police incoming broadcast traffic, multicast traffic, or unknown unicast traffic (see the broadcast-suppression (VLAN view), multicast-suppression (VLAN view), or unicast-suppression (VLAN view) command) and a QoS CAR profile is applied to an interface that allows this VLAN, traffic suppression and rate limiting take effect in sequence on X series cards, but only QoS CAR parameters take effect on other cards.
Configuration Tips
Deleting the Configuration of Inbound Interface-based Rate LimitingUnbind the QoS CAR profile qoscar1 from GE1/0/1 and delete the profile.
[HUAWEI] interface gigabitethernet 1/0/1 [HUAWEI-GigabitEthernet1/0/1] undo qos car inbound [HUAWEI-GigabitEthernet1/0/1] quit [HUAWEI] undo qos car qoscar1