mpls te igp metric

Function

The mpls te igp metric command sets the TE metric for a link.

The undo mpls te igp metric command restores the default setting.

By default, the TE metric is equal to the IGP metric.

Format

mpls te igp metric absolute value

mpls te igp metric relative relative-value

undo mpls te igp metric

Parameters

Parameter Description Value
relative relative-value

Specifies the relative metric mode.

The relative-value is an integer ranging from -10 to 10 and is the offset between a TE metric and an IGP metric. The default value is 0.

absolute value

Specifies the absolute metric mode.

The value is an integer ranging from 1 to 65535.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

This command is used to configure IGP metric of the TE tunnel.

Either of the following parameters is set when configuring the metric value used by a TE tunnel during IGP shortcut path calculation:

  • If absolute is configured, the TE tunnel metric value is equal to the configured metric value.
  • If relative is configured, the TE tunnel metric value is equal to the sum of the IGP route metric value and relative TE tunnel metric value.

    In relative mode, the metric of a TE tunnel depends on the metric of the IGP path that actually forwards traffic in the tunnel.

    When the working path of a TE tunnel is switched (for example, a primary/standby switchover or a partial FRR protection switchover), the TE tunnel metric changes accordingly. As a result, route recomputation may occur in the IGP domain, and the switching performance deteriorates sharply.

    In a hot-standby switchover scenario, you can increase the WTR parameter in the mpls te backup hot-standby command in the tunnel interface view to optimize the switchover performance.

    In FRR and single-LSP switchover scenarios, you can increase the values of switch-time and delete-time in the mpls te switch-delay delete-delay command to optimize the switchover performance.

Example

# Set a TE metric to a value equal an IGP metric minus 1 during SPF calculation.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol mpls te
[*HUAWEI-Tunnel1] mpls te igp metric relative -1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >