BGP Decision Process Step-Through Debugger
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)
| Step | Criterion | Winner | Notes |
|---|---|---|---|
| 1 | Weight | Higher | Cisco proprietary, local to router |
| 2 | Local Preference | Higher | iBGP attribute, AS-wide policy |
| 3 | Locally Originated | Local wins | network/aggregate commands |
| 4 | AS-Path Length | Shorter | Can be disabled with bgp bestpath as-path ignore |
| 5 | Origin | IGP > EGP > ? | RFC 4271 §9.1.2.2 |
| 6 | MED | Lower | Only compared if same neighboring AS (RFC 4271) |
| 7 | eBGP over iBGP | eBGP wins | External paths preferred over internal |
| 8 | IGP Metric | Lower | Cost to BGP next-hop via IGP |
| 9 | Router-ID | Lower | Tie-breaker, deterministic selection |