A worked example of how a route spreads
Imagine a small company, AS 64500 (a number from the private range, used here only as an illustration), that owns the block 198.51.100.0/24 and buys transit from a regional carrier. The company's router announces the block to the carrier. The carrier adds its own AS number to the path and announces the block to its own transit provider and to its peers, who add their numbers in turn. After a few hops, a router on the other side of the world holds an entry saying: to reach 198.51.100.0/24, send traffic toward this neighbor, along a path of several ASes ending in 64500. If the company's link fails, the carrier withdraws the announcement, and routers elsewhere fall back to any other path they know, or lose the route entirely. This convergence process can take seconds to minutes, which is why internet outages are rarely instantaneous or uniform.
How the address ranges BGP advertises are actually carved up
Curious about the notation used to describe which IP ranges an AS advertises? CIDR notation is the underlying system that expresses these address blocks and their sizes concisely, and understanding it makes route advertisements much easier to read. A /24 contains 256 addresses, a /16 contains 65,536, and each bit you remove from the prefix length doubles the block. The global routing table now holds on the order of a million IPv4 prefixes, and routers must store all of them, which is one reason operators discourage announcing tiny or needlessly split blocks.
What actually carries the traffic across continents
BGP decides the logical path traffic should take, but something has to physically move data between continents -- undersea cables. Together, BGP's logical routing and the physical cable network are what make a single global internet possible. When a cable is cut, BGP is what re-routes traffic over the remaining links, though capacity may be strained on the alternatives.
Frequently Asked Questions
Does the router in my house use BGP?
No. Home and office internal networks typically run fine on static routes or a default gateway handed out by DHCP. BGP is used specifically by organizations with their own AS number -- carriers, cloud providers, and large enterprises -- to exchange route information with other organizations' networks.
Would an ordinary user notice a BGP hijack happening?
Usually not directly -- it just looks like a specific site suddenly getting slow or unreachable, without any obvious sign that BGP is the cause. It's typically network operators or security firms monitoring routes who identify, after the fact, that a BGP routing error was the root cause. Encrypted connections (HTTPS) limit what an attacker can do with hijacked traffic, but they do not stop the traffic from being diverted.
What is the difference between BGP and OSPF?
OSPF is an interior gateway protocol: it finds the shortest path within a single organization's network, using link costs. BGP is an exterior protocol: it exchanges reachability between organizations and chooses paths based largely on policy, such as business relationships, rather than pure speed. Large networks use both, with an IGP such as OSPF or IS-IS inside and BGP at the edge.
Is RPKI enough to make BGP secure?
It is an important step but not a complete one. RPKI origin validation prevents many accidental hijacks and simple malicious ones by checking who may originate a prefix, but it does not validate the full AS path, so more sophisticated path manipulation is still possible. Newer work on path validation exists, but deployment is limited, so RPKI is best viewed as one layer among several.