avoid-microloop segment-routing (OSPF view)

Function

The avoid-microloop segment-routing command enables the anti-microloop function in segment routing.

The undo avoid-microloop segment-routing command disables the anti-microloop function in segment routing.

By default, the anti-microloop function in segment routing is disabled.

Format

avoid-microloop segment-routing

undo avoid-microloop segment-routing

Parameters

None

Views

OSPF view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

If a network fault occurs or is rectified, an IGP performs route convergence. A transient forwarding status inconsistency between nodes results in different convergence rates on devices, which poses the risk of micro-loops. After anti-micro loop is enabled for segment routing, the ingress forwards packets strictly along an explicit path during IGP convergence. The forwarding is irrelevant to IGP convergence of devices, which prevents loops.

Prerequisites

Before configuring the current command line, you need to configure the segment-routing mpls command.

Follow-up Procedure

Run the avoid-microloop segment-routing rib-update-delay command to set a switchback time.

Example

# Enable anti-micro loop function for an OSPF process in segment routing.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] quit
[*HUAWEI] ospf 1
[*HUAWEI-ospf-1] opaque-capability enable
[*HUAWEI-ospf-1] segment-routing mpls
[*HUAWEI-ospf-1] avoid-microloop segment-routing
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >