Skip to content

What Is CIDR Notation?

Classless inter-domain routing (CIDR) and Notation for Beginners

Classless inter-domain routing (CIDR) is a set of Internet protocol (IP) standards that is used to create unique identifiers for networks and individual devices. The IP addresses allow particular information packets to be sent to specific computers. Shortly after the introduction of CIDR, technicians found it difficult to track and label IP addresses, so a notation system was developed to make the process more efficient and standardized. That system is known as CIDR notation.

CIDR IP addresses consist of two groups of numbers, which are also referred to as groups of bits. The most important of these groups is the network address, and it is used to identify a network or a sub-network (subnet). The lesser of the bit groups is the host identifier. The host identifier is used to determine which host or device on the network should receive incoming information packets. In contrast to classful routing, which categorizes addresses into one of three blocks, CIDR allows for blocks of IP addresses to be allocated to Internet service providers. The blocks are then split up and assigned to the provider’s customers. Until recently, IP addresses used the IPv4 CIDR standard, but because IPv4 addresses are nearly exhausted, a new standard known as IPv6 has been developed and will soon be implemented.

Absolutely Doable and It's Free.

Development of CIDR

When the Internet domain name system (DNS) was first established, the classful routing system was used for IP addresses, but early Internet developers soon discovered that it included a serious flaw in that it lacked scalability. To solve this problem, the Internet Engineering Task Force created the IPv4 standard in 1993. In addition, CIDR was created as a system of routing the new IPv4 addresses. These standards were originally published under the names RFC 1518 and RFC 1519. In 2006, a new version of the standard was published as RFC 4632.

According to the CIDR standard, the first part of an IP address is a prefix, which identifies the network. The prefix is followed by the host identifier so that information packets can be sent to particular computers within the network. With the classful routing system, individual networks were either limited to 256 host identifiers or overburdened with 65,536 identifiers. For many network enterprises, 256 identifiers were not enough and 65,536 were too burdensome to be used efficiently.

In the 1980s, as TCP/IP grew into the modern Internet, the need for a more flexible routing system was recognized. This need prompted the development of CIDR and subnets. CIDR and the process of variable-length subnet masking (VLSM) allow network administrators to divide individual networks into subnets of various sizes. In addition, addresses for related operations can be grouped together to create a simple system of categorization. Internet providers are also able to allocate a scalable number of addresses, in blocks, to organizations based on how many addresses are needed.

These new routing and categorization systems solved most of the problems with IP addresses, and the only remaining problem was deciding how to identify them efficiently. Eventually, CIDR notation was established and accepted as the standard. In CIDR notation, IP addresses are written as a prefix, and a suffix is attached to indicate how many bits are in the entire address. The suffix is set apart from the prefix with a slash mark. For instance, in the CIDR notation, the prefix is, and the total number of bits in the address is 24.

CIDR Blocks

The ability to group blocks of addresses into a single routing network is the hallmark of CIDR, and the prefix standard used for interpreting IP addresses makes this possible. CIDR blocks share the first part of the bit sequence that comprises the binary representation of the IP address, and blocks are identified using the same decimal-dot CIDR notation system that is used for IPv4 addresses. For example, is an address prefix with 32 bits, which is the highest number of bits allowed in IPv4. Addresses with identical prefixes and the same number of bits always belong to the same block. In addition, larger blocks can be easily distinguished from smaller blocks by the length of the prefix. Short prefixes allow for more addresses while large prefixes identify small blocks.

CIDR notation is also used for the newer IPv6 standard, and the syntax is the same. The only difference is that IPv6 addresses may contain up to 128 bits instead of the 32-bit maximum of IPv4. Even though IPv6 addresses may be up to 128 bits in length, it is important to note that subnets on MAC layer networks always use 64-bit host identifiers.

The assignment of CIDR blocks is handled by the Internet Assigned Numbers Authority (IANA). One of the duties of the IANA is to issue large blocks of IP addresses to regional Internet registries (RIRs). These blocks are used for large geographical areas, such as Europe, North America, Africa and Australia. It is then the duty of each RIR to create smaller, but still quite large, blocks of IP addresses to be assigned to local Internet registries (LIRs). Depending on the organization of regional and local registries, blocks may be subdivided further until they are assigned to end users. The size of blocks assigned to end users is dependent on how many individual addresses will be required by each user. Most end users receive their blocks from a single Internet service provider (ISP), but organizations that make use of multiple ISPs must obtain provider-independent blocks directly from an LIR or RIR.

