Skip to content

Classless inter-domain routing

Classless inter-domain routing

Classless inter-domain routing, or CIDR, was introduced in 1993 to provide a common method for addressing and routing. CIDR was created to allow routing tables to be more properly sized to the usage on their networks, as well as to prevent unnecessary allocation of IPv4 addresses due to the limitations of IPv4’s network prefix system for classifying network sizes.

IPv4 was “classful”, meaning that it divided the IP address space into classes based on their top 3 bits. This matters because it means that, under IPv4, networks would be classified into a particular address space with a given number of networks, which would likely be too small or too large for the particular use case. This classful system was not flexible enough to efficiently allocate the IPv4 address space, so the “classless” concept was developed.

“Classless” was based on VLSM (variable-length subnet masking), which allows for sizing networks based on powers of 2, rather than the simple classes under IPv4’s system.

CIDR is notated using a slash (/) symbol after the IP address followed by a number which denotes the number of leading 1 bits in the network mask. CIDR notation can be used with IPv4 and IPv6 addresses.

Examples (from the Wikipedia article ↗):