Who Gets Addresses: Registries, IPv4 Exhaustion, Provider Assignments and Multihoming
How IP addresses reach networks: IANA and the five regional registries, IPv4 exhaustion and the transfer market, provider-aggregatable versus provider-independent space, how sites are numbered and multihomed, AS numbers, and why an IP address is weak evidence of who someone is.
kvi5hnuCode Sprout team member17 min readOn this page
The previous articles covered what addresses look like. This one covers who gets which addresses. Unique addresses only work if somebody makes sure two networks never receive the same block. That job is done by a hierarchy of registries, and the rules they follow shape how routing works, what your ISP (Internet service provider) gives you and how hard it is to change providers.
The registry hierarchy

At the top is the Internet Assigned Numbers Authority (IANA), which manages the whole IPv4 and IPv6 space, AS numbers (the numbers that identify networks in Internet routing, covered below) and protocol number registries. It doesn't hand addresses to individual networks. Instead it gives large blocks to five regional Internet registries (RIRs), which coordinate through the Number Resource Organization (NRO), formed in 2003:
| RIR | Region |
|---|---|
| AFRINIC | Africa |
| APNIC | Asia-Pacific |
| ARIN | Canada, the United States and parts of the Caribbean |
| LACNIC | Latin America and the rest of the Caribbean |
| RIPE NCC | Europe, the Middle East and Central Asia |
The RIRs' members are local Internet registries (LIRs), mostly ISPs, hosting providers and large organizations, plus national registries in some Asian countries. They receive blocks from their RIR and assign pieces to their customers. Each RIR sets its policies through an open community process: anyone can propose a policy change on a mailing list and argue for it at the RIR's public meetings.
Two words have specific meanings here: an allocation is a block given to a registry or ISP to hand out further, and an assignment is a block given to an end user for its own network.
IPv4 exhaustion
The IPv4 pool ran out in stages:
| Date | Event |
|---|---|
| 3 February 2011 | IANA hands out its last five /8 blocks, one to each RIR |
| 15 April 2011 | APNIC reaches its last /8 and starts rationing |
| 14 September 2012 | RIPE NCC reaches its last /8 |
| 10 June 2014 | LACNIC reaches its final reserve |
| 24 September 2015 | ARIN's free pool is empty; requests go on a waiting list |
| 25 November 2019 | RIPE NCC makes its last /22 allocation; afterwards only recovered space goes to a waiting list |
| 13 January 2020 | AFRINIC enters the final phase of its exhaustion policy |
| 19 August 2020 | LACNIC's pool is exhausted |
Today a new network can get at most a small block (often a single /24 after months on a waiting list, if the RIR offers that at all), made of addresses returned by previous holders. AFRINIC still has a small pool left, under strict rationing; it has also spent several years in a legal and governance crisis that slowed its operations.
So where do networks get IPv4 addresses now?
- The transfer market. All five RIRs allow addresses to be sold between organizations, with the RIR recording the change of holder. In 2026 an address costs about 20 US dollars on average, depending on the block size and region. Addresses can also be leased.
- Sharing. Carrier-grade NAT (article 35) puts many customers behind one public address, using the 100.64.0.0/10 space from article 11 between the NAT and the customers.
- IPv6. The long-term answer. IPv6 space is plentiful, and RIRs hand it out on request. It's also mainstream now: Google's statistics showed more than half of its users connecting over IPv6 for the first time in March 2026, and the share stays at around half, with big differences between countries (for example above 70% in France and India, but far lower in parts of southern Europe and Africa).
Here are those sizes worked out:
an ISP's 2001:db8::/32 holds 65,536 customer /48s, or 16,777,216 /56s
a site's 2001:db8:4400::/48 holds 65,536 /64 subnets; a home /56 holds 256
one /64 subnet holds 18,446,744,073,709,551,616 addresses
all of IPv4 is 4,294,967,296 addresses, 16,777,216 /24 networks
What your ISP gives you
Most networks never deal with an RIR. They get addresses from their ISP, carved out of the ISP's own block. Such addresses are provider-aggregatable (PA), also called non-portable: because they're part of the ISP's block, the ISP announces one aggregate route for all its customers, which keeps the global routing table small (article 9). The catch is that they belong to the ISP. Switching providers means renumbering, changing the addresses on every server, router, firewall rule and DNS record, which is painful enough that people stay with providers they'd rather leave ("provider lock-in").
The alternative is provider-independent (PI) space, assigned to the organization directly by an RIR. Any ISP can route it, and changing ISPs means only changing who announces it. The cost is that a PI prefix can't be aggregated with anything, so it adds one more entry to every router's table in the default-free zone (the core routers that carry a full table, article 9). That's why RIRs make it harder to get (and in IPv4 there's simply none left to hand out), and ISPs may charge extra to route it. In practice, networks filter announcements longer than /24 in IPv4 and /48 in IPv6, so those are the smallest PI blocks that are usefully routable.
Typical assignments look like this:
- A home: in IPv4 one address, often dynamic and increasingly shared behind carrier-grade NAT. In IPv6 a prefix delegated by DHCPv6 (the IPv6 version of the protocol that hands out addresses, article 31), most often a /56 (256 subnets). RIPE NCC's best-practice document recommends a /56 for homes (or a /48 for everyone), and never just one /64. RFC 6177 says sites should get enough for multiple subnets.
- A business: a few static IPv4 addresses, with internal machines on private addresses behind NAT, and an IPv6 /48 (65,536 subnets).
- A data center or hosting customer: whatever the provider sells, often a single IPv4 address or a small block per server, plus an IPv6 /64 or more.
Numbering a small business site
A common layout uses a small public block and private space inside:
- A border router connects to the ISP.
- A DMZ (demilitarized zone) network holds servers the Internet must reach: a web server, a mail server, a VPN (virtual private network) gateway. They get public addresses from the site's block.
- An internal router performs NAT for staff machines, which use private addresses such as 10.0.0.0/16 and share the remaining public addresses as a NAT pool.
Separating the DMZ from the inside network protects internal machines if a public server is compromised (article 34), and internal numbering can follow any plan without consuming public addresses. In IPv6 the same site would give every network, DMZ and internal alike, its own /64 from the /48, with a firewall instead of NAT doing the protecting.
Multihoming
A site that can't afford to be offline connects to two or more ISPs. That's called multihoming, and the hard question is which addresses to use.

