http-hostcar

Function

The http-hostcar command sets the bandwidth limit for web fast-reply packets.

The undo http-hostcar command restores the default setting.

By default, the CIR of web fast-reply packets at the user side is 128 kbit/s, the PIR is 128 kbit/s, the CBS is 128000bytes, and the PBS is 128000bytes.

This command is supported only on the NetEngine 8000 F1A.

Format

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

undo http-hostcar

Parameters

Parameter Description Value
pir pir-value

Specifies 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 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 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 http-hostcar command to change the bandwidth limit for web fast-reply packets sent to the CPU at the user side.

A large number of web fast-reply sent to the CPU at the user side congest the link and reduce CPU processing efficiency.

The high rate limit for web fast-reply packets sent to the CPU at 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 http-hostcar auto-adjust statistics slot slot-id command to check whether automatic bandwidth adjustment is implemented.

Example

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