27
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

Embed Size (px)

Citation preview

Page 1: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1

Determining IP Routes

Introducing Distance Vector Routing

Page 2: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-2

Outline

• Overview

• Distance Vector Route Selection

• Routing Information Maintenance

• Routing Inconsistencies with Distance Vector Routing Protocols

• Count to Infinity Prevention

• Techniques to Eliminate Routing Loops

• Implementation of Techniques to Eliminate Routing Loops

• Summary

Page 3: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-3

• Routers pass periodic copies of their routing table to neighboring routers and accumulate distance vectors.

Distance Vector Routing Protocols

Page 4: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-4

• Routers discover the best path to destinations from each neighbor.

Sources of Information and Discovering Routes

Page 5: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-5

Selecting the Best Route with Metrics

Page 6: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-6

• Updates proceed step by step from router to router.

Maintaining Routing Information

Page 7: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-7

• Each node maintains the distance from itself to each possible destination network.

Inconsistent Routing Entries

Page 8: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-8

• Slow convergence produces inconsistent routing.

Inconsistent Routing Entries (Cont.)

Page 9: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-9

• Router C concludes that the best path to network 10.4.0.0 is through Router B.

Inconsistent Routing Entries (Cont.)

Page 10: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-10

• Router A updates its table to reflect the new but erroneous hop count.

Inconsistent Routing Entries (Cont.)

Page 11: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-11

• The hop count for network 10.4.0.0 counts to infinity.

Count to Infinity

Page 12: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-12

• A limit is set on the number of hops to prevent infinite loops.

Defining a Maximum

Page 13: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-13

• Packets for network 10.4.0.0 bounce (loop) between Routers B and C.

Routing Loops

Page 14: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-14

• It is never useful to send information about a route back in the direction from which the original information came.

Split Horizon

Page 15: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-15

• Routers advertise the distance of routes that have gone down to infinity.

Route Poisoning

Page 16: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-16

• Poison reverse overrides split horizon.

Poison Reverse

Page 17: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-17

• The router keeps an entry for the “possibly down state” in the network, allowing time for other routers to recompute for this topology change.

Holddown Timers

Page 18: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-18

• The router sends updates when a change in its routing table occurs.

Triggered Updates

Page 19: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-19

Eliminating Routing Loops

Page 20: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-20

Eliminating Routing Loops (Cont.)

Page 21: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-21

Eliminating Routing Loops (Cont.)

Page 22: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-22

Eliminating Routing Loops (Cont.)

Page 23: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-23

Eliminating Routing Loops (Cont.)

Page 24: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-24

Eliminating Routing Loops (Cont.)

Page 25: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-25

Summary

• Distance vector routing protocols generate periodic routing updates addressed to directly connected routing devices. Routers running a distance vector routing protocol send periodic updates even if there are no changes in the network.

• When a router receives an update from a neighbor’s router, the router compares the update with its own routing table. The router adds the cost of reaching the neighbor’s router to the path cost reported by the neighbor to establish a new metric.

• Routing inconsistencies occur if slow internetwork convergence or a new configuration causes incorrect routing entries.

Page 26: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-26

Summary (Cont.)

• Distance vector protocols define infinity as some maximum number. The routing protocol then permits the routing table update loop until the metric exceeds its maximum allowed value.

• There are five techniques for eliminating routing loops on distance vector routing networks: split horizon, route poisoning, poison reverse, holddown timers, and triggered updates.

• All five techniques can be used together to eliminate routing loops in area networks.

Page 27: © 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing

© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-27