With PA space from one of the ISPs (P1), P1 covers the site with its normal aggregate, but the second ISP (P2) must announce the site's prefix separately, because it isn't part of P2's block. That more-specific route then wins everywhere through longest-prefix match, so most traffic to the site arrives through P2, whatever the site intended. P1 often has to announce the more-specific prefix too, to get traffic back. RFC 4116 discusses these trade-offs.
The lab gives a distant router the routes it would learn. Router far has one interface towards each ISP. The first three lines are its routes (203.0.113.0/24 stands for P2's own block), and the rest are lookups showing which way each address goes:
198.51.100.0/24 dev viaP1 scope link
198.51.100.192/26 dev viaP2 scope link
203.0.113.0/24 dev viaP2 scope link
198.51.100.200 -> viaP2
198.51.100.10 -> viaP1
203.0.113.9 -> viaP2
198.51.100.200, inside the site, goes via P2 even though the whole /24 belongs to P1. Other addresses in P1's block still go via P1.
With PI space, both ISPs announce the same prefix, and each remote network picks the better path by normal selection in BGP (the Border Gateway Protocol, which networks use to announce their address blocks to each other). The lab simulates that choice with metrics: proto bgp labels the routes, and the lower metric (3, via P1) wins, so traffic follows the shortest paths. When one ISP fails, its announcement disappears and the other takes over:
192.0.2.0/24 dev viaP1 proto bgp scope link metric 3
192.0.2.0/24 dev viaP2 proto bgp scope link metric 4
192.0.2.80 -> viaP1
after P1 fails: 192.0.2.80 -> viaP2
This is the standard way to multihome today: get PI space (or a block of your own from the transfer market) and an AS number, and run BGP with both ISPs.
Multihoming without PI space
PI space doesn't scale to millions of small sites, so other approaches have been tried, especially for IPv6:
- Multiple PA prefixes: in IPv6 a host can simply have an address from each ISP's prefix. The host picks a source address, and the network sends traffic out through the matching ISP (RFC 8678 describes how). If one ISP fails, hosts stop using its prefix.
- Separating identity from location. An IP address does two jobs: it identifies the endpoint of a connection and it says where the endpoint is in the network. Shim6 (RFC 5533) added a layer below transport that let connections switch addresses mid-flight. HIP (Host Identity Protocol, RFC 7401) identifies hosts by public keys. Neither was widely deployed.
- Multipath transport. What succeeded is doing it one layer higher: Multipath TCP (RFC 8684, article 87) and QUIC connection migration (article 86) let one connection use or move between several addresses, and phones use them to switch between Wi-Fi and mobile data.
AS numbers
Networks that run BGP need an autonomous system number (ASN), also handed out by IANA and the RIRs. ASNs were originally 16 bits. Since the 65,536 values were running out, they've been 32 bits since 2007 (now RFC 6793), sometimes written in "asdot" form as two 16-bit halves: the number divided by 65,536, a dot, and the remainder. For example 65551 = 1 × 65,536 + 15, so it's 1.15. Some ranges are special:
AS64496 documentation
AS65551 documentation (asdot 1.15)
AS64512 private use
AS4200000001 private use (asdot 64086.59905)
AS23456 AS_TRANS (stands in for a 32-bit ASN to old 16-bit speakers)
AS65535 reserved
AS_TRANS, 23456, lets a router that understands 32-bit ASNs talk to an old router that doesn't. The documentation ASNs (64496–64511 and 65536–65551, RFC 5398) are used in examples, like the documentation address ranges.
Who has which address: WHOIS and RDAP
Each RIR publishes a database of who holds which addresses and AS numbers. The old way to query it is WHOIS, a plain-text protocol on TCP port 43 (whois 192.0.2.1). The modern replacement is RDAP (Registration Data Access Protocol, RFC 9082 and 9083), which returns structured JSON over HTTPS, and every RIR supports it. A lookup typically shows:
- the block containing the address and its size;
- the holder's name and country;
- its type: an ISP's allocation, a reassignment to a customer, or a PI assignment;
- the parent block it came from;
- abuse contact addresses.
Records chain together: a customer's /27 points to the ISP's /18, which points to the RIR's range. Large ISPs often don't register each customer, so for most addresses the record names the ISP, not the person using it.
IP addresses and security
Few attacks target addresses themselves, but several abuse them:
- Spoofing. Nothing stops a host from putting a false source address in a packet, which is the basis of reflection DDoS (distributed denial-of-service) attacks (article 5). Ingress filtering (BCP 38, RFC 2827) stops spoofed packets at the network edge, but many networks still don't apply it.
- Route hijacking. A network can announce someone else's prefix in BGP, by mistake or on purpose, and attract their traffic. A famous accident took YouTube offline worldwide in 2008. In 2018, attackers hijacked addresses of Amazon's DNS service to steal cryptocurrency.
The defense against hijacks is the Resource Public Key Infrastructure (RPKI). RIRs issue certificates to address holders, who sign Route Origin Authorizations (ROAs) that say which AS may announce their prefixes and how specific the announcements may be. Routers then perform route origin validation (ROV) (RFC 6811) and drop announcements marked invalid. By 2026 about two-thirds of the routes in the global table are covered by ROAs. Here is the validation logic in a few lines. The lab's two ROAs authorize AS64496 to announce 198.51.100.0/24 with a maximum length of 24, and AS64511 to announce 203.0.113.0/24 with a maximum length of 25:
198.51.100.0/24 origin AS64496: valid
198.51.100.0/24 origin AS64500: invalid
198.51.100.0/25 origin AS64496: invalid
203.0.113.128/25 origin AS64511: valid
192.0.2.0/24 origin AS64500: not-found
The second announcement comes from the wrong AS, and the third is more specific than the ROA's maximum length of 24 allows, so both are invalid. An announcement no ROA covers is "not-found", and routers normally still accept it. ROV checks only the origin, so an attacker who fakes a path ending in the right AS can still get through. ASPA (Autonomous System Provider Authorization) extends the checks to the path. Its verification document was in IETF Last Call in November 2026, and some validators and routers already support it.
An address is not a person
IP addresses are often used as evidence of who did something online, for example in copyright notices or criminal investigations. That evidence is weaker than it looks:
- Addresses are reassigned: a home's address may change daily, so a log with an inaccurate clock or a missing time zone points to the wrong customer.
- With carrier-grade NAT, hundreds of customers share one address at the same moment. Identifying one requires the source port and an exact timestamp (RFC 6302 asks servers to log both).
- An address identifies a network connection, not a person: anyone on an open Wi-Fi network, a guest, or malware on a compromised machine sends traffic with that same address.
- Botnets, networks of compromised machines, and VPN or proxy services let attackers send traffic from addresses that belong to other people.
Common questions
Can I buy IPv4 addresses?
Yes. All five RIRs recognize transfers, usually through brokers, and the RIR must approve the recipient and record the change. In 2026 prices are around 20 US dollars per address. Leasing is also common.
Do I need PI space to multihome?
To multihome with BGP so that the rest of the Internet sees your prefix through both ISPs, effectively yes: you need a block that both can announce (PI, or bought), plus an AS number. Without that, you can still use two connections, for example with a router that sends different sessions out of each, or with IPv6 addresses from both ISPs, but incoming connections can't fail over seamlessly.
Why does my ISP keep changing my IPv4 address?
Many ISPs assign consumer addresses dynamically from a pool, so addresses can change when your router reconnects. A static address is usually a paid option. In IPv6, a changing delegated prefix forces every device in the home to renumber, so RIPE NCC's guidance recommends stable prefixes.
Will IPv4 addresses ever be cheap again?
Prices fell from their 2021 peak and settled around 20 dollars in 2026, as more traffic moves to IPv6 and large holders sell spare blocks. As long as large parts of the Internet are reachable only over IPv4, though, addresses will keep a value.
What happens if someone else announces my prefix?
Traffic from networks that prefer their route goes to them instead of you. Publishing ROAs for your prefixes lets the growing number of networks that perform route origin validation reject such announcements. Monitoring services alert you when they see your prefix announced unexpectedly.
Summary
- IANA gives large blocks to five RIRs (AFRINIC, APNIC, ARIN, LACNIC, RIPE NCC), which allocate to ISPs and other LIRs, which assign to end sites. RIR policies are set by open community processes.
- IANA ran out of IPv4 in February 2011, and the RIRs followed between 2011 and 2020. New IPv4 addresses now come from the transfer market (around $20 each in 2026), from waiting lists of returned space, or are shared through carrier-grade NAT.
- IPv6 is handed out generously: an RIR /12, an ISP /32 or /29, a site /48, a home /56.
- PA addresses come from the ISP's block, aggregate well and must be renumbered when you leave. PI addresses belong to the site and survive a provider change, but add a global routing table entry. /24 (IPv4) and /48 (IPv6) are the smallest blocks routed globally.
- Multihoming with PA space lets the more-specific announcement attract traffic. PI space plus an AS number and BGP is the usual solution. Multipath TCP and QUIC handle multiple addresses at the transport layer.
- ASNs are 32 bits, with ranges set aside for private use and documentation.
- WHOIS and RDAP show who holds a block. RPKI and route origin validation protect against route hijacks. An IP address on its own doesn't identify a person.
Practice questions
1. An ISP has 2001:db8::/32 and gives every home a /56. How many homes can it serve?
Answer
2^(56−32) = 2^24 = 16,777,216 homes.
2. A company numbered from its ISP's PA block wants to switch ISPs. What does it have to do?
Answer
Renumber: get addresses from the new ISP and change every statically configured address, DNS record, firewall rule and partner allow-list that uses the old ones, then return the old block. With PI space it would only change who announces its prefix.
3. A site multihomed with PA space from P1 notices nearly all incoming traffic arrives through P2. Why?
Answer
P1 covers the site with its aggregate, but P2 has to announce the site's more-specific prefix. Routers everywhere prefer the longest matching prefix, so they send the site's traffic through P2. Announcing the more-specific prefix through P1 as well restores the balance.
4. A ROA authorizes AS64496 to announce 198.51.100.0/24 with a maximum length of 24. Is an announcement of 198.51.100.128/25 from AS64496 valid?
Answer
No, it's invalid. The origin is right, but /25 is longer than the maximum length of 24. Raising the ROA's maximum length to 25 would make it valid, at the price of letting an attacker announce /25s with a forged origin.
5. A copyright notice names your address at a specific time, but your ISP uses carrier-grade NAT. What other information is needed to identify the subscriber?
Answer
The source port, and a precise timestamp with its time zone. Many customers share the address at the same time, and the ISP can only identify one from its NAT logs if it knows the port and exact time.
6. Which of these AS numbers can appear on the public Internet: 64500, 64600, 65550, 4200000000?
Answer
None of them should. 64500 and 65550 are documentation ASNs, and 64600 and 4200000000 are private-use ASNs that networks must strip before announcing routes to others.
Review quiz
Test yourself on IP addressing: IPv4 and IPv6 notation, subnetting, CIDR, special-use ranges, multicast, anycast and allocation.
Quiz: IP Addressing (TCP/IP Part 2)
Previous: Multicast and Anycast Addresses in IPv4 and IPv6
Next: Ethernet: Frames, MAC Addresses, EtherTypes and Today's Speeds

More in TCP/IP Course
Quiz: TCP/IP Delicate Details
Twenty-five questions on the details that catch out experienced engineers: sequence numbers for SYN and FIN, TIME_WAIT versus tcp_fin_timeout, Karn's algorithm, socket buffer doubling, even and odd ephemeral ports, IPv6 checksums and fragmentation, negative DNS caching, and capture filter traps.
Quiz: TCP/IP Interview Questions
Thirty-three networking questions of the kind asked in developer, SRE and network engineering interviews: what happens when you load a URL, TCP versus UDP, handshakes, closing and TIME_WAIT, subnetting, NAT, DNS, MTU problems, congestion, TLS and QUIC, and debugging slow or failing connections.
Quiz: TCP/IP Course Final Exam (All Parts)
The final exam for the TCP/IP course: thirty questions across all fourteen parts, from packets and addressing through Ethernet, ARP, IP, DHCP, NAT, ICMP, UDP, DNS, TCP connections, reliability, congestion control, security, QUIC and troubleshooting.
Quiz: Modern Transports and Troubleshooting (TCP/IP Part 14)
Review modern transports and troubleshooting: QUIC packets, handshakes, 0-RTT, streams and connection migration, HTTP/3, Multipath TCP, SCTP multihoming, and a layered method for diagnosing real network faults.
Discussion
Sign in to ask a question or share what you learned.