The cp-rate-limit enhance command restricts the rate at which specific packets on an interface are sent to the CPU.
The undo cp-rate-limit enhance command cancels the rate at which specific packets on an interface are sent to the CPU.
By default, the rate at which protocol packets are sent to the CPU is not limited.
Parameter | Description | Value |
---|---|---|
port | Indicates that the rate at which an interface sends packets of a specific protocol to the CPU is restricted. |
- |
dhcp | Indicates that the rate at which an interface sends DHCP packets to the CPU is restricted. |
- |
dhcpv6 | Indicates that the rate at which an interface sends DHCPv6 packets to the CPU is restricted. |
- |
icmp | Indicates that the rate at which an interface sends ICMP packets to the CPU is restricted. |
- |
icmpv6 | Indicates that the rate at which an interface sends ICMPv6 packets to the CPU is restricted. |
- |
cir cir-value | Specifies the CIR. |
The value is an integer ranging from 32 to 1000000, in packet/s. If an interface is configured with the port-vlan-car and igmp-vlan-car, it is recommended that the bandwidth of the port-vlan-car be greater than that of the igmp-vlan-car. If the bandwidth of the port-vlan-car is smaller than that of the igmp-vlan-car, the igmp-vlan-car configuration becomes invalid. |
cbs cbs-value | Specifies the committed burst size (CBS), that is, the depth of the token bucket indicating the peak size of packets that can pass through at a burst. |
The value is an integer ranging from 100 to 33554432, in bytes. It is recommended that the CBS be set to a value greater than 10 times the packet length. The default CBS value is equal to cir-value. The cbs-value that takes effect is at least 187 times the cir-value.
|
enhance | Indicates the port-vlan-car level-2 CAR. |
- |
Usage Scenario
To restrict the rate at which packets of a specific protocol are sent to the CPU, run the cp-rate-limit enhance command.
Rate limiting does not apply to the following packets to be sent to the CPU:Configuration Impact
The rate of the packets on the abnormal ports will be limited, with other packets not being affected.
Precautions
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] cp-rate-limit enhance port cir 1000 cbs 2000
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] cp-rate-limit enhance icmp cir 200 cbs 2000