User Tools

Site Tools


cisco:bgp:path_attributes

BGP Path Attributes

  • Well-known mandatory
    • Must be recognized by all BGP implementations and included with every prefix advertisement
  • Well-known discretionary
    • May or may not be included with every prefix advertisement
  • Optional transitive
    • Do not have to be recognized by all BGP implementations
    • Can be set so they are transitive and stay with the route advertisement from AS to AS
  • Optional non-transitive
    • Cannot be shared from AS to AS

How the Best Path Algorithm Works

BGP assigns the first valid path as the current best path. BGP then compares the best path with the next path in the list, until BGP reaches the end of the list of valid paths. This list provides the rules that are used to determine the best path:

  1. Highest WEIGHT.
  2. Highest LOCAL_PREF.
  3. Locally originated via a network or aggregate BGP subcommand or through redistribution from an IGP.
  4. Shortest AS_PATH.
  5. Lowest origin type.
  6. Lowest multi-exit discriminator (MED).
  7. eBGP over iBGP paths.
  8. Lowest IGP metric to the BGP next hop.
  9. Determine if multiple paths require installation in the routing table for BGP Multipath.
  10. When both paths are external, prefer the path that was received first (the oldest one).
  11. Prefer the route that comes from the BGP router with the lowest router ID.
  12. If the originator or router ID is the same for multiple paths, prefer the path with the minimum cluster list length.
  13. Prefer the path that comes from the lowest neighbor address.

Cisco BGP

cisco/bgp/path_attributes.txt · Last modified: 2017/03/11 19:23 by Derg Enterprises