Thursday, June 20, 2013

BGP selection process

1.
Ignore a route if the next hop is not known.
2.
Ignore IBGP routes that are not synchronized.
3.
Prefer the route with the largest weight.
4.
Prefer the route with the largest local preference.
5.
Prefer the route that was locally originated.
6.
Prefer the route with the shortest AS path.

If you're using bgp bestpath as-path ignore, skip this step. When you use the as-set option for aggregated routes, as_set counts as 1 regardless of the number of AS entries in the set. Confederation sub-AS numbers are not used to determine the AS-path length.
7.
Prefer the route with the lowest origin (IGP < EGP < Incomplete).
8.
Prefer the route with the lowest MED.This comparison is only between routes advertised by the same external AS.

If you're using bgp always-compare-med, compare MEDs for all paths. If used, this command needs to be configured on every BGP router in the AS.

If you're using bgp bestpath med-confed, the MEDs are compared only for routes that have an AS confederation sequence in their AS-path attribute.

If a prefix is received with no MED value, the prefix is assigned a MED value of 0. If you're using bgp bestpath med missing-as-worst, a prefix with a missing MED value is assigned a MED value of 4,294,967,294.
9.
Prefer EBGP routes to IBGP routes.
10.
Prefer the route with the nearest IGP neighbor.
11.
Prefer the oldest route.
12.
Prefer the path received from the router with the lowest router ID.
Related Posts Plugin for WordPress, Blogger...