Skip to content

Glossary term

Border Gateway Protocol (BGP)

The Border Gateway Protocol (BGP) is the routing protocol that exchanges reachability information between the networks that make up the internet.

What Border Gateway Protocol (BGP) means

The Border Gateway Protocol, almost always abbreviated BGP, is the protocol that holds the internet together. It is the system by which independently operated networks — Autonomous Systems — tell one another which blocks of IP addresses they can deliver traffic to, and through which neighbors. Every time a packet crosses from one network to another on its way across the internet, the path it takes was chosen on the basis of information that BGP distributed.

BGP is described as a path-vector protocol. Rather than computing shortest paths from a global map of the network, each Autonomous System announces the destinations it can reach, along with the AS path — the sequence of Autonomous System Numbers a route has already traversed. A neighbor that receives the announcement prepends its own ASN and passes it along. This accumulating path serves two purposes at once: it lets routers detect and reject loops, because a router will not accept a route that already contains its own ASN, and it gives operators a lever for policy, because shorter or more-preferred paths can be favored over longer ones.

What makes BGP distinctive is that it is a policy protocol, not merely a shortest-path protocol. Networks do not simply pick the path with the fewest hops; they pick the path that matches their business relationships. A network generally prefers to send traffic to a customer it is paid to serve, then to a peer it exchanges traffic with for free, and only then to an upstream provider it pays. These preferences are encoded with BGP attributes such as local preference and AS-path length, and they are why internet routing often does not follow the geographically shortest route.

Because BGP was designed in an era of mutual trust among a small number of operators, it accepts announcements largely on faith. A network can announce a prefix it does not legitimately hold, and neighbors that do not filter carefully will believe it. This is the root of route hijacking and route leaks. When the same prefix is announced from more than one origin Autonomous System, the result is a Multi-Origin AS (MOAS) condition, which can be benign — some organizations legitimately originate a prefix from multiple ASNs — or can be the fingerprint of a hijack. Defenses such as Route Origin Authorizations and the Resource Public Key Infrastructure (RPKI) exist to let operators cryptographically assert which ASNs may originate which prefixes, but adoption is gradual and incomplete, so monitoring BGP for anomalies remains essential.

There are two flavors of BGP in practice. External BGP runs between different Autonomous Systems and is what builds the global routing table. Internal BGP runs within a single Autonomous System to carry that external information consistently to all of the network's routers. Both speak the same protocol; the difference is whether the two ends share an ASN.

For anyone analyzing internet infrastructure, BGP is the data source behind most routing facts. The set of prefixes an ASN originates, the peers it connects to, the anomalies where a prefix appears under an unexpected origin — all of these come from observing BGP. Whisper Canon surfaces this routing layer through ASN pages, prefix pages, and a live conflicts feed that tracks Multi-Origin AS events as they appear in the global table.

Understanding BGP is therefore the key to understanding why the internet behaves the way it does: why a route can change without any physical link failing, why traffic between two nearby cities might detour across a continent, and why a single misconfigured announcement in one network can pull traffic for an unrelated service halfway around the world. It is a protocol built on announcements and trust, and reading those announcements is how the health of internet routing is judged.

Examples in Whisper Canon

Concrete pages in the directory that illustrate Border Gateway Protocol (BGP).

Related terms

Explore Whisper Canon