cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
854
Views
20
Helpful
4
Replies

BGP > best status code

rookie R
Level 1
Level 1
 

Hi,

 

What exactly ">-best" in the BGP table means? Does that mean it's the best in the BGP table or it's the best in the Routing table?

 

thanks!

1 Accepted Solution

Accepted Solutions

The link provided by @balaji.bandi is a very helpful discussion of the best path selection in BGP (and a well deserved +5 for that contribution). The original post asks this question "Does that mean it's the best in the BGP table or it's the best in the Routing table?" Both previous responses have stressed that BGP best path is determined by comparing candidate routes in BGP and selecting the best candidate path. But they do not really address the comparison to the routing table.  

 

It might be helpful to remember that there is one process in BGP which evaluates candidate routes and selects the best path. And that there is another process which manages inserting routes into the IP routing table. So the BGP process evaluates the routes and selects the best path. BGP then sends the route to the route table maintenance process which decides whether the route will be inserted into the routing table. There are some circumstances where the BGP route will not be inserted into the routing table. The easy example is if there is a static route for the same prefix (and with the default AD for static routes). In this case the route table maintenance process informs BGP that the route is not inserted into the routing table. And BGP marks that route as "rib failure" shows as r in the output of show ip bgp. This link has a discussion of rib failure and an example showing output of show ip bgp which has 2 prefixes with the r for rib failure and also has the > best path indicator.

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/213286-understand-bgp-rib-failure-and-the-bgp-s.html

So the answer to the original question is that the BGP best path prefix is the best prefix in the BGP table but not necessarily the best prefix in the ip routing table.

HTH

Rick

View solution in original post

4 Replies 4

Hello

it means bgp has calculated it as the best path for that prefix as such it will allowed to be entered in the global route table if applicable as an a active valid route 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

balaji.bandi
Hall of Fame
Hall of Fame

BGP Best Path Selection Algorithm is used to choose and install the best routes into the router’s routing table.

 

what conditions it checks as below :

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13753-25.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

The link provided by @balaji.bandi is a very helpful discussion of the best path selection in BGP (and a well deserved +5 for that contribution). The original post asks this question "Does that mean it's the best in the BGP table or it's the best in the Routing table?" Both previous responses have stressed that BGP best path is determined by comparing candidate routes in BGP and selecting the best candidate path. But they do not really address the comparison to the routing table.  

 

It might be helpful to remember that there is one process in BGP which evaluates candidate routes and selects the best path. And that there is another process which manages inserting routes into the IP routing table. So the BGP process evaluates the routes and selects the best path. BGP then sends the route to the route table maintenance process which decides whether the route will be inserted into the routing table. There are some circumstances where the BGP route will not be inserted into the routing table. The easy example is if there is a static route for the same prefix (and with the default AD for static routes). In this case the route table maintenance process informs BGP that the route is not inserted into the routing table. And BGP marks that route as "rib failure" shows as r in the output of show ip bgp. This link has a discussion of rib failure and an example showing output of show ip bgp which has 2 prefixes with the r for rib failure and also has the > best path indicator.

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/213286-understand-bgp-rib-failure-and-the-bgp-s.html

So the answer to the original question is that the BGP best path prefix is the best prefix in the BGP table but not necessarily the best prefix in the ip routing table.

HTH

Rick

I am glad that our explanations have been helpful. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.

HTH

Rick
Review Cisco Networking products for a $25 gift card