Part 7 - ACL - QoS

07-Global CAR Configuration Commands

Chapters Download  (38.27 KB)

07-Global CAR Configuration Commands


Global CAR Configuration Commands

Global CAR Configuration Commands

car name

Syntax

car name car-name [ hierarchy-car hierarchy-car-name [ mode { and | or } ] ]

undo car

View

Traffic behavior view

Default Level

2: System level

Parameters

car-name: Name of an aggregation CAR action.

hierarchy-car-name: Name of the referenced hierarchical CAR action.

mode: Collaborating mode of the hierarchical CAR action and the aggregation CAR action, which can be AND (the default) or OR. If the collaborating mode is not specified, the AND mode applies.

l   AND mode (the and keyword), in which the traffic rate of a flow is limited by both the aggregation CAR applied to it and the total traffic rate defined by the hierarchical CAR. For example, you can use aggregation CAR actions to limit the Internet access rates of flow 1 and flow 2 to 128 kbps each, and use a hierarchical CAR action to limit their total traffic rate to 192 kbps. When flow 1 is not present, flow 2 can access the Internet at the maximum rate, 128 kbps. If both flows are present, each flow cannot exceed its own rate limit, and the total rate cannot exceed 192 kbps.

l   OR mode (the or keyword), in which a flow may pass through at a rate equal to the aggregation CAR applied to it or a higher rate if the total traffic rate of all flows does not exceed the hierarchical CAR. For example, you can use aggregation CAR actions to limit the rates of video flow 1 and flow 2 to 128 kbps each, and then use a hierarchical CAR action to limit their total traffic rate to 512 kbps. Thus, as long as the rate of flow 1 does not exceed 128 kbps, flow 2 can pass at a rate up to 384 kbps.

Description

Use the car name command to configure the traffic behavior to reference an aggregation CAR action.

Use the undo car command to remove the aggregation CAR action from the traffic behavior.

Examples

# Configure traffic behavior be1 to reference aggregation CAR aggcar-1 and hierarchical CAR hcar, with the collaborating mode as or.

<Sysname> system-view

[Sysname] traffic behavior be1

[Sysname-behavior-be1] car name aggcar-1 hierarchy-car hcar mode or

display qos car name

Syntax

display qos car name [ car-name ]

View

Any view

Default Level

1: Monitor level

Parameters

car-name: Name of a global CAR action, which can be an aggregation CAR action or a hierarchical CAR action.

Description

Use the display qos car name command to display the configuration and statistics of a specified global CAR action.

If no CAR action is specified, the configuration and statistics of all global CAR actions are displayed.

Examples

# Display global CAR configuration.

<Sysname> display qos car name

 Name: agg

  Mode: aggregative

  CIR 256(kbps)  CBS: 1024(byte)  EBS: 0(byte)  PIR: 4096(kbps)

  Green Action: pass

  Yellow Action: pass

  Red Action: discard

  Green packet 0(Bytes), 0(Pkts)

Red packet 0(Bytes), 0(Pkts)

 

 Name: hcar

  Mode: hierarchy

  CIR 1024(kbps)  CBS: 8192(byte)

  Green packet 0(Bytes), 0(Pkts)

  Red packet 0(Bytes), 0(Pkts)     

Table 1-1 display qos car name command output description

Field

Description

Name

Name of the CAR action

Mode

Type of the CAR action, which can be:

l  aggregative: Aggregation CAR

l  hierarchy: Hierarchical CAR

CIR  CBS  EBS  PIR

Parameters for the aggregation CAR action

Green Action

Action to take on packets, which can be:

l  discard: Drops the packet

l  pass: Permits the packet to pass through

l  remark-dot1p-pass new-cos: Sets the 802.1p priority value of the packet to new-cos and permits the packet to pass through

l  remark-dscp-pass new-dscp: Sets the DSCP value of the packet to new-dscp and permits the packet to pass through

l  remark-lp-pass new-local-precedence: Sets the local precedence of the packet to new-local-precedence and permits the packet to pass through

Yellow Action

Red Action

Green packet

Statistics on green packets

Red packet

Statistics on red packets

 

qos car aggregative

Syntax

qos car car-name aggregative cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pir peek-information-rate ] [ red action ]

undo qos car car-name

View

System view

Default Level

2: System level

Parameters

car-name: Name of the aggregation CAR action.

aggregative: Indicates that the global CAR action is aggregative.

cir committed-information-rate: Committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 8 to 32000000, and must be a multiple of 8.

cbs committed-burst-size: Committed burst size (CBS). The committed-burst-size argument ranges from 512 to 16000000, and defaults to 512.

ebs excess-burst-size: Excess burst size (EBS) in bytes. The excess-burst-size argument ranges from 0 to 16000000, and defaults to 512.

pir peak-information-rate: Peak information rate (PIR) in kbps. The peak-information-rate argument ranges from 8 to 32000000, and must be a multiple of 8.

green action: Specifies the action to take on packets that conform to CIR. The default is pass.

yellow action: Specifies the action to take on packets that conform to PIR but not to CIR. The default is pass.

red action: Specifies the action to take on packets that conforms to neither CIR nor PIR. The default is discard.

action: Action to take on packets, which can be:

l   discard: Drops the packet.

l   pass: Permits the packet to pass through.

l   remark-dot1p-pass new-cos: Sets the 802.1p priority value of the packet to new-cos and permits the packet to pass through. The new-cos argument ranges from 0 to 7.

l   remark-dscp-pass new-dscp: Sets the DSCP value of the packet to new-dscp and permits the packet to pass through. The new-dscp argument ranges from 0 to 63.

Description

Use the qos car aggregative command to configure an aggregation CAR action.

Use the undo qos car command to remove an aggregation CAR action.

An aggregation CAR action does not take effect until it is applied to an interface or referenced in a policy.

Examples

# Configure the aggregation CAR action aggcar-1 as follows: set CIR to 256 kbps, CBS to 4096 bytes, and drop red packets.

<Sysname> system-view

[Sysname] qos car aggcar-1 aggregative cir 256 cbs 4096 red discard

qos car hierarchy

Syntax

qos car car-name hierarchy cir committed-information-rate [ cbs committed-burst-size ]

undo qos car car-name

View

System view

Default Level

2: System level

Parameters

car-name: Name of the hierarchical CAR action, which is a string of 1 to 31 characters.

hierarchy: Indicates that the global CAR action is a hierarchical CAR action.

cir committed-information-rate: Committed information rate (CIR) in kbps. The committed-information-rate argument ranges from 8 to 32000000, and must be a multiple of 8.

cbs committed-burst-size: Specifies the committed burst size (CBS) in bytes. The CBS specifies the allowed size of bursty traffic when the actual average rate is no greater than CIR. The CBS ranges from 4096 to 16000000, and defaults to 4096.

Description

Use the qos car hierarchy command to configure a hierarchical CAR action.

Use the undo qos car command to remove a hierarchical CAR action.

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

Examples

# Configure the hierarchical CAR action hierarchy as follows: set CIR to 256 kbps and CBS to 8192 bytes.

<Sysname> system-view

[Sysname] qos car hcar hierarchy cir 256 cbs 8192

reset qos car name

Syntax

reset qos car name [ car-name ]

View

User view

Default Level

2: System level

Parameters

car-name: Name of a global CAR action.

Description

Use the reset qos car name command to clear the statistics of the specified global CAR action.

Note that, if no car-name is specified, the statistics of all the global CAR actions are cleared.

Examples

# Clear the statistics of the global CAR action aggcar-1.

<Sysname> reset qos car name aggcar-1

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.