Skip to content
IP Intelligence

What Is an ASN? Autonomous System Numbers Explained

An ASN (Autonomous System Number) identifies the network an IP belongs to and who operates it, one of the most revealing signals about any request.

ByGeoIPHub TeamPublishedUpdatedReading time11 min read
Network clusters enclosed in translucent boundaries, representing autonomous systems

Every IP address on the internet exists inside a network. That network is an Autonomous System: a collection of IP ranges under the administrative control of a single organization, announcing a consistent routing policy to the rest of the internet. The number that identifies it is the ASN: a globally unique identifier assigned by an internet registry, drawn from a defined range of public and private values. It is not the same as the local "AS number" you configure on a router running EIGRP, a distinction we clear up at the end.

A route of light hopping between bounded clusters, representing a packet crossing several ASNs
An ASN tells you which network an address belongs to and who runs it.

How ASNs Work on the Internet

The internet is not one network. It is tens of thousands of independent networks (ISPs, universities, companies, cloud providers, government agencies), each controlling their own IP ranges. These networks communicate through BGP (Border Gateway Protocol), the routing protocol that tells each network how to reach every other network.

When a network wants to announce its IP ranges to the internet ("traffic for these addresses should come to us"), it does so using its ASN. The ASN is the identifier in those BGP announcements. Without it, there would be no way to track which organization is responsible for which IP ranges.

ASNs are issued by Regional Internet Registries:

  • ARIN: North America
  • RIPE NCC: Europe, Middle East, Central Asia
  • APNIC: Asia-Pacific
  • LACNIC: Latin America and Caribbean
  • AFRINIC: Africa

Each RIR maintains a public database of ASN assignments. That is why ASN data is freely available: the registries publish it, and it is necessary for the internet to function.

ASN Number Ranges: Public, Private, 16-bit and 32-bit

Not every number is a valid ASN, and not every ASN is meant to appear on the public internet. The ranges are defined and reserved, and that structure is what makes an ASN a reliable identifier.

