← All tools
PROTOCOLS · ROUTING

BGP Route Analyzer

Compare candidate BGP paths and step through common best-path selection using attributes such as LOCAL_PREF, AS_PATH, origin, MED, eBGP/iBGP and IGP cost.

Candidate routes

Enter competing paths for the same prefix. The analyzer uses a common vendor-style decision order and shows the first decisive attribute. Actual selection can vary by vendor, configuration and address family.

PathLocal PrefAS PathOriginMEDPeer TypeIGP CostRouter ID

Decision

Add candidate routes and analyze them.

Selection notes

1. LOCAL_PREF
Higher is preferred within the AS.
2. AS_PATH
Shorter path length is preferred.
3. ORIGIN
IGP is preferred over EGP, then incomplete.
4. MED
Lower is preferred where the implementation compares it.
5. eBGP over iBGP
Common implementations prefer an external path before an internal path.
6. IGP cost to next hop
Lower is preferred in the common sequence.

Engineering notes

BGP is policy-driven rather than a simple shortest-path protocol. This tool is an educational and troubleshooting aid, not a replacement for vendor-specific route-selection documentation. Router-ID and later tie-breakers are shown only after the earlier attributes are equal.

For production troubleshooting, also check route policy, communities, next-hop reachability, prefix filtering, RPKI/ROV policy and whether the route is actually installed in the forwarding table.