The cpu-defend host-car drop-packet cir command sets a rate limit for sending packets that are discarded due to user-level rate limiting to the CPU.
The undo cpu-defend host-car drop-packet cir command restores the default rate limit.
By default, the CIR and CBS for sending packets that are discarded due to user-level rate limiting to the CPU are 64 kbit/s and 12032 bytes, respectively.
Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
cpu-defend host-car drop-packet cir cir-value [ cbs cbs-value ]
undo cpu-defend host-car drop-packet cir
Parameter | Description | Value |
---|---|---|
cir-value |
Specifies the CIR value. |
The value is an integer in the range from 64 to 4096, in kbit/s. |
cbs cbs-value |
Specifies the CBS value. |
The value is an integer in the range from 10000 to 800000, in bytes. |
Usage Scenario
After the undo cpu-defend host-car drop-packet monitor disable command is run to enable monitoring for packets discarded due to user-level rate limiting, the discarded packets are sent to the CPU. You can run the cpu-defend host-car drop-packet cir command to adjust the rate limit for sending these discarded packets to the CPU.
Prerequisites
Monitoring for packets discarded due to user-level rate limiting has been enabled using the undo cpu-defend host-car drop-packet monitor disable command.
# Set the CIR and CBS for sending packets that are discarded due to user-level rate limiting to the CPU to 128 kbit/s and 16384 bytes, respectively.
<HUAWEI> system-view [HUAWEI] cpu-defend host-car enable [HUAWEI] undo cpu-defend host-car drop-packet monitor disable [HUAWEI] cpu-defend host-car drop-packet cir 128 cbs 16384