avoid-microloop frr-protected: OSPF remote LFA FRR is enabled. The primary link is PE1 - > P1 - > P2 - > PE2 and the backup link is PE1->P1->P3->P4->P2->PE2 (P1 - > P3 - > P4 is an LDP tunnel). After the primary link fails, the backup link is switched. A new primary link is calculated. That is, P1 performs route convergence again, and the next hop of P1 changes to P3. Because the convergence speed of P3 is slower than that of P1, the next hop of P3 is still P1. This creates a short loop between P1 and P3. To prevent this problem, enable OSPF anti-microloop so that P1 switches to the new next hop after a delay. After P3 converges the next hop to P4, P1 performs convergence. Traffic is successfully switched to the new primary link PE1->P1->P3->P4->P2->PE2 (P1->P3->P4 is in IP forwarding mode), preventing loops.The OSPF anti-microloop function takes effect only for OSPF remote LFA FRR.
avoid-microloop segment-routing: When a network fault occurs or is rectified, the IGP reconverges. Because the forwarding status of network nodes is transiently inconsistent, the convergence speed of each device varies. As a result, a forwarding microloop may occur. After the anti-microloop function of segment routing is configured, the ingress node strictly forwards traffic along the explicit path during IGP convergence. The forwarding process does not depend on IGP convergence of each device, preventing loops.
avoid-microloop segment-routing rib-update-delay 1000: This command indicates that the OSPF re-convergence time is 1000 ms during the fault recovery period and no convergence is performed within 1000 ms. If the default time is used, microrings may occur. OSPF routes are delivered to the routing table only after 1000 ms.
avoid-microloop segment-routing: This command is not mandatory.