What Is an ASN? Autonomous System Number Explained

An Autonomous System Number (ASN) is a number that identifies a network, or a group of networks run under one routing policy, in internet routing. Border Gateway Protocol (BGP) uses ASNs to exchange routes for IP prefixes. An ASN lookup identifies the network announcing a given IP address.

Try it: look up an ASN or IP

Try:

Recorded example, 2026-11-22: 1.1.1.1 → observed origin AS13335 (CLOUDFLARENET - Cloudflare, Inc.), covering prefix 1.1.1.0/24. The registry record for the same block names APNIC (the APNIC Labs resolver project): the routing observation and the registration record are different fields, which the sections below unpack.

Edge lookup over Team Cymru and RIPEstat routing data; those services receive the query. Results are routing observations at check time, not ownership records. For the full prefix and RPKI table, open the ASN lookup tool.

What an ASN identifies: ASN vs IP address vs IP prefix

Four identifiers describe different layers of the same network. The table uses the documentation ranges reserved for examples under RFC 5737 (IPv4) and RFC 5398 (ASNs), so none of the values imply a live route.

IdentifierWhat it identifiesDocumentation exampleWhat it does not tell you
IP addressAn address used for IP communication; it identifies an interface, a server, or a shared anycast address192.0.2.10Which network announces it, or who operates it
IP prefix (CIDR)A range of addresses described by a network address and a length192.0.2.0/24Which ASN originates it, or whether the range is in use
Autonomous System (AS)A network, or group of networks, operated under one coherent external routing policyan illustrative operator networkWho legally owns the addresses it announces
ASNThe number that identifies an AS in routingAS64496That the network is trustworthy, or that the operator owns every prefix it announces

One operator can also run more than one AS, and one prefix can, in anomaly or misconfiguration cases, be announced by more than one origin. Compute exact prefix boundaries with the CIDR / Subnet Calculator.

How BGP uses AS numbers

Border Gateway Protocol (RFC 4271) is the protocol networks use to exchange reachability information for IP prefixes. Three steps describe the normal external flow:

  1. Originate: a network announces reachability for its prefix under its own ASN, for example AS64496 announcing 203.0.113.0/24.
  2. Relay: each neighboring network that passes the announcement along prepends its own ASN to the front of the AS_PATH, the path attribute that records which networks a route has traversed. The growing path is what detects and prevents routing loops.
  3. Select: a receiving network applies its configured routing policy and route attributes to choose among eligible routes. AS-path length is one input among several; the shortest path is not always the one selected, and the chosen advertisement describes reachability, not the exact physical path every packet takes.

The path attribute is also where routing loops die: a router rejects any advertisement whose AS_PATH already contains its own ASN. The diagram below shows one announcement flowing through two relays under documentation ASNs.

eBGP sessions over TCP port 179 · UPDATE messages carry prefixes outward from the origin AS64496 Stub (origin of 203.0.113.0/24) AS64497 Transit ISP AS64498 Tier-1 backbone UPDATE 203.0.113.0/24 AS_PATH: 64496 UPDATE 203.0.113.0/24 AS_PATH: 64496 64497 traffic follows the best AS_PATH in reverse each AS prepends its own ASN to AS_PATH · a router rejects any path that already contains its own ASN shorter AS_PATH wins best-path selection unless LOCAL_PREF overrides it
Illustrative eBGP flow: the originating AS64496 announces 203.0.113.0/24, each relaying AS prepends its own ASN to AS_PATH, and the observing AS64498 receives two candidate paths and applies its routing policy.

Routing inside a single network is a separate layer: interior protocols such as OSPF or EIGRP carry traffic the last hop of the way. See how Border Gateway Protocol exchanges routes for path selection detail.

The 3 types of Autonomous Systems

Network operators commonly describe Autonomous Systems in 3 topology categories based on upstream connectivity and whether the network carries traffic for other networks: stub, multihomed, and transit. The categories are shorthand, not rigid boxes: multihoming describes connectivity, transit describes a role, and one network can be both.

illustrative topologies using documentation ASNs (RFC 5398) · arrows show route announcements, not packet paths Stub AS AS64496 (customer) one upstream ISP (AS64497) uses the ISP's ASN or private space · no own public ASN needed Multihomed AS AS64498 (own public ASN) ISP A ISP B announces own prefixes to both · typically carries no third-party transit needs its own public ASN for independent policy Transit AS customer AS AS64499 (carrier) peers / IXPs carries third-party traffic between other ASNs multihoming describes connectivity · transit describes a role · one network can be both
Illustrative topologies: a stub AS reaches one upstream ISP, a multihomed AS reaches two or more under its own public ASN and typically carries no third-party transit, and a transit AS forwards traffic between other networks.
  1. Stub Autonomous System (single-homed): commonly connected to one other AS. It can usually reach the internet through its provider's network without operating a public ASN of its own.
  2. Multihomed Autonomous System: connected to more than one other AS, often for resilience. Multihomed networks commonly announce their own prefixes to several providers without carrying transit for third parties, though nothing in the definition forbids doing both.
  3. Transit Autonomous System: carries traffic between other networks. Tier-1 backbones such as Lumen (AS3356) and Arelion (AS1299) form the transit core.

