| 0 comments ]

This chapter describes considerations for selecting the most appropriate network routing protocol. First, routing protocol features are discussed, followed by a description of various routing protocols appropriate for enterprise use. The chapter discusses why certain protocols are suitable for specific modules in the Enterprise Architecture. It concludes with a description of some advanced routing protocol deployment features, including redistribution, filtering, and summarization.

Note

Add a note here Chapter 1, “Network Fundamentals Review,” includes introductory information about routers and routing protocols.

Add a note hereFor more details about IP routing protocols, see Authorized Self-Study Guide: Building Scalable Cisco Internetworks (BSCI), Third Edition, by Diane Teare and Catherine Paquet, Cisco Press, 2006.


Note

Add a note hereIn this chapter, the term IP refers to IP version 4 (IPv4).

Add a note here Routing Protocol Features

Add a note hereThere are many ways to characterize routing protocols, including the following:

Add a note hereThe following sections discuss these methods in detail.

Add a note here Static Versus Dynamic Routing

Add a note here Whereas static routes are typically configured manually, routing protocols generate dynamic routes. Each method has advantages and disadvantages in specific network scenarios, as discussed in the following sections.

Static Routing

Add a note hereThe term static routing denotes the use of manually configured or injected static routes for traffic forwarding purposes. Using a static route might be appropriate in the following circumstances:

  • Add a note hereWhen it is undesirable to have dynamic routing updates forwarded across slow bandwidth links, such as a dialup link

  • Add a note hereWhen the administrator needs total control over the routes used by the router

  • Add a note hereWhen a backup to a dynamically learned route is necessary

  • Add a note hereWhen it is necessary to reach a network that is accessible by only one path (a stub network)

Add a note hereConfiguring and maintaining static routes is time-consuming. Properly implementing static routes requires complete knowledge of the entire network.

Add a note here Figure 7-1 illustrates a stub network scenario in which the use of static routes is favored over a dynamic routing protocol. The right side of Figure 7-1 shows a stub network with a single entry/ exit point over the S0 interface of Router A. On the stub network router (Router A), a static default route is configured so that the S0 link forwards all traffic toward destinations outside the stub network. On Router B, a static route is installed toward the stub network and then is redistributed into the routing protocol so that reachability information for the stub network is available throughout the rest of the network.

Click to collapse
Add a note hereFigure 7-1: Use Static Routes with a Stub Network

Note

Add a note here Static routes are unidirectional. A static route configured in one direction via one router must have a corresponding static route configured on the adjacent router, in the opposite direction, for the return path. Figure 7-1 includes these two routes.

Add a note hereBy using static and default static routes in this scenario, no traffic from a dynamic routing protocol is present on the serial link or in the stub network. In addition, the processor and memory requirements for both routers are lower; in the stub network, a low-end router would suffice. Static routes are therefore appropriate in situations such as with stub networks, hub-and-spoke connections (also called star connections), and dialup environments.

Dynamic Routing

Add a note hereDynamic routing allows the network to adjust to changes in the topology automatically, without administrator involvement. A static route cannot dynamically respond to changes in the network. If a link fails, the static route is no longer valid if it is configured to use that failed link, so a new static route must be configured. If a new router or new link is added, that information must also be configured on every router in the network. In a very large or unstable network, these changes can lead to considerable work for network administrators. It can also take a long time for every router in the network to receive the correct information. In situations such as these, it might be better to have the routers receive information about networks and links from each other using a dynamic routing protocol. Dynamic routing protocols must do the following:

  • Add a note hereFind sources from which routing information can be received (usually neighboring routers)

  • Add a note hereSelect the best paths toward all reachable destinations, based on received information

  • Add a note hereMaintain this routing information

  • Add a note hereHave a means of verifying routing information (periodic updates or refreshes)

Add a note hereWhen using a dynamic routing protocol, the administrator configures the routing protocol on each router. The routers then exchange information about the reachable networks and the state of each network. Routers exchange information only with other routers running the same routing protocol. When the network topology changes, the new information is dynamically propagated throughout the network, and each router updates its routing table to reflect the changes.

