The slash notation, commonly seen as “/24,” is a fundamental concept in network engineering, particularly in the context of Internet Protocol (IP) addressing. It’s a shorthand that defines the size of a network and, consequently, the number of available IP addresses within that network. To truly grasp the significance of “/24,” we need to delve into the intricacies of IP addressing, subnetting, and how this notation simplifies network management.
Understanding IP Addresses and Binary Representation
At its core, an IP address is a numerical label assigned to each device participating in a computer network that uses the Internet Protocol for communication. The most prevalent version of the Internet Protocol is currently IPv4. An IPv4 address is a 32-bit number, typically represented in a human-readable dotted-decimal format, such as 192.168.1.10. This format, however, can be misleading as it doesn’t immediately reveal the network and host portions of the address.

To understand subnetting and the “/24” notation, we must first appreciate the binary underpinnings of an IP address. Each octet (the numbers separated by dots) in the dotted-decimal notation represents 8 bits. Therefore, a 32-bit IPv4 address can be visualized as four groups of 8 bits.
For example, the IP address 192.168.1.10 breaks down into:
- 192:
11000000 - 168:
10101000 - 1:
00000001 - 10:
00001010
So, the full 32-bit binary representation is:
11000000.10101000.00000001.00001010
The crucial insight here is that an IP address is logically divided into two parts: the network portion and the host portion. The network portion identifies the specific network to which the device belongs, while the host portion identifies the individual device within that network. The challenge for network administrators is to determine where this division occurs. This is where subnet masks come into play.
The Role of the Subnet Mask
A subnet mask is a 32-bit number that serves the same purpose as an IP address but is used to distinguish the network portion of an IP address from the host portion. Like an IP address, it is typically represented in dotted-decimal notation. A subnet mask has a contiguous sequence of 1s followed by a contiguous sequence of 0s in its binary representation. The bits that are set to ‘1’ in the subnet mask correspond to the network portion of the IP address, and the bits set to ‘0’ correspond to the host portion.
Let’s consider a common subnet mask: 255.255.255.0. In binary, this mask is:
- 255:
11111111 - 255:
11111111 - 255:
11111111 - 0:
00000000
So, the full 32-bit binary representation is:
11111111.11111111.11111111.00000000
When this subnet mask is applied to an IP address, the bits corresponding to the ‘1’s in the mask define the network. In the case of 255.255.255.0, the first three octets (24 bits) are designated as the network portion, and the last octet (8 bits) is designated as the host portion.
Why Subnetting is Necessary
Before the widespread adoption of subnetting, networks were often divided into large, predefined classes (Class A, B, and C). This approach led to significant inefficiencies. For example, a Class C network, which had a default subnet mask of 255.255.255.0, could accommodate up to 254 hosts. If an organization only needed 50 IP addresses, they would still have to acquire an entire Class C network, wasting the remaining addresses. Conversely, a Class B network could have over 65,000 hosts, which was far too many for most organizations.
Subnetting allows administrators to break down large IP address blocks into smaller, more manageable subnetworks. This offers several advantages:
- Efficient IP Address Allocation: Subnetting allows for the precise allocation of IP addresses, reducing waste and making better use of available IP address space.
- Improved Network Performance: Smaller subnetworks can reduce network congestion by limiting the scope of broadcast traffic. Broadcasts are typically contained within a single subnet, preventing them from flooding the entire network.
- Enhanced Security: Subnetting enables the implementation of security policies at the subnet level, allowing administrators to control traffic flow between different segments of the network.
- Simplified Network Management: Smaller, well-defined networks are easier to manage, troubleshoot, and administer.
The CIDR Notation: A Modern Approach
The subnet mask, while functional, can be cumbersome to write and communicate. This is where Classless Inter-Domain Routing (CIDR) notation, often referred to as “slash notation,” comes into play. CIDR was introduced to overcome the limitations of the original classful IP addressing system and to allow for more flexible and efficient allocation of IP addresses.
CIDR notation provides a concise way to represent both the IP address and its associated subnet mask. It consists of the IP address followed by a forward slash (“/”) and a number. This number, often called the prefix length, indicates the number of bits in the IP address that are used for the network portion.
Decoding the “/24”
When you see “/24,” it means that the first 24 bits of the IP address are dedicated to identifying the network. The remaining bits (32 total bits – 24 network bits = 8 bits) are available for host addresses within that network.
Let’s re-examine our example using CIDR notation. If an IP address is 192.168.1.10 and it’s part of a /24 network, it means the network portion is the first 24 bits.
- IP Address (binary):
11000000.10101000.00000001.00001010 /24indicates the first 24 bits are network bits:11000000.10101000.00000001- The remaining 8 bits are host bits:
00001010
This directly corresponds to a subnet mask of 255.255.255.0. The number of ‘1’s in the binary representation of the subnet mask equals the prefix length.

