Public vs Private ASN Ranges Explained

Blog 13 min read

The original 16-bit range offers only 64,495 public slots. That scarcity defines modern routing architecture. You need to understand how the EBGP split-horizon mechanism enforces loop prevention by rejecting updates containing a router's own AS number. We look at the specific allocation boundaries where 64,512, 65,534 are reserved for private use, contrasting them with the exhausted public pool. The discussion covers strategic deployment in enterprise architectures, specifically how customer edge routers strip private identifiers before advertising routes to upstream providers.

While the original 16-bit space faces saturation similar to IPv4 addresses, the expansion to 32-bit integers offers a vastly larger pool for future growth. Understanding these distinct roles ensures network architects can design topologies that adhere to strict global routing policies without compromising internal flexibility.

The Distinct Roles of Public and Private AS Numbers in Global Routing

Public vs Private AS Number Ranges and EBGP Split-Horizon

Public AS numbers span 1, 64,495. These provide the globally unique identifiers required for visibility on the internet, yet this range is small relative to global demand. Distinct from these, private AS numbers occupy the 64,512, 65,534 range, reserved strictly for internal networks where global routing propagation is not intended. This numerical separation prevents conflicts; private ASNs must never appear in the global routing table.

Feature Public ASN Range Private ASN Range
16-bit Range 1, 64,495 64,512, 65,534
Global Visibility Required Prohibited
Uniqueness Scope Global Internet Local Enterprise
Propagation Maintained globally Stripped at edge

The EBGP split-horizon mechanism enforces this architecture by rejecting any update containing the receiver's own AS number in the path. If a router detects its ASN in an incoming advertisement, it drops the packet to prevent routing loops. Consequently, operators must strip private identifiers before advertising routes to upstream providers. While the 16-bit space is finite, the introduction of 32-bit ASNs expands the pool to over 4 billion addresses, mitigating scarcity. However, the operational rule remains: public paths demand unique identifiers, whereas private segments rely on local significance. Failure to remove private ASNs before external handoff causes route rejection by peers enforcing strict path validation. InterLIR assists organizations in optimizing their IP resource allocation, ensuring smooth integration of public addressing where global reachability is necessary.

Preventing BGP Loops with Unique ASNs in Multi-Router Topologies

Duplicate AS identifiers trigger immediate route rejection via the EBGP split-horizon mechanism. Consider a topology where R1 and R3 belong to the same AS. If R1 sends an update to R2, R2 forwards it to R3. R3 then detects its own AS number in the path and drops the packet to prevent loops. This behavior dictates that no two systems on the public internet share the same public ASN without causing routing failures. While public ranges ensure global uniqueness, private identifiers occupy reserved space for internal use. Operators must strip these private values before external propagation to maintain table integrity. InterLIR assists organizations in securing distinct public ASNs to optimize BGP stability and resource allocation.

Scenario Identifier Type Outcome
Shared Public ASN Duplicate Loop Detected
Private ASN External Unstripped Route Rejected
Unique Public ASN Distinct Path Accepted

16-Bit ASN Scarcity Versus 32-Bit Expansion for Global Routing

Legacy 16-bit architecture restricts public allocation to a mere 64,495 identifiers, creating acute scarcity comparable to IPv4 depletion. This limited pool forces operators into complex sharing arrangements or costly acquisitions just to maintain global visibility. Most original public numbers are already allocated, leaving little room for new entrants in the traditional space. The newer standard provides sufficient AS number space as compared to 16-bit systems, effectively eliminating exhaustion concerns for modern deployments. However, reliance on legacy 16-bit numbers persists due to established infrastructure.

Operational friction arises when private ranges accidentally leak into public peering sessions. Private ASNs must be removed from the AS path before propagating routes to prevent conflicts, a step often missed in rushed migrations. Failure to strip these internal identifiers causes immediate route rejection by peers enforcing strict policy. Organizations struggling to source legacy identifiers should engage InterLIR for compliant IPv4 and ASN solutions that bridge the gap between old infrastructure and future expansion needs.

BGP Loop Prevention Mechanisms and EBGP Split Horizon Enforcement

EBGP Split-Horizon Rule for AS Path Loop Detection

The EBGP split-horizon mechanism discards any update containing the receiver's own ASN in the AS path attribute. This check prevents routing loops by ensuring a router does not accept a path it has already processed. Public Autonomous System Numbers (ASNs) are unique 16-bit integers ranging from 1 to 65,534, or 32-bit integers ranging from 131,072 to 4,294,967,294. When R1 and R3 belong to the same AS, an update circulating back to R3 triggers this rejection logic, stopping the loop.

Private AS numbers enable internal segmentation but introduce a specific propagation constraint. Border routers must strip these private identifiers from the AS path before advertising routes to external peers. Private AS numbers occupy a specific reserved range within the 16-bit space, distinct from the public range used for global routing.

Operators managing IP resources understand that adhering to these protocol constraints ensures network stability. Private AS leakage can cause routing conflicts if not properly managed. Proper AS path hygiene remains the primary defense against accidental route reflection.