Add a note here Interior Versus Exterior Routing Protocols

Add a note here An autonomous system (AS), also known as a domain, is a collection of routers that are under a common administration, such as a company’s internal network or an Internet service provider’s (ISP’s) network.

Add a note hereDifferent types of protocols are required for the following reasons:

  • Add a note hereInter-AS connections require more options for manual selection of routing characteristics. EGPs should be able to implement various policies.

  • Add a note hereThe speed of convergence (distribution of routing information) and finding the best path to the destination are crucial for intra-AS routing protocols.

Add a note hereTherefore, EGP routing protocol metrics (used to measure paths to a destination) include more parameters to allow the administrator to influence the selection of certain routing paths. EGPs are slower to converge and more complex to configure. IGPs use less-complicated metrics to ease configuration and speed up the decisions about best routing paths for faster convergence. The “Routing Protocol Metrics” section later in this chapter defines and explains routing protocol metrics.

IGP and EGP Example

Add a note here Figure 7-2 shows three interconnected autonomous systems (domains). Each AS uses an IGP for intra-AS (intra-domain) routing.

Click to collapse
Add a note hereFigure 7-2: Interior Protocols Are Used Inside and Exterior Protocols Are Used Between Autonomous Systems

Add a note here The autonomous systems require some form of interdomain routing to communicate with each other. Static routes are used in simple cases; typically, an EGP is used.

Add a note hereBGP-4 is the dominant EGP currently in use; BGP-4 and its extensions are the only acceptable version of BGP available for use on the public Internet.

Add a note here Multihoming is when an AS has more than one connection to the Internet (for redundancy or to increase performance). BGP is particularly useful when an AS multihomes to the Internet via multiple ISPs, as illustrated in Figure 7-2. To comply with the contractual requirements from specific ISPs, an administrator uses BGP to apply specific policies—for example, to define traffic exit points, return traffic paths, and levels of quality of service (QoS).

Add a note here Distance Vector Versus Link-State Versus Hybrid Protocols

Add a note hereThere are two main types of routing protocols:

  • Add a note here Distance vector protocol: In a distance vector protocol, routing decisions are made on a hop-by-hop basis. Each router relies on its neighbor routers to make the correct routing decisions. The router passes only the results of this decision (its routing table) to its neighbors. Distance vector protocols are typically slower to converge and do not scale well; however, they are easy to implement and maintain. Examples of distance vector protocols include RIPv1, RIPv2, and Interior Gateway Routing Protocol (IGRP).


    Note

    Add a note hereAlthough they are all distance vector protocols, RIPv1 uses broadcast packets to advertise routes, whereas RIPv2 uses multicast packets.


    Note

    Add a note here IGRP is no longer supported as of Cisco IOS Release 12.3.


    Note

    Add a note hereA network is converged when routing tables on all routers in the network are synchronized and contain a route to all destination networks. Convergence is discussed in detail in the “Routing Protocol Convergence” section later in this chapter.

  • Add a note here Link-state protocol: Each router floods information about itself (its link states) either to all other routers in the network or to a part of the network (area). Each router makes its own routing decision based on all received information and using the shortest path first (SPF) algorithm (also called the Dijkstra algorithm), which calculates the shortest path to any destination. Link-state protocols are fast to converge, have less routing traffic overhead, and scale well. However, because of their complexity, link-state protocols are more difficult to implement and maintain. The IP link-state protocols are OSPF and Integrated IS-IS.


Note

Add a note hereIn the name link-state, link refers to the interface, and state refers to the link’s characteristics, such as whether it is up or down.

Add a note hereA third type of protocol also exists: the hybrid interior gateway protocol, which is the Cisco EIGRP. EIGRP has characteristics of both distance vector and link-state protocols; it combines distance vector behavior with some link-state characteristics and some proprietary features. EIGRP is a fast-converging and scalable routing protocol.


Note

