background image
Classful and Classless Routing
149
Classful and Classless Routing
The original address design separated address groups into classes.
Classful routing protocols
were designed to make decisions based on the class of the IP address or the subnet mask that is
associated with the interface. The design of classful networks assumes that the same major
network will exist throughout the network. Classful routing observes the class address
boundaries of Classes A, B, and C. Classful routing protocols cannot carry subnet mask
information in their updates. Before a classful routing protocol sends out an update, it performs
a check against the subnet mask of the network that is about to be advertised. If the subnet is
different, the classful routing protocol drops the route. A classful routing protocol will not
advertise routes out of an interface if those routes are on the same major network but have a
different mask than that particular interface.
With the explosion of the Internet and the demand for more network address space, a solution
had to be rendered to grant more network space. The number of entries in the routing tables of
the Internet was reaching capacity. In addition, the amount of resources, CPU, and memory
required to manage the large routing tables represented an ineffective use of router resources.
Classless interdomain routing
(
CIDR
) has solved both of these issues for Internet routing.
Classless routing protocols can read variable-length subnet mask information in their updates.
Classless routing protocols provide greater flexibility in the IP addressing design plan. Figure
5-3 shows the prefix lengths of each class of IP address.
Figure 5-3
Prefix Lengths
Address
Class
10.1.1.1
A
180.171.2.1
B
201.211.1.4
C
Table 5-2
IP Address Classes (Continued)
32 bits
Prefix length = 8
Host
Prefix length = 16
Host
Prefix length = 24
Host
Class A
Class B
Class C
87200333.book Page 149 Wednesday, August 22, 2001 2:37 PM