Note · Routing

BGP is a story we tell

28 September 2026 · 5 min read

Every router running BGP has a local opinion about the best path to a destination. The opinion is assembled from attributes: AS path length, local preference, origin type, MED, and a few tie-breakers that exist mostly because someone needed a deterministic answer. The result is not a global optimum. It is a set of local decisions that happen to compose into something reachable.

This is why two looking glasses can show different paths to the same prefix at the same moment, and why “the route is up” is a weaker statement than it sounds. A prefix can be present in the table and still be unusable from the place that matters. A path can be short in AS hops and terrible in latency. A route can be visible to one provider and absent from another because of policy, not failure.

When a routing problem is reported, I try to separate three questions. Is the prefix announced? Is it accepted by the networks that need to reach it? And is the forwarding path actually carrying traffic in both directions? The first is a control-plane fact, the second is a policy fact, and the third is the one users experience.

show ip bgp 203.0.113.0/24
show ip route 203.0.113.10
traceroute 203.0.113.10

The output of those commands can disagree without anyone lying. The BGP table shows what the router knows. The forwarding table shows what it selected. The traceroute shows what the path does with the packets it receives. Troubleshooting gets easier when you stop expecting one view to answer all three questions.

The other useful habit is to check the reverse direction. A prefix can be announced perfectly and still fail because the return path is missing or filtered. Reachability is a conversation, not a property of one side.

BGP is often described as the protocol that holds the internet together. It is more accurate to say it is the protocol that lets independently minded networks agree on a temporary version of the truth. Most of the time, that is enough.

← All notes