Calculating Network and Host Addresses with “/24”
With a /24 network, the first three octets define the network, and the last octet defines the hosts.
-
Network Address: The network address is the first IP address in a subnet. It’s the address where all host bits are set to ‘0’. For a
/24network, this means the first three octets will be the same as the network, and the last octet will be.0. For example, if the network is192.168.1.0/24, the network address is192.168.1.0. -
Host Addresses: The host bits can range from all ‘0’s (which is the network address) to all ‘1’s. In a
/24network, there are 8 host bits. The total number of possible host combinations is 28, which equals 256. However, two of these addresses are reserved:- Network Address: As mentioned above, the address with all host bits set to ‘0’ is the network address and cannot be assigned to a host device.
- Broadcast Address: The address with all host bits set to ‘1’ is the broadcast address. This address is used to send a message to all devices within that specific subnet.
Therefore, in a /24 network, the number of usable host IP addresses is 28 – 2 = 256 – 2 = 254.
The assignable IP addresses for a 192.168.1.0/24 network would range from 192.168.1.1 (the first usable host address) to 192.168.1.254 (the last usable host address). The broadcast address would be 192.168.1.255.
Practical Implications and Use Cases of “/24”
The /24 subnet mask is one of the most common and widely used subnet sizes in local area networks (LANs). Its prevalence stems from its simplicity and its suitability for many typical network scenarios.
Home and Small Office Networks
In most home and small office environments, routers are configured with a private IP address range, and a /24 subnet is often the default. For instance, the widely used private IP address range 192.168.1.0/24 allows for up to 254 devices to connect to the network. This is more than enough for typical households with multiple computers, smartphones, smart TVs, and other connected devices. The router itself typically takes the .1 address (e.g., 192.168.1.1), acting as the default gateway, and assigns dynamic IP addresses to other devices using DHCP within the 192.168.1.2 to 192.168.1.254 range.
Business Networks and Segmentation
While /24 is common, larger businesses often use subnetting more extensively to segment their networks for various reasons, including security, performance, and management. Even within larger organizations, /24 subnets might be used for specific departments, server farms, or guest networks. For example:
- Departmental Segmentation: A marketing department might have a
10.0.10.0/24network, a sales department a10.0.20.0/24, and so on. This helps contain traffic within departments and allows for specific security policies to be applied to each. - Server VLAN: A dedicated VLAN for servers might be configured as
172.16.1.0/24, ensuring that critical infrastructure is isolated and protected. - Guest Wi-Fi: A separate network for guests could be set up as
192.168.100.0/24, providing internet access without allowing guests to access sensitive internal resources.
The flexibility of CIDR notation allows administrators to adjust the size of subnets as needed. While /24 provides 254 host addresses, if a department grows and requires more, a larger subnet (e.g., /23 which yields 510 hosts) could be used, or if a very small network is needed, a smaller subnet (e.g., /28 which yields 14 hosts) might be appropriate.
Internet Service Providers (ISPs) and IP Allocation
ISPs are responsible for managing vast blocks of IP addresses and allocating them to their customers. While ISPs use a variety of subnet sizes depending on the customer’s needs, they often employ larger subnets like /22 or /23 for customer assignments, which can then be further broken down into /24 subnets internally or for customer use. The CIDR notation is essential for efficient routing on the internet, allowing for aggregation of routes and reducing the size of routing tables.
Beyond /24: Understanding Other CIDR Prefixes
While /24 is ubiquitous, understanding other CIDR prefixes is crucial for a comprehensive understanding of network architecture. The prefix length directly dictates the number of network bits and, consequently, the number of host bits, thus determining the size of the subnet.
Smaller Subnets (More Host IPs)
As the prefix length decreases, the number of network bits decreases, and the number of host bits increases. This results in larger subnets with more available IP addresses.
- /23: This prefix length uses 23 bits for the network portion, leaving 9 bits for hosts (32 – 23 = 9). The number of usable hosts is 29 – 2 = 512 – 2 = 510. The subnet mask is
255.255.254.0. - /22: This prefix length uses 22 bits for the network, leaving 10 bits for hosts (32 – 22 = 10). The number of usable hosts is 210 – 2 = 1024 – 2 = 1022. The subnet mask is
255.255.252.0. - /16: This is the default for a Class B network. It uses 16 bits for the network, leaving 16 bits for hosts (32 – 16 = 16). The number of usable hosts is 216 – 2 = 65536 – 2 = 65534. The subnet mask is
255.255.0.0.
Larger Subnets (Fewer Host IPs)
Conversely, as the prefix length increases, the number of network bits increases, and the number of host bits decreases, resulting in smaller subnets with fewer available IP addresses. These are typically used for point-to-point links or when only a few IPs are needed.
- /30: This prefix length uses 30 bits for the network, leaving 2 bits for hosts (32 – 30 = 2). The number of usable hosts is 22 – 2 = 4 – 2 = 2. This is commonly used for router-to-router connections where only two IP addresses are needed (one for each router interface). The subnet mask is
255.255.255.252. - /31: Introduced with RFC 3021, this prefix length uses 31 bits for the network, leaving 1 bit for hosts (32 – 31 = 1). The number of usable hosts is 21 – 2 = 2 – 2 = 0. While it seems counterintuitive, RFC 3021 specifies that both the network address and broadcast address are usable for host assignment in this specific case, effectively allowing for two assignable IPs. This is also used for point-to-point links. The subnet mask is
255.255.255.254. - /32: This prefix length uses all 32 bits for the network, leaving 0 bits for hosts (32 – 32 = 0). This is used to represent a single IP address, often for firewall rules or specific host configurations. There are no usable host addresses, and the subnet mask is
255.255.255.255.

