mpls te reoptimization (Tunnel interface view)

Function

The mpls te reoptimization command enables periodic re-optimization for a tunnel.

The undo mpls te reoptimization command disables this function.

By default, re-optimization is disabled.

Format

mpls te reoptimization [ frequency interval ]

undo mpls te reoptimization

Parameters

Parameter Description Value
frequency interval

Specifies the re-optimization interval. A CR-LSP is recalculated at a specified interval based on constraints. If a better path is calculated, a CR-LSP is re-established over the new path.

The value is an integer ranging from 60 to 604800, in seconds. By default, the interval is 3600 seconds, namely, 1 hour.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The mpls te reoptimization command is run in the tunnel interface view to allow a TE tunnel to be automatically reestablished over a better path if the better path is calculated. After a better path to the same destination has been calculated for a certain reason, such as a cost change, a TE tunnel will be automatically reestablished, optimizing resources on a network.

Re-optimization for a TE tunnel is performed in either of the following modes:

  • Automatic re-optimization: The TE tunnel is periodically optimized, saving manpower. To enable automatic re-optimization, run the mpls te reoptimization command in the tunnel interface view. In addition, this command takes effect only on an established TE tunnel.
  • Manual re-optimization: The TE tunnel is immediately optimized. To immediately optimize the TE tunnel, run the mpls te reoptimization command in the user view.

Prerequisites

CSPF has been enabled using the mpls te cspf command.

Example

# Enable periodic re-optimization for a tunnel named Tunnel1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface tunnel1
[*HUAWEI-Tunnel1] tunnel-protocol mpls te
[*HUAWEI-Tunnel1] mpls te reoptimization frequency 43200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >