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
  1. Prefer the path with the highest weight (local to router, Cisco-proprietary parameter)
  2. Prefer the path with the highest Local Preferance. (global within autonomous system)
  3. Prefer the path that was locally originated. (including redistributed routers from IGP)
  4. Prefer the path with the shortest AS_PATH (compare length only)
  5. Prefer the path with the lowest origin type (IGP < EGP < Incomplete)
  6. Prefer the path with the lowest multi-exit discriminator (MED)
  7. Prefer eBGP over iBGP paths.
  8. Prefer the path whose next-hop address has the lowest IGP metric
  9. Multipath determination
  10. For external BGP (eBGP) paths, prefer the oldest path
  11. Prefer paths from router with lower BGP router ID
  12. Prefer the path with the minimum cluster list length. (in BGP RR environments)
  13. Prefer the path that comes from the lowest neighbor address. (Tie-breaker)





Related links:



Comments

Popular posts from this blog

Filtering Routes in BGP using Route-maps and Prefix-list

Ansible-playbook for backing up running config of Cisco IOS

Ansible-Playbook to display output of multiple show commands (using stdout_lines with Loop)

Export or Backup Azure Virtual Networks or Subnet information into CSV using PowerShell

Ansible Playbook for Network OS Upgrade with pre and post checks

Export or Backup Azure Route Table into CSV using PowerShell

Cisco ASA Active/Active Failover Configuration

VMware NSX Traffic Flow — East-West & North-South

Get Model Number and Serial number of Cisco devices using ios_facts module

Download Visio Stencils for Network Topology