Classless Inter Domain Routing
Classless Inter Domain Routing
Use of CIDR
Variable-length subnet masking is the foundation of CIDR (VLSM). It can now
specify prefixes of any duration, making it much more powerful than the previous
method.
Two collections of numbers make up CIDR IP addresses. The network address is
written as a prefix, similar to how an IP address is written (e.g. 192.255.255.255).
The suffix, which means how many bits are in the whole address (e.g. /12), is the
second component. A CIDR IP address will look anything like this when put together
−
192.255.255.255/12
As part of the IP address, the network prefix is also defined. These changes are
based on how many bits are needed. As an illustration, in the above example, the
first 12 bits of the address are for the network, while the last 20 bits are for host
addresses.
CIDR Notation
Using CIDR we can assign an IP address to host without using standard id address
classes like Class A, B, and C.
In CIDR we simply tell how many bits are used for network id. The network id bits are
provided after the '/' symbol. Like /10 means 10 bits are used for the network id part
and remaining 32-10=22 bits are used for the host id part.
The advantage of using CIDR notation is that it reduces the number of entries in the
routing table and also it manages the ip address space.
Disadvantages
The disadvantages of using CIDR Notation are as follows −
Each bit of the address that is considered significant for describing the
network should be represented as a “1” in the netmask.