Concept Focus: IPv4

IPv4 is the internet protocol for creating, assigning, and using IP addresses. It uses 32-bit numerical addresses, so it can support roughly 4.3 billion unique addresses. By the late 1990s it was clear this would not be enough for the global population, made worse because millions of addresses had been allocated to large corporations early on.

Loopback addresses. IPv4 reserves ranges for special purposes, such as loopback (127.0.0.1), used for internal testing and communication within a single device so software can interact with itself without an external network.

IPv6

IPv6 introduced 128-bit addresses, providing about 3.4×10^38 unique addresses, that is 340 undecillion, dwarfing IPv4's 4.3 billion.

Comparison of IPv4 and IPv6 addressing, headers and features
IPv4 vs IPv6, from address length to headers, NAT, and built-in IPsec

IPv4 vs IPv6, key differences

The main difference is address length: IPv4 uses 32 bits, IPv6 uses 128 bits. IPv6 is more efficient thanks to simplified packet headers and built-in auto-configuration, which reduces the need for NAT. It eliminates broadcast, replacing it with more efficient multicast and anycast. IPv6 was designed with IPsec as a core feature, so end-to-end encryption and authentication are always available. It also makes network scanning harder: IPv4's small address space makes active, vulnerable devices easier to locate, while IPv6's vast space does not.

Benefits of IPv6 in the real world

Brain Ticklers

Practice Questions — Domain 4 · IPv4 and IPv6

Q1. Which of the following statements about IPv6 is true?

  1. IPv6 eliminates the need for IPsec
  2. IPv6 uses a 32-bit addressing scheme
  3. IPv6 supports automatic address configuration without DHCP
  4. IPv6 requires NAT to function

Q2. What makes IPv6 more resistant to network reconnaissance?

  1. Encrypted routing headers
  2. Larger address space
  3. NAT translation
  4. Private address blocks

Q3. Which feature is native to IPv6 but optional in IPv4?

  1. DHCP
  2. IPsec
  3. TCP
  4. ARP

Q4. In a dual-stack configuration, what is the main challenge?

  1. Reduced bandwidth
  2. Managing two address systems simultaneously
  3. Device authentication issues
  4. NAT incompatibility