ca ex s2 m04 distance vector routing protocols

44
CCNA Semester 2 Chapter 4 Distance Vector Routing Protocols CCNA Exploration version 4.0

Upload: neo-kim

Post on 23-Jun-2015

1.785 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Ca Ex S2 M04 Distance Vector Routing Protocols

CCNA – Semester 2

Chapter 4 –

Distance Vector Routing Protocols

CCNA Exploration version 4.0

Page 2: Ca Ex S2 M04 Distance Vector Routing Protocols

2

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: Ca Ex S2 M04 Distance Vector Routing Protocols

3

Introduction to Distance Vector

Routing Protocols

Page 4: Ca Ex S2 M04 Distance Vector Routing Protocols

4

Distance Vector Routing Protocols

• Dynamic routing protocols help the network administrator

overcome the time-consuming and exacting process of

configuring and maintaining static routes.

• 28 routers shown in the figure? What happens when a link goes

down? How do you ensure that redundant paths are available?

Dynamic routing is the most common choice for large networks

like the one shown.

Page 5: Ca Ex S2 M04 Distance Vector Routing Protocols

5

Distance Vector Routing Protocols

– Routing Information Protocol (RIP): RFC 1508

• Hop count is used as the metric

• Max hop is 15

• Routing updates are broadcast or multicast every 30 seconds

– Interior Gateway Routing Protocol (IGRP)

• Proprietary protocol developed by Cisco.

• Bandwidth, delay, load and reliability are used to create a composite metric.

• Routing updates are broadcast every 90 seconds,

• IGRP is the predecessor of EIGRP and is now obsolete

– Enhanced Interior Gateway Routing Protocol (EIGRP)

• It can perform unequal cost load balancing.

• It uses Diffusing Update Algorithm (DUAL) to calculate the shortest path.

• Routing updates are sent only when there is a change in the topology.

Page 6: Ca Ex S2 M04 Distance Vector Routing Protocols

6

Distance Vector Technology

• 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 7: Ca Ex S2 M04 Distance Vector Routing Protocols

7

Distance Vector Technology

• Characteristics of Distance Vector routing protocols:

Periodic updates

Neighbors: Routing by rumor

Broadcast updates 255.255.255.255

Entire routing table is included with routing update

Page 8: Ca Ex S2 M04 Distance Vector Routing Protocols

8

Routing Protocol Algorithms

• At the core of the distance vector protocol is the algorithm. The

algorithm is used to calculate the best paths and then send that

information to the neighbors.

• Routing Protocol Algorithm:

- Defined as a procedure for accomplishing a certain task

Page 9: Ca Ex S2 M04 Distance Vector Routing Protocols

9

Routing Protocol Characteristics

• Routing Protocol Characteristics

• Criteria used to compare routing protocols includes

Time to convergence

Scalability

Classless (use of VLSM) or Classful

Resource usage

Implementation & maintenance

Page 10: Ca Ex S2 M04 Distance Vector Routing Protocols

10

Routing Protocol Characteristics

Page 11: Ca Ex S2 M04 Distance Vector Routing Protocols

11

Distance Vector Routing Protocols

• 4.1.4.2

Page 12: Ca Ex S2 M04 Distance Vector Routing Protocols

12

Network Discovery

Page 13: Ca Ex S2 M04 Distance Vector Routing Protocols

13

Cold Start

• Router initial start up

After a cold start and before the exchange of

routing information, the routers initially discover

their own directly connected networks and subnet

masks.

Page 14: Ca Ex S2 M04 Distance Vector Routing Protocols

14

Exchange of Routing Information

Initial Exchange:

• 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

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 15: Ca Ex S2 M04 Distance Vector Routing Protocols

15

Initial Exchange of Routing Information

10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0

10.1.0.0 0

Routing Table

10.2.0.0 0

10.2.0.0 0

Routing Table

10.3.0.0 0

10.3.0.0 0

Routing Table

10.4.0.0 0

10.3.0.0 1 10.1.0.0 1 10.2.0.0 1

10.4.0.0 1

10.4.0.0 2 10.1.0.0 2

Page 16: Ca Ex S2 M04 Distance Vector Routing Protocols

16

Convergence

• 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

update

– Speed of calculating

routes

Page 17: Ca Ex S2 M04 Distance Vector Routing Protocols

17

Routing Table Maintenance

Page 18: Ca Ex S2 M04 Distance Vector Routing Protocols

18

Periodic Updates : RIPv1 & IGRP

• Periodic updates are time intervals in which a router sends out its entire routing table.

• Changes may occur for several reasons, including:

– Failure of a link

– Introduction of a new link

– Failure of a router

– Change of link parameters

Page 19: Ca Ex S2 M04 Distance Vector Routing Protocols

19

Periodic Updates : RIPv1 & IGRP

• RIP uses 4 timers

– Update timer 30s

– Invalid timer 180s

– Holddown timer 180s

– Flush timer 240s

Page 20: Ca Ex S2 M04 Distance Vector Routing Protocols

20

Bounded Updates: EIGRP

• EIRPG routing updates are

– Partial updates

– Triggered by topology changes

– Bounded: meaning the propagation of partial updates

are automatically bounded so that only those routers

that need the information are updated.

– Non periodic

Page 21: Ca Ex S2 M04 Distance Vector Routing Protocols

