This chapter explains multiple routing protocols (particularly dynamic routing protocols) and describes their relative strengths and weaknesses. It also shows how to read a routing table easily and interpret the IPv6 routing information listed within it.
Table 3-1 showed how routing protocols can be classified according to various characteristics. This section gives an overview of the most common IP routing protocols. Most of these routing protocols will be examined in detail in other chapters. For now, this section gives a very brief overview of each protocol.
Routing protocols can be classified into different groups according to their characteristics. Specifically, routing protocols can be classified by their:
For example, IPv4 routing protocols are classified as follows:
The classful routing protocols, RIPv1 and IGRP, are legacy protocols and are only used in older networks. These routing protocols have evolved into the classless routing protocols, RIPv2 and EIGRP, respectively. Link-state routing protocols are classless by nature.
Figure 3-9 displays a hierarchical view of dynamic routing protocol classification.
Figure 3-9 Routing Protocol Classification
An autonomous system (AS) is a collection of routers under a common administration such as a company or an organization. An AS is also known as a routing domain. Typical examples of an AS are a company’s internal network and an ISP’s network.
The Internet is based on the AS concept; therefore, two types of routing protocols are required:
Because BGP is the only EGP available, the term EGP is rarely used; instead, most engineers simply refer to BGP.
The example in Figure 3-10 provides simple scenarios highlighting the deployment of IGPs, BGP, and static routing.
Figure 3-10 IGP versus EGP Routing Protocols
There are five individual autonomous systems in the scenario:
BGP is beyond the scope of this course and is not discussed in detail.
Distance vector means that routes are advertised by providing two characteristics:
For example, in Figure 3-11, R1 knows that the distance to reach network 172.16.3.0/24 is one hop and that the direction is out of the interface Serial 0/0/0 toward R2.
Figure 3-11 The Meaning of Distance Vector
A router using a distance vector routing protocol does not have the knowledge of the entire path to a destination network. Distance vector protocols use routers as sign posts along the path to the final destination. The only information a router knows about a remote network is the distance or metric to reach that network and which path or interface to use to get there. Distance vector routing protocols do not have an actual map of the network topology.
There are four distance vector IPv4 IGPs:
In contrast to distance vector routing protocol operation, a router configured with a link-state routing protocol can create a complete view or topology of the network by gathering information from all of the other routers.
To continue our analogy of sign posts, using a link-state routing protocol is like having a complete map of the network topology. The sign posts along the way from source to destination are not necessary, because all link-state routers are using an identical map of the network. A link-state router uses the link-state information to create a topology map and to select the best path to all destination networks in the topology.
RIP-enabled routers send periodic updates of their routing information to their neighbors. Link-state routing protocols do not use periodic updates. After the network has converged, a link-state update is only sent when there is a change in the topology. For example, in Figure 3-12, the link-state update is sent when the 172.16.3.0 network goes down.
Figure 3-12 Link-State Protocol Operation
Video 3.1.4.4: Link-State Protocol Operation
Go to the online course and play the animation to see how a link-state update is only sent when the 172.16.3.0 network goes down.
Link-state protocols work best in situations where:
There are two link-state IPv4 IGPs:
The biggest distinction between classful and classless routing protocols is that classful routing protocols do not send subnet mask information in their routing updates. Classless routing protocols include subnet mask information in the routing updates.
The two original IPv4 routing protocols developed were RIPv1 and IGRP. They were created when network addresses were allocated based on classes (i.e., class A, B, or C). At that time, a routing protocol did not need to include the subnet mask in the routing update, because the network mask could be determined based on the first octet of the network address.
Only RIPv1 and IGRP are classful. All other IPv4 and IPv6 routing protocols are classless. Classful addressing has never been a part of IPv6.
The fact that RIPv1 and IGRP do not include subnet mask information in their updates means that they cannot provide variable-length subnet masks (VLSMs) and Classless Inter-Domain Routing (CIDR).
Classful routing protocols also create problems in discontiguous networks. A discontiguous network is when subnets from the same classful major network address are separated by a different classful network address.
To illustrate the shortcoming of classful routing, refer to the topology in Figure 3-13.
Figure 3-13 R1 Forwards a Classful Update to R2
Notice that the LANs of R1 (172.16.1.0/24) and R3 (172.16.2.0/24) are both subnets of the same class B network (172.16.0.0/16). They are separated by different classful network addresses (192.168.1.0/30 and 192.168.2.0/30).
When R1 forwards an update to R2, RIPv1 does not include the subnet mask information with the update; it only forwards the class B network address 172.16.0.0.
R2 receives and processes the update. It then creates and adds an entry for the class B 172.16.0.0/16 network in the routing table, as shown in Figure 3-14.
Figure 3-14 R2 Adds the Entry for 172.16.0.0 via R1
When R3 forwards an update to R2, it also does not include the subnet mask information and therefore only forwards the classful network address 172.16.0.0.
R2 receives and processes the update and adds another entry for the classful network address 172.16.0.0/16 to its routing table, as shown in Figure 3-15. When there are two entries with identical metrics in the routing table, the router shares the load of the traffic equally among the two links. This is known as load balancing.
Figure 3-15 R2 Adds the Entry for 172.16.0.0 via R3
Discontiguous networks have a negative impact on a network. For example, a ping to 172.16.1.1 would return “U.U.U” because R2 would forward the first ping out its Serial 0/0/1 interface toward R3, and R3 would return a Destination Unreachable (U) error code to R2. The second ping would exit out of R2’s Serial 0/0/0 interface toward R1, and R1 would return a successful code (.). This pattern would continue until the ping command is done.
Modern networks no longer use classful IP addressing and the subnet mask cannot be determined by the value of the first octet. The classless IPv4 routing protocols (RIPv2, EIGRP, OSPF, and IS-IS) all include the subnet mask information with the network address in routing updates. Classless routing protocols support VLSM and CIDR.
IPv6 routing protocols are classless. The distinction whether a routing protocol is classful or classless typically only applies to IPv4 routing protocols. All IPv6 routing protocols are considered classless because they include the prefix-length with the IPv6 address.
Figures 3-16 through 3-18 illustrate how classless routing solves the issues created with classful routing.
Figure 3-16 R1 Forwards a Classless Update to R2
Figure 3-17 R2 Adds the Entry for the 172.16.1.0/24 Network via R1
Figure 3-18 Entry for the 172.16.2.0/24 Network via R3
In the discontiguous network design of Figure 3-16, the classless protocol RIPv2 has been implemented on all three routers. When R1 forwards an update to R2, RIPv2 includes the subnet mask information with the update 172.16.1.0/24.
In Figure 3-17, R2 receives, processes, and adds two entries in the routing table. The first line displays the classful network address 172.16.0.0 with the /24 subnet mask of the update. This is known as the parent route. The second entry displays the VLSM network address 172.16.1.0 with the exit and next-hop address. This is referred to as the child route. Parent routes never include an exit interface or next-hop IP address.
When R3 forwards an update to R2, RIPv2 includes the subnet mask information with the update 172.16.2.0/24.
R2 receives, processes, and adds another child route entry 172.16.2.0/24 under the parent route entry 172.16.0.0, as shown in Figure 3-18.
A ping from R2 to 172.16.1.1 would now be successful.
Routing protocols can be compared based on the following characteristics:
Table 3-4 summarizes the characteristics of each routing protocol.
Distance Vector
Link-State
RIPv1
RIPv2
IGRP
EIGRP
OSPF
IS-IS
Speed of Convergence
Scalability – Size of Network
Use of VLSM
Resource Usage
Implementation and Maintenance
There are cases when a routing protocol learns of more than one route to the same destination. To select the best path, the routing protocol must be able to evaluate and differentiate between the available paths. This is accomplished through the use of routing metrics.
A metric is a measurable value that is assigned by the routing protocol to different routes based on the usefulness of that route. In situations where there are multiple paths to the same remote network, the routing metrics are used to determine the overall “cost” of a path from source to destination. Routing protocols determine the best path based on the route with the lowest cost.
Different routing protocols use different metrics. The metric used by one routing protocol is not comparable to the metric used by another routing protocol. Two different routing protocols might choose different paths to the same destination.
For example, assume that PC1 wants to send a packet to PC2. In Figure 3-19, the RIP routing protocol has been enabled on all routers and the network has converged. RIP makes a routing protocol decision based on the least number of hops. Therefore, when the packet arrives on R1, the best route to reach the PC2 network would be to send it directly to R2 even though the link is much slower that all other links.
Figure 3-19 RIP Uses Shortest Hop Count Path
In Figure 3-20, the OSPF routing protocol has been enabled on all routers and the network has converged. OSPF makes a routing protocol decision based on the best bandwidth. Therefore, when the packet arrives on R1, the best route to reach the PC2 network would be to send it to R3, which would then forward it to R2.
Figure 3-20 OSPF Uses Faster Links
Video 3.1.4.8: Routing Protocols and Their Metrics
Go to the online course and play the animation showing that RIP would choose the path with the least number of hops, whereas OSPF would choose the path with the highest bandwidth.
Activity 3.1.4.9: Classify Dynamic Routing Protocols
Go to the online course to perform this practice activity.
Activity 3.1.4.10: Compare Routing Protocols
Go to the online course to perform this practice activity.
Activity 3.1.4.11: Match the Metric to the Protocol
Go to the online course to perform this practice activity.