Add a note hereCisco uses a variety of terms to characterize EIGRP, including hybrid, balanced hybrid, and advanced distance vector routing protocol.

Add a note hereRouters running link-state and hybrid protocols use multicast packets to communicate with each other.

Add a note here Table 7-1 summarizes the IP routing protocol types.

Add a note here Table 7-1: IP Routing Protocols
Open table as spreadsheet

Add a note hereCategory

Add a note hereRouting Protocol

Add a note hereDistance vector

Add a note hereRIPv1, RIPv2, IGRP

Add a note hereLink-state

Add a note hereOSPF, Integrated IS-IS

Add a note hereHybrid

Add a note hereEIGRP

Distance Vector Example

Add a note hereA distance vector router’s understanding of the network is based on its neighbor’s perspective of the topology; consequently, the distance vector approach is sometimes referred to as routing by rumor. Routers running traditional distance vector protocols periodically send their complete routing tables to all connected neighbors. Convergence might be slow because triggered updates are not typically used (RIPv2 is an exception) and loop detection timers are long. In large networks, running a distance vector protocol might cause routing tables to become enormous and result in a lot of traffic on the links.


Note

Add a note hereA distance vector routing protocol’s routing-by-rumor behavior and periodic updates might result in inconsistent routing information on routers within a network, which in turn might result in routing loops. Loop-avoidance mechanisms (including hold-down timers, route poisoning, poison reverse, and split horizon) are incorporated into modern distance vector protocols to prevent routing loops; however, these mechanisms result in slower convergence times compared to link-state or hybrid protocols.


Note

Add a note here Triggered updates (also called flash updates or gratuitous updates) are sent only when a change occurs (the link goes down or comes up or link parameters that affect routing, such as bandwidth, change).

Add a note hereAlthough, as stated, most traditional distance vector protocols do not send triggered updates, the Cisco implementations of all IP distance vector protocols do send triggered updates.

Add a note here Figure 7-3 shows a sample network that runs a distance vector protocol. In this network, the routing updates are periodic and include the entire routing table.

Click to collapse
Add a note hereFigure 7-3: Distance Vector Routing Periodically Sends the Entire Routing Table

Add a note here RIPv2, which is a standardized protocol developed from the RIPv1 protocol, is an example of a distance vector protocol. The characteristics of RIPv2 include the following:

  • Add a note hereThe hop count is used as the metric for path selection.

  • Add a note hereThe maximum allowable hop count is 15.

  • Add a note hereBy default, routing updates are sent every 30 seconds (RIPv1 uses broadcast, and RIPv2 uses multicast).

  • Add a note hereRIPv2 supports variable-length subnet masking (VLSM); RIPv1 does not. Chapter 6, “Designing IP Addressing in the Network,” describes VLSM.

Link-State Example

Add a note hereBoth OSPF and Integrated IS-IS use the Hello protocol for establishing neighbor relationships. Those relationships are stored in a neighbor table (also called an adjacencies database). Each router learns a complete network topology from information shared through these neighbor relationships. That topology is stored in the router’s link-state database (LSDB), also called the topology table or topology database. Each router uses this topology and the SPF algorithm to create a shortest-path tree for all reachable destinations. Each router selects the best routes from its SPF tree and places them in its routing table (also called the forwarding database).

Add a note here Figure 7-4 shows a network that uses a link-state protocol. Triggered updates, which include data on the state of only links that have changed, are sent in this network.

Click to collapse
Add a note hereFigure 7-4: Link-State Routing Sends Changed Data Only When There Is a Change

Add a note hereIn link-state protocols, the information about connected links (including the subnets on those links) on all routers is flooded throughout the network or to a specific area of the network. Therefore, all routers in the network have detailed knowledge of the entire network. In contrast, routers running a distance vector routing protocol receive knowledge about only the best routes from their neighbors.

