Networking Routing Fundamentals

Previous Table of Contents Next


The major benefit of CIDR is that it enables continuous, uninterrupted growth of large networks. CIDR enables routers to group routes to cut down on the quantity of routing information carried by a network’s routers. With CIDR, several IP networks appear to networks outside the group as a single, larger entity. CIDR eliminates the concept of class A, B, and C networks and replaces this with a generalized “IP prefix.”

Some of the benefits of using CIDR within your network are as follows:

  Reduces the local administrative burden of updating external route information
  Saves routing table space in routers by using route aggregation
  Reduces route flapping and convergence issues
  Reduces CPU and memory load on a router
  Enables the delegation of “network numbers” to customers or other portions of the network
  Increased efficiency in the use of available address space

What Do Those /16s and /24s Mean?

/16 and /24 refer to the number of bits of the network part of the IP address. A former class B address might appear as 172.24.0.0/16, which is the same as 256 class Cs, which can appear as 192.200.0.0/16. A single class C appears as 192.201.1.0/24 when using CIDR. This new “look” to IP addresses consists of an IP address and a mask length. A mask length is often called an “IP prefix.” The mask length specifies the number of left-most contiguous significant bits in the corresponding IP address.

For example, the CIDRized IP address of 172.24.0.0/16 indicates you are using 172.24.0.0 255.255.0.0. The /16 is an indication that you are using 16 bits of the mask when counting from the far left. Figure 2-8 demonstrates an excellent example of how CIDR defines its mask.


Figure 2-8  An example of CIDR addressing.

Important CIDR Terms

A network is called a supernet when the IP prefix contains fewer bits than the network’s natural mask. For example, the class C address 200.34.5.0 has a natural mask of 255.255.255.0. This address can also be represented in CIDR terms as 200.34.0.0/16. Therefore, because the natural mask is 24 bits and the CIDR mask is 16 bits (16 < 24), this network is referred to as a supernet. Simply put, supernets have an IP prefix shorter than the natural mask.

This enables the more specific contiguous networks—such as 200.34.5.0, 200.34.6.0, and 200.34.7.0—to be summarized into the one CIDR advertisement, which is referred to as an aggregate. Simply put, aggregates indicate any summary route. Figure 2-9 demonstrates how CIDR can be used to benefit your network by reducing routing tables.


Figure 2-9  An example of CIDR benefits on routing tables.

IP Classless

Use ip classless in your routers and use a default route inside your Autonomous System (AS). The ip classless command prevents the existence of a single “subnet” route from blocking access via the default route to other subnets.

CIDR Translation Table

Table 2-5 provides you with some basic CIDR information already laid out.

Table 2-5 CIDR Translation Table
CIDR Prefix Dotted Decimal Inverse Dotted Decimal

/1 128.0.0.0 127.255.255.255
/2 192.0.0.0 63.255.255.255
/3 224.0.0.0 31.255.255.255
/4 240.0.0.0 15.255.255.255
/5 248.0.0.0 7.255.255.255
/6 252.0.0.0 3.255.255.255
/7 254.0.0.0 1.255.255.255
/8 255.0.0.0 0.255.255.255
/9 255.128.0.0 0.127.255.255
/10 255.192.0.0 0.63.255.255
/11 255.224.0.0 0.31.255.255
/12 255.240.0.0 0.15.255.255
/13 255.248.0.0 0.7.255.255
/14 255.252.0.0 0.3.255.255
/15 255.254.0.0 0.1.255.255
/16 255.255.0.0 0.0.255.255
/17 255.255.128.0 0.0.127.255
/18 255.255.192.0 0.0.63.255
/19 255.255.224.0 0.0.31.255
/20 255.255.240.0 0.0.15.255
/21 255.255.248.0 0.0.7.255
/22 255.255.252.0 0.0.3.255
/23 255.255.254.0 0.0.1.255
/24 255.255.255.0 0.0.0.255
/25 255.255.255.128 0.0.0.127
/26 255.255.255.192 0.0.0.63
/27 255.255.255.224 0.0.0.31
/28 255.255.255.240 0.0.0.15
/29 255.255.255.248 0.0.0.7
/30 255.255.255.252 0.0.0.3
/31 255.255.255.254 0.0.0.1
/32 255.255.255.255 0.0.0.0

Manually Computing the Value of a CIDR IP Prefix

If you manually wanted to compute the CIDR IP prefix, then refer to the following (in which a subnet that is five bits long is used).

Example: 166.38.0.0/19

1.  The four octets represent 32 bits.
2.  This example is using only 19 bits.
3.  The first two octets use 16 bits. The third octet uses only three bits. There are five remaining bits that were not used:
128 64 32 16 8 4 2 1
x x x 1 1 1 1 1
4.  Add the remaining five bits using the binary conversion. 16+8+4+2+1=31
5.  Add 31 to the octet where the value was computed from (0+31=31)
6.  The final output of this CIDR block is 166.38.0.0-166.38.31.0.


Previous Table of Contents Next




OSPF Network Design Solutions
OSPF Network Design Solutions
ISBN: 1578700469
EAN: 2147483647
Year: 1998
Pages: 200
Authors: Tom Thomas

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net