What Is an Autonomous System (ASN)?

Run a Speed Test

The internet is often called a "network of networks," and the autonomous system is what that phrase literally means. Each large network — an ISP, a cloud provider, a university — is an autonomous system with its own number and its own routing policy. Knowing how these systems are defined and how they interconnect is the foundation for understanding internet-scale routing.

The Unit of Internet Routing

An autonomous system (AS) is a collection of IP networks operated as a single entity, under one administrative control, that presents a consistent routing policy to the outside world. The key word is autonomous: how the network is built and routed internally is its own business; what matters to the rest of the internet is the unified set of destinations it advertises and the policy it follows at its borders.

This is the level at which the global internet is actually organised. Rather than every individual network knowing how to reach every other, the internet is divided into these self-governing systems, and routing between them is handled as a question of "which autonomous systems must a packet cross?" The familiar idea that the internet is a network of networks is precisely this: tens of thousands of autonomous systems, interconnected.

The ASN: A Name for Each Network

Every autonomous system is identified by a unique ASN (Autonomous System Number), assigned by the regional internet registries that also hand out IP address blocks. Originally ASNs were 16-bit (limited to about 65,000), but the pool was extended to 32-bit numbers to keep pace with growth. An ASN is to a network roughly what a country code is to a phone number — a stable, globally unique label for one routing entity.

ASNs are not just bookkeeping. They are woven directly into how routes are described. When networks advertise reachability, the route carries an AS path — the ordered list of ASNs a packet would pass through to reach the destination. That path is both a loop-prevention mechanism (a system that sees its own ASN already in the path rejects the route) and a key input to choosing the best route among alternatives.

How Autonomous Systems Interconnect: BGP

Autonomous systems stitch themselves together at their edges using BGP (the Border Gateway Protocol), the routing protocol of the internet. At each point where two systems meet, they form a BGP session and exchange announcements: each one tells the other which IP prefixes it can reach. From those announcements, each AS builds its view of how to get anywhere, and those routes ultimately populate the routing tables that forward real traffic.

The business relationships behind these connections come in two broad flavours:

  • Transit — a smaller AS pays a larger one to carry its traffic to and from the rest of the internet. The larger provider advertises the full internet to its customer.
  • Peering — two networks agree to exchange traffic directly, usually settlement-free, because it benefits both. Peering often happens at internet exchange points where many systems meet in one facility.

These relationships shape routing policy. An AS will generally prefer a free peering path over a paid transit path, and will not advertise one provider's routes to another — decisions encoded in BGP rather than dictated by raw distance. It is why the path your packets take is determined as much by commercial agreements as by geography.

AS, ISP, and the Tiers

An autonomous system and an ISP are related but not the same thing. An ISP is a business that sells internet access; an AS is the technical routing entity it runs. Most ISPs operate at least one AS, and the largest run several. Networks are loosely ranked by how they reach the rest of the internet: the biggest "tier 1" networks can reach everywhere purely through peering and buy transit from no one, while smaller networks buy transit from larger ones. A content provider or cloud platform is also an autonomous system, often connecting directly to many ISPs to put its services as close to users as possible — the same instinct behind a CDN and anycast addressing.

Why It Matters for Everyday Internet

The autonomous-system structure explains things you can actually observe. A traceroute to a distant site shows your packets handed from your ISP's AS to a transit provider's AS to the destination's AS — you are watching the AS path resolve into hops. It also explains certain outages: because BGP trusts the announcements it receives, a misconfigured or malicious AS can announce prefixes it does not own and pull traffic toward itself, the problem behind BGP hijacking. And it is why two users on different ISPs can have very different routes — and very different latency — to the same server: their packets traverse different chains of autonomous systems to get there.

Frequently Asked Questions

What is an autonomous system?

A collection of IP networks under a single administrative control that presents a common routing policy to the internet. ISPs, cloud providers, universities, and large enterprises each run one or more. The internet is the interconnection of tens of thousands of them.

What is an ASN?

An Autonomous System Number — the unique identifier assigned to an AS by a regional registry. BGP uses ASNs to describe routes via the AS path, the list of systems a packet would cross. Modern ASNs are 32-bit.

How do autonomous systems connect to each other?

Through BGP, at the borders where two networks meet. Each AS announces the prefixes it can reach, and relationships are typically transit (one pays another for internet access) or peering (two networks exchange traffic directly).

What is the difference between an AS and an ISP?

An ISP is the access-providing business; an AS is the routing entity it operates. Most ISPs run at least one AS, and large ones run several. The AS is the unit of internet routing; the ISP is the company.

How many autonomous systems are there?

Tens of thousands are active in the global routing table, and the count grows as more networks connect directly. Each advertises its own prefixes via BGP, and their interconnections are what we call the internet.

Related Guides

More From This Section