What Is CIDR?

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

What is CIDR?

CIDR, which stands for Classless Inter-Domain Routing, is an IP addressing scheme that improves the
allocation of IP addresses. It replaces the old system based on classes A, B, and C. This scheme also
helped greatly extend the life of IPv4 as well as slow the growth of routing tables.

With Classless Inter-Domain Routing (CIDR), IP assignments are not limited to the three classes.
The whole unicast range (any IP address with a first octet of 0 – 223) can be allocated in any size
block. In effect, the whole concept of IP address classes is done away with entirely.

Instead of requiring the IP assignment from the RIRs to be either


a 255.0.0.0 or 255.255.0.0 or 255.255.255.0 block, they could be any size — and for simplicity, slash
notation was adopted.
▪ If you need 300 IP addresses … You get a /23.
▪ If you need 500 IP addresses … You also get a /23.
▪ If you need 1000 IP addresses … You get a /22.
▪ If you need 25,000 IP addresses … You get a /17.
▪ If you need 70,000 IP addresses … You get a /15.
▪ If you need 250,000 IP addresses … You get a /14 (instead of the ~16 million IP
addresses from the /8 block that would have been assigned in the Classful world).

This creates a system in which IP address ranges are assigned with a much, much smaller rate of
wasted IP addresses.

What is Classful?

The idea behind Classful address assignments was, if you were a company that …
▪ … needed 200 IP addresses, a /24 IP address block from the Class C range would be
assigned.
▪ … needed 50,000 IP addresses, a /16 IP address block from the Class B range would be
assigned.
▪ … needed over 65,000~ IP addresses, a /8 IP address block from the Class A range
would be assigned.

However, this led to a lot of wasted IP addresses. If, for instance, you only needed 300 IP addresses,
a Class C would not suffice, so you would end up with a Class B and nearly 60,000 IP addresses would
be wasted. In classless routing, hello messages are used for checking status. In classless routing,
subnet mask is not same throughout, it may vary for all devices, we can see it in the given picture.

Classful vs Classless routing

Classful Routing Classless Routing


While in classless routing, VLMS
In classful routing, VLMS (Variable Length Subnet
(Variable Length Subnet Mask) is
Mask) is not supported.
supported.
Classful routing requires more bandwidth. While it requires less bandwidth.
While in classless routing, hello
In classful routing, hello messages are not used.
messages are used.
Classful routing does not import subnet mask. Whereas it imports subnet mask.
While in classless routing, address is
In classful routing, address is divided into three parts
divided into two parts which are:
which are: Network, Subnet and Host.
Subnet and Host.
In classful routing, regular or periodic updates are Whereas in this, triggered updates are
used. used
While in classless routing, CIDR
In classful routing, CIDR (Classless Inter-Domain
(Classless Inter-Domain Routing) is
Routing) is not supported.
supported.
While in classless routing, fault
In classful routing, fault can be detected easily.
detection is little tough.

You might also like