55
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts

CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

Embed Size (px)

Citation preview

Page 1: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

© 2007 Cisco Systems, Inc. All rights reserved. Cisco PublicITE PC v4.0Chapter 1 1

Distance Vector Routing Protocols

Routing Protocols and Concepts

Page 2: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Objectives Identify the characteristics of distance vector routing

protocols.

Describe the network discovery process of distance vector routing protocols using Routing Information Protocol (RIP).

Describe the processes to maintain accurate routing tables used by distance vector routing protocols.

Identify the conditions leading to a routing loop and explain the implications for router performance.

Recognize that distance vector routing protocols are in use today

Page 3: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Distance Vector Routing Protocols Examples of Distance Vector routing protocols:

Routing Information Protocol (RIP)

Interior Gateway Routing Protocol (IGRP)

Enhanced Interior Gateway Routing Protocol (EIGRP)

Page 4: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Distance Vector Routing Protocols

–The Meaning of Distance Vector:

•A router using distance vector routing protocols knows 2 things:

Distance to final destination

Vector, or direction, traffic should be directed

Page 5: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Characteristics of Distance Vector routing protocols:

Periodic updates

Neighbors

Broadcast updates

Entire routing table is included with routing update

Page 6: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Protocol Algorithm:-Defined as a procedure for accomplishing a certain task

Page 7: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Distance Vector Routing Protocols

Page 8: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Discovery Router initial start up (Cold Starts)

-Initial network discovery

Directly connected networks are initially placed in routing table

Page 9: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Initial Exchange of Routing Information

–If a routing protocol is configured then Routers will exchange routing information

Routing updates received from other routers

-Router checks update for new information

If there is new information:

-Metric is updated

-New information is stored in routing table

Page 10: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Exchange of Routing Information

–Router convergence is reached when

-All routing tables in the network contain the same network information

–Routers continue to exchange routing information

-If no new information is found then Convergence is reached

Page 11: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Discovery

Convergence must be reached before a network is considered completely operable

Speed of achieving convergence consists of 2 interdependent categories

-Speed of broadcasting routing information

-Speed of calculating routes

Page 12: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Maintenance Periodic Updates: RIPv1 & RIPv2

These are time intervals in which a router sends out its entire routing table.

Page 13: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Table Maintenance RIP uses 4 timers

-Update timer – When is next update due

-Invalid timer - How long to wait before marking as invalid route

-Holddown timer - stabilizes routing information and helps prevent routing loops

-Flush timer -When to remove from routing table

Page 14: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Bounded Updates: EIGRP EIGRP is “hybrid”distance vector

EIRPG routing updates are

-Partial updates

-Triggered by topology changes

-Bounded

-Non periodic

Page 15: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Triggered Updates

–Conditions in which triggered updates are sent

-Interface changes state

-Route becomes unreachable

-Route is placed in routing table

Page 16: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops

Routing loops are

A condition in which a packet is continuously transmitted within a series of routers without ever reaching its destination.

Page 17: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops

Routing loops may be caused by:

-Incorrectly configured static routes

-Incorrectly configured route redistribution

-Slow convergence

-Incorrectly configured discard routes

Routing loops can create the following issues

-Excess use of bandwidth

-CPU resources may be strained

-Network convergence is degraded

-Routing updates may be lost or not processed in a timely manner

Page 18: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops Count to Infinity

This is a routing loop whereby packets bounce infinitely around a network.

Page 19: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops- Setting a maximum Distance Vector routing protocols set a specified

metric value to indicate infinity

Once a router “counts to infinity” it marks the route as unreachable

Page 20: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops Preventing loops with holddown timers

-Holddown timers allow a router to not accept any changes to a route for a specified period of time.

-Point of using holddown timersAllows routing updates to propagate through network with the most current information.

Page 21: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops - Split Horizon rule: The Split Horizon Rule is used to prevent routing loops

A router should not advertise a network through the interface from which the update came.

Page 22: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Split horizon with poison reverse

The rule states that once a router learns of an unreachable route through an interface, advertise it as unreachable back through the same interface

Page 23: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Loops IP & TTL

–Purpose of the TTL field

The TTL field is found in an IP header and is used to prevent packets from endlessly

traveling on a network

How the TTL field works

-TTL field contains a numeric value

The numeric value is decreased by one by every router on the route to the destination.

If numeric value reaches 0 then Packet is discarded.

Page 24: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Routing Protocols Today Factors used to determine whether to use RIP or EIGRP

include

-Network size

-Compatibility between models of routers

-Administrative knowledge

Page 25: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIP

Features of RIP:

-Supports split horizon & split horizon with poison reverse

-Capable of load balancing

-Easy to configure

-Works in a multi vendor router environment

Page 26: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

EIGRP

Features of EIGRP:

-Triggered updates

-EIGRP hello protocol used to establish neighbor adjacencies

-Supports VLSM & route summarization

-Use of topology table to maintain all routes

-Classless distance vector routing protocol

-Cisco proprietary protocol

Page 27: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

© 2007 Cisco Systems, Inc. All rights reserved. Cisco PublicITE PC v4.0Chapter 1 28

RIP version 1

Routing Protocols and Concepts

Page 28: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPv1

RIP Characteristics

-A classful, Distance Vector (DV) routing protocol

-Metric = hop count

-Routes with a hop count > 15 are unreachable

-Updates are broadcast every 30 seconds

Page 29: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPv1 Message Format

• Command field – 1 for Request. 2 for Reply

• Version field – 1 or 2

• Address family identifier – 2 for IP

• IP address- Address of destination

• Metric – Hop Count

Page 30: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIP Operation - Messages

