flow-car

Function

The flow-car command configures flow CAR for flows with the source or destination IP addresses residing on a specified network segment.

The undo flow-car command cancels the configuration.

By default, this function is disabled.

Format

flow-car cir cir-value [ pir pir-value ] [ cbs cbs-value [ pbs pbs-value ] ] identifier { source-ip | destination-ip }

undo flow-car

Parameters

Parameter Description Value
pir pir-value

Specifies the PIR.

The value is an integer ranging from 0 to 4294967295, in kbit/s. The value of pir-value must be greater than or equal to the configured value of cir-value.

cbs cbs-value

Specifies the CBS. The CBS indicates the committed volume of traffic that an interface allows to pass and the depth of the first bucket (assuming it is bucket A).

The value is an integer that ranges from 0 to 4294967295, in bytes. The default cbs-value value is equal to cir-value.

pbs pbs-value

Specifies the PBS. The PBS indicates the peak volume of traffic that an interface allows to pass and the depth of the second token bucket (assuming it is bucket B).

The value is an integer that ranges from 0 to 4294967295, in bytes. The default pbs-value equals to the pir-value.

identifier source-ip

Implements independent rate limiting based on source IP addresses.

-

identifier destination-ip

Implements independent rate limiting based on destination IP addresses.

-

cir cir-value

Specifies the CIR.

The value is an integer ranging from 0 to 4294967295, in kbit/s.

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

To configure flow CAR for flows with the source or destination IP addresses residing on a specified network segment, run the flow-car command. After the source or destination IP address of a flow matches the ACL, flow CAR is implemented for the flow.

Precautions

  • If pir-value is not set, The default pbs-value equals to the cbs-value.
  • If pir-value is set to a value smaller than 100000 kbit/s, the default pbs-value is calculated in the following formula: pir-value x (1500/8).
  • If pir-value is set to a value greater than or equal to 100000 kbit/s, the default pbs-value is calculated in the following formula: 100000 x (1500/8).

    This function is mutually exclusive with CAR, SQ, daa car and suppression in the traffic behavior view.

    For the traffic that matches both a traffic policy and BGP Flowspec on an interface, if the flow CAR action of the traffic policy is performed, the CAR action of BGP Flowspec is not performed. The flow CAR of the traffic policy has a higher priority.

    Flow CAR is not supported when multi-field classification is applied to the scenario of VSI, L3VPN, UCL, EVPN, global ACL, VXLAN, and VBDIF.

Example

# Set the CIR to 2 Mbit/s for each flow with the source IP address residing on the network segment housing IP addresses ranging from 10.1.1.0 to 10.1.1.255.
<HUAWEI> system-view
[~HUAWEI] traffic behavior aaa
[*HUAWEI-behavior-aaa] flow-car cir 2000 identifier source-ip
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >