v4 Version 4


IPv4 (Internet Protocol Version 4)

IPv4, short for Internet Protocol Version 4, is the fourth iteration of the Internet Protocol (IP) suite and the foundation of most internet communications. It is the predominant version of IP that has been used since the early days of the internet. IPv4 addresses are 32-bit binary numbers, represented in decimal format as four sets of numbers ranging from 0 to 255, separated by dots (e.g., 192.168.0.1).

Background: The Need for IPv4

IPv4 was developed in the early 1980s by the Internet Engineering Task Force (IETF) as a solution to connect computers and devices over networks. It provided the necessary addressing scheme to enable communication and data exchange between different devices on the internet. However, as the internet grew rapidly, it became apparent that the 32-bit address space of IPv4 (approximately 4.3 billion addresses) would be exhausted due to the explosion in the number of connected devices and internet users.

IPv4 Address Format

IPv4 addresses consist of four octets (32 bits), each represented by a number from 0 to 255. The format is usually expressed in decimal format, with four numbers separated by periods. For example: 192.168.0.1. Each number represents 8 bits, and the entire address is a 32-bit binary number. In binary, the address looks like: 11000000.10101000.00000000.00000001.

IPv4 Address Classes

IPv4 addresses are divided into different classes, denoted by the first octet of the address. The class determines the network and host portions of the address. The major classes are:

  1. Class A: The first bit of the first octet is always 0, and the remaining 7 bits represent the network ID. The next 24 bits represent the host ID. Class A addresses can have a vast number of hosts but fewer networks. The range of Class A addresses is 0.0.0.0 to 127.255.255.255.
  2. Class B: The first two bits of the first octet are 10, and the next 14 bits represent the network ID. The remaining 16 bits represent the host ID. Class B addresses allow for a moderate number of networks and hosts. The range of Class B addresses is 128.0.0.0 to 191.255.255.255.
  3. Class C: The first three bits of the first octet are 110, and the next 21 bits represent the network ID. The remaining 8 bits represent the host ID. Class C addresses allow for a large number of networks but fewer hosts per network. The range of Class C addresses is 192.0.0.0 to 223.255.255.255.
  4. Class D: The first four bits of the first octet are 1110. Class D addresses are used for multicast group assignments and do not have a network or host ID.
  5. Class E: The first four bits of the first octet are 1111. Class E addresses are reserved for experimental purposes and are not used for standard networking.

IPv4 Address Exhaustion

The explosive growth of the internet, the proliferation of connected devices, and the allocation of large address blocks to organizations led to a shortage of available IPv4 addresses. By the mid-1990s, concerns about IPv4 address exhaustion emerged, prompting the need for a new internet protocol.

Transition to IPv6

To address the limitations of IPv4 and provide a much larger address space, IPv6 (Internet Protocol Version 6) was developed. IPv6 uses 128-bit addresses, which offer an astronomical number of possible unique addresses (approximately 3.4 x 10^38), making address exhaustion virtually impossible in the foreseeable future.

While IPv6 adoption has been gradually increasing, IPv4 is still widely used, and both protocols exist in a dual-stack environment to facilitate a smooth transition. Various transition mechanisms and technologies have been developed to ensure interoperability between IPv4 and IPv6 networks.

In conclusion, IPv4 (Internet Protocol Version 4) is the fourth version of the Internet Protocol and the foundation of most internet communication. It uses 32-bit addresses and is the primary protocol used to route data across the internet. However, due to its limited address space, IPv4 faced exhaustion issues, leading to the development and adoption of IPv6 with its significantly larger address space. As the transition to IPv6 continues, both IPv4 and IPv6 coexist in today's internet infrastructure.