openskills.info
Open Course

IPv4

IPv4 is the network-layer protocol that addresses devices and carries packets across interconnected networks. It gives each packet a source and destination address so routers can move it toward the right host.

itNetworking

Don't Panic — IPv4

IPv4 is the protocol that labels each internet packet with a 32-bit source address and a 32-bit destination address so routers can move it toward the right host. It does not promise delivery, preserve order, or recover lost data. Its job is narrower than most people expect: address the packet, hand it off, and get out of the way.

Before IPv4, networks were isolated islands. Connecting them meant building custom gateways for every pair. IPv4 solved this with a universal addressing scheme: every interface on the planet gets a 32-bit number written as four octets (eight-bit chunks) separated by dots, like 192.0.2.10. Routers read the address and forward the packet hop by hop. No central coordinator, no reservation, just best-effort delivery.

Three ideas everything else hangs off. First, an address alone is meaningless without a subnet mask (or prefix length, the number after the slash in 192.0.2.10/24), which tells you which bits identify the network and which identify the host inside it. A /24 leaves 8 host bits, giving 256 addresses; subtract the network and broadcast addresses (the ones reserved for routing and all-hosts delivery) and you have 254 usable hosts. CIDR (Classless Inter-Domain Routing) replaced the old A/B/C class system with this explicit notation, letting routers summarize blocks of any size.

Second, when a host decides a destination is off-link, it sends the packet to a default gateway (the nearest router). The gateway reads the destination, checks its routing table, and picks the longest-matching prefix to determine the next hop. Longest-prefix match is the rule that makes internet routing scale without central coordination.

Third, NAT (Network Address Translation) lets hundreds of devices on private address space (the 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 blocks that are not globally routable) share one public address by rewriting source addresses and port numbers at a boundary. NAT is why your phone and your laptop can both browse the web from the same home connection. It is also why "what is my IP" returns a different answer on each side of the translator. DHCP (Dynamic Host Configuration Protocol) hands out these private addresses and configuration automatically, but its leases expire, so the address a device has right now may not be the one it has tomorrow.

Here is the surprise: the world ran out of free IPv4 addresses in 2011. IANA handed out its last /8 blocks, and regional registries followed. The internet still works because NAT and private addressing stretched the existing space, and because address blocks now move through RIR transfer markets. But IPv4 is a finite resource being rationed, not a renewable one. IPv6, with its 128-bit addresses, is the actual long-term answer.

Read the intro for the full technical map. The slides give you the decisions side by side. The cheatsheet is the reference you keep open while debugging. The field notes carry the operational traps that the standards do not warn you about.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources