01-02-2021 03:08 AM
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!
Solved! Go to Solution.
01-02-2021 08:53 AM
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.
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.
01-02-2021 03:16 AM - edited 01-02-2021 09:24 AM
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
01-02-2021 05:15 AM
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
01-02-2021 08:53 AM
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.
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.
01-04-2021 08:00 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide