October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

What Is Classless Inter-Domain Routing (CIDR)?

CIDR replaces fixed IPv4 network classes with explicitly sized prefixes. Learn what the slash number means and how prefixes help routers aggregate and select routes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Classless Inter-Domain Routing (CIDR) is a way to identify IPv4 networks with an explicitly sized address prefix instead of assigning them one of a few fixed network classes. Its slash notation shows the prefix length—for example, /24 means the first 24 bits identify the network.

What does CIDR mean?

CIDR stands for Classless Inter-Domain Routing. It replaced the old class-based approach to IPv4 network assignment with prefixes whose lengths can be chosen to fit the size of a network. IPv4 addresses are 32 bits long; a CIDR prefix specifies how many leading bits belong to the network portion. The remaining bits identify addresses within that block.

As an Amazon Associate I earn from qualifying purchases.

RFC 4632 describes CIDR as a strategy for conserving IPv4 address space and limiting the growth of global routing state. It is an Internet standards document published by the IETF in August 2006, and it obsoletes the original CIDR strategy document, RFC 1519, published in September 1993. RFC 4632 · RFC 1519

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How to read CIDR notation

A CIDR network is written as an IP address followed by a slash and a prefix length, such as 192.168.99.0/24. The number after the slash is a count of leading bits, not a count of addresses. In this example, 24 bits define the network prefix and the remaining 8 bits are available within the block. CIDR allows different prefix lengths rather than requiring networks to fit a fixed class size. RFC 4632

How CIDR differs from classful addressing

Aspect Classful IPv4 addressing CIDR
Network sizing Uses a few fixed network classes and their implied sizes. Uses an explicit prefix length to describe the network boundary.
Route representation Network boundaries are implied by the address class. The prefix length is written directly, such as /24.
Allocation and aggregation Fixed sizes make allocation and summarization less flexible. Blocks can be sized to need and aggregated when allocation and topology align.

This comparison is about IPv4. CIDR’s original standards context addresses IPv4’s 32-bit address space; the old IPv4 address classes should not be applied to IPv6.

Why CIDR matters to Internet routing

Address allocation can better match demand

Under classful addressing, a network had to fit one of a small set of standard sizes, which could waste addresses when the available class was larger than needed. CIDR makes the boundary explicit, allowing address blocks to be allocated in sizes that more closely fit actual requirements. RFC 4632

Route aggregation can reduce global routing state

If a provider assigns customers smaller blocks from one larger, contiguous block, it can advertise a single aggregate route for that larger block instead of advertising a separate global route for every customer network. Other routers can use that aggregate to reach destinations within it. The benefit depends on the address allocation following the network’s provider hierarchy; CIDR creates the opportunity to aggregate routes but does not guarantee that every route can be combined. RFC 4632 · RFC 1519

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How routers choose between overlapping routes

Route aggregation and route selection are related, but they are not the same operation. Aggregation combines routes for advertisement. When forwarding a packet, a router compares the destination address with the routes it knows and uses the matching route with the longest prefix—the one sharing the greatest number of leading bits with the destination. RFC 4632 · RFC 1812

For example, if both a broad aggregate and a more-specific route match a destination, the more-specific route wins. That lets a network make exceptions to a broad route, but it also means an incorrect or malicious more-specific announcement can divert traffic that would otherwise follow the aggregate. RFC 4632 identifies this as a routing security risk; it is not an automatic flaw in every CIDR network. RFC 4632

Why routes cannot always be aggregated

Aggregation works best when a network uses address space assigned from its provider and its routes follow that provider’s hierarchy. Multihoming, changing providers, traffic engineering, or routing policy can require a network to advertise more-specific routes that do not fit under one provider’s aggregate. These exceptions can increase the number of routes other networks need to consider. CIDR helps contain routing growth where aggregation is practical; it does not eliminate every cause of routing complexity. RFC 4632 · RFC 1519

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why CIDR was introduced

As the Internet expanded in the late 1980s and early 1990s, concerns included exhaustion of Class B address space and growth in routing tables. CIDR, deployed with BGP-4’s support for classless prefix routes, addressed those pressures by enabling more flexible IPv4 allocation and route aggregation. RFC 4632 presents this as historical standards context, not as a current measurement of routing-table size or a complete solution to Internet scaling. RFC 4632

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.