BGP Decision Process Step-Through Debugger

Input two competing RIB entries and walk through all 9 BGP best-path criteria step by step.

Path A

Path B

BGP Best-Path Criteria Reference (RFC 4271)
StepCriterionWinnerNotes
1WeightHigherCisco proprietary, local to router
2Local PreferenceHigheriBGP attribute, AS-wide policy
3Locally OriginatedLocal winsnetwork/aggregate commands
4AS-Path LengthShorterCan be disabled with bgp bestpath as-path ignore
5OriginIGP > EGP > ?RFC 4271 §9.1.2.2
6MEDLowerOnly compared if same neighboring AS (RFC 4271)
7eBGP over iBGPeBGP winsExternal paths preferred over internal
8IGP MetricLowerCost to BGP next-hop via IGP
9Router-IDLowerTie-breaker, deterministic selection