· 4 min read
What is an ASN? Networks and ISPs explained
An ASN is the registered identity of a network on the internet. It is the most reliable thing a lookup tells you about an address, more reliable than the city, and it is what separates a home connection from a data centre.
On this page
What an ASN is#
The internet is not one network. It is tens of thousands of separate networks, run by ISPs, cloud providers, universities, companies and content networks, that agree to pass each other's traffic. Each of those networks is an autonomous system (AS): a set of IP blocks under one routing policy, run by one organisation. Each is identified by an autonomous system number, or ASN, written AS15169 or just 15169.
An ASN is to a network what an IP address is to a connection: a registered identifier that other networks use to refer to it. The original numbers were 16 bits, which ran short in the same way IPv4 did, so ASNs are now 32 bits (RFC 6793). Numbers are allocated by the same regional registries that allocate addresses.
How it fits with routing#
Networks tell their neighbours which IP blocks they can reach using the Border Gateway Protocol (RFC 4271). A network announces a block, such as 1.1.1.0/24, together with its own ASN, and its neighbours pass the announcement on with their ASNs added to a growing list called the AS path. A router picking a route to an address looks for the most specific announced block that contains it and follows the best path toward the network that announced it.
- The block says which addresses.
- The ASN says which network is announcing them.
- The AS path says which networks the traffic will cross to get there.
That is why a lookup shows a route next to the ASN: the announced block your address falls inside. Two addresses in the same route are, for routing purposes, in the same place.
ASN, ISP and organisation: three different things#
An ISP is a company that sells connectivity. An ASN is a routing identity. Most ISPs have one or several ASNs, but the mapping is not one to one:
- A large ISP may run several ASNs, for different regions or acquired companies.
- A small ISP may have none, buying transit from a larger one and using its address space.
- Non-ISPs have them too: cloud providers, content delivery networks, universities, governments and big companies all run their own.
- The organisation a lookup lists is who the registry says holds the block, and the ASN is who announces it. They are usually the same and sometimes deliberately not, for example when a block is registered to one party and run by another under agreement.
| Address | ASN | Reverse name | Report |
|---|---|---|---|
1.1.1.1 | AS13335 | one.one.one.one | Cloudflare 1.1.1.1 report |
8.8.8.8 | AS15169 | dns.google | Google 8.8.8.8 report |
9.9.9.9 | AS19281 | dns9.quad9.net | Quad9 9.9.9.9 report |
208.67.222.222 | AS36692 | dns.umbrella.com | OpenDNS report |
Correct at the time of writing. ASNs stay with a network for years, but always check the live report.
Why the ASN is more reliable than the location#
A city is an estimate. An ASN is a fact that can be checked from public routing data: the network is announcing the block or it is not. That makes it the best single field for one question that matters to fraud teams, network operators and anyone reading a log: what kind of network is this address on?
- A residential ISP's ASN suggests a home connection, so it is likely a person.
- A cloud or hosting provider's ASN suggests a server: a bot, a scraper, a VPN exit or a cloud service. This is what a VPN, proxy and Tor check looks at first.
- A mobile carrier's ASN suggests a phone, and probably shared, behind carrier-grade NAT.
- A university or company ASN suggests an organisation's network, where many people share addresses.
It is also the right place to start when an address turns up on a blocklist: the ASN tells you whose network it is, and the blacklist check tells you which lists it is on and how to ask for removal.
Looking up an ASN#
Every lookup reports the ASN, the name registered to it and the route. To go the other way and list every block an ASN announces, or its neighbours, use a routing registry or a BGP looking-glass service. The authoritative record of who holds which number is the IANA AS numbers registry. Private-use numbers (64512 to 65534, and a range in the 32-bit space) are reserved for internal use and never appear on the public internet (RFC 6996).
Common questions#
What is an ISP?
An internet service provider sells access to the internet: the cable, fibre, DSL or mobile connection, and an IP address to go with it. It is your first hop into the wider network, and the only party that knows which subscriber held which address at a given time.
Do I have an ASN?
Almost certainly not. Individuals and small networks use their ISP's. You need your own only if you connect to more than one provider and announce your own address block, which is what BGP is for.
Can an address change ASN?
Yes. When an address block is sold or leased, or a customer moves to a different provider, a different ASN starts announcing it. Location databases sometimes lag behind, which is one reason a lookup can look wrong. See how IP geolocation works.
Try it on your own connection
- Look up any IP address, domain or URLOwner, network, location estimate and risk flags for whatever you paste in.
- Check whether an address is a VPN, proxy or Tor exitSee how a site would classify the network you are on.
- Check an address against blocklistsLive results from dozens of DNS blocklists, with delisting links.
Sources and further reading
Keep reading
- FundamentalsWhat is an IP address?An IP address is the label that lets devices find each other on a network. What one looks like, who assigns it, and what it can and cannot reveal about you.
- LocationCan an IP address reveal your location?No. IP geolocation is an estimate built from registry data and inference, often correct to the country and rarely to the street. How it works and why it goes wrong.
- DNSReverse DNS and PTR recordsReverse DNS maps an IP address back to a hostname using PTR records. How the in-addr.arpa lookup works, why mail servers check it, and how to run one.
- FundamentalsThe complete guide to IP addressesOne reference for the whole subject: how addresses are built, the reserved ranges you will meet, how they are allocated and routed, and how to read a lookup result.
Published by My IP Address