41
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

Embed Size (px)

Citation preview

Page 1: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

1© 2003, Cisco Systems, Inc. All rights reserved.

CCNA 2 Module 7 Distance Vector Routing

Protocols

Page 2: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

222© 2003, Cisco Systems, Inc. All rights reserved.

Objectives

• Distance vector routing

• RIP

• IGRP

Page 3: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

333© 2003, Cisco Systems, Inc. All rights reserved.

Overview

• Dynamic routing makes it possible to avoid the configuration of static routes.

• Dynamic routing makes it possible to avoid the time-consuming and exacting process of configuring static routes.

• Dynamic routing also makes it possible for routers to react to changes in the network and to adjust their routing tables accordingly.

• However, dynamic routing can cause problems.

Page 4: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

444© 2003, Cisco Systems, Inc. All rights reserved.

Distance Vector Updates

Routing table updates occur periodically or when the topology in a distance vector protocol network changes.

Page 5: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

555© 2003, Cisco Systems, Inc. All rights reserved.

Problem: Routing Loops

• Routing loops can occur when inconsistent routing tables are not updated due to slow convergence in a changing network.

Page 6: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

666© 2003, Cisco Systems, Inc. All rights reserved.

Problem: Counting to Infinity

This condition, which is called count to infinity, loops packets around the network in spite of the fact that the destination network, which is Network 1, is down.

Page 7: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

777© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Defining a Maximum for Infinity

The invalid updates of Network 1 will continue to loop until some other process stops the looping.

Page 8: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

888© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Split Horizon

Some routing loops occur when incorrect information that is sent back to a router contradicts the correct information that the router originally distributed.

Page 9: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

999© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Route Poisoning

Route poisoning is used by various distance vector protocols to overcome large routing loops and offer detailed information when a subnet or network is not accessible. To accomplish this, the hop count is usually set to one more than the maximum.

Page 10: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

101010© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Triggered Updates

• A triggered update is sent immediately in response to some change in the routing table.

• The router that detects a topology change immediately sends an update message to adjacent routers.

• Triggered updates, used in conjunction with route poisoning, ensure that all routers know of failed routes before any holddown timers can expire.

Page 11: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

111111© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Holddown Timers

Page 12: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

121212© 2003, Cisco Systems, Inc. All rights reserved.

Solution: Holddown TimersContinued

• When router receives an update indicating that network is inaccessible, the router marks the route as inaccessible and starts a holddown timer.

• If at any time before the holddown timer expires an update is received from the same neighbor indicating that the network is again accessible, the router marks the network as accessible and removes the holddown timer.

• If an update arrives from a different neighboring router with a better metric than originally recorded for the network, the router marks the network as accessible and removes the holddown timer.

Page 13: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

131313© 2003, Cisco Systems, Inc. All rights reserved.

Key Characteristics of RIP

• To prevent indefinite routing loops, RIP implements a limit on the number of hops allowed in a path from a source to a destination.

• The maximum number of hops in a path is 15.

• RIP implements split horizon and holddown mechanisms to prevent the propagation of incorrect routing information.

Page 14: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

141414© 2003, Cisco Systems, Inc. All rights reserved.

RIP V1 and RIP V2

• RIP has evolved over the years from a Classful Routing Protocol, RIP Version 1 (RIP v1), to a Classless Routing Protocol, RIP Version 2 (RIP v2).

• RIP v2 enhancements include:

• Ability to carry additional packet routing information.

• Authentication mechanism to secure table updates.

• Supports variable length subnet masking (VLSM).

Page 15: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

151515© 2003, Cisco Systems, Inc. All rights reserved.

Configuring RIP

• Using router rip and network commands to Enable RIP

• Enabling RIP on an IP-addressed network

• Monitoring IP packet flow using the show ip protocol command

• The show ip route command

Page 16: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

161616© 2003, Cisco Systems, Inc. All rights reserved.

Configuring RIP

Page 17: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

171717© 2003, Cisco Systems, Inc. All rights reserved.

Configuring RIP (triggered update)

• A router running RIP can be configured to send a triggered update when the network topology changes using the ip rip triggered command.

• This command is issued only on serial interfaces at the router(config-if)# ip rip triggered

Page 18: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

181818© 2003, Cisco Systems, Inc. All rights reserved.

Using the ip classless Command

• Sometimes a router receives packets destined for an unknown subnet of a network that has directly connected subnets.

• In order for the Cisco IOS software to forward these packets to the best supernet route possible, use the ip classless global configuration command.

• A supernet route is a route that covers a greater range of subnets with a single entry. For example, an enterprise uses the entire subnet 10.10.0.0 /16, then a supernet route for 10.10.10.0 /24 would be 10.10.0.0 /16.

• When this feature is disabled, any packets received that are destined for a subnet that numerically falls within the router’s subnetwork addressing scheme will be discarded.

Page 19: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

191919© 2003, Cisco Systems, Inc. All rights reserved.

Using the ip classless CommandContinued

Page 20: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

202020© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues

• To reduce routing loops and counting to infinity, RIP uses the following:

– Defining infinity

– Split horizon

– Route poisoning & poison reverse

– Triggered updates

– Holddown timers

Page 21: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

212121© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues (Continued)

• The split horizon rule is based on the theory that it is not useful to send information about a route back in the direction from which it came.

• The following command is used to disable split horizon:

GAD(config-if)#no ip split-horizon

