Solved

BGP main loop prevention mechanism

Posted on 2006-06-25
4
4,109 Views
Last Modified: 2008-01-09
I have read this :

((Since BGP does not use a discernible metric value as IGPs do, the main loop prevention mechanism built into iBGP is that fact that routes learned from an iBGP neighbor cannot be advertised onto another iBGP neighbor. Therefore,
this stipulation implies that all iBGP speaking devices must establish direct peering relationships with all other iBGP devices within your autonomous system)).

I am aware that we have to have full mesh peering relations within IBGP, that means, any IBGP speaker will not pass route update to other IBGP speaker unless it has peer relationship with it . In this way, we are preventing loops from happening .

But I could not get what he mean by his comparison when he says :

 “Since BGP does not use a discernible metric value as IGPs do”
0
Comment
Question by:zillah
4 Comments
 
LVL 3

Expert Comment

by:neowolf219
ID: 16984810
Hey zillah,

Okay, keep in mind that when doing any type of route engineering with IGPs, as long as the administrative distance is the same (ie, OSPF = 110, RIP = 120, etc, OSPF is always preferred over RIP regardless of metric), the metric will be the determining factor.  This isn't so in BGP.

The "loop" prevention techniques in iBGP is saying that I cannot advertise the route I received back out that interface.  To affect how traffic moves through an AS to get to another AS, many attributes can be set, such as Weight, Local Preference (to affect how traffic leaves your AS) and MED and AS-PATH affects how traffic comes into your AS).  

Notice how I'm saying "into" and "leaving" your AS.  If you are originating a route within your AS, then since everything is fully meshed the router will be the next-hop for that advertised BGP route within your iBGP (remember, fully meshed).  Hence why BGP doesn't use a discernible metric.  

In IGP, you might not be fully meshed, so you will prefer the path with the lowest metric, hence why it is important (most IGPs aren't fully meshed).  But remember with IGPs, administrative distance first, then metric.

HTH
0
 
LVL 12

Accepted Solution

by:
pjtemplin earned 125 total points
ID: 17251864
Wrong, iBGP can always advertise a route back out the interface it was received on.  There is no such limitation in BGP.

BGP attributes, assuming no route map processing, won't change as a route is passed around an AS.  That's the "no discernable metric" part of that statement.  Therefore, since nothing increments, if BGP routers passed iBGP-learned routes to other iBGP neighbors, there'd be no way to tell it's looping through the AS.  As a result, routers don't pass iBGP-learned routes to other iBGP neighbors, unless an iBGP mesh scaling trick is used.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

While it is possible to put two routes in place with the secondary having a higher metric, this may not always work. In the event of a failure that does not bring down the physical interface on the router the primary route is not removed. There is a…
Hello , This is a short article on how would you go about enabling traceoptions on a Juniper router . Traceoptions are similar to Cisco debug commands but these traceoptions are implemented in Juniper networks router . The following demonstr…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now