Registered Autonomous Systems range from stub and multihomed edge networks that originate and terminate only their own traffic to transit providers that carry traffic for others.

How many bits long is an ASN?

The original ASN space used 16-bit numbers (0 to 65,535), and modern BGP supports a 32-bit space (0 to 4,294,967,295) under RFC 6793. RFC 5396 standardized the textual representation: asplain, the plain decimal form (AS13335), is the standard way to display ASNs, and dotted forms such as 1.10 for 65546 still appear in some older interfaces. Speakers limited to 16-bit values see AS23456, called AS_TRANS, standing in for the real number when a 32-bit route arrives.

Public, private, documentation and reserved ASNs

The table below defines the 12 classification ranges in the IANA ASN registry across 5 columns, verified against the IANA registry and the cited RFCs. A range being open for assignment does not mean every value in it is assigned: within the public pools, individual ASNs are allocated to the Regional Internet Registries and assigned by them, and some values remain unallocated at any given moment. Check IANA and the relevant RIR for the current status of a specific number.

ASN RangeBit WidthClassificationGoverning StandardPurpose
AS016-bitReservedRFC 7607Signals a non-routable origin; must not appear in BGP.
AS1 to AS2345516-bitPublicIANA / RIRsPublicly routable legacy 16-bit assignments.
AS2345616-bitReserved (AS_TRANS)RFC 6793Placeholder seen by 16-bit-only speakers for 32-bit ASNs.
AS23457 to AS6449516-bitPublicIANA / RIRsPublicly routable 16-bit assignments.
AS64496 to AS6451116-bitDocumentationRFC 5398Reserved for examples, labs, and documentation.
AS64512 to AS6553416-bitPrivate useRFC 6996Internal BGP networks and cloud tunnels; must be stripped before global advertisement.
AS6553516-bitReservedRFC 7300The final 16-bit value, reserved.
AS65536 to AS6555132-bitDocumentationRFC 539832-bit documentation and example range.
AS65552 to AS13107132-bitReservedIANAReserved by IANA for future allocation.
AS131072 to AS419999999932-bitPublic poolRFC 6793 / RIRsThe main modern public pool: IANA allocates blocks to RIRs, which assign individual values; parts of the space may be unallocated at any moment.
AS4200000000 to AS429496729432-bitPrivate useRFC 6996Large-scale private BGP fabrics (about 95.0 million values).
AS429496729532-bitReservedRFC 7300The final 32-bit value, reserved.

The public/private split parallels IP addressing: reserved and private IP address ranges separate routable blocks from internal space the same way private ASNs separate internal BGP fabrics from the global routing table.

What are the advantages of having your own ASN?

A public ASN supports an independent routing policy. Four capabilities become possible, each conditional on the rest of the network design rather than automatic:

  1. Multi-provider routing and failover: announcing your prefixes to two or more providers under your own ASN lets BGP reroute when one fails. Convergence speed depends on the topology, timers, and policies involved.
  2. Provider-independent address portability: an ASN paired with provider-independent (PI) IP space lets you change or add upstreams without renumbering. The ASN alone grants no addresses; the PI space and its registry rights are a separate resource.
  3. Peering participation: holding an ASN is a standard prerequisite for peering at Internet Exchange Points such as Equinix IX, DE-CIX, and LINX; each exchange sets its own admission rules, ports, and fees, so the cost and latency benefits vary by network.
  4. Traffic engineering and origin control: your own ASN enables BGP policy tools (AS_PATH prepending, communities, Local Preference) and lets you publish your own RPKI Route Origin Authorizations for your prefixes.

Most websites on standard hosting, serverless platforms, or a single carrier do not need their own ASN: they reach the internet under the provider's network. The decision table below summarizes 4 common network scenarios across 3 columns, from no ASN needed to ASN required:

