direct-route degrade-delay

Function

The direct-route degrade-delay command sets the delay time after which the original cost of the IPv4 direct route is restored on a specified interface that changes from Down to Up.

The undo direct-route degrade-delay command restores the default configurations.

By default, there is no such function on the interface.

Format

direct-route degrade-delay delay-time degrade-cost cost

undo direct-route degrade-delay

Parameters

Parameter Description Value
delay-time

Specifies the delay after which the original cost of the IPv4 direct route is restored on a specified interface.

The value is an integer ranging from 1 to 3600, in seconds.

degrade-cost cost

Specifies the cost of the IPv4 direct route on a specified interface.

The value is an integer ranging from 1 to 4294967295.

Views

Eth-Trunk sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

On IP radio access networks, an L2VPN connection is set up between each AGG and the CSG through L2VE interfaces. BGP VPNv4 peer relationships are set up between the AGGs and RSGs. L3VE interfaces are configured on the AGGs, and VPN instances are bound to the L3VE interfaces so that the CSG can access the L3VPN. BGP is configured on the AGGs to import IPv4 direct routes between the CSG and AGGs. The AGGs convert these IPv4 direct routes to BGP VPNv4 routes before advertising them to the RSGs.

In most cases, the RSGs select routes advertised by the master AGG, and traffic travels along the active link. If the master AGG or the CSG-AGG link fails, traffic switches over to the backup link. After the master AGG or the CSG-AGG link recovers, the L3VE interface on the master AGG goes from Down to Up, and the master AGG immediately generates an IPv4 direct route destined for the CSG and advertises the route to the RSGs. Downstream traffic then switches over to the active link. However, the master AGG has not learned the MAC address of the NodeB yet. As a result, downstream traffic is lost.

To address this problem, run the direct-route degrade-delay command on the L3VE sub-interface of the master AGG to increase the cost of the IPv4 direct route when the sub-interface goes from Down to Up. In this case, the RSG does not select the IPv4 direct routes, and downstream traffic still travels along the backup link. After the configured delay expires, the cost of the IPv4 direct route to the CSG restores to the default value 0. Then, the RSG selects the IPv4 direct routes, and downstream traffic is switched over to the active link. By this time, the master AGG has learned the MAC address of the NodeB, and downstream traffic loss is reduced.

Prerequisites

The main VE interface of the sub-interface has been configured as an L3VE interface.

Precautions

The direct-route track pw-state, direct-route degrade-delay, and direct-route track vrrp commands cannot all be configured simultaneously. If you run the commands, the latest configuration overrides the previous one.

Example

# Set degrade-cost cost to 50 and delay-time to 10s on Eth-Trunk1.1.
<HUAWEI> system-view
[~HUAWEI] interface Eth-Trunk 1
[*HUAWEI-Eth-Trunk1] quit
[*HUAWEI] interface Eth-Trunk 1.1
[*HUAWEI-Eth-Trunk1.1] direct-route degrade-delay 20 degrade-cost 50
# Set degrade-cost cost to 30 and delay-time to 10s on a sub-interface.
<HUAWEI> system-view
[~HUAWEI] interface virtual-ethernet0/1/8
[~HUAWEI-Virtual-Ethernet0/1/8] ve-group 2 l3-access
[*HUAWEI-Virtual-Ethernet0/1/8] interface virtual-ethernet0/1/8.1
[*HUAWEI-Virtual-Ethernet0/1/8.1] direct-route degrade-delay 10 degrade-cost 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >