While studying networking, I came across an important point regarding IPv4 and address allocation. In IPv4, an address consists of:
πΉ Network ID (the network part)
πΉ Host ID (the device part)
The Subnet Mask determines this division.
Example: 192.168.254.0/24
π The first 24 bits represent the network.
π The last 8 bits represent devices, meaning 254 devices per network.
But if we reduce the Subnet Mask below /16 (meaning we increase the number of devices within each network), several problems arise:
β Broadcast Storms β As the network grows, every device sends Broadcast data to all others, leading to network congestion and reduced performance.
β Security Risks β All devices within the same network can easily see each other, increasing the risk of internal attacks.
β Difficult Management β Dividing a large network into smaller Subnets is easier to manage and more secure than an unorganized large network.
π‘ The solution? Maintaining a reasonable Subnet Mask (e.g., /24 or /16) and logically segmenting the network.
Every device connected to the internet needs an IP Address, and IPv4 uses 32-bit addresses, meaning the total number of possible addresses is:
π‘ 2Β³Β² = 4,294,967,296 unique global addresses.
But the bigger problem is that the number of devices worldwide is far greater than 4.3 billion! π¬
With the rise of mobile phones, computers, servers, Internet of Things (IoT) devices, and countless other connected devices, available IPv4 addresses have nearly run out!
We implemented temporary solutions like β NAT (Network Address Translation) to reuse addresses within private networks, but it's not enough and causes issues with some applications.
π We'll discuss this topic further in the next postβstay tuned! ππ₯