Network scenarioGeneral directionWhy
Website or office on one ISP or standard hostingUse the provider's networkOne upstream means no independent routing policy to express; an ASN adds cost and operations with no benefit.
Single-cloud VPC with one BGP tunnelUse a private-use ASNCloud gateways default to private ASNs (AWS Transit Gateway 64512, Azure VPN Gateway 65515), which need no registry assignment.
Multihomed network with its own PI prefixesRegister a public ASNIndependent failover policy across two or more providers requires an ASN of your own.
Hosting provider, CDN, or ISPRegister a public ASNAnnouncing customer or edge prefixes across peers and transit is the core of the business.

The table separates the two questions that decide the outcome: whether the network needs to express an independent routing policy (the rows that say register), and whether private-use numbering already covers the session (the cloud row). Between those poles, cost is mostly operations, not the registry fee.

How to get an ASN: registries, eligibility, and costs

IANA allocates ASN blocks to the 5 Regional Internet Registries, and each RIR assigns ASNs to operators in its region under its own policy. Eligibility, documentation, and fees differ by registry and change over time, so the table below names each registry's general direction and the fees verified from primary sources in November 2026:

RegistryRegionGeneral eligibility directionVerified fees (November 2026)
ARINNorth America, parts of the CaribbeanAn eligible organization may receive a single ASN upon request; additional ASNs need justificationARIN's fee schedule effective 1 January 2026 (arin.net/resources/fees/fee_schedule/, checked November 2026) lists $275/year for the smallest Registration Services Plan tier (3X-Small, covering 1 to 3 ASNs, IPv4 /24 or smaller, or IPv6 /40 or smaller; mixed holders pay the highest applicable tier)
RIPE NCCEurope, Middle East, parts of Central AsiaAssigned via a sponsoring LIR, with a multihoming or distinct routing-policy basisRIPE NCC's 2026 Charging Scheme (ripe.net, checked November 2026) sets EUR 50/year per ASN assignment + the sponsoring LIR's own fee
APNICAsia-PacificMember or NIR assignment, with a multihoming or unique routing-policy basisAnnual membership or NIR fee schedule
LACNICLatin America and the CaribbeanMultihoming or unique routing policy per current policyTiered membership and resource fee schedule
AFRINICAfricaMultihoming to two or more distinct ASNs per current policyAnnual resource member fee schedule

The typical application path has 4 steps, with details differing per registry: confirm the routing-policy basis your registry requires, secure the address space you will announce, submit the ASN request through the registry (or sponsoring LIR), and publish your routing records (IRR objects and RPKI ROAs) once the ASN is issued. Registries issue ASNs against ongoing fees rather than selling them outright, and the exact charges vary by registry and service arrangement; the assignments chain from IANA to the RIRs to operators, never directly from IANA to an end network.

BGP ASN vs EIGRP, OSPF and cloud VPN gateways

The word "autonomous system" appears in interior routing protocols and cloud products too, and the numbers mean different things in each context:

ContextScopeNumber assignmentVisibility
BGP (RFC 4271)External routing between independent networksGlobally unique, assigned by IANA and the RIRsVisible in the global routing table
EIGRP (RFC 7868)Interior routing inside one networkLocally chosen process number; neighbors must matchLocal only, never registry-assigned
OSPF (RFC 2328)Interior link-state routingArea IDs and process IDs; an ASBR redistributes external routesLocal routing domain only
Cloud VPN / Direct Connect gatewaysBGP sessions between your network and a cloud providerDefaults are private-use ASNs (AWS Transit Gateway 64512, Azure VPN Gateway 65515)Inside the tunnel only; not globally routed

What is an ASN gateway?

In networking, "ASN gateway" usually refers to an Autonomous System Border Router (ASBR or BGP edge gateway): the router at the edge of an AS that exchanges external BGP routes with peers and hands traffic to interior routers. In supply-chain logistics, the same phrase means an Advance Shipping Notice document gateway, which shares none of this page's subject. Check which context a page means before applying either definition.

Finding the ASN for an IP address

The lookup at the top of this page accepts an IP, an ASN, or a domain. Read the result as separate fields: the observed origin ASN and covering prefix come from routing data, the holder name comes from the registry record, and the two can legitimately differ (the worked example above shows 1.1.1.1 announced by AS13335 while the registry record names APNIC Labs). Results are observations at check time and can change between sources.

The same check from a terminal:

# Team Cymru WHOIS: ASN, BGP prefix, country, registry for an IP
whois -h whois.cymru.com " -v 1.1.1.1"

# Team Cymru DNS TXT form (answers are time-dependent observations)
dig +short 1.1.1.1.origin.asn.cymru.com TXT

# Registry record for the ASN holder
whois AS13335 | grep -iE "ASName|OrgName|Country"

Results can disagree between tools and moments, and each disagreement means something different:

