Part 10: Network Layer Addressing: IPv4 Subnetting, CIDR & IPv6 Architecture
Curriculum Capstone & Learning Objectives
While physical Layer 1 signals and Layer 2 frames deliver bytes between directly connected neighbor machines on a local wire, global internetworking across multiple intermediate routers requires a universal, logical, software-based addressing system. This is the responsibility of Layer 3 Network Addressing. In this concluding curriculum installment, we examine the 32-bit IPv4 address space, analyze classful vs. Classless Inter-Domain Routing (CIDR), execute subnet mask bitwise AND calculations, and explore the vast 128-bit IPv6 architecture.
1. The IPv4 Address Architecture
An IPv4 address is a 32-bit binary number that uniquely identifies a host's network interface card on the global internet. For human readability, it is expressed in Dotted-Decimal Notation, grouping bits into four 8-bit octets (0 to 255):
2. Subnetting & The Bitwise AND Operation
Every IP address comprises two logical segments: the Network ID (identifying the subnet) and the Host ID (identifying the specific device on that subnet). A router determines whether a destination IP is local or remote by performing a bitwise AND operation between the IP address and its Subnet Mask:
| Component | Decimal Representation | Binary Representation |
|---|---|---|
| Host IP Address | 192.168.1.68 | 11000000 . 10101000 . 00000001 . 01000100 |
| Subnet Mask (/24) | 255.255.255.0 | 11111111 . 11111111 . 11111111 . 00000000 |
| Network Address (AND) | 192.168.1.0 | 11000000 . 10101000 . 00000001 . 00000000 |
3. IPv6: The Future-Proof 128-Bit Solution
Because 32-bit IPv4 yields only \(2^{32} pprox 4.3 ext{ billion}\) addresses (exhausted by the rapid proliferation of mobile phones, cloud containers, and IoT sensors), the IETF engineered IPv6:
- 128-Bit Address Space: Yields \(2^{128} pprox 3.4 imes 10^{38}\) addresses—enough to assign trillions of IPs to every grain of sand on Earth.
- Simplified 40-Byte Fixed Header: Eliminates router checksum calculation overhead and hop-by-hop fragmentation.
- Stateless Address Autoconfiguration (SLAAC): Allows hosts to configure their own global address automatically without DHCP.
Curriculum Completion
Congratulations! You have completed the 10-part Fundamentals of Data Communications series. From the physical elements of communication, signal mathematics, and modems, to advanced modulation (QAM), wireless propagation, pulse companding, FDM/TDM multiplexing, CRC error detection, and network addressing, you have built an unbreakable physical-to-network engineering mental model.
Related reading
Part 10: Cloud to Fog & Edge: Architecting the Distributed Continuum
Explore the distributed computing continuum: compare centralized cloud, fog computing gateways, and real-time edge nodes for latency-critical IoT systems.
By Md. Harun-Or-Roshid
Part 9: Load Balancing: Layer 4 vs Layer 7, Algorithms, Reverse Proxies & High Availability
Master high-availability load balancing, comparing Layer 4 transport vs Layer 7 application routing, consistent hashing rings, and health checks.
By Md. Harun-Or-Roshid
Part 9: Error Detection and Correction: Parity, Checksums, CRC-32 & Hamming
A deep dive into data integrity: comparing simple parity, Internet Checksums, Cyclic Redundancy Checks (CRC-32), and Hamming forward error correction.
By Md. Harun-Or-Roshid
Part 8: VPN Explained: Cryptographic Tunnels, WireGuard, IPSec & Network Privacy
A deep dive into Virtual Private Networks, examining cryptographic packet encapsulation, virtual TUN/TAP adapters, WireGuard, and IPSec.
By Md. Harun-Or-Roshid