IPv4 CIDR IP/CIDR Δ to last IP addr Mask Hosts (*) Class
a.b.c.d/32 + 1 1/256 C
a.b.c.d/31 + 2 1/128 C
a.b.c.d/30 + 4 1/64 C
a.b.c.d/29 + 8 1/32 C
a.b.c.d/28 + 16 1/16 C
a.b.c.d/27 + 32 1/8 C
a.b.c.d/26 + 64 1/4 C
a.b.c.d/25 + 128 1/2 C
a.b.c.0/24 + 256 1 C
a.b.c.0/23 + 512 2 C
a.b.c.0/22 + 1,024 4 C
a.b.c.0/21 + 2,048 8 C
a.b.c.0/20 + 4,096 16 C
a.b.c.0/19 + 8,192 32 C
a.b.c.0/18 + 16,384 64 C
a.b.c.0/17 + 32,768 128 C
a.b.0.0/16 + 65,536 256 C = 1 B
a.b.0.0/15 + 131,072 2 B
a.b.0.0/14 + 262,144 4 B
a.b.0.0/13 + 524,288 8 B
a.b.0.0/12 + 1,048,576 16 B
a.b.0.0/11 + 2,097,152 32 B
a.b.0.0/10 + 4,194,304 64 B
a.b.0.0/9 + 8,388,608 128 B
a.0.0.0/8 + 16,777,216 256 B = 1 A
a.0.0.0/7 + 33,554,432 2 A
a.0.0.0/6 + 67,108,864 4 A
a.0.0.0/5 + 134,217,728 8 A
a.0.0.0/4 + 268,435,456 16 A
a.0.0.0/3 + 536,870,912 32 A
a.0.0.0/2 + 1,073,741,824 64 A
a.0.0.0/1 + 2,147,483,648 128 A + 4,294,967,296 256 A

* For routed subnets bigger than /31 or /32, two reserved addresses need to be subtracted from the number of available host addresses: the largest address, which is used as the broadcast address, and the smallest address, which is used to identify the network itself. In addition, any border router of a subnet typically uses a dedicated address.

Subnet Masks

Once blocks of IP addresses are assigned to end users, CIDR allows them to be further divided within a private network, which is a process known as subnetting. Computers and other connected devices within a particular subnet can be identified because they all use the same IP address prefix. The subnet identifier then becomes the most significant portion of the host identifier. Finally, the last part of the host identifier is used to distinguish individual computers on a subnet.

The subnet identifiers within a network are assigned according to the network’s subnet mask, which is a binary pattern that is used to determine how many subnets are available in a network. In its binary form, a subnet mask begins with a series of ones and ends with a series of zeros. However, subnet masks are usually expressed using the familiar dot-decimal notation used for IP addresses and network prefixes. In this notation, the series of ones become the number 255. For example, the most common subnet mask expressed using this notation is This subnet mask is known as subnet zero, and it is used when only one subnet is required or as the first of multiple subnets.

A specific subnet mask is created by designating a portion of the host identifier, and larger subnets are created by moving more bits from the host identifier to the subnet mask. The final subnet of a network is designated in binary with all ones. When using the CIDR dot-decimal notation, the final subnet is expressed as

Before CIDR, subnet masks with all zeros ( and subnet masks with all ones ( could not be used because they could become confused with network identifiers, but CIDR-compliant equipment uses the prefixes and suffixes of CIDR notation to distinguish between the two.

Related Articles

Related Articles

  • All
  • Easy Prey Podcast
  • General Topics
  • Home Computing
  • IP Addresses
  • Networking
  • Online Privacy
  • Online Safety
  • Uncategorized

New Artificial Intelligence Technology Leads to New Challenges

Most of us would have thought artificial intelligence was limited to science fiction just a few years…

[Read More]

Scam Survivors Support Groups

No matter how careful you are, you can still fall victim to an online scam. Scammers have…

[Read More]
Krazy Ken of the Computer Clan YouTube channel talks about tech scams and how to spot them.

Identify and Avoid Tech Scams: How to Spot the Warning Signs

Technology is advancing rapidly. It seems like every day something that used to be the purview of…

[Read More]

Catfished: A Cautionary Tale

The term “catfished” is often used when a stranger reaches out to you and isn’t entirely forthcoming…

[Read More]

How to Obtain and Set Up a Static IP Address

Imagine calling your favorite carry out restaurant to place an order, only to find that they changed…

[Read More]
Malware: Ransomware Attack

Malware is Everywhere.

What it is. How to spot it. How to get rid of it. Do you need to…

[Read More]