RIP uses 2 message types:

Request message

-This is sent out on startup by each RIP enabled interface

-Requests all RIP enabled neighbors to send routing table

Response message

-Message sent to requesting router containing routing table

Page 31: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPv1

IP addresses initially divided into classes

-Class A

-Class B

-Class C

RIP is a classful routing protocol

-Does not send subnet masks in routing updates

Page 32: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

RIPv1 Administrative

Distance

Page 33: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic RIPv1 Configuration Router RIP Command

–To enable RIP enter:

-Router rip at the global configuration prompt

-Prompt will look like R1(config-router)#

Page 34: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Basic RIPv1 Configuration

Specifying Networks

Use the network command to:

Enable RIP on all interfaces that belong to this network

Advertise this network in RIP updates sent to other routers every 30 seconds

Page 35: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Verification and Troubleshooting

Use the following commands:

-show ip route

-show ip protocols

-debug ip rip

Page 36: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Verification and Troubleshooting

show ip protocols command

-Displays routing protocol configured on router

Page 37: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Verification and Troubleshooting Debug ip rip command

-Used to display RIP routing updates as they are happening

Page 38: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More “advanced” options

Passive interface command

Used to prevent a router from sending updates through an interface but will still receive updates through that interface

-Example:

Router(config-router)#passive-interface interface-type interface-number

Router(config-router)#passive-interface FA0/0

Page 39: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 40© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Page 40: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 41© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Automatic Summarization The original scenario has

been modified such that:Three classful networks are used:

172.30.0.0/16

192.168.4.0/24

192.168.5.0/24

The 172.30.0.0/16 network is subnetted into three subnets:

172.30.1.0/24

172.30.2.0/24

172.30.3.0/24

The following devices are part of the 172.30.0.0/16 classful network address:All interfaces on R1S0/0/0 and Fa0/0 on R2

Page 41: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 42© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Remove old RIP Configs-To remove the

RIP routing process use the following

No router rip

Page 42: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 43© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Automatic Summarization Boundary Routers

–RIP automatically summarizes classful networks

–Boundary routers summarize RIP subnets from one major network to another.

Page 43: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 44© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Processing RIP Updates 2 Rules govern RIPv1 updates:

If a routing update and the interface it’s received on belong to the same network then the subnet mask of the interface is applied to the network in the routing update

If a routing update and the interface it’s received on belong to a different network then the classful subnet mask of the network is applied to the network in the routing update.

Page 44: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 45© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Automatic Summarization

Advantages of automatic summarization:

-The size of routing updates is reduced

-Single routes are used to represent multiple routes which results in faster lookup in the routing table.

Page 45: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 46© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Disadvantage of Automatic Summarization:

Does not support discontiguous networks

Automatic Summarization

Page 46: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 47© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Automatic Summarization

Discontiguous Topologies do not converge with RIPv1

A router will only advertise major network addresses out interfaces that do not belong to the advertised route.

Page 47: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 48© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Default Route and RIPv1

On R2 we have a default route pointing to R3. If we want all the routers in the 172.130.0.0 network to know about this default router we use the

Default-information originate command -This command is used to specify that the router is to originate default information, by propagating the static default route in RIP update.

Page 48: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 49© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary

RIP characteristics include:

Classful, distance vector routing protocol

Metric is Hop Count

Does not support VLSM or discontiguous subnets

Updates every 30 seconds

Rip messages are encapsulated in a UDP segment with source and destination ports of 520

Page 49: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 50© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary: Commands used by RIP

Command Command’s purpose

Rtr(config)#router rip Enables RIP routing process

Rtr(config-router)#network Associates a network with a RIP routing process

Rtr#debug ip rip used to view real time RIP routing updates

Rtr(config-router)#passive-interface fa0/0 Prevent RIP updates from going out an interface

Rtr(config-router)#default-information originate Used by RIP to propagate default routes

Rtr#show ip protocols Used to display timers used by RIP

Page 50: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 51© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Page 51: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 52© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary Characteristics of Distance Vector routing

protocols–Periodic updates

–RIP routing updates include the entire routing table

–Neighbors are defined as routers that share a link and are configured to use the same protocol

The network discovery process for D.V. routing protocol

–Directly connected routes are placed in routing table 1st

–If a routing protocol is configured then

•Routers will exchange routing information

–Convergence is reached when all network routers have the

same network information

Page 52: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 53© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary D.V. routing protocols maintains routing tables by

–RIP sending out periodic updates

–RIP using 4 different timers to ensure information is accurate and convergence is achieved in a timely manner

–EIGRP sending out triggered updates

D.V. routing protocols may be prone to routing loops– routing loops are a condition in which packets continuously traverse a network

–Mechanisms used to minimize routing loops include defining maximum hop count, holddown timers, split horizon, route poisoning and triggered updates

Page 53: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 54© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary Conditions that can lead to routing loops include

–Incorrectly configured static routes

–Incorrectly configured route redistribution

–Slow convergence

–Incorrectly configured discard routes

How routing loops can impact network performance includes:

–Excess use of bandwidth

–CPU resources may be strained

–Network convergence is degraded

–Routing updates may be lost or not processed

Page 54: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 55© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary

Routing Information Protocol (RIP)A distance vector protocol that has 2 versions

RIPv1 – a classful routing protocol

RIPv2 - a classless routing protocol

Enhanced Interior Gateway Routing Protocol (EIGRP)

–A distance vector routing protocols that has some features of link state routing protocols

–A Cisco proprietary routing protocol

Page 55: CCNA2 - 4 and 5 -Distance Vector Routing and Intro to RIP

ITE PC v4.0Chapter 1 56© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public