Difference Between CIDR and VLSM
Difference Between CIDR and VLSM
CIDR and VLSM are the terms explicitly used at the time of designing a
network where CIDR is used for merging the routes in order to decrease the
routing information carried by the core routers. On the contrary, VLSM
facilitates in optimizing the available address space.
CIDR is just opposite of VLSM, where it describes rules for referencing set of
networks with a single route statement. Conversely, VLSM defines rules for
subdividing the networks.
Definition of CIDR
Before understanding the CIDR, we must understand what prefix routing is. It
means to allocate a set of classful networks, expressed by a single network
address. Prefix masks shows a set of TCP/IP network addresses using the
technique of address or subnet mask. The aggregation of classful networks
specifies the old structure of Class A, B, C addressing, or classful addressing.
However, this classful addressing would not useful at the time of establishing
connectivity between organizations through the internet. Therefore, for
aggregating these classful networks and connecting the organizations through
the network, the concept used is known as Interdomain Routing.
CIDR (Classless Inter-Domain Routing) does not use the ides of class-based
networks, as we know that classful addressing had the limitation where the
public IP addresses were lesser than the demand of the people for the public
addresses (For using the internet). Initially, it was designed to enable ISPs to
hand out the smaller or larger blocks of IP addresses instead of a class. It is also
known as route summarization.
Definition of VLSM
In other words, the Variable Length Subnet Masking or VLSM is the technique
of applying multiple subnet mask to a provided class of addresses over a
routed system. This was not possible before as the previously designed
protocols like RIPv1 would not support subnet mask of advertised networks in
their routing updates. As an outcome, they are unable to learn the existence of
more than one mask length.
The classless routing protocols like OSPF, RIPv2, EIGRP, IS-IS and BGP make
the implementation of VLSM possible by incorporating the subnet mask for
the networks that are advertised in the routing updates. Previously, the use of
networks were limited to only/26 masks throughout the system.
Example of CIDR
So, resolve this issue VLSM (Variable Length Subnet Masking) is used, the 255
addresses are first divided into two parts each having 126 hosts. One subnet
will be allotted to the engineering department. The other subnet is divided into
two sub-subnets each having 62 hosts, among which one is assigned to the
management department. Similarly, the sub-subnet with 62 hosts is further
split to generate two sub-sub-subnets containing 30-30 hosts each which
covers the remaining two departments.
Merits of CIDR
Conclusion
The CIDR allows to aggregate several networks in a single address, and this is
done with the help of a routing table entry which expresses the aggregation of
the network. In contrast, the VLSM helps in creating a hierarchy of subnets
holding distinct sizes from an IP address space.
Difference Between Subnetting and
Supernetting
The Subnetting basically convert the host bits into the network bits. As
mentioned above the subnetting strategy was initially devised for slowing
down the depletion of the IP addresses.
Conclusion
Subnetting and supernetting both the terms have inverse meaning where
subnetting is used to separate the smaller subnetworks form each other by
dividing a larger network. Conversely, supernetting is used to combine the
smaller range of addresses into a larger one to make routing process more easy
and fast. Ultimately, both techniques are used to increase the availability of the
IP addresses and reduce the depletion of IP addresses.