Skip to main content

IPv4 guide

What Is an ASN? Autonomous System Numbers Explained

Stephanie
Autonomous-System-Number

What does ASN mean in networking?

ASN stands for Autonomous System Number. It is a numeric identifier used by the Border Gateway Protocol (BGP) for an autonomous system: a connected group of one or more IP prefixes operated under one clearly defined routing policy. One organization can operate more than one autonomous system, and one autonomous system can involve more than one network operator.

An ASN identifies a routing-policy domain. It does not identify a person, prove that a company owns an IP prefix, or make a network reachable. Prefix registration, permission to use address space, route authorization, upstream acceptance, and working connectivity are separate facts.

ASN format, size, and notation

Operators usually write an ASN as AS followed by a decimal value, such as AS64497. Modern BGP supports a 32-bit AS number space from 0 through 4,294,967,295, but several values and ranges are reserved for private use, documentation, transition, or other special purposes and cannot be treated as ordinary public assignments.

The recommended plain decimal display is called asplain. Older systems may show a 32-bit ASN in asdot notation, so confirm the integer value when systems use different formats. AS23456, named AS_TRANS, is a compatibility placeholder used when four-octet ASNs cross older two-octet BGP implementations; it is not a substitute for the network's real ASN.

How does BGP use ASNs?

  1. A network originates a prefix. A BGP speaker announces reachable IP prefixes together with path attributes.
  2. External neighbors add path information. When a route crosses an external BGP boundary, the advertising system normally prepends its ASN to the AS_PATH.
  3. Receivers apply local policy. Each network can accept, reject, prefer, de-prefer, or propagate routes according to its own routing policy.
  4. The selected route enters forwarding. A router installs an eligible best route and advertises routes to peers according to policy.

AS_PATH records the autonomous systems through which an announcement has passed and helps detect loops. In a normal AS_SEQUENCE as commonly displayed, the route's origin AS is at the right-hand end. The first ASN seen from a receiving network is usually its directly connected external neighbor.

BGP does not simply choose the “shortest” or “most reliable” path. Local preference and other operator policy are applied first; AS-path length is one selection input, and it does not measure latency, packet loss, capacity, or business reliability. Traffic can also take different forward and return paths.

ASN vs IP address, prefix, and BGP route

Identifiers and objects used in Internet routing
ItemWhat it describesWhat it does not prove
IP addressOne IPv4 or IPv6 interface addressWhich organization controls the route
IP prefixA contiguous block such as 192.0.2.0/24That it is currently reachable or authorized for an ASN
ASNAn autonomous system and its routing-policy identityOwnership of every prefix it announces
BGP routeA prefix plus path attributes learned from a peerThat the path is safe, fast, or contractually permitted
ROAAuthorization for one AS to originate specified prefixes, optionally bounded by maxLengthThe complete AS path or end-to-end reachability

Read the IPv4 address guide for address and prefix basics, and the RIR guide for the registry system that distributes IP addresses and AS numbers.

Public ASN vs private ASN

Public and private Autonomous System Numbers
ASN typeUseRouting boundary
Public ASNA globally unique assignment for routing that may appear on the public InternetObtain it through the responsible registry channel and follow its current policy
16-bit private-use rangeAS64512AS65534Use inside a controlled routing domain; do not intentionally propagate it globally
32-bit private-use rangeAS4200000000AS4294967294Use inside a controlled routing domain; do not intentionally propagate it globally

Private ASNs are useful for internal BGP, customer sessions where the provider presents a public route, labs, and some provider-managed designs. The edge policy must remove, replace, or reject private ASNs as the design requires before public propagation; never assume that another network will clean them up. Because different networks can reuse the same private value, mergers and interconnections can create path collisions or loop-detection surprises.

Documentation and reserved ASNs are not extra private ranges. For example, AS64496AS64511 and AS65536AS65551 are reserved for documentation, while AS0, AS65535, and AS4294967295 have special reserved status.

When do you need your own public ASN?

A public ASN is appropriate when a network needs an independent external routing policy—for example, to exchange routes with multiple upstreams, participate in an Internet exchange, originate portable address space under its own routing identity, or apply policy that cannot be represented by a provider's ASN. Multihoming is common, but it is not the definition of an autonomous system and does not automatically deliver resilience.

You usually do not need a public ASN for ordinary Internet access, a single-provider connection using provider-assigned space, or every leased IPv4 deployment. In some cloud and BYOIP products, the provider originates the customer's prefix under the provider's ASN; other designs support or require the customer's ASN. Check the exact service, prefix length, registry, LOA, RPKI, and routing requirements.

