How BGP makes the internet work
- David Nganga

- Jun 4
- 3 min read
You use the internet every day. But have you ever wondered how your data actually finds its way from Nairobi to New York? The answer is a protocol called BGP and once you understand it, you'll never look at connectivity the same way again.

The internet is not one giant network. It's actually tens of thousands of separate networks each one owned by someone different. Your mobile operator. Your ISP. Google. Netflix. Each of these networks is called an Autonomous System (AS), and each one has a unique number like an ID on the global internet. For all these networks to talk to each other, they need a common language. That language is BGP (Border Gateway Protocol). It's often called the "routing protocol of the internet," and for good reason: it's the system that decides how traffic flows between networks worldwide.
Think of it like a postal system
Imagine you want to send a letter from Nairobi to Tokyo. You drop it at your local post office. That post office doesn't deliver to Japan but it knows which sorting hub to hand it off to. That hub passes it further along until it reaches Tokyo. Nobody planned the whole route in advance; each stop just made the best decision it could with the information it had.
BGP works the same way. Every network on the internet tells its neighbours: "I can reach these destinations." Those neighbours pass that information along, and so on. Before long, every network has a map of how to reach every other network.

BGP is about policy, not just speed
What makes BGP unique is that it doesn't just pick the fastest path , it picks the best path according to rules set by each network. A company might say: "Prefer traffic through this carrier. Only use that other one as a backup." These decisions happen at the edges of every network, millions of times a day. This is why BGP is called a path vector protocol , it doesn't just know a destination exists, it tracks the full list of networks the route passes through. If your data would have to loop back through a distant continent unnecessarily, BGP can spot that and avoid it.
When BGP goes wrong, the whole internet feels it
Because BGP is built on trust networks announce routes, and others accept them mistakes can be costly. In 2010, a small ISP in China accidentally announced that it could reach most of the internet's IP addresses. Routers worldwide briefly believed it and sent traffic there. The event, called a BGP leak, disrupted traffic globally for about 18 minutes.
This is why the industry is increasingly adopting standards like RPKI (Resource Public Key Infrastructure) and MANRS frameworks that cryptographically verify route announcements so networks can't accidentally (or maliciously) hijack traffic that isn't theirs.
Why this matters for your business
If you rely on cloud services, SaaS platforms, or remote teams, your connectivity depends on BGP being configured correctly — both at your ISP and at every network in between. A well-run ISP maintains clean BGP routing tables, filters invalid routes, and peers at internet exchanges to reduce latency and cost. That's the difference between a connection that just "works" and one that's fast, resilient, and secure.
The internet is many networks Thousands of autonomous systems connected via BGP agreements. | BGP chooses the best path Based on policy rules, not just raw speed or distance. |
Security matters RPKI and MANRS protect against route leaks and hijacks. | Your ISP's routing affects you Good BGP hygiene means faster, more reliable internet for clients. |
BGP has been the backbone of the internet since 1994. It's not perfect but it's a remarkable example of a decentralised system that works at global scale through cooperation and trust. Understanding it helps you ask better questions about your connectivity and hold your providers to a higher standard.




Awesome read
Very informative piece