< Home

mpls te srlg path-calculation

Function

The mpls te srlg path-calculation command configures an SRLG-based path calculation mode.

The undo mpls te srlg path-calculation command deletes an SRLG-based path calculation mode.

By default, when calculating a path, CSPF does not consider an SRLG constraint or check whether the primary CR-LSP and a Bypass CR-LSP or a hot-standby CR-LSP are in the same SRLG.

Format

mpls te srlg path-calculation [ strict | preferred ]

undo mpls te srlg path-calculation

Parameters

Parameter Description Value
strict Indicates that CSPF must calculate a bypass CR-LSP or a hot-standby CR-LSP according to the SRLG attribute. The link that the primary path uses and the link that the bypass CR-LSP or hot-standby CR-LSP uses cannot be in the same SRLG.
NOTE:

After you specify this parameter, all the links on the primary CR-LSP regardless of whether the SRLG attribute is configured cannot be used for calculation of the bypass or hot-standby CR-LSP. However, nodes on the primary CR-LSP can be used in CSPF calculation.

-
preferred Indicates that CSPF prefers the SRLG attribute the first time it calculates a Bypass CR-LSP or hot-standby CR-LSP. If the initial calculation fails, the CSPF does not use the SRLG attribute as a constraint.
NOTE:

If no path calculation mode is specified in the mpls te srlg path-calculation command, SRLG-based path calculation is performed in preferred mode by default.

-

Views

MPLS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the TE FRR or hot standby scenario, to enable CSPF to calculate a path for a Bypass CR-LSP or a hot-standby CR-LSP based on the SRLG attribute, you must run the mpls te srlg path-calculation command on the ingress of the tunnel.

The SRLG, like the bandwidth and affinity property, is a constraint in path calculation. If SRLG is configured for links and the mpls te srlg path-calculation command is configured on the ingress of the primary CR-LSP, when calculating the path of a Bypass CR-LSP or a hot-standby tunnel, CSPF determines whether the SRLG attribute is used as a constraint according to the configured SRLG calculation mode.

Precautions

If strict is configured, CSPF always considers SRLG as a constraint.

If preferred is configured, the first time that CSPF calculates a path is according to the SRLG attribute. If the calculation fails, CSPF tries to calculate again without considering SRLG.

Example

# Enable path calculation in strict mode.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls te srlg path-calculation strict
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >