Networking Fundamentals
What Is an Autonomous System (AS) and BGP?
Zoom out far enough and the internet isn't billions of devices — it's thousands of big networks agreeing to carry each other's traffic. Those networks are Autonomous Systems.
The internet's building blocks
An Autonomous System (AS) is a large network, or collection of networks, run by a single organization under one routing policy — an ISP, a big tech company, a university, or a government. Each AS is identified by a unique AS number (ASN), like AS13335. The whole internet is made of roughly a hundred thousand of these systems interconnecting.
BGP: how the big networks agree
The Border Gateway Protocol (BGP) is how Autonomous Systems tell each other which blocks of IP addresses they can reach. When one AS announces, "I can deliver traffic for these address ranges," its neighbors learn a route and pass the information along. Through countless such announcements, every network builds a picture of how to reach every other network on Earth.
BGP is often called the protocol that "holds the internet together." It is what lets a packet from your home cross a dozen independent networks to reach a distant server.
Peering and transit
Autonomous Systems connect in two main ways. Transit is when one network pays another to carry its traffic to the rest of the internet. Peering is when two networks agree to exchange traffic directly, often for free, because it benefits both. These business relationships, negotiated between organizations, quietly shape how your data actually travels.
Your IP belongs to an AS
Every public IP address is part of a block allocated to some Autonomous System. That is exactly how a tool like IP Ducky can show your ISP and its ASN: it looks up which AS holds your address block. The organization name you see is the AS that ultimately provides your connection.
The fragile part
Because BGP largely runs on trust, a misconfiguration or malicious announcement can cause a "route leak" that sends traffic the wrong way. Efforts to add cryptographic verification to BGP are ongoing, hardening one of the internet's oldest and most consequential systems.