IP addresses and ASNs: how it works
How IP address allocation works: IPv4 and IPv6, IANA and regional registries, operators and assignees, autonomous systems and BGP announcements, dynamic addresses and shared NAT.
From IANA to the user
| Level | Role | Example |
|---|---|---|
| IANA | Distributes large blocks to the regional registries | Global coordination |
| Regional registries | Assign addresses and ASNs in their area | RIPE NCC for Europe, the Middle East and part of Central Asia; ARIN, APNIC, LACNIC, AFRINIC |
| Operators and providers | Receive blocks and use them or assign them to customers | Telecom operators, hosting, cloud |
| End users | Use an address, fixed or dynamic | Subscribers, companies, servers |
Two families of addresses
IPv4 addresses are 32-bit, about 4.3 billion in all, and are now exhausted; IPv6 addresses are 128-bit and practically unlimited. To make IPv4 go further many operators use shared NAT: hundreds of customers go out to the Internet with the same address, distinguished only by the port used at that moment.
Autonomous systems and BGP
The Internet is a network of networks. Each autonomous system announces to its neighbours, with the BGP protocol, the address blocks it reaches; public announcements show which network “owns” an address and which other networks it connects to.
IP addresses and ASNs: technique
The technique for analysing an IP address: identification, querying the regional registry, ASN and prefix, reverse resolution and hosted domains, cautious geolocation, reputation, history, links.
The pages of this topic
Back to the overviewIP addresses and ASNs: sources
The sources for IP address research: regional registry databases, BGP announcements, reverse resolution and passive DNS, geolocation databases, reputation lists, device search engines.
IP addresses and ASNs: tools
The tools for analysing IP addresses and autonomous systems: the whois command and RDAP, RIPEstat, BGP tools, IP information services, reverse domain lookup, reputation lists, graph tools.
IP addresses and ASNs: guided example
A guided example on a bank phishing site: IP address, provider and autonomous system, other domains on the same server, reputation, abuse contact and reports.
IP addresses and ASNs: limits
The limits of IP address research: approximate geolocation, shared NAT, VPNs, proxies and Tor, CDNs, addresses reassigned over time, outdated registry data; personal data and obtaining subscriber data.
IP addresses and ASNs: how to document
How to document IP address research: registry responses with date, ASN and prefix, hosted domains with observation date, geolocation source, distinction between facts and clues.
IP addresses and ASNs: frequently asked questions
Short answers to the most common questions about IP addresses and autonomous systems in open-source investigations.