Classless Inter
Classless Inter
more efficient use of IP addresses. CIDR is based on the idea that IP addresses can be allocated and routed based
on their network prefix rather than their class, which was the traditional way of IP address allocation.
CIDR addresses are represented using a slash notation, which specifies the number of bits in the network prefix.
For example, an IP address of 192.168.1.0 with a prefix length of 24 would be represented as 192.168.1.0/24.
This notation indicates that the first 24 bits of the IP address are the network prefix and the remaining 8 bits are
the host identifier.
CIDR (Classless Inter-Domain Routing or supernetting) is a method of assigning IP addresses that improves the
efficiency of address distribution and replaces the previous system based on Class A, Class B and Class C networks.
The initial goal of CIDR was to slow the increase of routing tables on routers across the internet and decrease the
rapid exhaustion of IPv4 addresses. As a result, the number of available internet addresses has greatly increased.
The original classful network design of the internet included inefficiencies that drained the pool of unassigned IPv4
addresses faster than necessary. The classful design included the following:
If an organization needed more than 254 host machines, it would be switched into Class B. However, this could
potentially waste over 60,000 hosts if the business didn't need to use them, thus unnecessarily decreasing the
availability of IPv4 addresses. The Internet Engineering Task Force introduced CIDR in 1993 to fix this problem.
CIDR is based on variable-length subnet masking (VLSM), which enables network engineers to divide an IP
address space into a hierarchy of subnets of different sizes. This makes it possible to create subnetworks with
1. Prefix. The prefix is the binary representation of the network address -- similar to what would be seen in a
normal IP address.
2. Suffix. The suffix declares the total number of bits in the entire address.
For example, CIDR notation might look like: 192.168.129.23/17 -- with 17 being the number of bits in the address.
The same CIDR notation can be applied to IPv6 addresses. The only difference is IPv6 addresses can contain up to
128 bits.
CIDR blocks
CIDR blocks are groups of addresses that share the same prefix and contain the same number of bits. Supernetting is
the combination of multiple connecting CIDR blocks into a larger whole, all of which share a common network
prefix.
The length of a prefix determines the size of CIDR blocks. A short prefix supports more addresses -- and, therefore,
forms a bigger block -- while a longer prefix indicates fewer addresses and a smaller block.
The Internet Assigned Numbers Authority (IANA) initially handles CIDR blocks. IANA is responsible for