How it works · 32 of 36 Core
How does routing pick a path across the internet, and what is BGP?
How networks agree the map
Routing and BGP: Routers pass data hop by hop, each choosing the next step; BGP is how the networks that make up the internet tell each other which addresses they can reach.
Loading the animation…
Say it like this Routers pass data hop by hop using signposts called routes; BGP is how the networks that make up the internet tell each other which addresses they can reach, so one wrong announcement can send traffic the wrong way.
Under the hood — for builders
- Real case: when Pakistan hijacked YouTube
- On 24 February 2008 Pakistan Telecom tried to block YouTube at home, but its announcement leaked to the world. Its route was narrower than YouTube's own, so routers everywhere preferred it. Times in UTC:
- How a router picks between two routes
- BGP's rules run in order. For the same address block, one early rule is: prefer the path through fewer networks (each network has an AS number):
- When the routes disappear
- On 4 October 2021 a maintenance command cut Facebook's backbone. Its DNS servers then withdrew their BGP announcements, so "our DNS servers became unreachable even though they were still operational" (Meta Engineering, 5 Oct 2021).
- Measure it
- Windows PowerShell: tracert -d 8.8.8.8 lists each hop. Look up any address's network and the route the world sees at stat.ripe.net.
- Watch out
- BGP believes its neighbours. Route signing (RPKI, RFC 6480) lets networks reject announcements from the wrong owner; check whether your ISP drops invalid routes.
- Sources
- RIPE NCC YouTube hijacking case study (2008). RFC 4271, RFC 6480. Meta Engineering, "More details about the October 4 outage" (2021). Read 28 Nov 2026.
What happens in the BGP animation, step by step?
- The internet is thousands of separate networks joined together. Your data crosses them hop by hop, and at each one a signpost says which way next.
- Who writes the signposts? VideoSite announces the addresses it owns. Each network passes the news on, adding its own name. This is BGP, the Border Gateway Protocol.
- Your ISP hears two routes to VideoSite. Normally it picks the one through fewer networks.
- Your turn: the small network falsely announces a narrower slice of VideoSite's addresses. What happens?
- BGP trusts what neighbours say. In 2021, Facebook's own routes were withdrawn by mistake, and the rest of the internet could no longer find its servers at all.
- Routers pass data hop by hop; BGP is how networks agree the map. Next: why can a fast connection still feel slow?
What everyday example explains BGP?
Each junction has a signpost; BGP is how towns agree what the signposts say.
Why should a team care about BGP?
One wrong BGP announcement can send a big service's traffic astray (YouTube, 2008) or make it vanish (Facebook, 2021).