port-mirroring car

Function

The port-mirroring car command configures the CAR function for mirrored traffic.

The undo port-mirroring car command restores the default configuration.

By default, the cir value is 2.5 Gbit/s.

Format

port-mirroring car cir cir-value [ pir pir-value ] [ cbs cbs-value [ pbs pbs-value ] ]

undo port-mirroring car

Parameters

Parameter Description Value
pir pir-value

Specifies the PIR, that is, the maximum rate at which traffic is allowed to pass.

The value is an integer in the range 0 to 4294967295, in kbit/s.

cbs cbs-value

Specifies the CBS, that is, the committed burst size. This indicates the number of bits that the device can transmit at a burst, which is also the depth of the first token bucket (assuming that this is bucket C).

The value is an integer that ranges from 0 to 4294967295, in bytes.

pbs pbs-value

Specifies the PBS, that is, the volume of the peak traffic that can pass at a burst. PBS is considered the depth of the second bucket that is assumed to be bucket P.

The value is an integer that ranges from 0 to 4294967295, in bytes.

cir cir-value

Committed information rate.

The value is an integer in the range 0 to 4294967295, in kbit/s. The default value is 2.5 Gbit/s.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10G LAN interface view, 10G WAN interface view, 25GE sub-interface view, 25GE interface view, 40GE sub-interface view, 40GE interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, Layer 2 XGE interface view, XGE sub-interface view, XGE interface view, Layer 2 Eth-Trunk interface view, Traffic behavior view, Mirroring instance view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
mirror write

Usage Guidelines

Usage Scenario

You can configure the CAR function for mirrored traffic to prevent a large amount of mirrored traffic from affecting packet processing.

In the case of mirroring traffic, in order to prevent the excessive mirror traffic from affecting the forwarding performance, CAR is used for the mirror traffic.

Prerequisites

You have configured a mirrored port and an observing port.

Configuration Impact

Configure the CAR function under traffic behavior,to limit the mirrored traffic according to the configured CAR parameters.

Example

# Configure CAR for mirrored traffic in an instance.
<HUAWEI> system-view
[~HUAWEI] mirror instance mirloc location
[*HUAWEI--mirror-instance-mirloc] port-mirroring car cir 1000
[*HUAWEI--mirror-instance-mirloc] commit
[~HUAWEI--mirror-instance-mirloc]
# Configure the CAR function for traffic processed by flow mirroring.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[~HUAWEI-behavior-b1] port-mirroring car cir 1000
# Configure the CAR function for mirrored traffic.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[~HUAWEI-GigabitEthernet0/1/0] port-mirroring car cir 1500
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >