Understanding IPv4 Addressing in Simple Terms
When we talk about the Internet, every device needs a way to identify itself. Just like every house has a postal address, every device connected to a network has an Internet Protocol (IP) address. IPv4, or Internet Protocol version 4, is the most widely used addressing system on the Internet. It helps data travel from one device to another correctly and efficiently.
What is an IP Address?
An IP address is a unique number assigned to every device connected to a network. It tells the Internet where to send or receive information. Think of it like your home address — when someone sends you a letter, the postal service needs to know where you live. Similarly, when a computer sends data, it must know the IP address of the destination device.
IPv4 addresses are 32 bits long, which means there are around 4 billion unique addresses available. To make them easier to read, these addresses are written in dotted-decimal form. Each address is made up of four parts (called octets), separated by dots.
For example:
193.32.216.9
Each part represents 8 bits of the address. So, the full binary version looks like this:
11000001 00100000 11011000 00001001
Interfaces and Why They Matter
Every computer or device that connects to the Internet does so through a device known as an interface. An interface is a point where the device connects to the network.
A host (like your laptop or phone) usually has one interface — one connection to the network. A router, however, connects multiple networks, so it has multiple interfaces. Because each interface connects to a different network, each one must have its own IP address.
This means an IP address actually belongs to an interface, not the entire device. If a router has three interfaces, it will have three different IP addresses — one for each connection.
What is a Subnet?
A subnet (short for subnetwork) is a small network inside a larger one. It helps organize addresses and manage traffic efficiently. Devices in the same subnet can communicate directly without going through a router.
For example, imagine three computers and a router connected. Their IP addresses might look like this:223.1.1.1, 223.1.1.2, 223.1.1.3, and the router 223.1.1.4.
All these devices belong to the subnet 223.1.1.0/24.
The “/24” means that the first 24 bits are the same for all of them. This part is called the subnet mask, and it defines which portion of the address identifies the network and which part identifies the device.
If another subnet exists, such as 223.1.2.0/24, its devices might have addresses like 223.1.2.1, 223.1.2.2, and so on. The first 24 bits tell us they are part of a different network.
How Subnets Are Formed
You can think of subnets as separate islands in a big ocean of networks. If we were to disconnect each interface in a large system, we would end up with many small, isolated networks. Each of these small islands is a subnet.
Large organizations, such as universities or companies, often have multiple subnets. Each subnet groups a set of devices that share a common address pattern. This makes managing the network easier and reduces unnecessary traffic between different parts of the organization.
CIDR: The Modern Way of Addressing
In the early days of the Internet, IP addresses were grouped into fixed classes called Class A, B, and C. Class A had 8 bits for the network part, Class B had 16 bits, and Class C had 24 bits. But this system was wasteful. Many organizations were given more addresses than they needed. For example, an organization with only 2,000 computers might receive a Class B address block, which could hold over 65,000 addresses. The rest of the addresses went unused.
Get Sandali Sithumani’s stories in your inbox
Join Medium for free to get updates from this writer.
To solve this problem, the Internet introduced Classless Inter-Domain Routing (CIDR). CIDR is a flexible system that allows networks to use only as many addresses as they actually need. It is written in the form a.b.c.d/x, where x represents how many bits are used for the network part. The remaining bits are used for devices within that network.
For example, 200.10.5.0/22 means that the first 22 bits identify the network. This gives the organization a range of addresses that all share the same first 22 bits. CIDR helps reduce waste and keeps the global routing system more efficient.
How CIDR Improves Routing
With CIDR, routers outside an organization only need to look at the first few bits, the network prefix, to know where to send data. This means routers can keep smaller and simpler forwarding tables. Inside the organization, routers can use the remaining bits to handle communication between internal devices and subnets.
CIDR makes the Internet more scalable. It allows Internet Service Providers (ISPs) and organizations to group nearby addresses. This reduces the amount of information routers need to store and speeds up the routing process.
Example of a Small Network
Let’s take a simple example. Suppose your company uses the address block 192.168.1.0/24. This means there are 256 total addresses (from 192.168.1.0 to 192.168.1.255). Out of these, two are reserved:
192.168.1.0 → network address
192.168.1.255 → broadcast address
That leaves 254 addresses for actual devices.
You could assign them like this:
Router → 192.168.1.1
Laptop → 192.168.1.2
Printer → 192.168.1.5
All these devices are part of the same subnet and can communicate directly.
Summary
IPv4 addressing is the backbone of the Internet. It gives every device a unique identity and helps data find its destination. Subnets divide large networks into smaller, manageable parts. CIDR allows for flexible and efficient use of address space.
In short, IPv4 addressing ensures that every computer, phone, and router knows where to send and receive information. Without it, the Internet as we know it would not work.
Resource: COMPUTER NETWORKING: A Top-Down Approach James F. Kurose University of Massachusetts, Amherst Keith W. Ross Polytechnic Institute of NYU
Image: firewall.cx