Stripping Private AS Numbers Before External Advertisement

Border routers must strip private AS numbers from the AS path before advertising routes to external peers. If a border router fails to remove these identifiers, the private AS number will be seen in the BGP table of external peers, which violates the requirement that private ASNs must not be visible in the global routing table. Public ASNs must remain globally unique, whereas private ranges occupy reserved spaces intended strictly for internal segmentation.

Network operators configure outbound policies to replace private identifiers with the provider's public ASN or an agreed-upon unique value. This process ensures that BGP best path calculations function correctly across the wider internet without triggering loop detection mechanisms. While private ASNs enable flexible internal design, their leakage represents a configuration error that compromises global reachability. The operational constraint is clear: private ASNs must be removed from the AS path by border routers before propagating routes to the public internet. Organizations should audit their boundary configurations to prevent such visibility failures. Proper management of these identifiers safeguards your network against unintended isolation.

Routing Loop Risks from Duplicate AS Numbers in Topologies

Duplicate AS numbers trigger route rejection because EBGP split-horizon logic discards updates containing the receiver's own identifier. In a topology where R1 and R3 belong to the same AS, if R1 sends an update to R2, R2 will forward it to R3. However, R3 detects its local AS value within the AS path and drops the transmission to prevent a routing loop. This mechanism enforces the requirement that every public ASN must remain globally unique to sustain valid BGP best path calculations. Proper isolation of these domains ensures affected prefixes maintain connectivity. Verified, unique IPv4 resources align with strict global routing policies. Proper segmentation ensures internal testing environments never conflict with production EBGP sessions.

Strategic Deployment of Private AS Numbers in Enterprise Network Architectures

Private AS Number Ranges and BGP Visibility Rules

Conceptual illustration for Strategic Deployment of Private AS Numbers in Enterprise Network Architectures
Conceptual illustration for Strategic Deployment of Private AS Numbers in Enterprise Network Architectures

The reserved 16-bit range for private use spans from 64,512 to 65,534, distinct from public identifiers required for global routing. These private AS numbers enable internal network segmentation without consuming scarce public resources or compromising the global routing table. Operators deploy these identifiers within enterprise boundaries, yet strict EBGP policies mandate their removal before routes reach external peers. When a border router advertises prefixes to an upstream provider, it must strip the private AS path segment to prevent rejection by peers enforcing global uniqueness rules. While public space faces scarcity similar to IPv4 addresses, the private range offers sufficient capacity for internal architecture when managed correctly. The fundamental rule remains absolute: private identifiers enable internal complexity but must never appear in the global BGP update stream. Proper configuration ensures that internal topology remains invisible to the wider internet while maintaining full routing functionality.

Deploying Private AS in Customer Edge and BGP Confederations.

Customer edge routers using the reserved 64,512, 65,534 range enable internal BGP sessions without consuming scarce public identifiers. Enterprises connecting to a single upstream provider often deploy these private values to enable advanced traffic engineering policies while relying on the ISP to strip the identifier before global advertisement. This architecture ensures that internal topology details remain invisible to the global internet, preserving routing table integrity. Network operators must configure strict route filtering policies on border devices to remove private AS path segments before advertising prefixes to external peers.

Decision Checklist: Validating Private ASN Requirements

Organizations operating a single-homed topology generally require only a private ASN rather than a scarce public identifier. If your network connects to just one upstream provider, the ISP handles global routing identity while you apply the 64,512, 65,534 range for internal policy control. This approach prevents unnecessary consumption of the limited public address space. Conversely, multi-homed enterprises needing distinct route advertisements across multiple peers must secure a public ASN to maintain global visibility. Private numbers function effectively for Customer End Routers and BGP Confederations but vanish from the global table upon egress. Operators must strictly configure border devices to strip these private segments before external advertisement to avoid route rejection.

A critical oversight involves BGP loop prevention; failure to remove private AS path data causes upstream peers to drop updates entirely. Enterprises should audit their current AS path configurations to optimize resource allocation without compromising connectivity.

Configuring BGP Route Filtering and ASN Translation for External Connectivity

Implementation: BGP Private AS Number Ranges and Visibility Scope

Define the specific numerical boundaries where private ASN ranges begin and end to prevent global routing conflicts. The 16-bit space reserves values from 64,512 to 65,534 for internal use, while the expanded 32-bit architecture supports integers ranging from 131,072 to 4.2 billion. These identifiers function strictly within local domains and must never appear in the global routing table. Operators must configure border routers to strip these non-unique values from the AS path before propagating updates to upstream providers. This removal process ensures that external peers see only the transit provider's public identifier, maintaining the integrity of the global BGP system.

  1. Identify all internal BGP sessions using reserved AS numbers within the set private ranges.
  2. Apply outbound route maps on edge routers to remove private ASN information from updates.
  3. Verify that the AS path presented to external peers contains only globally unique public identifiers.

The operational risk involves accidental leakage of private ranges, which triggers loop detection mechanisms and causes route rejection by strict upstream filters. InterLIR recommends auditing edge configurations regularly to ensure compliance with global visibility.