The original specification used 16-bit (2-byte) numbers: 0 through 65,535. The internet outgrew that space, so 32-bit (4-byte) ASNs raised the ceiling to 4,294,967,295. Both formats run side by side today. Large legacy ISPs often hold 2-byte numbers, while newer assignments (Google Cloud's AS396982, for example) are 4-byte. In a lookup the difference is invisible; the number is simply larger.

Within those ranges, specific blocks are set aside:

0

  • Format: 16-bit
  • Purpose: Reserved: an invalid or "do-not-route" ASN

1 to 64,495

  • Format: 16-bit
  • Purpose: Public, assigned by the RIRs (AS23456 in this block is reserved as AS_TRANS, used while 2-byte routers interoperate with 4-byte ASNs)

64,512 to 65,534

  • Format: 16-bit
  • Purpose: Private use (RFC 6996), internal only, never announced publicly

65,536 to 4,199,999,999

  • Format: 32-bit
  • Purpose: Public, assigned by the RIRs

4,200,000,000 to 4,294,967,294

  • Format: 32-bit
  • Purpose: Private use (RFC 6996), internal only

The practical point for IP intelligence: a private ASN lives inside one organization's network and is never announced to the internet, so it will never appear in an IP lookup. Every routable, public IP maps to exactly one public, registry-assigned ASN, which is precisely why the ASN is trustworthy as an identity signal. If you look up an address and get an ASN back, it is a real, globally unique registration you can attribute to an operator.

Reading an ASN Lookup

Here is what an ASN lookup returns through GeoIPHub. The ASN data lives in the asn group of the response (trimmed real responses below, lookups run October 2, 2026):

Terminal
curl "https://api.geoiphub.com/v1/lookup/8.8.8.8" \ -H "x-api-key: YOUR_API_KEY"
JSON
{ "ip": "8.8.8.8", "asn": { "asn": 15169, "org": "GOOGLE - Google LLC", "asn_type": "hosting", "isp": "GOOGLE - Google LLC", "connection_type": "datacenter", "rpki": "valid" }, "geo": { "country_code": "US" }, "detection": { "is_hosting": true, "is_anycast": true } }

A residential ISP looks different. We don't publish real household addresses, so this one is a sample with illustrative values, not a real lookup; the field names and structure match the live API:

JSON
{ "ip": "<a home broadband IP>", "asn": { "asn": 7922, "org": "COMCAST-7922 - Comcast Cable Communications, LLC", "asn_type": "isp", "connection_type": "residential" }, "geo": { "country_code": "US" }, "detection": { "is_hosting": false } }

A cloud provider:

Terminal
curl "https://api.geoiphub.com/v1/lookup/54.239.28.85" \ -H "x-api-key: YOUR_API_KEY"
JSON
{ "ip": "54.239.28.85", "asn": { "asn": 14618, "org": "AMAZON-AES - Amazon.com, Inc.", "asn_type": "hosting", "isp": "AMAZON-AES - Amazon.com, Inc." }, "geo": { "country_code": "US", "region": "Virginia", "city": "Ashburn" }, "detection": { "is_hosting": true } }

Note that this Amazon address is announced by AS14618, not AS16509: Amazon runs more than one autonomous system, and the lookup always reports the one that actually announces the prefix.

The asn.asn_type field is the most useful: it classifies the ASN by what kind of network it represents. The values you will see most often:

isp

  • What it means: Consumer internet provider
  • Typical traffic: Real users at home

mobile

  • What it means: Cellular carrier
  • Typical traffic: Phones behind CGNAT

hosting

  • What it means: Cloud, dedicated server, or colo provider (AWS, Google, DigitalOcean, OVH)
  • Typical traffic: Servers, automated workloads, VPN infrastructure

cdn

  • What it means: Content delivery network (Cloudflare, Fastly)
  • Typical traffic: CDN edge, not end users

vpn

  • What it means: Network classified as VPN infrastructure
  • Typical traffic: Anonymized user traffic

satellite

  • What it means: Satellite internet provider
  • Typical traffic: Real users on satellite links

As the examples above show, the big cloud providers come back as hosting, and an address can come back unknown when the network has not been classified.

Why ASN Is Central to IP Intelligence

The ASN type answers the single most useful initial question: is a real person likely to be behind this IP, or is it infrastructure?

Real consumers on consumer products almost always connect from isp or mobile ASNs. When a request arrives from a hosting ASN, it structurally requires explanation, because cloud providers do not assign IPs to people's laptops. Mobile ASNs are the noisiest of the legitimate categories: carrier CGNAT hides thousands of real users behind a handful of addresses, which is also why mobile proxy networks blend into them so effectively.

This makes ASN type the cheapest and most reliable first filter in fraud and abuse prevention:

  • Login from AWS ASN: almost certainly automated; no real user logs in from a cloud server
  • Checkout from a known VPN ASN: elevated risk; real customer or fraud, but not a default pattern
  • API call from Cloudflare ASN: likely your own edge infra or a developer; check context
  • Signup from residential ISP ASN: baseline legitimacy; apply other signals to refine

No single filter is enough, but ASN type gives you a strong prior that makes all subsequent signals more interpretable. To test a specific address, a datacenter IP check resolves whether it belongs to a cloud or hosting network in a single lookup.

ASNs and VPN Detection

VPN providers operate their own ASNs or rent infrastructure from hosting ASNs. Detection systems use ASN history to flag ranges known to host VPN servers:

  • A hosting ASN with a documented history of VPN exit nodes raises the probability that any given IP in that range is a VPN, even before active probing
  • A residential ISP ASN that suddenly shows VPN protocol responses on active probing is a VPN exit point running on compromised or residential infrastructure (sometimes used for residential proxies)

The combination of ASN type and active protocol probing is more reliable than either alone: hosting ASN + OpenVPN handshake is high-confidence VPN; residential ISP ASN + no protocol response is high-confidence clean residential.

Common ASNs and What They Signal

Some ASNs appear frequently enough in fraud and security contexts that their identities are worth knowing:

AS16509

  • Organization: Amazon Web Services
  • Context: Most common source of automated traffic and scanning

AS15169

  • Organization: Google LLC
  • Context: Google services and cloud; also includes Google bots

AS8075

  • Organization: Microsoft
  • Context: Azure and Microsoft services

AS13335

  • Organization: Cloudflare
  • Context: CDN edge and security products

AS7922

  • Organization: Comcast
  • Context: Large US residential ISP

AS20473

  • Organization: Choopa / Vultr
  • Context: VPS hosting frequently used for VPNs

AS60068

  • Organization: CDN77
  • Context: CDN and hosting with VPN/proxy history

AS396982

  • Organization: Google Cloud
  • Context: Distinct from Google LLC; specifically GCP

AS14061

  • Organization: DigitalOcean
  • Context: Popular developer hosting; common in automated traffic

Seeing high volumes of AS16509 or AS14061 traffic on a consumer product is a strong signal of scripted or automated activity. That is not because those ASNs are malicious. It is because real users do not connect to consumer products from cloud servers.

Looking Up ASNs Directly

For investigation and manual lookups, several methods work (the ASN check is step two of our playbook for investigating a suspicious IP address):

Command line (Linux/Mac):

Terminal
# Using whois whois 8.8.8.8 # Using the Team Cymru IP-to-ASN mapping dig +short 8.8.8.8.origin.asn.cymru.com TXT

Programmatic (for your application):

Terminal
curl "https://api.geoiphub.com/v1/lookup/103.21.244.0" \ -H "x-api-key: YOUR_API_KEY" # -> asn.asn 13335, asn.org "CLOUDFLARENET - Cloudflare, Inc.", asn.asn_type "hosting"

The API returns the full response every time; read the asn group for ASN data.

For production use, direct registry queries are slow and rate-limited. An IP intelligence API returns ASN data with structured typing alongside all other fields in a single low-latency request.

ASN vs ISP vs Organization

These three terms sometimes get used interchangeably in documentation. The distinctions:

  • ASN: the network identifier (a number)
  • ISP (asn.isp, asn.org): the organization that operates the ASN (a name)
  • Organization: can be the same as ISP, or can be the end customer renting the IP range (a company that has its own IP space announced by a transit provider)

When you look up an IP and asn.org shows "Amazon.com, Inc." but the IP is actually used by a company hosting their servers on AWS, the ASN org reflects the network announcer, not the end tenant. For cloud IPs, the distinction between the cloud provider and the customer running on it matters for context, but the ASN type (hosting) still tells you what you need for infrastructure classification.

"AS Number" in EIGRP and Routing Protocols Is a Different Thing

Searching for autonomous system number often surfaces Cisco routing configuration, where you type something like router eigrp 100. That number is not a public ASN, and conflating the two is a common source of confusion.

The 100 in router eigrp 100 is a local process identifier. Its only job is to match across every router that should share EIGRP routes inside one organization. If two routers use different EIGRP AS numbers, they never form a neighbor relationship. You pick the value yourself (1-65,535), it is meaningful only inside your own network, and it is registered with no one.

A public ASN is the opposite on every count:

EIGRP "AS number"

  • Scope: Local to one organization
  • Who assigns it: You do
  • Uniqueness: Only has to match your own routers
  • Appears in an IP lookup?: Never

Public ASN

  • Scope: Global, across the whole internet
  • Who assigns it: A Regional Internet Registry
  • Uniqueness: Globally unique
  • Appears in an IP lookup?: Always

So if you are configuring EIGRP for a CCNA lab, "AS number" means the routing-process tag. If you are enriching an IP address for fraud or geolocation, "ASN" means the globally registered identifier this article describes: same words, entirely different scope. BGP is the bridge between the two worlds: router bgp 65001 uses your real public ASN when it peers with other networks, which is how your routes reach the global table in the first place.

More on How ASN Data Gets Used

Frequently Asked Questions

What does ASN stand for?

ASN stands for Autonomous System Number. It is a unique number assigned to an Autonomous System (AS): a network or group of networks under a single administrative domain that presents a consistent routing policy to the internet. ASNs are issued by Regional Internet Registries (RIRs) like ARIN, RIPE NCC, APNIC, LACNIC, and AFRINIC.

What is the difference between an ASN and an IP address?

An IP address identifies a specific device or interface on the network. An ASN identifies the network that controls and announces a range of IP addresses. Every IP belongs to exactly one ASN. The ASN tells you who operates the network the IP is in: the ISP, cloud provider, company, or hosting facility that manages that IP range.

How do I find the ASN for an IP address?

You can look up an ASN via IP intelligence APIs (like GeoIPHub), Whois databases, or command-line tools. In a terminal: 'whois <IP>' returns ASN data from the registry. For production use, an API returns the ASN along with the organization name, announced IP ranges, and ASN type (ISP, datacenter, CDN, etc.) in structured form.

Why does the ASN matter for fraud detection?

The ASN tells you who owns the network, and who owns the network determines what kind of traffic you should expect. A request from AS7922 (Comcast residential) probably comes from a real person at home. A request from AS16509 (Amazon AWS) almost certainly comes from a server. Real consumers almost never originate transactions from cloud provider ASNs, so a checkout or login from an AWS ASN is structurally suspicious without any other signals.

Can two different companies share an ASN?

Generally no. An ASN represents a single administrative domain with a consistent routing policy. However, large organizations may use multiple ASNs (Google operates dozens). And some smaller networks may be announced under a parent ISP's ASN rather than their own. The ASN always maps to an organization, but one organization can have many ASNs.

What is the difference between ASN 4-byte and 2-byte?

The original ASN specification used 2-byte numbers (1-65535). As the internet grew, the address space was exhausted, and 4-byte ASNs (defined in RFC 4893) extended the range to over 4 billion numbers. Modern ASNs like AS396982 (Google Cloud) use 4-byte format. Older infrastructure and many large ISPs still use 2-byte ASNs. The distinction matters only if you're implementing BGP routing; for IP intelligence lookups, the API handles both transparently.

Written by

GeoIPHub Team

The team behind the GeoIPHub API

Written by the GeoIPHub team, the people who build the GeoIPHub IP intelligence API and its scanner. Drafts are prepared with AI assistance and edited by the team; API examples are real lookups against the live API unless labelled illustrative.

Share this article
More articles

Related posts