• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

43. Classless Inter-Domain Routing (CIDR)

Introduction to CIDR

Classless Inter-Domain Routing (CIDR) is a method for allocating IP addresses and 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.

How CIDR Works

CIDR works by using a variable-length subnet mask (VLSM). A VLSM allows a network to be divided into subnets of different sizes. This is in contrast to the previous classful network addressing architecture, which used a fixed-length subnet mask.

CIDR also uses a new notation for writing IP addresses. The new notation is called CIDR notation. CIDR notation is a more compact way of writing IP addresses and subnet masks. For example, the IP address 192.168.1.0 with the subnet mask 255.255.255.0 can be written in CIDR notation as 192.168.1.0/24.

CIDR Example

Suppose you have a network with the IP address 192.168.1.0/24. You want to create 4 subnets. To do this, you will need to borrow 2 bits from the host portion of the IP address. The new subnet mask will be /26.

The following table shows the 4 subnets that you can create:

SubnetNetwork AddressBroadcast AddressHost Range
1192.168.1.0/26192.168.1.63192.168.1.1 - 192.168.1.62
2192.168.1.64/26192.168.1.127192.168.1.65 - 192.168.1.126
3192.168.1.128/26192.168.1.191192.168.1.129 - 192.168.1.190
4192.168.1.192/26192.168.1.255192.168.1.193 - 192.168.1.254

Advantages of CIDR

  • Slows the exhaustion of IPv4 addresses: CIDR can slow the exhaustion of IPv4 addresses by allowing a network to be divided into subnets of different sizes.
  • Reduces the size of routing tables: CIDR can reduce the size of routing tables by allowing multiple routes to be aggregated into a single route.
  • More flexible: CIDR is more flexible than the previous classful network addressing architecture.

Disadvantages of CIDR

  • Complexity: CIDR can be complex to set up and manage.