Add a note hereAfter the initial exchange of all link states and on reaching the full (converged) state of operation, almost no periodic updates are sent through the network. (In OSPF, periodic updates are sent every 30 minutes for each specific route, but not at the same time for all routes, reducing the routing traffic volume.) Triggered updates are flooded through the network only when a change in a link state occurs (the link goes down, comes up, or link parameters that affect routing—such as bandwidth—are changed). Only periodic hello messages are sent between neighbors to maintain and verify neighbor relationships.

Add a note here Most of the control packets used in link-state operations are sent as multicast packets, which might cause problems when deploying link-state protocols in nonbroadcast multiaccess (NBMA) networks, such as with Frame Relay or ATM topologies.

Add a note here Routing Protocol Metrics

Add a note hereThis section introduces routing protocol metrics and compares the metrics used by different routing protocols.

What Is a Routing Metric?

Add a note hereDifferent routing protocols base their metric on different measurements, including hop count, interface speed, or more-complex metrics. Most routing protocols maintain databases containing all the networks that the routing protocol recognizes and all the paths to each network. If a routing protocol recognizes more than one way to reach a network, it compares the metric for each different path and chooses the path with the lowest metric. If multiple paths have the same metric, a maximum of 16 can be installed in the routing table, and the router can perform load balancing among them. EIGRP can also perform load balancing between unequal-cost paths.


Note

Add a note hereBefore Cisco IOS Release 12.3(2)T, the maximum number of parallel routes (equal-cost paths) supported by IP routing protocols was 6; that maximum was changed to 16 in Cisco IOS Release 12.3(2)T.

Add a note here Figure 7-5 shows network 172.16.1.0, which is connected to Router A. The parameters for route metric calculation are forwarded in routing protocol updates.

Click to collapse
Add a note hereFigure 7-5: Routing Protocol Metrics Are Passed in Updates

Add a note here In this case, the EIGRP method of route metric parameters is used, and the minimum bandwidth and cumulative delay influence best path selection (the path with the highest minimum bandwidth and lowest delay is preferred). Figure 7-5 shows the following steps:

Add a note here Step 1

Add a note hereRouter A, which is the originator of the route 172.16.1.0, sends the initial metric values to Router B.

Add a note here Step 2

Add a note hereRouter B takes into account the parameters of its link toward Router A, adjusts the parameters (bandwidth, delay, hop count) appropriately, calculates its metric toward the 172.16.1.0 network, and sends the routing update to Router C.

Add a note here Step 3

Add a note hereRouter C adjusts the parameters again and calculates its metric toward the destination network 172.16.1.0 from those parameters.

Metrics Used by Routing Protocols

Add a note hereDifferent routing protocols calculate their routing metrics from different parameters and with different formulas. Some use simple metrics (such as RIPv1 and RIPv2), and some use complex metrics (such as EIGRP).

Add a note hereRIPv1 and RIPv2 use only the hop count to determine the best path (the path with the smallest hop count is preferred). Because they do not consider bandwidth, RIPv1 and RIPv2 are not suitable for networks that have significantly different transmission speeds on redundant paths. For networks that use diverse media on redundant paths, routing protocols must account for bandwidth and possibly the delay of the links.

Add a note hereBy default EIGRP uses the minimum bandwidth and accumulated delay of the path toward the destination network in its metric calculation. Other parameters (reliability and load) can also be used, but they should be configured only if the consequences are fully understood. If misconfigured, they might affect convergence and cause routing loops.


Note

Add a note hereOn Cisco routers, the bandwidth and delay metrics can be manually configured and do not necessarily reflect the link’s true speed.

Add a note hereThese bandwidth and delay metrics should be changed only if the consequences are well understood. For example, a bandwidth change might affect the QoS provided to data. As another example, EIGRP limits the amount of routing protocol traffic it sends to a percentage of the bandwidth value; changing the value could result in either too much bandwidth being used for routing protocol updates or updates not being sent in a timely manner.

Add a note here EIGRP’s minimum bandwidth is the minimum (slowest) bandwidth along the path. An interface’s bandwidth is either the default value of the interface or as specified by the bandwidth command—this command is usually used on serial interfaces.


Note

