hostcar

Function

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.

Format

hostcar cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ]

undo hostcar

Parameters

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.

Views

Slot view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cpu-defend write

Usage Guidelines

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.

Example

# Set the CIR to 5000 kbit/s and the PIR to 7000 kbit/s for the user packets to be sent to the CPU of a board in slot 1.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] hostcar cir 5000 pir 7000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >