An Autonomous System Number, or ASN, is just an ID tag for a network — an ISP, a cloud provider, a big enough company — that runs its own routing on the internet. Routers lean on ASNs and the Border Gateway Protocol (BGP) to figure out which networks a packet needs to hop through to get where it's going.
What an autonomous system is
Here's the thing most people don't realise: the internet isn't one network. It's tens of thousands of separately run networks, stitched together. Each of those is an autonomous system, or AS for short. RFC 1930 defines it formally as a connected group of IP prefixes under one or more operators sharing a single routing policy — but really, an AS is just a network that gets to decide, on its own terms, what comes in and what goes out.
Your home broadband provider? That's an AS. So is every major cloud company, your university, your mobile carrier, and the backbone networks hauling traffic between continents. Each gets its own ASN, written with an "AS" in front — AS13335, say.
An AS "originates" whichever IP blocks it's responsible for. Look up any IP address and its ASN tells you who's actually announcing it to the rest of the internet — often a lot more useful than the bare address. Curious about your own? It's right there on the What's My IP Number page.
How BGP uses ASNs to route traffic
Autonomous systems talk to each other, routing-wise, through the Border Gateway Protocol (BGP). Strip away the jargon and it goes something like this:
- Announcement. An AS turns to its neighbours and says: I can deliver traffic for these prefixes, for example
203.0.113.0/24. - Propagation. Each neighbour passes that along to its own neighbours, tacking its ASN onto a running list called the AS_PATH.
- Selection. A router hearing several routes to the same prefix has to pick one — based on local policy and commercial deals first, and the shorter AS_PATH as the tiebreaker.
- Forwarding. Packets head toward whichever neighbour won, and the whole thing repeats until they land.
That AS_PATH list does double duty as loop prevention — if a router spots its own ASN already sitting in a path, it just throws the route out. Worth knowing the vocabulary split too: BGP running between separate autonomous systems is external BGP (eBGP); BGP distributing routes inside one AS is internal BGP (iBGP).
Peering and transit
Two networks hook up under one of two deals, broadly. Transit is the paid version — a customer pays a provider to haul its traffic out to the rest of the internet. Peering is more of a handshake: two networks swap traffic bound for each other's customers, often for free, either over a direct link or at a shared meeting point called an Internet Exchange Point (IXP). This is also why your traffic sometimes takes a weirdly roundabout path to somewhere nearby — BGP is chasing business arrangements, not following a map.
ASN formats and number ranges
ASNs were originally 16-bit numbers, giving 65,536 possible values. As those ran short, 32-bit ASNs were introduced (now defined in RFC 6793), raising the ceiling to 4,294,967,296 values. Modern equipment supports both, and 32-bit ASNs are allocated routinely.
| Range | Purpose |
|---|---|
| 0 | Reserved; not used for routing |
| 1–64495 | Public 16-bit ASNs assigned to networks |
| 64496–64511 | Reserved for documentation and examples (RFC 5398) |
| 64512–65534 | Private use, like private IP ranges (RFC 6996) |
| 23456 | AS_TRANS, a placeholder that lets older 16-bit routers handle 32-bit ASNs |
| 65536–65551 | Reserved for documentation (32-bit) |
| 4200000000–4294967294 | Private use (32-bit) |
Private ASNs show up inside organisations, or between a customer and its provider — and they need stripping out before anything gets announced to the wider internet.
Examples of well-known ASNs
A handful of ASNs come up so often that network engineers just recognise them by number, the way you'd recognise a familiar phone number:
| ASN | Network |
|---|---|
| AS15169 | |
| AS13335 | Cloudflare |
| AS16509 | Amazon (AWS) |
| AS8075 | Microsoft |
| AS32934 | Meta (Facebook) |
| AS7922 | Comcast |
| AS3356 | Lumen (formerly Level 3) |
| AS174 | Cogent |
Big organisations often run several ASNs at once — one per region, maybe, or a leftover from an acquisition, or just separate business units that never got merged.
Who assigns ASNs
The Internet Assigned Numbers Authority (IANA) hands out blocks of ASNs to five Regional Internet Registries (RIRs), who then assign them to organisations in their part of the world:
- ARIN for the United States, Canada and parts of the Caribbean
- RIPE NCC for Europe, the Middle East and parts of Central Asia
- APNIC for the Asia-Pacific region
- LACNIC for Latin America and parts of the Caribbean
- AFRINIC for Africa
You generally only need your own ASN once you're connected to two or more upstream providers (what's called multihoming), or you need your own routing policy for some other reason. A small business on a single ISP doesn't need one at all — it just rides on addresses from its provider's AS. If you want to know who actually holds an ASN, WHOIS and RDAP publish that, which our WHOIS and RDAP guide covers.
How to find the ASN behind an IP address
Using our tools
Drop any IPv4 or IPv6 address into IP Lookup and you'll get its ASN, the organisation behind it, and a rough location. Need the fuller registration record — network range, RIR, abuse contacts? That's what WHOIS Lookup is for.
From the command line
Team Cymru happens to run a free public IP-to-ASN service, queryable with any standard WHOIS client:
whois -h whois.cymru.com " -v 8.8.8.8"
You'll get back the origin ASN, the announced prefix, the country code, the registry and the AS name.
Why ASNs matter in practice
- Identifying connection type. An IP sitting in a residential ISP's AS looks nothing like one in a cloud provider's AS, and fraud-prevention, streaming and anti-abuse systems lean on exactly that difference to spot data-centre traffic, proxies and VPNs.
- Troubleshooting. A traceroute that shows ASNs makes it obvious where traffic leaves one network and lands in the next — which is usually where you want to start looking for delays or lost packets.
- Security and abuse handling. When trouble is clearly coming from one network, admins can go straight to its abuse desk, or in the worst cases just filter its prefixes outright.
- Understanding geolocation. The country an AS is registered in can quietly steer where geolocation databases put an address — one of several reasons results end up wrong. See how accurate IP geolocation is.
When routing goes wrong
BGP runs on trust — it assumes networks will only announce what's actually theirs — and that assumption has bitten the internet hard more than once. In February 2008, a Pakistani ISP tried to block YouTube domestically by announcing a more specific route to part of its address space; the route leaked out to the rest of the world, and YouTube went dark for roughly two hours, globally. Facebook did something similar to itself in October 2021: a configuration change withdrew the BGP routes to its own DNS servers, and Facebook, Instagram and WhatsApp all vanished for hours.
The industry's answer to this is RPKI (Resource Public Key Infrastructure). Address holders sign a Route Origin Authorisation stating exactly which ASN is allowed to announce their prefixes, so other networks can simply reject anything that doesn't match.
Frequently asked questions
Does my home internet connection have an ASN?
Not directly, no — your ISP owns the ASN, not you. Your public IP just happens to sit inside a prefix that your ISP's autonomous system announces.
Is an ASN the same as an IP address range?
No, different things entirely. An ASN names a network; that network then announces one or more IP ranges (prefixes) under its own name. A single ASN can easily originate thousands of prefixes.
Can an ASN tell me who is using a specific IP?
Only which organisation routes it — an ISP, a hosting company, whoever — never which actual person or customer is behind it. That mapping lives with the ISP alone.
How many ASNs exist?
Upward of 100,000 have been handed out by the regional registries at this point, and most of those are actively announcing routes right now. The real-time count changes daily; the RIRs publish it.
Comentários
Compartilhe uma dica, faça uma pergunta ou conte como a ferramenta funcionou para você.