IP & Network Engineering Technical Wiki
The definitive open encyclopedia covering address fundamentals, CIDR netmask mathematics, BGP anycast architecture, and protocol packet headers.
Quick Answer
An IP address is the fundamental routing token of the Internet Protocol. Classless Inter-Domain Routing (CIDR, RFC 4632) replaced rigid legacy address classes with variable-length prefix masks, enabling flexible subnetting and route aggregation in global BGP routing tables.
- CIDR notation (/prefix) dictates how many leading bits represent the network prefix.
- IPv6 standardizes local LAN segments on /64 prefixes, providing 18.4 quintillion host addresses.
- BGP Anycast routes millions of clients to the closest edge server using the same IP.
Complete IPv4 CIDR Subnetting Reference Table
Calculations for netmasks, wildcard masks, total addresses, and usable host counts from /16 to /32.
| CIDR Prefix | Subnet Mask | Total Addresses | Usable Hosts | Common Usage |
|---|---|---|---|---|
| /16 | 255.255.0.0 | 65,536 | 65,534 | Large enterprise campus / Cloud VPC |
| /20 | 255.255.240.0 | 4,096 | 4,094 | Regional data center allocation |
| /24 | 255.255.255.0 | 256 | 254 | Standard local office LAN / Minimum BGP route |
| /26 | 255.255.255.192 | 64 | 62 | Departmental subnet isolation |
| /28 | 255.255.255.240 | 16 | 14 | Small server DMZ or public IP block |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point leased line WAN link |
| /32 | 255.255.255.255 | 1 | 1 | Single host loopback / Firewall route rule |
Subnetting & Host Allocation Decision Tree
[ Subnet Calculation Objective ]
|
+---------------+---------------+
| |
[ IPv4 Subnetting ] [ IPv6 Subnetting ]
| |
2^(32 - CIDR) - 2 Hosts Standard /64 LAN Prefix
| |
+----------+----------+ 18 Quintillion Host IDs
| | |
[ /24: 254 Hosts ] [ /30: 2 Hosts ] SLAAC Autoconfiguration
Standard Office LAN Point-to-Point WAN Zero Broadcast Overhead
Frequently Asked Questions
How do you calculate usable host addresses in a CIDR subnet?
The total number of IP addresses in an IPv4 subnet is 2^(32 - prefix length). For standard local networks, 2 addresses are reserved: the network address (all host bits 0) and the broadcast address (all host bits 1). Therefore, usable hosts = 2^(32 - prefix) - 2. For example, a /24 subnet has 2^(32 - 24) - 2 = 256 - 2 = 254 usable host addresses.
What is BGP Anycast and why is it used by modern CDNs?
BGP Anycast assigns the exact same IP address (e.g. 1.1.1.1 or 8.8.8.8) to hundreds of distributed data centers across the globe. Border Gateway Protocol (BGP) routing automatically directs each user packet to the topologically nearest data center, minimizing physical fiber latency and naturally distributing massive DDoS floods across global capacity.
Why did IPv6 completely remove the broadcast address?
In IPv4, broadcast packets (such as ARP requests to 255.255.255.255) force every single network interface on the local switch to wake up and process the frame, wasting CPU cycles and battery. IPv6 replaced broadcast with targeted multicast groups (e.g. Solicited-Node Multicast with Neighbor Discovery Protocol RFC 4861), ensuring only interested devices inspect the packet.
IP Lookup & Network Registry Archive
In-depth tutorials covering address parsing, Regional Internet Registries, BGP prefix mappings, and high-volume client caching strategies.
Reading IP Records
(12 articles)How to Read an IPv4 Address: Octets, Classes, and Structure
Understanding IPv6 Format: Hexadecimal Blocks and Shorthand Rules
Identifying Public vs Private IP Ranges: Complete RFC Reference
IPv4 to IPv6 Mapping: Dual-Stack Representations Explained
Subnet Mask and Prefix Length Guide: From /8 to /32 Explained
Decoding Special Purpose IP Addresses: Loopback, Multicast, and APIPA
How IP Geolocation Databases Map Coordinates to Subnets
Why Your IP Address Shows the Wrong City: Technical Explanation
Understanding CIDR Blocks and Subnet Allocation in IP Lookups
Comparing MaxMind, IPinfo, and DB-IP: Database Differences
How Mobile Carriers (CGNAT) Allocate Dynamic Regional Subnets
Identifying Datacenter vs Residential Subnets in Lookup Records
Network Registration
(12 articles)How to Read ARIN, RIPE, and APNIC WHOIS Records Accurately
The Regional Internet Registry (RIR) Allocation Hierarchy Explained
Understanding inetnum vs NetRange in Regional IP Registrations
How to Check Historical IP Assignment and Ownership Transfers
Finding Valid Abuse Points of Contact in WHOIS Databases
WHOIS Privacy and GDPR Redactions: What Network Admins Still See
What Is an Autonomous System Number (ASN) and How BGP Uses It
How to Lookup ASN Announced Prefixes and Upstream Peering
Understanding BGP AS-Path and Route Propagation Across Continents
How Tier-1 Carriers Peer and Exchange Global Internet Traffic
Diagnosing BGP Hijacking and Route Leaks: Detection Guide
RPKI Validation: How Route Origin Authorization Prevents Spoofs
Reliable Lookups
(12 articles)Why Client-Side IP Lookups Require Dual-Stack Probing
Bypassing Transparent HTTP Caches During Public IP Lookups
Browser DNS and Socket Cache Impact on Real-Time IP Diagnostics
Detecting Transparent ISP Proxies and Middleboxes with IP Tests
How Anycast CDNs Alter Perceived Exit IPs and Client Origin
Best Lightweight IP Lookup Tools Compared: Speed, Privacy, and Accuracy
Building a Reliable IP Lookup API Client in Node.js and Python
Handling IP API Rate Limits: Exponential Backoff and Fallbacks
Local GeoIP Database vs Live Cloud API: Cost and Latency Tradeoffs
Securing Self-Hosted IP Lookup Endpoints Against Scraper Abuse
Parsing ASN, City, and Network Org JSON Responses Reliably
Caching Strategies for High-Volume IP Lookups: Redis and TTLs
IP Geolocation & Routing Intelligence Archive
In-depth tutorials exploring accuracy radiuses, capital city routing biases, Anycast CDN proximity detection, and RFC 8805 correction protocols.
Understanding Results
(12 articles)IP Location Accuracy Radius: Why Coordinates Are Not Street Addresses
Why IP Geolocation Defaults to Capital Cities and Data Centers
Country-Level vs City-Level IP Geolocation Reliability Ratios
Wi-Fi Triangulation vs IP Geolocation: How Devices Locate You
Legal Limitations of IP Location as Judicial Evidence
How CDNs Use EDNS Client Subnet to Determine Server Proximity
How MaxMind and GeoLite Build and Refresh Location Tables
Difference Between Static Infrastructure and Dynamic End-User GeoIP
How Reverse DNS (PTR) Records Reveal City Codes and POPs
Latency-Based Geolocation: Multilateration Using Ping Timings
Commercial vs Free GeoIP Databases: Accuracy Benchmarks
How Frequently Do Major GeoIP Databases Release Updates?
Data & Technical Sources
- IETF RFC 4632 — Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan
- IETF RFC 4861 — Neighbor Discovery for IP version 6 (IPv6)
- IETF RFC 4786 — Operation of Anycast Services