← Glossary

What Is an Autonomous System Number (ASN)?

An Autonomous System Number identifies a network that runs under a single routing policy on the internet. Border Gateway Protocol uses ASNs to exchange reachability and prevent loops. An ASN reveals which operator announces an address, not a user's real location or identity.

Updated:

An Autonomous System Number, or ASN, identifies an autonomous system: a collection of IP address ranges operated under a single, clearly defined routing policy. Publicly assigned ASNs are globally unique, while designated private-use numbers may be reused inside separate networks. The internet connects many independently administered routing domains, and each needs a stable name so that the others can refer to it when deciding how to send traffic. The ASN is that name. When a network operator announces that it can reach certain addresses, the announcement is tagged with the operator's ASN, and other networks use AS numbers when evaluating the advertisement. Route visibility depends on propagation and policy.

The defining idea is routing policy, not ownership or geography. An autonomous system is a set of prefixes that all follow the same rules about how traffic enters and leaves, under one technical administration. That is why a single company can run several autonomous systems if different parts of its network follow different policies, and why the ASN is better understood as a label for a routing domain than as a corporate identifier.

Autonomous Systems and Routing Policy

Inside an autonomous system, the operator is free to route traffic however it likes, using whatever internal protocols it prefers; external BGP neighbours do not need its full internal topology to exchange routes. What the rest of the internet cares about is the system's external behaviour: which address ranges it will accept traffic for, which neighbours it connects to, and which paths it prefers or refuses. This external behaviour is the routing policy, and the requirement that an autonomous system have a single and clearly defined one is what makes it a coherent unit to the networks around it.

An operator commonly seeks a public ASN to express an independent external routing policy. The classic case is a multihomed network, one that connects to two or more other networks and wants to decide for itself how to balance or fail over between them. An ASN lets it express that policy in BGP routing, subject to the regional registry’s assignment rules. A network using one provider without an independent external policy may not need its own public ASN. Private ASNs and other arrangements also exist; multihoming is a common motivation rather than a universal definition. This is why having an ASN says something specific: it signals a network with independent routing arrangements, typically an internet provider, a hosting company, a large enterprise or a content operator.

How BGP Uses AS Numbers

The Border Gateway Protocol is the system by which autonomous systems tell one another which addresses they can reach. Its central job is to exchange network reachability information between networks. When one autonomous system advertises a route, the advertisement accumulates a list of the systems the information has passed through, recorded in an attribute called the AS path. In ordinary external BGP propagation, a system prepends its ASN, although features such as route-server operation have special rules.

The AS path does two things. First, it enables loop prevention: if a system sees its own ASN already in the path of a route being offered to it, it normally rejects that path as a loop-prevention measure, subject to configured exceptions. Second, it enables policy: operators compare the AS paths of competing routes to the same destination and apply preferences, for example favouring a shorter path, a cheaper neighbour, or a route that avoids a particular transit network. Sessions between systems in different autonomous systems are called external BGP; sessions within one autonomous system, used to carry this information to all the operator's routers, are internal BGP. The advertised AS path describes routing-domain information, not every router a packet will traverse or a guaranteed geographic route.

ASNs themselves come in two sizes. The original scheme used 16-bit numbers, giving about 65,000 possibilities, and as those grew scarce the system was extended to 32-bit numbers, enlarging the pool enormously. A special reserved number acts as a placeholder so that older equipment that understands only 16-bit numbers can still interoperate with networks using the larger ones. Allocation is hierarchical: a central authority hands blocks of numbers to the regional internet registries, which in turn assign individual numbers to operators in their regions, and specific ranges are set aside for private use and documentation. IP address allocation is a separate process: obtaining an ASN does not automatically grant address space, and announcing a prefix is not the same as owning its registration.

ASN Ownership vs IP Location and Proxy Type

ASNs are frequently used to make inferences about traffic, and some of those inferences are sound while others are not. An ASN lookup typically associates an IP prefix with an observed origin AS and registry information. Classifying that operator as hosting, mobile or broadband requires additional data and can be incomplete.

QuestionWhat an ASN can indicateWhat it cannot establish
Who announces this address?The operator and its network type, such as ISP, hosting or mobileThe legal identity of the end user
Where is the user?Rough association, since operators often serve a regionThe user's actual physical location
Is this a data-centre address?Hosting ASNs suggest servers rather than homesWhether any particular session is automated
Is this residential?Consumer-ISP ASNs suggest home connectionsWhether a residential proxy is relaying someone else's traffic

The limitations are the important part. An ASN is not an IP address: it labels a routing domain, while addresses identify network interfaces or routed endpoints and may be shared or translated. It does not reveal a user's real location: an operator with one ASN can serve customers across a large territory, and routing does not follow civic geography. And it does not prove consent or legitimacy. An origin associated with a consumer ISP suggests a type of network, but it cannot tell you whether the traffic is the subscriber's own or is being relayed through their connection by a residential proxy service. Reading too much into an ASN, such as treating a hosting classification as proof of abuse or a residential classification as proof of a genuine human, mistakes a statement about network administration for a statement about a person.

Where ASNs Appear in Practice

Network engineers encounter ASNs directly when configuring BGP and peering. Beyond that core use, ASNs surface wherever someone wants to reason about the origin of traffic at the level of networks rather than individual addresses. Threat-intelligence and fraud systems group addresses by ASN so that a reputation signal can apply to an operator's whole range. Content and access controls sometimes allow, challenge or block by ASN, treating all of a hosting provider's addresses uniformly. Analytics platforms label visits by the announcing network to distinguish, for example, data-centre traffic from consumer traffic. Public tools map observed prefixes to origin ASNs and related registrations. Unrouted addresses may have no result, and a prefix can have multiple observed origins. Records may also be stale or affected by erroneous announcements.

In each case the value and the caveat are the same. Grouping by ASN is a powerful way to act on many addresses at once with one rule, and it is a blunt instrument that treats an entire operator's network as a single thing. A lookup should identify its data source and observation time. Routing evidence, address registration and end-user identity answer different questions; treating one as proof of the others produces misleading conclusions.

Frequently asked questions

Is an ASN the same as an IP address?

No. An ASN identifies a routing domain, whereas an IP address identifies an interface or endpoint in an address space. One AS can originate many prefixes, and registration, observed routing and end-user ownership are separate facts. An ASN assignment does not itself allocate IP addresses.

Does an ASN prove a user's location?

No. An ASN names the operator announcing an address, and operators often serve wide territories, so routing does not match civic geography. It can suggest a rough region at best and cannot establish where a particular user physically is.

Can one organization operate multiple ASNs?

Yes. Because an autonomous system is defined by a single routing policy, an organisation whose network segments follow different policies can run several. An ASN labels a routing domain, not a company, so one operator may hold more than one.

What does it mean if an address has an ASN?

An IP-to-ASN result usually means a data source observed a covering prefix originated by that AS. It is a routing observation, not proof of the person using the address. Unrouted space may have no mapping, and some prefixes have multiple observed origins.

Can an ASN tell me if traffic is from a proxy?

Only partly. A hosting ASN suggests servers and a consumer-ISP ASN suggests home connections, but a residential proxy relays traffic through ordinary subscriber addresses. So a residential ASN cannot confirm whether the traffic is the subscriber's own.