The hostcar command sets the bandwidth for CPU-destined packets on the user side.
The undo hostcar command restores the default setting.
By default, the CIR of the CPU-destined packets on the user side is 32 kbit/s, the PIR is 32 kbit/s, the CBS is 32 kbytes, and the PBS is 32 kbytes.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
pir pir-value |
Specifies the PIR. |
The value is an integer ranging from 0 to 4294967295, in kbit/s.Setting the PBS to be greater than or equal to the CBS. |
cbs cbs-value |
Specifies the CBS. |
The value is an integer ranging from 1000 to 4294967295, in bytes. |
pbs pbs-value |
Specifies PBS. |
The value is an integer ranging from 0 to 4294967295, in bytes. Setting the PBS to a value smaller than the CBS is recommended so that traffic conforming to the CBS can be sent to the CPU. |
cir cir-value |
Specifies the CIR. |
The value is an integer ranging from 0 to 4294967295, in kbit/s. |
Usage Scenario
If either of the following problems occurs, you can run the hostcar command to change the bandwidth limits for CPU-destined packets on the user side:
A large number of CPU-destined packets on the user side congest the link and reduce CPU efficiency. The high rate limit of CPU-destined packets on the user side causes some packets to be dropped.Precautions
If the effective CIR is not the same as the configured CIR, run the display cpu-defend hostcar auto-adjust statistics slot slot-id command to check whether automatic bandwidth adjustment is implemented.