background image
268 Chapter 5: Network Protocols
routers will have a single route to 198.0.0.0/8--in other words, a route to all hosts whose IP
address begins with 198. More than 2 million Class C networks alone exist, but CIDR has
helped Internet routers reduce their routing tables to a more manageable size, in the range of
70,000 routes at the end of 1999.
Figure 5-24
Typical Use of CIDR
By using a routing protocol that exchanges the mask as well as the subnet/network number, a
"classless" view of the number can be attained. In other words, treat the grouping as a math
problem, ignoring the bourgeois Class A, B, and C rules. For instance, 198.0.0.0/8 (198.0.0.0,
mask 255.0.0.0) defines a set of addresses whose first 8 bits are equal. This route is advertised
by ISP #1 to the other ISPs, who need a route only to 198.0.0.0/8. In its routers, ISP #1 knows
which Class C networks are at which customer sites. This is how CIDR gives Internet routers a
much more scalable routing table, by reducing the number of entries in the tables.
Historically speaking, ISPs then found ways to use CIDR to allow better use of the IP Version
4 address space. Imagine that Customer #1 and Customer #3 need 10 and 20 IP addresses--
ever. Each customer has only a router and a single Ethernet. Each customer could register its
own Class C network, but if both did so, it would not be in the range already registered to the
ISP.
So, to help CIDR work in the Internet, ISP #1 wants its customers to use IP addresses in the
198.x.x.x range. As a service, the ISP suggests to Customer #1 something like this: Use IP
subnet 198.8.3.16/28, with assignable addresses 198.8.17 to 198.8.30. To Customer #3, who
needs 20 addresses, ISP #1 suggests 198.8.3.32/27, with 30 assignable addresses (198.8.3.33 to
198.8.3.62). (Feel free to check the math with the IP addressing algorithms listed earlier.)
ISP #1
198.0.0.0 -
198.255.255.0
Customer #1
198.8.3.0/24
Customer #2
198.4.2.0/24
198.4.3.0/24
Customer #3
198.1.0.0
ISP #2
ISP #3
ISP #4
ch05.fm Page 268 Monday, March 20, 2000 5:06 PM