Glossary Internet infrastructure
ASN (Autonomous System Number)
ASN: An ASN (autonomous system number) is a unique number that identifies a network, such as an ISP, cloud provider or large company, that announces its own IP ranges on the internet with BGP.
Also called: autonomous system number, AS number
Key takeaways
- Every public IP belongs to a range announced by some ASN.
- ASNs are assigned by the five regional internet registries.
- Looking up an IP’s ASN tells you who operates its network.
- The ASN is the strongest single clue to whether an IP is residential, mobile or hosting.
- ASNs are 32-bit numbers, written like AS7922 or AS16509.
What an ASN tells you
| ASN example | Operator | Usage |
|---|---|---|
| AS7922 | Comcast | US residential broadband |
| AS2856 | BT | UK broadband |
| AS4713 | NTT OCN | Japan broadband |
| AS16509 | Amazon | Cloud hosting |
| AS13335 | Cloudflare | CDN and services |
(Examples for illustration; operators run several ASNs.)
How to look up an ASN
- IP lookup tools such as ipinfo.io or bgp.he.net show the ASN for any IP.
whois -h whois.radb.net <ip>or RDAP queries return origin AS data.- Team Cymru’s IP to ASN service works over DNS and whois.
ASNs and IP classification
Detection systems start with the ASN. A hosting ASN suggests a datacenter IP; a consumer ISP ASN suggests residential; a mobile carrier ASN suggests mobile. Databases refine this with sub-range data. When evaluating proxies, look at how many different ASNs a pool covers and whether they are real consumer ISPs.
How ASNs are assigned
Organisations that need to route independently, usually because they connect to more than one upstream, request an ASN from their RIR. There are more than 100,000 ASNs visible in the global routing table.
What is an autonomous system?
An autonomous system is a network, or a group of networks, run by one organisation with a single routing policy. Each one announces the IP ranges it is responsible for to the rest of the internet using BGP, and the ASN is the label that identifies it in those announcements. Large ISPs, mobile carriers, cloud providers, universities and big companies all run their own autonomous systems. Smaller businesses usually do not: they use addresses from their ISP’s or hosting provider’s ASN.
16-bit and 32-bit ASNs
ASNs started as 16-bit numbers, which allows 65,536 values. As the internet grew that pool ran low, and RFC 6793 extended ASNs to 32 bits. You will see both forms, for example AS13335 or AS399999. Some ranges are reserved for private use inside networks and never appear on the public internet, in the same way that private IP ranges do not.
Example lookup
A quick way to see the ASN behind an IP from a terminal is the Team Cymru whois service:
whois -h whois.cymru.com " -v 8.8.8.8"
The output shows the ASN, the announced prefix, the country and the registered name, which in this example is Google. Most IP lookup websites show the same data in a friendlier format, and RDAP queries to the regional registry give the full registration record.
Why ASNs matter for proxies
Anti-bot systems often score traffic by ASN as well as by single IP. A request from a hosting ASN such as a cloud provider starts with less trust than one from a consumer ISP or mobile carrier. That is why:
- Datacenter proxies are easy to recognise: their ASN belongs to a hosting company.
- ISP proxies show an ISP’s ASN even though they run on servers.
- Some providers let you target residential or mobile exits by ASN, for example to test how a site behaves for customers of one carrier.
When you buy proxies, check the ASN of a sample of IPs. It tells you more about how websites will treat them than the product name does.
Can a website block an entire ASN?
Yes. Blocking or challenging all traffic from a hosting ASN is a common and cheap rule, and some sites apply it to whole cloud providers. Blocking a large consumer ISP’s ASN would cut off real customers, so sites rarely do it, and this asymmetry is the core reason residential, ISP and mobile IPs get through more often.
Frequently asked questions
What is the difference between an ASN and an IP address?
An IP address identifies one interface. An ASN identifies a whole network that announces many IP ranges.
Can I see who owns an ASN?
Yes. WHOIS and RDAP records at the RIRs list the holder and contacts.
Why do proxy buyers care about ASNs?
Because sites classify IPs by ASN. A pool spread across many consumer ISP ASNs looks more natural and is harder to block.
Is the ASN the same as the ISP name?
Often, but not always. One company can run several ASNs, for example separate ones for its mobile, broadband and business networks, and an ASN’s registered name can differ from the brand customers know.
Can an IP address move to a different ASN?
Yes. Address blocks can be transferred, leased or announced by a different network, and lookup databases can take time to catch up. That is one reason IP classification is never perfectly accurate.