ArticleslgStudy

science

Classless Inter-Domain Routing

Classless Inter-Domain Routing is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Classless Inter-Domain Routing rather than just read about it. In short: Classless Inter-Domain Routing (CIDR pronounced "cider" or SID-ər) is a method for allocating IP addresses for IP routing. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous classful network addressing architecture on the Internet.

Classless Inter-Domain Routing — main illustration
Classless Inter-Domain Routing — illustration

Key takeaways

  • Classless Inter-Domain Routing belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Classless Inter-Domain Routing to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Classless Inter-Domain Routing from memory before moving on to harder problems.

Reference excerpt

Classless Inter-Domain Routing (CIDR pronounced "cider" or SID-ər) is a method for allocating IP addresses for IP routing. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous classful network addressing architecture on the Internet. Its goal was to slow the growth of routing tables on routers across the Internet, and to help slow the rapid exhaustion of IPv4 addresses. IP addresses are described as consisting of two groups of bits in the address: the most significant bits are the network prefix, which identifies a whole network or subnet, and the least significant set forms the host identifier, which specifies a particular interface of a host on that network. This division is used as the basis of traffic routing between IP networks and for address allocation policies. Whereas classful network design for IPv4 sized the network prefix as one or more eight-bit groups, resulting in the blocks of Class A, B, or C addresses, under CIDR, address space is allocated to Internet service providers (ISPs) and end users on any address-bit boundary. In IPv6, however, the interface identifier has a fixed size of 64 bits by convention, and smaller subnets are never allocated to end users. CIDR is based on variable-length subnet masking (VLSM), in which network prefixes have variable length as opposed to the fixed-length prefixing of the previous classful network design. The main benefit of this is that it grants finer control of the sizes of subnets allocated to organizations, hence slowing the exhaustion of IPv4 addresses from the allocation of larger subnets than needed. CIDR gave rise to a new way of writing IP addresses known as CIDR notation, in which an IP address is followed by a suffix indicating the number of bits of the prefix. Some examples of CIDR notation are the addresses 192.0.2.0/24 for IPv4 and 2001:db8::/32 for IPv6. Blocks of addresses having contiguous prefixes may be aggregated as supernets, reducing the number of entries in the global routing table.

Background Each IP address consists of a network prefix followed by a host identifier. In the classful network architecture of IPv4, the three most significant bits of the 32-bit IP address defined the size of the network prefix for unicast networking and determined the network class A, B, or C.

The advantage of this system is that the network prefix can be determined for any IP address without any further information. The disadvantage is that networks were usually too big or too small for most organizations to use, because only three sizes were available. The smallest allocation and routing block contained 28 = 256 addresses, larger than necessary for personal or department networks, but too small for most enterprises. The next larger block contained 216 = 65536 addresses, too large to be used efficiently even by large organizations. But for network users who needed more than 65536 addresses, the only other size (224) provided far too many, more than 16 million. This led to inefficiencies in address use as well as inefficiencies in routing, because it required a large number of allocated class-C networks with individual route announcements, being geographically dispersed with little opportunity for route aggregation. Within a decade after the invention of the Domain Name System (DNS), the classful network method was found not scalable. This led to the development of subnetting and CIDR. The formerly meaningful class distinctions based on the most-significant address bits were abandoned and the new system was described as "classless", in contrast to the old system, which became known as "classful". Routing protocols were revised to carry not just IP addresses, but also their subnet masks. Implementing CIDR required every host and router on the Internet to be reprogrammed in small ways—no small feat at a time when the Internet was entering a period of rapid growth. In 1993, the Internet Engineering Task Force published a new set of standards, RFC 1518 and RFC 1519, to define this new principle for allocating IP address blocks and routing IPv4 packets. An updated version, RFC 4632, was published in 2006. After a period of experimentation with various alternatives, Classless Inter-Domain Routing was based on variable-length subnet masking (VLSM), which allows each network to be divided into subnetworks of various power-of-two sizes, so that each subnetwork can be sized appropriately for local needs. Variable-length subnet masks were mentioned as one alternative in RFC 950. Techniques for grouping addresses for common operations were based on the concept of cluster addressing, first proposed by Carl-Herbert Rokitansky.

CIDR notation CIDR notation is a compact representation of an IP address and its associated subnet mask. The notation was invented by Phil Karn in the 1980s. CIDR notation specifies an IP address, a slash character ⟨/⟩, and a decimal number. The decimal number is the count of consecutive leading 1 bits (from left to right) in the network mask. Each 1 bit denotes a bit of the address range which must remain identical to the given IP address. The IP address in CIDR notation is always represented according to the standards for IPv4 or IPv6. The address may denote a specific interface address (including a host identifier, such as 10.0.0.1/8), or it may be the beginning address of an entire network (using a host identifier of 0, as in 10.0.0.0/8 or its equivalent 10/8). CIDR notation can even be used with no IP address at all, e.g. when referring to a /24 as a generic description of an IPv4 network that has a 24-bit prefix and 8-bit host numbers. For example:

… excerpt ends here. Continue reading the full article.

Illustrations

Classless Inter-Domain Routing illustration

Worked examples

Example 1 — a first encounter with Classless Inter-Domain Routing

Start with the simplest possible case. Write down what Classless Inter-Domain Routing claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Classless Inter-Domain Routing before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Classless Inter-Domain Routing ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Classless Inter-Domain Routing

In research
Classless Inter-Domain Routing appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Classless Inter-Domain Routing in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Classless Inter-Domain Routing is common in secondary-school and first-year university syllabi. It links to neighbouring topics IP addresses, Internet Standards, Internet architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Classless Inter-Domain Routing outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Classless Inter-Domain Routing” →

How to study Classless Inter-Domain Routing in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Classless Inter-Domain Routing means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Classless Inter-Domain Routing out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Classless Inter-Domain Routing in simple terms?

Classless Inter-Domain Routing (CIDR pronounced "cider" or SID-ər) is a method for allocating IP addresses for IP routing. The Internet Engineering Task Force introduced CIDR in 1993 to replace the previous classful network addressing architecture on the Internet.

Why does Classless Inter-Domain Routing matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Classless Inter-Domain Routing?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Classless Inter-Domain Routing.

Tags

  • IP addresses
  • Internet Standards
  • Internet architecture
  • Routing

Keep exploring