The CIDR Summary Table
| Prefix Length | Network Bits | Host Bits | Usable Hosts | Subnet Mask |
|---|---|---|---|---|
| /32 | 32 | 0 | 0 | 255.255.255.255 |
| /31 | 31 | 1 | 0 (RFC 3021: 2) | 255.255.255.254 |
| /30 | 30 | 2 | 2 | 255.255.255.252 |
| /29 | 29 | 3 | 6 | 255.255.255.248 |
| /28 | 28 | 4 | 14 | 255.255.255.240 |
| /27 | 27 | 5 | 30 | 255.255.255.224 |
| /26 | 26 | 6 | 62 | 255.255.255.192 |
| /25 | 25 | 7 | 126 | 255.255.255.128 |
| /24 | 24 | 8 | 254 | 255.255.255.0 |
| /23 | 23 | 9 | 510 | 255.255.254.0 |
| /22 | 22 | 10 | 1022 | 255.255.252.0 |
| /21 | 21 | 11 | 2046 | 255.255.248.0 |
| /20 | 20 | 12 | 4094 | 255.255.240.0 |
| /19 | 19 | 13 | 8190 | 255.255.224.0 |
| /18 | 18 | 14 | 16382 | 255.255.192.0 |
| /17 | 17 | 15 | 32766 | 255.255.128.0 |
| /16 | 16 | 16 | 65534 | 255.255.0.0 |
In conclusion, “/24” is a critical shorthand in networking that signifies a subnet mask of 255.255.255.0. This common configuration defines a network with 24 bits for the network address and 8 bits for host addresses, allowing for 254 usable IP addresses. Understanding this notation is fundamental for anyone involved in designing, managing, or troubleshooting computer networks, from small home setups to large enterprise infrastructures. It represents a balance of manageability and address availability that has made it a cornerstone of modern IP networking.