Page 22: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

222222© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues (Continued)

• Holddown timers help prevent counting to infinity but also increase convergence time.

• The default holddown for RIP is 180 seconds. This will prevent any inferior route from being updated but may also prevent a valid alternative route from being installed.

• The holddown timer can be decreased to speed up convergence but should be done with caution.

• To change the holddown timer:

Router(config-router)#timers basic update invalid holddown flush

Page 23: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

232323© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues (Continued)

• Ideally, the timer should be set just longer than the longest possible update time for the internetwork.

Page 24: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

242424© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues (Continued)

• One additional item that affects convergence time, and is configurable, is the update interval.

• The default RIP update interval in Cisco IOS is 30 seconds.

• This can be configured for longer intervals to conserve bandwidth, or for shorter intervals to decrease convergence time.

• To change the update internal:

GAD(config-router)#update-timer seconds

Page 25: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

252525© 2003, Cisco Systems, Inc. All rights reserved.

RIP Configuration Issues (Continued)

• Another issue with routing protocols is the unwanted advertisement of routing updates out a particular interface.

• To control the set of interfaces that will exchange routing updates, the network administrator can disable the sending of routing updates on specified interfaces by configuring the passive-interface command.

Page 26: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

262626© 2003, Cisco Systems, Inc. All rights reserved.

The show ip protocols Command

Page 27: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

272727© 2003, Cisco Systems, Inc. All rights reserved.

The show ip route Command

Page 28: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

282828© 2003, Cisco Systems, Inc. All rights reserved.

Troubleshooting RIP Update Issues

• debug ip rip

• show ip rip database

• show ip protocols {summary}

• show ip route

• debug ip rip {events}

• show ip interface brief

Page 29: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

292929© 2003, Cisco Systems, Inc. All rights reserved.

Preventing Routing Updates through an Interface

Page 30: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

303030© 2003, Cisco Systems, Inc. All rights reserved.

Load Balancing with RIP

• Load balancing is a concept that allows a router to take advantage of multiple best paths to a given destination.

• These paths are either statically defined by a network administrator or calculated by a dynamic routing protocol such as RIP.

• RIP is capable of load balancing over as many as six equal-cost paths, with four paths being default.

• RIP performs what is referred to as “round robin” load balancing. This means that RIP takes turns forwarding packets over the parallel paths.

Page 31: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

313131© 2003, Cisco Systems, Inc. All rights reserved.

Administrative Distance

Page 32: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

323232© 2003, Cisco Systems, Inc. All rights reserved.

Integrating Static Route with RIP

• A router running RIP can receive a default route via an update from another router running RIP.

• Another option is for the router to generate the default route itself.

• The administrator can override a static route with dynamic routing information by adjusting the administrative distance values.

Page 33: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

333333© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Features

• IGRP is a distance vector routing protocol developed by Cisco. IGRP sends routing updates at 90 second intervals, advertising networks for a particular autonomous system.

• By default, the IGRP routing protocol uses bandwidth and delay as metrics.

• Additionally, IGRP can be configured to use a combination of variables to determine a composite metric. Those variables include:

• Bandwidth, Delay, Load and Reliability

Page 34: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

343434© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Commands

• Using router igrp and network commands to enable IGRP

• Enabling IGRP on an IP-addressed network

• Monitoring IP packet flow using the show ip protocol command

• The show ip interfaces command

• The show ip route command

Page 35: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

353535© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Metrics

• Bandwidth – The lowest bandwidth value in the path

• Delay – The cumulative interface delay along the path

• Reliability – The reliability on the link towards the destination as determined by the exchange of keepalives

• Load – The load on a link towards the destination based on bits per second

• By default, only bandwidth and delay are considered.

Page 36: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

363636© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Routes: Interior, System, & Exterior

Page 37: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

373737© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Stability Features

• Holddowns, Split horizons & Poison-reverse updates

Page 38: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

383838© 2003, Cisco Systems, Inc. All rights reserved.

IGRP Timer

• The update timer specifies how frequently routing update messages should be sent. The IGRP default for this variable is 90 seconds.

• The invalid timer specifies how long a router should wait before declaring that route invalid. The IGRP default for this variable is three times the update period.

• The holddown timer specifies the amount of time for which information about poorer routes is ignored. The IGRP default for this variable is three times the update timer period plus 10 seconds.

• Finally, the flush timer indicates how much time before a route is flushed from the routing table. The IGRP default is seven times the routing update timer.

• IGRP lacks support for variable length subnet masks (VLSM). Rather than develop an IGRP version 2 to correct this problem, Cisco has built upon IGRP's legacy of success with Enhanced IGRP.

Page 39: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

393939© 2003, Cisco Systems, Inc. All rights reserved.

Configuring IGRP

Page 40: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

404040© 2003, Cisco Systems, Inc. All rights reserved.

Verifying IGRP Configuration

• Some commands for checking IGRP configuration are as follows:

show interface interface

show running-config

show running-config interface interface

show running-config | begin interface interface

show running-config | begin igrp

show ip protocols

Page 41: 1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 7 Distance Vector Routing Protocols

414141© 2003, Cisco Systems, Inc. All rights reserved.

Troubleshooting IGRP

• The following commands are useful when troubleshooting IGRP:

show ip protocols {summary}

show ip route

debug ip igrp events IGRP protocol events

debug ip igrp transactions IGRP protocol transactions

ping

traceroute