Solved

BGP main loop prevention mechanism

Posted on 2006-06-25
4
4,213 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Website Routing Issue 3 51
RIP Routing 5 63
Advice on setting up a new network for a small business 3 101
Quality settings for cisco routers 8 56
New Server 172.16.200.2  was moved from behind Router R2 f0/1 to behind router R1 int f/01 and has now address 172.16.100.2. But we want users still to be able to connected to it by old IP. How to do it ? We can used destination NAT (DNAT).  In DNAT…
In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
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…

808 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