An ASN alone does not create provider independence, failover, lower latency, or scalability. Those outcomes require portable or contractually usable address space, diverse upstreams and physical paths, accepted route advertisements, sound policy, sufficient capacity, monitoring, and tested failure procedures.

How to request and operate an ASN

  1. Document the routing policy. Identify prefixes, upstreams, peers, sites, traffic goals, and why a provider-managed ASN is insufficient.
  2. Use the responsible registry channel. IANA allocates ASN blocks to the five Regional Internet Registries. Apply under the current policy for your region, directly or through the applicable national, local, or sponsoring registry channel.
  3. Confirm address authority. Record who holds or leases each prefix, who may originate it, the LOA or contract scope, term, renewal, abuse contacts, and exit procedure.
  4. Build routing objects deliberately. Coordinate prefix filters, IRR route objects where used, RPKI ROAs, BGP communities, import and export policy, maximum-prefix limits, and default-route behavior.
  5. Test before migration. Validate acceptance from every upstream, origin and prefix length, return paths, failover, convergence, monitoring alerts, route withdrawal, and rollback.
  6. Maintain the records. Keep registry contacts, routing objects, ROAs, NOC and abuse contacts, provider documentation, and decommissioning evidence current.

RPKI, ROAs, and ASN security

A Route Origin Authorization (ROA) is a signed RPKI object through which an address-space holder authorizes one ASN to originate one or more prefixes. The optional maxLength limits the most-specific covered announcement. Route Origin Validation can classify a received prefix and origin-AS pair from validated ROA data.

A ROA does not validate every ASN in AS_PATH, prove that the advertised path is physically reachable, prevent all route leaks, or guarantee that every provider will accept the route. Use origin validation with explicit prefix and AS-path filters, maximum-prefix controls, peer authentication where supported, route monitoring, change control, and current incident contacts.

  • Route hijack: another AS originates a prefix without authority.
  • Route leak: a route is propagated beyond its intended policy scope, even when its origin AS is legitimate.
  • Configuration error: a wrong ASN, prefix length, filter, ROA, or stale routing object can suppress a legitimate route or expose an unintended one.

ASN deployment checklist

  • Public ASN and prefix authority verified in the appropriate registry records.
  • Every intended prefix and maximum length agreed with address holder and upstreams.
  • Import, export, bogon, private-AS, default-route, and maximum-prefix policies documented.
  • IRR and RPKI records created by the authorized party and checked from external validators.
  • Physical and provider diversity verified instead of inferred from two BGP sessions.
  • Forward and return traffic, failure modes, withdrawals, contact paths, and rollback tested.
  • Routing, latency, loss, reachability, route-origin changes, and prefix reputation monitored.

For externally routed IPv4, combine the ASN plan with strategic IP address management. If address space is leased, compare routing authority, LOA, RPKI, IRR, reputation evidence, prefix size, term, renewal, abuse handling, and return conditions through managed IPv4 leasing.

ASN standards references

  • RFC 1930: autonomous-system creation and the routing-policy definition.
  • RFC 4271: BGP-4, AS_PATH, and the conceptual decision process.
  • RFC 6793: four-octet ASNs and AS_TRANS.
  • RFC 6996: private-use ASN ranges and filtering considerations.
  • RFC 9582: the current Route Origin Authorization profile.
  • IANA AS Number registries: current allocations and special-purpose status.

Autonomous System Number FAQ

What does ASN stand for?

ASN stands for Autonomous System Number, the numeric identifier BGP uses for an autonomous system with one clearly defined routing policy.

What is an ASN number?

“ASN number” commonly means Autonomous System Number, although the phrase is redundant because the N already means number. It identifies a routing-policy domain, not an IP address or proof of prefix ownership.

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

An IP address identifies an interface address within IPv4 or IPv6. An ASN identifies an autonomous routing system used in BGP. One ASN can originate many prefixes, and a prefix can be authorized for different origin ASNs over time or under controlled designs.

What are the private ASN ranges?

The private-use ranges are AS64512AS65534 and AS4200000000AS4294967294. They may be reused inside controlled networks and should not be intentionally propagated on the public Internet.

Do I need my own ASN to use leased IPv4 addresses?

Not always. A provider may originate the prefix under its ASN, or a contract may permit the lessee's ASN. Verify the route model, LOA, RPKI, IRR, upstream acceptance, prefix length, term, and withdrawal procedure before deployment.

Does an ASN make a network secure or resilient?

No. Security and resilience depend on route authorization and filtering, diverse providers and paths, capacity, monitoring, incident response, and tested failover. An ASN only supplies a routing identifier.