BGP Best Path Selection
Border Gateway Protocol (BGP) routers typically receive multiple paths to the same destination. The BGP best path algorithm decides which is the best path to install in the IP routing table and to use for traffic forwarding. The best route selection criteria occurs in the following order:
- Exclude any route with inaccessible next hop
- Prefer the path with the highest weight (local to router, Cisco-proprietary parameter)
- Prefer the path with the highest Local Preferance. (global within autonomous system)
- Prefer the path that was locally originated. (including redistributed routers from IGP)
- Prefer the path with the shortest AS_PATH (compare length only)
- Prefer the path with the lowest origin type (IGP < EGP < Incomplete)
- Prefer the path with the lowest multi-exit discriminator (MED)
- Prefer eBGP over iBGP paths.
- Prefer the path whose next-hop address has the lowest IGP metric
- Multipath determination
- For external BGP (eBGP) paths, prefer the oldest path
- Prefer paths from router with lower BGP router ID
- Prefer the path with the minimum cluster list length. (in BGP RR environments)
- Prefer the path that comes from the lowest neighbor address. (Tie-breaker)
Related links:
Comments
Post a Comment