upgrade
upgrade

📡Systems Approach to Computer Networks

Key Concepts of IP Addressing Schemes

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

IP addressing is the foundation of how devices find and communicate with each other across networks—it's the postal system of the internet. You're being tested on more than just memorizing address formats; exam questions probe your understanding of why different addressing schemes exist, how they solve specific problems like address exhaustion and routing efficiency, and when to apply techniques like subnetting or NAT in real-world scenarios.

The concepts here connect directly to broader networking principles: hierarchical design, scalability, security through isolation, and efficient resource allocation. When you encounter an address like 192.168.1.0/24, you should immediately recognize the addressing scheme, understand why it uses private address space, and know how CIDR notation improves on classful methods. Don't just memorize the numbers—know what problem each addressing concept solves and how they work together as a system.


Address Space Fundamentals

The most basic distinction in IP addressing is how many bits define the address space—this determines the total number of unique addresses available and shapes the entire addressing architecture.

IPv4 Addressing

  • 32-bit address space—provides approximately 2322^{32} (4.3 billion) unique addresses, now largely exhausted
  • Dotted-decimal notation represents four octets separated by periods (e.g., 192.168.1.1), with each octet ranging from 0-255
  • Address exhaustion drove the development of conservation techniques like NAT, CIDR, and private addressing—and ultimately IPv6

IPv6 Addressing

  • 128-bit address space—provides approximately 21282^{128} addresses (340 undecillion), effectively unlimited for practical purposes
  • Hexadecimal notation uses eight groups of four hex digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334)
  • Built-in improvements include stateless auto-configuration (SLAAC), mandatory IPsec support, and simplified header format for faster routing

Compare: IPv4 vs. IPv6—both provide unique device identification, but IPv6's 128-bit space eliminates exhaustion concerns while adding features IPv4 required bolt-on solutions to achieve. If asked about long-term network planning, IPv6 transition is your key talking point.


Address Classification and Allocation

Before modern techniques, IP addresses were allocated in fixed-size blocks based on class—a rigid system that wasted address space. Understanding this history explains why classless methods emerged.

Classful Addressing (Class A, B, C, D, E)

  • Class A (leading bit 0)—supports ~16 million hosts per network, first octet range 1-126, designed for massive organizations
  • Class B (leading bits 10)—supports ~65,000 hosts per network, first octet range 128-191, intended for medium enterprises
  • Class C/D/E—Class C supports 254 hosts (first octet 192-223), Class D (224-239) reserved for multicast, Class E (240-255) reserved for experimental use

Classless Inter-Domain Routing (CIDR)

  • Variable-length prefixes—notation like 192.168.1.0/24 specifies exactly how many bits define the network (24 bits = 256 addresses)
  • Eliminates class boundaries—allows allocation of precisely sized blocks (e.g., /22 gives 1,024 addresses instead of forcing a full Class B)
  • Reduces routing table size through route aggregation—multiple contiguous networks can be advertised as a single summarized route

Compare: Classful vs. CIDR—classful addressing forced organizations into fixed block sizes (often too large or too small), while CIDR enables right-sized allocation. Exam questions often test your ability to calculate usable addresses from CIDR notation: a /24 gives 282=2542^{8} - 2 = 254 usable host addresses.


Network Subdivision and Management

Once you have an address block, subnetting lets you divide it into logical segments—improving security, performance, and administrative control.

Subnetting

  • Borrows host bits to create additional network portions—a /24 network subnetted to /26 creates four subnets of 62 usable hosts each
  • Subnet mask defines the boundary between network and host bits (e.g., 255.255.255.192 for /26)
  • Enables traffic isolation and broadcast domain reduction—critical for performance in large networks and security segmentation

Multicast Addressing

  • One-to-many delivery—a single packet reaches all members of a multicast group simultaneously, conserving bandwidth versus multiple unicast streams
  • Reserved range 224.0.0.0 to 239.255.255.255 (Class D space)—addresses like 224.0.0.1 (all hosts) and 224.0.0.2 (all routers) have special meanings
  • Application examples include video streaming, IPTV, and routing protocol updates (OSPF uses 224.0.0.5)—anywhere the same data goes to multiple recipients

Compare: Subnetting vs. Multicast—both optimize network efficiency but solve different problems. Subnetting divides address space for management and isolation; multicast optimizes traffic delivery to multiple destinations. Know when each applies.


Public vs. Private Address Space

The distinction between routable and non-routable addresses is fundamental to modern network architecture—it's how billions of devices share limited public address space.

Private IP Addresses

  • Three reserved ranges10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are defined in RFC 1918 for internal use only
  • Not routable on the public internet—ISP routers drop packets with private source/destination addresses, requiring translation for external communication
  • Unlimited reuse—every organization can use the same private ranges internally, dramatically extending the useful life of IPv4

Public IP Addresses

  • Globally unique and routable—each public address identifies exactly one network endpoint on the internet
  • Managed hierarchicallyIANA allocates blocks to Regional Internet Registries (RIRs), which assign to ISPs and organizations
  • Increasingly scarce—IPv4 public addresses now require purchase or transfer from existing holders in most regions

Network Address Translation (NAT)

  • Maps private to public addresses—allows entire internal networks to share one or few public IPs for outbound internet access
  • PAT (Port Address Translation)—the most common form, uses source port numbers to track multiple simultaneous connections through a single public IP
  • Security side effect—hides internal network topology from external observers, though this is not a substitute for proper firewall rules

Compare: Private addresses vs. NAT—private addresses define which addresses are non-routable; NAT provides the mechanism to translate them for internet access. Both emerged as IPv4 conservation strategies and are nearly universal in enterprise and home networks.


Special-Purpose Addresses

Certain address ranges serve specific diagnostic, testing, or protocol functions—recognizing them helps you troubleshoot and understand network behavior.

Loopback Addresses

  • 127.0.0.0/8 range—any address here (most commonly 127.0.0.1) refers to the local machine itself
  • Never leaves the host—packets to loopback addresses are processed internally by the TCP/IP stack without hitting the network interface
  • Essential for testing—developers use loopback to test network applications locally; ping 127.0.0.1 verifies the TCP/IP stack is functioning

Compare: Loopback vs. Private addresses—both are non-routable, but loopback addresses never leave the device while private addresses can traverse internal networks. Loopback tests local stack functionality; private addresses enable internal network communication.


Quick Reference Table

ConceptBest Examples
Address space sizeIPv4 (32-bit), IPv6 (128-bit)
Legacy allocationClassful addressing (Class A/B/C)
Modern allocationCIDR notation (/24, /16, etc.)
Address conservationNAT, private addressing, CIDR
Network subdivisionSubnetting, VLSM
Private ranges10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
One-to-many deliveryMulticast (224.0.0.0/4)
Local testingLoopback (127.0.0.0/8)

Self-Check Questions

  1. What problem do both NAT and private addressing solve, and how do their mechanisms differ?

  2. Given the CIDR notation 192.168.10.0/26, calculate the number of usable host addresses and explain why subnetting this /24 network might be beneficial.

  3. Which two addressing concepts emerged specifically to address IPv4 exhaustion, and how does each extend the useful life of the 32-bit address space?

  4. Compare and contrast how classful addressing and CIDR allocate address blocks—why did the networking community move away from class-based allocation?

  5. A network administrator needs to test whether the TCP/IP stack is functioning on a server, then verify the server can reach other hosts on the internal network. Which addresses would they use for each test, and why?