Got it

Avoid routing loops in BGP

Created: Sep 9, 2021 07:08:36Latest reply: Sep 9, 2021 07:15:37 300 3 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

How to avoid routing loops in BGP?

Featured Answers

Recommended answer

DDSN
Admin Created Sep 9, 2021 07:13:32

Hi zaheernew,

a. Within the AS: With IBGP split-horizon, BGP routers do not advertise routes learned from IBGP peers to other IBGP peers.

b. Between ASs: Route update with the AS number is not accepted through the AS-PATH path attribute.

c. In special cases, split horizon causes some routers to fail to learn some routing information. To solve this problem, BGP has two mechanisms: Route reflector and federation. The anti-loop mechanism of the router reflector is configured with two attributes: ORIGINATOR-ID and CLUSTER-LIST.

ORIGINATOR-ID: When a route is reflected by the RR for the first time, the RR adds the Originator-ID attribute to the route to identify the router that initiates the route. If the Originator-ID attribute exists in a route, the RR does not create a new Originator-ID. When another BGP Speaker receives the route, it compares the received Originator-ID with the local Router ID. If the two IDs are the same, the BGP Speaker ignores the route and does not process the route.

CLUSTER-LIST: In an AS, each RR uses a unique CLUSTER-ID as the identifier. To prevent routing loops, the RR uses CLUSTER_LIST to record all CLUSTER_IDs that the reflected route passes through. When the RR receives an updated route, the RR checks the Cluster-List. If the local Cluster-ID exists in the Cluster-List, the route is discarded. If there is no local Cluster-ID, add the local Cluster-ID to the Cluster-List and reflect the updated route.

For more information, you can refer to https://forum.huawei.com/enterprise/en/understanding-of-loop-protection-for-the-bgp-protocol/thread/623792-861
I hope it helps!
View more
  • x
  • convention:

All Answers
DDSN
DDSN Admin Created Sep 9, 2021 07:09:17

Hi zaheernew,
Please wait patiently. Our engineers are looking for answers to your questions.
View more
  • x
  • convention:

DDSN
DDSN Admin Created Sep 9, 2021 07:13:32

Hi zaheernew,

a. Within the AS: With IBGP split-horizon, BGP routers do not advertise routes learned from IBGP peers to other IBGP peers.

b. Between ASs: Route update with the AS number is not accepted through the AS-PATH path attribute.

c. In special cases, split horizon causes some routers to fail to learn some routing information. To solve this problem, BGP has two mechanisms: Route reflector and federation. The anti-loop mechanism of the router reflector is configured with two attributes: ORIGINATOR-ID and CLUSTER-LIST.

ORIGINATOR-ID: When a route is reflected by the RR for the first time, the RR adds the Originator-ID attribute to the route to identify the router that initiates the route. If the Originator-ID attribute exists in a route, the RR does not create a new Originator-ID. When another BGP Speaker receives the route, it compares the received Originator-ID with the local Router ID. If the two IDs are the same, the BGP Speaker ignores the route and does not process the route.

CLUSTER-LIST: In an AS, each RR uses a unique CLUSTER-ID as the identifier. To prevent routing loops, the RR uses CLUSTER_LIST to record all CLUSTER_IDs that the reflected route passes through. When the RR receives an updated route, the RR checks the Cluster-List. If the local Cluster-ID exists in the Cluster-List, the route is discarded. If there is no local Cluster-ID, add the local Cluster-ID to the Cluster-List and reflect the updated route.

For more information, you can refer to https://forum.huawei.com/enterprise/en/understanding-of-loop-protection-for-the-bgp-protocol/thread/623792-861
I hope it helps!
View more
  • x
  • convention:

I hope the following answer will helpful.

The avoiding or preventing routing loops in BGP have to use AS_PATH attribute to record all AS areas that a route passes.

Source:
https://support.huawei.com/enterprise/en/doc/EDOC1100055099/df5dad4f/example-for-preventing-routing-loops


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.