Add a note hereIn earlier Cisco IOS releases, the default bandwidth on all serial ports was T1, or 1.544 megabits per second (Mbps). In the latest Cisco IOS releases, the default bandwidth varies with interface type.

Add a note hereIn the case of link-state protocols (OSPF and IS-IS), a cumulative cost or metric is used (the lowest cost or metric path is selected). OSPF uses cost for path calculation, usually reflecting the link’s bandwidth. As a result, the highest accumulated bandwidth (lowest cost) is used to select the best path. The IS-IS interface metric defaults to 10 on Cisco routers; this value can be changed, to reflect different bandwidths, for example.


Note

Add a note hereThe IS-IS metric is known as the metric; the IS-IS specification defines four different types of metrics. All routers support Cost, the default metric. Delay, Expense, and Error are optional metrics. The default Cisco implementation of IS-IS uses Cost only, but the Cisco IOS does allow all four metrics to be set with optional parameters in the isis metric command.

Add a note hereBGP uses the AS-path attribute as part of its metric. The length of this attribute is the number of autonomous systems that must be traversed to reach a destination and is usually a factor that influences the path selection. BGP incorporates additional path attributes that can influence routing decisions; these can be manually configured.

Add a note here Routing Protocol Convergence

Add a note hereWhenever a change occurs in a network’s topology, all the routers in that network must learn the new topology. This process is both collaborative and independent; the routers share information with each other, but they must calculate the impact of the topology change independently. Because they must mutually develop an independent agreement on the new topology, they are said to converge on this consensus.

Add a note here Convergence properties include the speed of propagation of routing information and the calculation of optimal paths. The quicker the convergence, the more optimal the routing protocol is said to be.

Add a note hereNetwork convergence must occur whenever a new routing protocol starts and whenever a change takes place in the network. It occurs in both new networks and those that are already operational. Convergence is also important when changes occur in the network.

Add a note hereA network is not completely operable until it has converged. Therefore, short convergence times are required for routing protocols.

RIPv2 Convergence Example

Add a note hereRIPv2 is a distance vector protocol that periodically propagates its routing information. Distance vector protocols use the principle of hold-down to prevent routing loops. Putting a route in hold-down after the route has failed (perhaps due to a link failure) means that if a routing update arrives with the same or a worse metric, the new route is not installed until the hold-down timer expires. Even though the destination might no longer be reachable, a route in hold-down is still used to forward traffic during the entire hold-down period.

Add a note here Figure 7-7 shows a network running RIPv2; the Ethernet link (Network N) between Routers A and C has failed. The following are the RIPv2 convergence steps:

Add a note here Step 1

Add a note hereRouter C detects the link failure and sends a triggered update to Routers D and B. A triggered update is sent because something happened. In contrast, a periodic update is sent periodically—every 30 seconds, in the case of RIPv1 and RIPv2. The route is poisoned (sent with an infinite metric indicating that the route is unreachable) to B and D and is removed from Router C’s routing table.

Add a note here Step 2

Add a note hereRouter C sends a request to its neighbors for an alternative path to network N. A broadcast request is used for RIPv1, and a multicast request is used for RIPv2.

Add a note here Step 3

Add a note here Router D does not report an alternative path; Router B reports a route with a worse metric.

Add a note hereThe route via B is immediately placed in Router C’s routing table. Note that Router C does not put Network N in hold-down because Router C knows that the link failed and has already removed the entry from its routing table.

Add a note here Step 4

Add a note hereRouter C advertises the route via B in a periodic update to D.

Add a note hereThere is no change to Router D’s table because Router D has the route in hold-down.

Add a note here Step 5

Add a note hereWhen Router D’s hold-down timer expires, the route is added to the table and is propagated to Router E in a periodic update.

Image from book
Add a note hereFigure 7-7: RIPv2 Convergence Example

Add a note hereTherefore, the convergence time at Router E is the hold-down time plus one or two update intervals.


Note