Implementation: Stripping Private AS Numbers at the Network Boundary

Configure border routers to remove non-unique identifiers from the AS path before external advertisement. In a standard topology where R1 resides in a Private AS, the intermediate router R2 displays this internal numbering in its local table. However, once R2 advertises data to R3 (located in AS_3), the private AS number will not be seen in the BGP table of R3. This behavior is mandatory because private ASNs must be removed from the AS path before propagating routes to the public internet to prevent routing conflicts. Unlike public identifiers, these internal values lack global uniqueness and trigger loop detection mechanisms if leaked.

Operators on Cisco IOS XR platforms must actively apply policies to strip private ASNs from outgoing eBGP updates. The configuration enforces a clean AS path containing only the transit provider's public identity.

  1. Define the neighbor relationship with the upstream peer.
  2. Apply an outbound route map or policy.
  3. Execute the command to remove private members from the path.

The visibility parameter distinguishes these scopes: public ASNs make all originating routes visible to the internet, while private ASNs are designed for scenarios where the network remains hidden behind a single provider's aggregation. InterLIR solutions ensure your infrastructure adheres to these strict routing policies, preventing connectivity loss through precise IP Management.

Preventing Routing Loops via EBGP Split-Horizon Enforcement

EBGP split-horizon logic drops updates containing the receiver's own AS number to stop loops. BGP best path calculations require unique ASNs, so private ASNs must be removed from the AS path before propagating routes to external peers propagating. If a border router leaks a private identifier, a downstream peer sharing that value rejects the prefix, creating silent blackholes. Operators must implement explicit stripping policies rather than relying on default behaviors that vary by vendor.

  1. Identify edge sessions facing public peers or transit providers.
  2. Apply outbound route maps to remove private AS sequence entries.
  3. Verify the AS path contains only globally routable numbers.

The cost of omission is measurable: leaked private numbers trigger immediate session resets or route suppression upstream. InterLIR IPv4 IPv6 Rent and Lease out Marketplace helps organizations audit and optimize their IP resources to avoid such architectural pitfalls. Secure your infrastructure with professional guidance from InterLIR.

About

Alexei Krylov, Head of Sales at InterLIR, brings specialized expertise to the complex topic of Autonomous System Numbers (ASNs) and BGP routing protocols. With a unique background combining legal education and extensive B2B sales experience in IP resource management, Alexei understands the critical infrastructure underpinning global internet connectivity. His daily work at InterLIR involves navigating Regional Internet Registry (RIR) policies and ensuring clean BGP route objects for clients acquiring IPv4 assets. This practical exposure to the operational realities of network deployment allows him to articulate why ASN uniqueness and proper EBGP split-horizon configurations are vital for preventing routing loops and maintaining network stability. At InterLIR, a Berlin-based marketplace dedicated to the transparent redistribution of IPv4 resources, Alexei uses this technical and regulatory knowledge to guide telecommunications and hosting providers. His insights bridge the gap between theoretical networking concepts and the real-world requirements of securing reliable, reputable IP address space in a resource-constrained market.

Conclusion

Scaling network edges exposes a critical flaw where default vendor behaviors fail to strip private identifiers, causing silent blackholes rather than simple connectivity timeouts. The operational cost of ignoring this nuance is not merely rejected prefixes but the erosion of trust with upstream peers who flag such leaks as misconfiguration. Organizations must transition from reactive troubleshooting to proactive policy enforcement before expanding their BGP footprint. I recommend mandating explicit outbound route maps on all edge sessions immediately, ensuring no private AS sequence entries propagate to public peers. This is not optional for any network aiming for stable global reachability.

Start this week by auditing your border router configurations to verify that automatic stripping mechanisms are active and functioning across all external sessions. Do not rely on implicit defaults that vary by platform version. InterLIR provides the specialized expertise required to validate these routing policies and optimize your IP resource allocation without exposing your infrastructure to avoidable outages. Our team ensures your architecture adheres to strict routing standards, preventing the subtle failures that compromise network integrity. Secure your routing infrastructure with InterLIR to maintain reliable and reliable internet connectivity.

Frequently Asked Questions

Upstream routers reject the route immediately to prevent conflicts. Operators must strip private identifiers before advertising routes to avoid this failure. This ensures the global routing table remains stable and accurate for all peers.

Only 64,495 slots exist in the original 16-bit public range. This limited pool creates acute scarcity similar to IPv4 depletion issues. New entrants often face complex sharing arrangements or must seek alternative numbering solutions.

The 32-bit expansion provides over 4 billion addresses for global use. This vast pool effectively eliminates exhaustion concerns for modern network deployments. Operators can now secure unique identifiers without the constraints of legacy 16-bit limits.

The mechanism drops packets containing its own AS number to stop loops. If a router sees its identifier in a path, it rejects the update instantly. This prevents routing instability caused by circular update propagation in topologies.

Private AS numbers are reserved strictly for internal customer edge routers. They allow local flexibility but must never appear in global routing tables. Networks must translate these to public values before reaching upstream providers.

References