Network

IPv4 (Internet Protocol Version 4)

IPv4 (Internet Protocol Version 4)

IPv4 (Internet Protocol version 4) is the fourth version of the Internet Protocol and the most widely used method for identifying devices on a network using a unique numerical address. Every device connected to the internet — such as a computer, smartphone, or server — needs an IP address to communicate, and IPv4 has been the standard since the 1980s.

An IPv4 address is a 32-bit number usually written in dotted-decimal format, consisting of four decimal numbers separated by dots. For example:

192.168.1.1

Each number (called an "octet") can range from 0 to 255.

Structure of an IPv4 Address

IPv4 addresses are divided into two parts:

  • Network portion – identifies the specific network.
  • Host portion – identifies the device within that network.

There are also different classes of IPv4 addresses (A, B, C, D, E), each supporting different sizes of networks and hosts. Most internal networks use private IP ranges, such as:

  • 10.0.0.0 – 10.255.255.255
  • 172.16.0.0 – 172.31.255.255
  • 192.168.0.0 – 192.168.255.255

These are not routable on the public internet and are used for internal communication only.

IPv4 Address Exhaustion

IPv4 provides around 4.3 billion unique addresses (2³²), but with the massive growth of the internet (especially mobile and IoT devices), this pool of addresses has been largely exhausted. This led to the development of IPv6, which offers a vastly larger address space.

Pros of IPv4

  • Simplicity and Familiarity: Widely used and well-understood, making it easier for network admins and tools to support.
  • Massive Infrastructure Support: Almost all networking equipment, operating systems, and services support IPv4 out of the box.
  • Efficient for Small Networks: Ideal for simple and smaller-scale networks, especially when using NAT (Network Address Translation).

Cons of IPv4

  • Limited Address Space: Only about 4.3 billion addresses, which is not enough for today’s internet usage.
  • Requires NAT: Due to address shortages, devices often share one public IP address using Network Address Translation, which can complicate communication and security.
  • Less Efficient for Modern Networks: IPv4 lacks many of the features and scalability of IPv6, such as simplified header formats and automatic configuration.

Common Use Cases of IPv4

  • Home and business local networks
  • Most current websites and servers
  • IoT devices and embedded systems
  • VPNs and internal enterprise networks

Example: How IPv4 Works in Practice

  1. You open a website like example.com.
  2. DNS translates it to an IPv4 address like 93.184.216.34.
  3. Your browser sends a request to that IP.
  4. The server responds with the requested web page.

If you’re on a home Wi-Fi, your device probably has a private IPv4 address (like 192.168.0.5), and your router uses NAT to communicate with the outside world using a public IP.

Conclusion

IPv4 has powered the internet for decades, providing a simple and functional addressing system. However, due to its limited address space, it’s being gradually replaced by IPv6, especially in large-scale or future-oriented environments. Still, IPv4 remains dominant, and understanding how it works is essential for anyone working in networking, cybersecurity, or IT.