Tutorial Playlist
In the vast domain of the internet, communication between devices relies on a system of unique identifiers known as IP addresses. Among these, IPv 4 addresses play a pivotal role in facilitating the seamless exchange of information across the world wide web. In this comprehensive guide, we will delve into the intricacies of IPv 4 addressing, exploring its format, range, classes, and the reasons why it remains a vital component of our online connectivity.
IP, short for Internet Protocol, is a fundamental set of rules governing data communication across networks. It assigns a unique address to every device connected to the internet, enabling data packets to be sent and received accurately. An IP address acts much like a street address, allowing information to be directed to and from the correct destination.
IPv4, or Internet Protocol version 4, is the fourth iteration of the IP addressing system and remains the most widely used version on the internet. It is a 32-bit numerical address, typically expressed in a dotted-decimal format, such as 192.168.0.1. Each section of the address consists of 8 bits, ranging from 0 to 255, separated by dots. Here’s an ipv4 address example: 192.168.1.152:
Notations of an IPv4 address :
IPv4 addressing serves as the backbone of the internet for several compelling reasons. Firstly, its widespread adoption means that most devices and networking equipment are compatible with IPv4. Additionally, its 32-bit address space allows for approximately 4.3 billion unique addresses, which was more than sufficient in the early days of the Internet.
In a computer network, an IPv4 address is a unique numerical identifier assigned to each device connected to the network. When a device, such as a computer, smartphone, or server, connects to a network, it is assigned an IPv4 address. This address consists of a series of four numbers separated by dots, with each number ranging from 0 to 255. For example, 192.168.1.10 is a valid IPv4 address.
IPv4 addresses are used by routers and switches to route data packets from the source device to the destination device. When one device wants to send data to another device on the network, it encapsulates the data in a packet. Routers and switches then use this address information to determine the most efficient path to deliver the packet to its destination.
In local area networks (LANs), such as those within homes or offices, devices are often assigned private IPv4 addresses. These private addresses are reserved for internal use.
The most commonly used private address ranges are 192.168.0.0 to 192.168.255.255, 172.16.0.0 to 172.31.255.255, and 10.0.0.0 to 10.255.255.255.
IPv4 addresses can be classified into five different Ipv4 address classes: A, B, C, D, and E. Each class has a specific range of addresses reserved for different purposes.
IPv4 addresses are divided into three main parts: the network part, the host part, and the subnet number. These parts work together to ensure efficient data routing and delivery.
For Windows:
For macOS:
Linux (Ubuntu, Debian, etc.):
Please note that the IPv4 address displayed may vary depending on your network configuration. If you are behind a router or using a private network, your public IP address may differ from the one assigned to your device on the local network.
Recognizing the impending depletion of IPv4 addresses, IPv6 (Internet Protocol version 6) was developed to overcome the limitations of its predecessor. IPv6 uses a 128-bit address format, offering an almost unfathomable number of unique addresses (approximately 340 undecillion!).
IPv6 addresses are expressed in a hexadecimal format, consisting of eight groups of four hexadecimal digits, separated by colons, for example,
2001:0db8:85a3:0000:0000:8a2e:0370:7334.
The IPv4 address range refers to the set of all possible IP addresses that can be assigned within the IPv4 addressing system. IPv4 addresses are 32-bit numbers, and they are divided into four octets, each represented by eight bits, separated by dots. The range of IPv4 addresses spans from 0.0.0.0 to 255.255.255.255.
However, not all addresses within this range are available for public use. The Internet Assigned Numbers Authority (IANA) has reserved certain address blocks for specific purposes. The main reserved address blocks are:
Private Address Space:
Loopback Address:
Link-Local Address (Automatic Private IP Addressing - APIPA):
Reserved Addresses:
These reserved address blocks serve specific purposes, such as private network usage, loopback for testing purposes, automatic IP addressing when DHCP is not available, and multicast communication.
The remaining addresses within the range are public IP addresses allocated to organizations and devices connected to the global internet.
IPv6 brings significant improvements over IPv4, addressing its limitations and offering enhanced features:
IPv4 addresses have been the backbone of the internet for many years, facilitating the communication between devices that we often take for granted. However, with the exponential growth of connected devices, the limitations of IPv4 have become apparent. IPv6 emerges as the solution to address these shortcomings.
As the transition from IPv4 to IPv6 continues, understanding the principles of both protocols becomes increasingly crucial for the future of the internet and its seamless connectivity.
The depletion of available IPv4 addresses is a significant concern for the internet's continued growth. The internet community has been gradually transitioning to IPv6 to address this issue, which offers a vastly larger address space. IPv6 adoption allows for an almost unlimited number of unique IP addresses, ensuring the continued expansion of the internet and accommodating the increasing number of internet-connected devices.
The transition from IPv4 to IPv6 is an ongoing process that involves coexistence and migration strategies. Many networks now support IPv4 and IPv6 simultaneously, allowing devices to communicate using either protocol. Dual-stack devices can handle IPv4 and IPv6 traffic, and dual-stack routers enable communication between IPv4 and IPv6 networks.
Internet Service Providers (ISPs) typically use Dynamic Host Configuration Protocol (DHCP) to assign public IPv4 addresses to their customers. With DHCP, the ISP's server dynamically allocates IP addresses from a pool of available addresses. Customers' routers or modems request an IP address, and the ISP's DHCP server responds with an available public IP address. This allows the ISP to manage its limited pool of public IPv4 addresses efficiently.
PAVAN VADAPALLI
Popular
Talk to our experts. We’re available 24/7.
Indian Nationals
1800 210 2020
Foreign Nationals
+918045604032
upGrad does not grant credit; credits are granted, accepted or transferred at the sole discretion of the relevant educational institution offering the diploma or degree. We advise you to enquire further regarding the suitability of this program for your academic, professional requirements and job prospects before enrolling. upGrad does not make any representations regarding the recognition or equivalence of the credits or credentials awarded, unless otherwise expressly stated. Success depends on individual qualifications, experience, and efforts in seeking employment.
upGrad does not grant credit; credits are granted, accepted or transferred at the sole discretion of the relevant educational institution offering the diploma or degree. We advise you to enquire further regarding the suitability of this program for your academic, professional requirements and job prospects before enr...