Border Gateway Protocol
Border Gateway Protocol (BGP) is the routing protocol that allows independently operated networks across the internet to exchange information about how to reach one another, making it the mechanism by which global internet traffic finds its path from source to destination.
Border Gateway Protocol, universally known as BGP, is the standard by which the internet's thousands of independently run networks—called autonomous systems, or ASes—tell each other which networks they can reach and how. Every internet service provider, large content company, university, and cloud provider that connects to the broader internet does so by speaking BGP with its neighbors, announcing the blocks of IP addresses it controls or can forward traffic toward. Without this constant exchange of route information, there would be no way for a request sent from a phone in one country to find its way to a server on another continent; BGP is what stitches together the internet's otherwise separate networks into a single, navigable system.
Origins and Evolution
BGP traces back to 1989, when engineers Kirk Lougheed and Yakov Rekhter sketched an early design on the back of two napkins at an IETF meeting, giving rise to its informal nickname, the "two-napkin protocol." It was formalized shortly after in Request for Comments (RFC) 1105, and it replaced earlier, less scalable routing approaches such as the Exterior Gateway Protocol (EGP), which struggled as the internet grew beyond a simple hierarchical structure. The protocol has since gone through several major revisions, with BGP-4—defined in RFC 4271—becoming the version in near-universal use today, notably because it added support for Classless Inter-Domain Routing (CIDR), the addressing scheme that let the internet keep expanding after early, wasteful allocation of IP address blocks threatened to exhaust the available space. BGP's basic architecture has proven remarkably durable: a protocol devised for a much smaller and more trusting internet still carries the traffic of a network many orders of magnitude larger.
How It Works
BGP is what network engineers call a "path vector" protocol. Rather than calculating the fastest route mathematically, as many internal routing protocols do, BGP routers announce paths—lists of the autonomous systems a route passes through—and each network chooses among the paths it hears based on policies its operators configure, such as cost, business relationships, or path length. Two flavors exist: eBGP, used between separate autonomous systems, and iBGP, used to distribute route information among routers within a single organization's network. Because BGP relies fundamentally on trust—each network is expected to announce only routes it is actually authorized to carry—the system has an inherent vulnerability: a network can mistakenly or deliberately announce routes for address space it does not control, an event known as route hijacking or route leaking. Such incidents, whether accidental misconfigurations or deliberate manipulation, have periodically caused major, visible disruptions, including instances where traffic intended for large platforms was misdirected through unrelated networks in other countries.
Why It Matters
BGP's centrality to internet functioning means that its failures—rare as individual events but recurring as a category—can have outsized consequences. Misconfigured BGP announcements have been responsible for some of the internet's most significant outages and slowdowns, since a single erroneous announcement can, in principle, redirect an enormous volume of global traffic before operators notice and correct it. This has made BGP security a persistent focus of engineering and policy attention. Efforts such as Resource Public Key Infrastructure (RPKI), which allows networks to cryptographically verify that a given AS is authorized to announce a particular address block, and the broader Mutually Agreed Norms for Routing Security (MANRS) initiative, represent industry attempts to reduce the risk of hijacks without abandoning BGP's decentralized, permissionless design. Governments and regulators have also taken increasing interest in routing security given its implications for national infrastructure and data sovereignty, though no centralized authority governs BGP itself; it remains, like much of the internet's core plumbing, a voluntary cooperative system maintained by the operators who depend on it.
Part of the Internet's Protocol Stack
BGP sits alongside protocols like DNS, TCP/IP, and TLS as one of the foundational, largely invisible standards that let the internet function as a coherent global system rather than a collection of disconnected networks. Where DNS translates names into addresses and TCP/IP governs how data is packaged and delivered end to end, BGP determines the actual paths that traffic takes across the patchwork of networks in between. Its development and maintenance illustrate a recurring pattern in internet infrastructure: critical systems built on informal, engineer-led consensus through bodies like the Internet Engineering Task Force (IETF), evolving incrementally rather than through top-down redesign, and reliant on voluntary adoption of security improvements rather than mandates. As debates continue over internet governance, cybersecurity, and the resilience of critical digital infrastructure, BGP remains a frequently cited example of how much of the modern internet depends on protocols conceived decades ago, under very different assumptions about trust and scale than those that prevail today.