apply traffic-rate

Function

The apply traffic-rate command enables a device to limit the rate of the traffic matching a filtering rule.

The undo apply traffic-rate command cancels the configuration.

By default, no traffic rate is limited.

Format

apply traffic-rate rate

undo apply traffic-rate

Parameters

Parameter Description Value
rate

Specifies the traffic rate.

The value is an integer ranging from 1 to 100000000, in kB/s.

Views

Flow-Route-IPv6 view, Flow-Route view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
flow-route write

Usage Guidelines

Usage Scenario

After the apply traffic-rate command is configured for a BGP (IPv6) Flow Specification route or BGP (IPv6) VPN Flow Specification route, the rate of the traffic matching a filtering rule is limited to protect the target device from attacks, and to ensure network security.

Prerequisites

A BGP (IPv6) Flow Specification route or BGP (IPv6) VPN Flow Specification route has been configured using the flow-route command in the system view.

Configuration Impact

If the apply traffic-rate command is run multiple times for the same BGP (IPv6) Flow Specification route or BGP (IPv6) VPN Flow Specification route, only the latest configuration takes effect.

Example

# Set the traffic rate to 98000 kB/s in static BGP IPv6 Flow Specification route Rule 1.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1 ipv6
[*HUAWEI-flow-route-ipv6] if-match port equal 24
[*HUAWEI-flow-route-ipv6] apply traffic-rate 98000
# Configure a filtering action in static BGP Flow Specification route Rule 1 to limit the rate of the traffic matching a filtering rule to 98000 kB/s.
<HUAWEI> system-view
[~HUAWEI] flow-route Rule1
[*HUAWEI-flow-route] if-match port equal 24
[*HUAWEI-flow-route] apply traffic-rate 98000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >