π Introduction
When devices like computers, smartphones, or smart TVs connect to the internet or a local network, they need a unique identification number to communicate with each other. This identification number is called an IP address.
One of the most widely used versions is IPv4 (Internet Protocol version 4). It plays a very important role in making sure that data goes to the correct device, just like how a postal address ensures that a letter reaches the correct home.
π’ What is an IPv4 Address?
An IPv4 address is a unique number assigned to each device connected to a network. Letβs understand its features in detail:
IPv4 uses 32 binary bits (0s and 1s) to create an address.
With 32 bits, IPv4 can provide about 4.3 billion unique addresses.
It is written in a dotted-decimal format, for example:
192.168.1.1
The address is divided into four parts, and each part is called an octet. Each octet can have a value between 0 and 255.
Example: When you connect to Wi-Fi, your device may get an IP address like:
IP Address: 192.168.0.101
This means your router assigned an IPv4 address to your device.
π·οΈ IPv4 Address Classes
IPv4 addresses are divided into five different classes (A to E). These classes help in organizing addresses based on the size of the network. The classification is decided by the first octet (the first number in the IP address).
1οΈβ£ Class A
Range: 1.0.0.0 to 126.0.0.0
Default Subnet Mask: 255.0.0.0
Number of Hosts: Can support about 16 million devices in one network.
Usage: Best suited for very large organizations, internet service providers, and government networks.
Example IP: 10.0.0.1
This example is often used in private networks.
2οΈβ£ Class B
Range: 128.0.0.0 to 191.255.0.0
Default Subnet Mask: 255.255.0.0
Number of Hosts: Can support about 65,000 devices in one network.
Usage: Useful for medium-sized networks such as universities, enterprises, and large campuses.
Example IP: 172.16.0.1
3οΈβ£ Class C
Range: 192.0.0.0 to 223.255.255.0
Default Subnet Mask: 255.255.255.0
Number of Hosts: Can support about 254 devices in one network.
Usage: Ideal for small networks, such as home networks, startups, and small businesses.
Example IP: 192.168.1.1
This is a very common IP used in home routers.
4οΈβ£ Class D (Multicast)
Range: 224.0.0.0 to 239.255.255.255
Usage: Reserved for multicasting, where information is sent to multiple devices at the same time.
Not used for normal host-to-host communication.
Example: live video streaming or online gaming.
5οΈβ£ Class E (Reserved)
Range: 240.0.0.0 to 255.255.255.255
Usage: This class is reserved for research and experimental purposes.
Not used in everyday networking.
π Quick Reference Table
Class | First Octet Range | Subnet Mask | Number of Hosts | Usage |
---|
A | 1 β 126 | 255.0.0.0 | ~16 million | Very large networks |
B | 128 β 191 | 255.255.0.0 | ~65,000 | Medium networks |
C | 192 β 223 | 255.255.255.0 | ~254 | Small networks |
D | 224 β 239 | N/A | N/A | Multicasting |
E | 240 β 255 | N/A | N/A | Research/Experimental |
π Summary
An IPv4 address is a 32-bit unique number assigned to devices so that they can communicate over a network. IPv4 addresses are written in dotted-decimal format and divided into five classes (A to E). Class A is used for very large networks, Class B for medium networks, Class C for small networks, Class D for multicasting, and Class E for research. Understanding these classes helps in better network management and organization.