SymptomWhat it usually meansNext check
The result is a reserved, private, documentation, or AS_TRANS valueThe value is not an assigned public ASN (see the ranges table above)Re-read the input; a private ASN in a public path usually means a leak or a lab route
No route observed for the IPThe prefix may be unannounced right now, or the lookup source had no dataRetry, or query the registry records directly
Two tools report different origin ASNsRouting observations genuinely differ by source and moment, or the prefix has multiple originsCompare the covering prefixes and check times before concluding anything
A domain resolves to many IPsCDNs and anycast mean one domain can touch several networksCheck each address separately; the visible network may be the CDN, not the origin host
The lookup timed outA temporary failure, not an answer about the networkRetry; never read a timeout as "no ASN"

Registry-level records, allocation dates, and abuse contacts live in the WHOIS / RDAP lookup, and host-level network details in the IP lookup.

What an ASN tells you about security

Three related but distinct records answer three different questions, and conflating them is the most common ASN mistake:

  • Observed routing: which ASN currently announces a prefix. This is a routing-table observation that changes with announcements and can be manipulated by a hijacker.
  • Registry registration: who holds the number resource or address block per IANA and the RIRs. This is administrative data, not proof of who operates the network today.
  • Route-origin authorization (ROA): a signed statement, validated under RPKI (RFC 6811), saying which ASN may originate which prefix and at what maximum length. Validation checks the origin of a route against ROAs; it does not validate the whole path or establish ownership, and a route with no covering ROA validates as NotFound, which means unprotected rather than malicious.

For crawler and sender identity, the same rule applies with more force: an ASN describes the network a request came from, and it does not verify who sent it. Google documents reverse-DNS and published-range methods for verifying its own crawlers, and mail senders are screened by IP and domain reputation, not by ASN membership alone. See how RPKI Route Origin Authorizations secure BGP origins for the cryptographic layer.

A network's reputation is separate from its ASN: check an address with the IP Reputation Checker and the Blacklist Checker.

Frequently asked questions

How many bits long is an autonomous system number?+

The original ASN space used 16-bit numbers (0 to 65,535), and modern BGP supports a 32-bit ASN space (0 to 4,294,967,295). Not every value in those spaces is available for public assignment: private-use, documentation, and reserved blocks are set aside, and AS23456 (AS_TRANS) is a compatibility placeholder, not an assigned organization number.

What are the main advantages of having your own ASN?+

A public ASN supports an independent routing policy: it enables multi-provider routing and failover, use of your own provider-independent IP space without renumbering, participation in Internet Exchange Point peering, and traffic engineering with BGP attributes. Each outcome depends on network design, address rights, and agreements with other networks; the ASN alone does not deliver them automatically.

How much does it cost to get an ASN, and do you buy it permanently?+

You do not buy an ASN on the open market: a registry assigns it for an ongoing fee, and requirements and costs depend on the registry serving your region. As read in November 2026 on ARIN's fee schedule effective 1 January 2026 (arin.net/resources/fees/fee_schedule/), the smallest Registration Services Plan tier (3X-Small, covering 1 to 3 ASNs, IPv4 /24 or smaller, or IPv6 /40 or smaller) costs $275 per year. RIPE NCC's 2026 Charging Scheme (ripe.net) sets EUR 50 per year per ASN assignment plus the sponsoring LIR's own fee. Check the registry's current schedule before applying.

How does a BGP ASN differ from an EIGRP AS number or an OSPF autonomous system?+

A BGP ASN is globally unique and assigned through IANA and the Regional Internet Registries, and it is visible in internet routing tables. An EIGRP autonomous system number is a locally configured routing-process identifier shared only between neighbors inside one network, and OSPF organizes routers into areas with an Autonomous System Boundary Router redistributing external routes. None of those interior numbers are registry-assigned. The phrase ASN gateway in supply-chain logistics also refers to an Advance Shipping Notice document exchange, which is unrelated to BGP.

Can one ASN announce multiple IPv4 and IPv6 prefixes, or does each IP need its own ASN?+

One ASN can announce many prefixes of both address families: large providers announce thousands of IPv4 and IPv6 blocks under a single ASN. No individual IP address needs its own ASN; an address only needs to be covered by a prefix that some ASN originates. The reverse lookup question is which ASN currently announces the prefix containing a given address.

How do I find the ASN of an IP address?+

Enter the IP into the lookup on this page or the IP Lookup tool to see the observed origin ASN, its covering prefix, and the reported holder, or run whois -h whois.cymru.com 1.1.1.1 in a terminal. The result is a routing observation at a moment in time: it can differ between sources, and the observed origin, the registry holder, and the operator are related but not identical fields.

Next checks

Last verified: 2026-11-25