Border Gateway Protocol: How Bad Routes Send Traffic Astray
In February 2008, an unauthorized internet route sent YouTube traffic toward Pakistan. The disruption spread through routing announcements, showing how one network's directions can become many other networks' problem.
Border Gateway Protocol, or BGP, is the set of rules networks use to exchange routing information. Its announcements describe destinations that can be reached; they aren't the videos, emails or web pages traveling to those destinations.
The RIPE NCC's study of the YouTube incident provides a concrete example of what happens when those directions go wrong. RIPE NCC operates internet measurement services and recorded the announcements as they spread.
Why the Internet's Road Map Keeps Breaking
Networks announce which addresses they can reach
An autonomous system is a network, or group of networks, operating under a common routing policy. Internet providers, large companies and other operators use BGP to exchange routes between these systems.
A route announcement covers a prefix, a block of IP addresses. An IP address is the numerical address used to reach a device or service on a network.
Announcements also carry information such as the sequence of autonomous systems along the advertised path. Routers—devices that pass data between networks—use routing information and policy to select routes, as the BGP specification describes.
This isn't a live search for the least-congested road. For a given destination block, an operator's preferences and routing rules can matter more than distance or speed.
How the YouTube announcement won traffic
On February 24, 2008, Pakistan Telecom announced a smaller block of addresses within a larger block YouTube was announcing. Its provider, PCCW Global, passed that unauthorized announcement onward.
The smaller block was a more-specific route: it covered a narrower set of destinations. Routers forwarding traffic use the most specific matching destination route, so the new announcement drew traffic for those addresses toward Pakistan.
That forwarding rule is useful when the routes are correct. It becomes a problem when a narrow, incorrect route is accepted and spreads.
YouTube responded with its own announcements, and PCCW eventually withdrew the unauthorized routes. RIPE NCC's observations show the sequence, but don't establish an exact count of every affected site across the internet.
The example concerns routing, not an attacker taking control of YouTube's video servers.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
Hijacks and leaks describe different routing failures
A route hijack involves an unauthorized claim to reach someone else's address space. Depending on the circumstances, traffic may be lost or diverted to an unintended network.
A route leak occurs when a network passes along route information beyond its intended scope. For example, a customer network might wrongly advertise routes learned from one provider to another, offering a path it wasn't supposed to provide.
The Internet Engineering Task Force's route-leak definition centers on those policy boundaries. Misconfiguration can cause a leak; the label doesn't establish a malicious motive.
Check directions before passing them on
Operators can filter the address blocks they accept and announce, and watch for unexpected route changes. BGP operating guidance describes controls aimed at limiting both accidental and deliberate routing disruption.
Another protection is the Resource Public Key Infrastructure, or RPKI. It supports digitally signed records about who may originate particular address blocks, with mathematical checks on who signed the records and whether they've changed.
A Route Origin Authorization, or ROA, names an authorized originating network and the address range it may announce. ARIN's ROA guide explains how these records support route-origin validation.
Origin validation checks that starting claim; it doesn't validate the entire advertised path or prevent every route leak. The validation specification states that limit.
BGP makes independent networks cooperate without one central route planner. That freedom makes checking a neighbor's announcements part of keeping everyone's traffic on course.
Autonomous Systems: The Networks That Make an Internet

Routing Loops: The Packet Stops, but the Bad Route Can Remain

Dynamic Routing Protocols: How Networks Find Another Way

QUOTE:
"Amateurs hack systems, professionals hack people."
