Got it

Segment Routing TI-LFA: Difference between "avoid-microloop frr-protected" vs "avoid-microloop segment-routing" commands

Created: Oct 13, 2021 21:32:20Latest reply: Oct 19, 2021 13:11:32 251 3 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Please, could someone explain to me in detail what is the difference between these two commands.

"avoid-microloop frr-protected"   vs.  "avoid-microloop segment-routing" (in the context of Segment Routing TI-LFA)


 I have tested SR TI-LFA in an escenario like the one of the picture: 

TI-LFA micro loop

Due to the difference in OSPF convergence times, a micro loop is created between the PLR and the neighboring router. To avoid this, I have tried different configurations:


1) first configuration:


avoid-microloop frr-protected

avoid-microloop frr-protected rib-update-delay 1000

 

It went well without micro-loop. I understand that the update of the rib was delayed enough so that the OSPF converges in the neighboring node and the loop does not occur.

 

2) second configuration:

 

avoid-microloop segment-routing

avoid-microloop segment-routing rib-update-delay 1000

 

The micro loop occurred for more than 100 ms. What does this command do?

 

3) third configuration:


avoid-microloop frr-protected

avoid-microloop frr-protected rib-update-delay 600

avoid-microloop segment-routing

avoid-microloop segment-routing rib-update-delay 1000


In this case works well without micro-loop. 

Is the command "avoid-microloop segment-routing" necessary?



Thank you for your help!

Bye.

Featured Answers

Recommended answer

fuzi_yao
Admin Created Oct 14, 2021 00:45:29

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.
View more
  • x
  • convention:

All Answers
Hello! Thank you for contacting us.
We are working on an answer for you.
View more
  • x
  • convention:

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.
View more
  • x
  • convention:

NICE
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.