© Copyright Lenovo 2017 Chapter 29: Border Gateway Protocol 461
Selecting Route Paths in BGP
BGPselectsonlyonepathasthebestpath.Itdoesnotrelyonmetricattributesto
determinethebestpath.WhenthesamenetworkislearnedviamorethanoneBGP
peer,BGPusesitspolicyforselectingthebestroutetothatnetwork.TheBGP
implementationonthe CN4093
usesthefollowingcriteriatoselectapathwhenthe
samerouteisreceivedfrommultiplepeers.
1. Localfixedandstaticroutesarepreferredoverlearnedroutes.
2. WithiBGPpeers,routeswithhigherlocalpreferencevaluesareselected .
3. Inthecaseofmultipleroutesofequalpreference,theroutewith
lowerASpath
weightisselected.
ASpathweight=128xASpathlength(numberofautonomoussystemstraversed).
4. Inthecaseofequalweightandrouteslearnedfrompeersthatresideinthesame
AS,thelowermetricisselected.
Note: Aroutewithametricispreferredovera
routewithoutametric.
5. Thelowercosttothe nexthopofroutesisselected.
6. Inthecaseofequalcost,theeBGProuteispreferredoveriBGP.
7. Ifallrouteshavesameroutetype(eBGPoriBGP),theroutewiththelowerrouter
IDisselected .
Whenthepathis
selected,BGPputstheselectedpathinitsroutingtableand
propagatesthepathtoitsneighbors.