qos car

Use qos car aggregative to configure an aggregate CAR action.

Use qos car hierarchy to configure a hierarchical CAR action.

Use undo qos car to delete an aggregate CAR action or a hierarchical CAR action.

Syntax

qos car car-name { aggregative | hierarchy } cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ green action | red action | yellow action ] *

qos car car-name { aggregative | hierarchy } cir committed-information-rate [ cbs committed-burst-size ] pir peak-information-rate [ ebs excess-burst-size ] [ green action | red action | yellow action ] *

undo qos car car-name

Default

No aggregate or hierarchical CAR action is configured.

Views

System view

Predefined user roles

network-admin

Parameters

car-name: Specifies the name of the global CAR action. This argument must start with a letter, and is a case-sensitive string of 1 to 31 characters.

aggregative: Specifies the global CAR action as an aggregate CAR action.

hierarchy: Specifies the global CAR action as a hierarchical CAR action.

cir committed-information-rate: Specifies the CIR in kbps, which specifies an average traffic rate. The value range for committed-information-rate is 8 to 160000000, and the values must be integral multiples of 8.

cbs committed-burst-size: Specifies the CBS in bytes. The value range for committed-information-rate is 512 to 256000000, and the values must be integral multiples of 512. The default CBS is 62.5 x committed-information-rate. If the default CBS is not a multiple of 512, the system rounds it up to the nearest multiple of 512. The default CBS cannot be greater than 256000000.

ebs excess-burst-size: Specifies the EBS in bytes. The default EBS is 0. The value range is 0 to 256000000, and the values must be integral multiples of 512.

pir peak-information-rate: Specifies the PIR in kbps. The value range is 8 to 160000000, and the values must be integral multiples of 8.

green action: Specifies the action to take on packets that conform to CIR. The default setting is pass. Hierarchical CAR does not support this option.

red action: Specifies the action to take on the packet that conforms to neither CIR nor PIR. The default setting is discard. Hierarchical CAR does not support this option.

yellow action: Specifies the action to take on packets that conform to PIR but not to CIR. The default setting is pass. Hierarchical CAR does not support this option.

action: Action to take on packets:

Usage guidelines

To use two rates for global CAR, configure the qos car command with the pir peak-information-rate option. To use one rate for global CAR, configure the qos car command without the pir peak-information-rate option.

An aggregate CAR action takes effect only after it is applied to an interface or used in a QoS policy.

A hierarchical CAR action takes effect only after it is used in a QoS policy.

Examples

# Configure aggregate CAR action aggcar-1, where CIR is 256, CBS is 2048, and red packets are dropped.

<Sysname> system-view
[Sysname] qos car aggcar-1 aggregative cir 256 cbs 2048 red discard

# Configure hierarchical CAR action h-car, where CIR is 512 and CBS is 102400.

<Sysname> system-view
[Sysname] qos car h-car hierarchy cir 512 cbs 102400

Related commands

display qos car name