Add a note hereThe default hold-down time is 180 seconds for RIPv1 and RIPv2. This value can be adjusted manually, but this should be done only if necessary and in the entire network to ensure consistency.

Comparison of Routing Protocol Convergence

Add a note hereAs shown in Figure 7-8, different routing protocols need different amounts of time to converge in a given network. Although the convergence depends on the network’s topology and structure, pure distance vector protocols are slower to converge than link-state protocols. The use of periodic updates and the hold-down mechanism are the main reasons for slow convergence. As a result, the fast-converging protocols should be used when the network’s convergence time is crucial.

Click to collapse
Add a note hereFigure 7-8: Routing Protocol Convergence Comparison for the Network Shown in Figure 7-7

Add a note here Link-state protocols usually converge much more quickly because they instantly propagate routing updates. Whenever a change occurs in a link’s state, a link-state update is flooded through the entire network. There is no need to wait for the hold-down timer to expire or for the next periodic update, as with distance vector protocols.

Add a note hereEIGRP is a special case because it incorporates the distance vector principle of metric propagation (it sends only the best routes to the neighbors). However, it does not have periodic updates, nor does it implement the principle of hold-downs. The most distinct feature of EIGRP is that it stores all feasible backup routes in its topology table. When a backup route exists for a lost destination, the switchover to the best backup route is almost immediate and involves no action from other routers. Therefore, very fast convergence can be achieved with proper EIGRP deployment.

Add a note here Flat Versus Hierarchical Routing Protocols

Add a note hereThis section discusses these two types of routing protocols.

Flat Routing Protocols

Add a note hereFlat routing protocols have no means of limiting route propagation in a major network (within a Class A, B, or C network) environment. These protocols are typically classful distance vector protocols.

Add a note here Recall from Chapter 6 that classful means that routing updates do not include subnet masks and that the protocol performs automatic route summarization on major network (class) boundaries. Summarization cannot be done within a major network. These protocols support only fixed-length subnet masking (FLSM); they do not support VLSM.

Add a note hereRecall also that distance vector protocols periodically send entire routing tables to neighbors. Distance vector protocols do not scale well because, in a large network, they produce significant volumes of routing information that consume too many network resources (CPU, bandwidth, memory). These resources should be available to the routed traffic (application data and user traffic) instead.

Add a note hereTwo examples of flat routing protocols are RIPv1 and RIPv2. Note, however, that RIPv2 is a classless protocol. Figure 7-9 illustrates a flat network and a hierarchical network.

Click to collapse
Add a note hereFigure 7-9: Flat and Hierarchical Networks

Hierarchical Routing Protocols

Add a note hereTo solve the problems associated with flat routing protocols, additional features are implemented in hierarchical routing protocols to support large networks—for example, some support an area-based design.

Add a note hereHierarchical routing protocols are typically classless link-state protocols. Recall from Chapter 6 that classless means that routing updates include subnet masks in their routing updates; therefore, the routing protocol supports VLSM.

Add a note here Hierarchy is part of the implementation of link-state protocols with the concept of backbone and nonbackbone areas. With link-state protocols such as OSPF and IS-IS, large networks are divided into multiple areas.

Add a note hereRoute summarization can be performed manually in hierarchical protocols and is required in most cases. With the help of route summarization, smaller routing updates propagate among areas, resulting in higher scalability. Instabilities in one part of the network are isolated, and convergence is greatly improved. Summarization can be performed on an arbitrary bit boundary within an IP address. Note, however, that OSPF supports summarization on only specific routers called area border routers and autonomous system boundary routers.

Add a note hereAlthough it is a classless hybrid protocol, EIGRP is considered a flat routing protocol because it is not area-based. Because EIGRP also supports manual summarization, EIGRP can be used in a hierarchical network design by dividing the network into areas. A hierarchical design is not necessary in EIGRP, but one is recommended for large networks.


Note

Add a note hereAlthough it too is classless and supports manual summarization, RIPv2 is considered a flat protocol. RIPv2 is not recommended for large networks because it is a distance vector protocol.



0 comments

Post a Comment