21

Triggered Updates

• Conditions in which triggered updates are sent

– Interface changes state

– Route becomes unreachable

– Route is placed in routing table

Page 22: Ca Ex S2 M04 Distance Vector Routing Protocols

22

Random Jitter

• Synchronized updates

– A condition where multiple

routers on multi access LAN

segments transmit routing

updates at the same time.

Problems with synchronized updates

• Bandwidth consumption

• Packet collisions

• Solution to problems with synchronized updates

Used of random variable called RIP_JITTER, 0% to 15%

of the specified update interval (25 to 30 seconds for the

default 30-second interval)

Page 23: Ca Ex S2 M04 Distance Vector Routing Protocols

23

Routing Loop

Page 24: Ca Ex S2 M04 Distance Vector Routing Protocols

24

Definitions & Implications

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

• The IP protocol has its own mechanism to prevent the possibility of a packet traversing the network endlessly. IP has a Time-to-Live (TTL) field and its value is decremented by 1 at each router. If the TTL is zero, the router drops the packet.

Page 25: Ca Ex S2 M04 Distance Vector Routing Protocols

25

Definitions & Implications

• 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 26: Ca Ex S2 M04 Distance Vector Routing Protocols

26

Count to Infinity

• This is a routing loop whereby packets bounce infinitely

around a network.

4.4.2.1

Page 27: Ca Ex S2 M04 Distance Vector Routing Protocols

27

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 28: Ca Ex S2 M04 Distance Vector Routing Protocols

28

Preventing Routing Loops with Holddown

Timers

• Network is unstable: a interface resets as up, then down,

then up again in rapid succession. The route is flapping.

Using triggered updates, the routers might react too quickly

and unknowingly create a routing loop. A routing loop could

also be created by a periodic update that is sent by the

routers during the instability. Holddown timers prevent

routing loops from being created by these conditions.

Holddown timers also help prevent the count to infinity

condition.

• Holddown timers allow a router to not accept any changes

to a route for a specified period of time

• Point of using holddown timers

– Allows routing updates to propagate through network

with the most current information.

Page 29: Ca Ex S2 M04 Distance Vector Routing Protocols

29

Holddown timers

Holddown timers work in the following way:

1. A router receives an update from a neighbor indicating

that a network that previously was accessible is now no

longer accessible.

Page 30: Ca Ex S2 M04 Distance Vector Routing Protocols

30

Holddown timers

2. The router marks the network as possibly down and starts

the holddown timer.

Page 31: Ca Ex S2 M04 Distance Vector Routing Protocols

31

Holddown timers

3. If an update with a better metric for that network is

received from any neighboring router during the holddown

period, the network is reinstated and the holddown timer is

removed.

Page 32: Ca Ex S2 M04 Distance Vector Routing Protocols

32

Holddown timers

4. If an update from any other neighbor is received during

the holddown period with the same or worse metric for

that network, that update is ignored. Thus, more time is

allowed for the information about the change to be

propagated.

Page 33: Ca Ex S2 M04 Distance Vector Routing Protocols

33

Holddown timers

5. Routers still forward packets to destination networks that

are marked as possibly down. This allows the router to

overcome any issues associated with intermittent

connectivity. If the destination network truly is unavailable

and the packets are forwarded, black hole routing is

created and lasts until the holddown timer expires.

Page 34: Ca Ex S2 M04 Distance Vector Routing Protocols

34

Split Horizon Rule

• Split Horizon rule:

– A router should not advertise a network through the

interface from which the update came.

4.4.5.1

Page 35: Ca Ex S2 M04 Distance Vector Routing Protocols

35

Split horizon with Poison Reverse or Route

Poisoning

• Route poisoning is used to mark the route as unreachable in a routing update that is sent to other routers.

• 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 36: Ca Ex S2 M04 Distance Vector Routing Protocols

36

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

Page 37: Ca Ex S2 M04 Distance Vector Routing Protocols

37

IP & TTL

• 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 38: Ca Ex S2 M04 Distance Vector Routing Protocols

38

Distance Vector Routing Protocols today

Page 39: Ca Ex S2 M04 Distance Vector Routing Protocols

39

RIP and EIGRP

• Factors used to determine whether to use RIP or EIGRP

include

– Network size

– Compatibility between models of routers

– Administrative knowledge

Page 40: Ca Ex S2 M04 Distance Vector Routing Protocols

40

RIP

• RIP:

– Supports split horizon & split horizon with poison reverse

– Capable of load balancing

– Easy to configure

– Works in a multi vendor router environment

• RIPv2 introduced the following improvements to RIPv1:

– Includes the subnet mask in the routing updates, making it a

classless routing protocol.

– Has authentication mechanism to secure routing table

updates.

– Supports variable length subnet mask (VLSM).

– Uses multicast addresses instead of broadcast.

– Supports manual route summarization.

Page 41: Ca Ex S2 M04 Distance Vector Routing Protocols

41

EIGRP

• Features:

– 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 42: Ca Ex S2 M04 Distance Vector Routing Protocols

42

Distance Vector Routing Protocols Compared

4.5.1.1

Page 43: Ca Ex S2 M04 Distance Vector Routing Protocols

43

Summary

Page 44: Ca Ex S2 M04 Distance Vector Routing Protocols

44