Upload
httpheiserzcom
View
221
Download
0
Embed Size (px)
Citation preview
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
1/66
Chapter 4 Distance Vector Routing Protocols
CCNA Ex loration version 4.0
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
2/66
Objectives
Identify the characteristics of distance vector routingprotocols.
Describe the network discovery process of distancevector routing protocols using Routing InformationProtocol (RIP).
Hc vin mng Bch Khoa - Website: www.bkacad.com 2
Describe the processes to maintain accurate routingtables used by distance vector routing protocols.
Identify the conditions leading to a routing loop andexplain the implications for router performance.
Recognize that distance vector routing protocols are inuse today
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
3/66
Introduction to Distance Vector
Hc vin mng Bch Khoa - Website: www.bkacad.com 3
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
4/66
Distance Vector Routing Protocols
Hc vin mng Bch Khoa - Website: www.bkacad.com 4
28 routers shown in the figure
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
5/66
Distance Vector Routing Protocols
Dynamic routing protocols help thenetwork administrator overcome thetime-consuming and exacting process
Hc vin mng Bch Khoa - Website: www.bkacad.com 5
routes.
What happens when a link goes down? How do you ensure that redundant
paths are available?
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
6/66
Distance Vector Routing Protocols
Routing Information Protocol(RIP): RFC 1508
Hop count is used as the metric
Hc vin mng Bch Khoa - Website: www.bkacad.com 6
Routing updates are broadcast
(ver1) or multicast (ver2) every30 seconds
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
7/66
Distance Vector Routing Protocols
Interior Gateway Routing Protocol (IGRP)
Proprietary protocol developed by Cisco.
Bandwidth, delay, load and reliabilityare used to create a composite metric.
Hc vin mng Bch Khoa - Website: www.bkacad.com 7
out ng up ates are roa cast everyseconds,
IGRP is the predecessor of EIGRP and
is now obsolete
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
8/66
Distance Vector Routing Protocols
Enhanced Interior Gateway RoutingProtocol (EIGRP)
It can perform unequal cost loadbalancing.
Hc vin mng Bch Khoa - Website: www.bkacad.com 8
It uses Diffusing Update Algorithm(DUAL) to calculate the shortestpath.
Routing updates are sent only whenthere is a change in the topology.
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
9/66
Distance Vector Technology
Hc vin mng Bch Khoa - Website: www.bkacad.com 9
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
10/66
Distance Vector Technology
The Meaning of Distance Vector: a router using distancevector routing protocols knows 2 things:
1. Distance to final destination2. Vector or direction traffic should be directed
Routers using distance vector routing are not aware of
Hc vin mng Bch Khoa - Website: www.bkacad.com 10
the network topology. The router knows only:
1. The direction or interface in which packets shouldbe forwarded
2. The distance or how far it is to the destinationnetwork
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
11/66
Characteristics of DV Routing Protocol
1.Periodic updates
2.Neighbors: Routing by rumor
Hc vin mng Bch Khoa - Website: www.bkacad.com 11
. 255.255.255.255
4.Entire routing table isincluded with routing update
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
12/66
Characteristics of DV Routing Protocol
Hc vin mng Bch Khoa - Website: www.bkacad.com 12
Animation 4.1.2.2
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
13/66
Routing Protocol Algorithms
The algorithm used for the routing
protocols defines the following processes:1. Mechanism for sending andreceiving routing information.
Hc vin mng Bch Khoa - Website: www.bkacad.com 13
Animation 4.1.3
2. Mechanism for calculating the bestpaths and installing routes in therouting table.
3. Mechanism for detecting andreacting to topology changes.
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
14/66
Routing Protocol Characteristics
Criteria used to compare routing protocols
includes:1. Time to convergence
Hc vin mng Bch Khoa - Website: www.bkacad.com 14
3. Classless (use of VLSM) or Classful
4. Resource usage
5. Implementation & maintenance
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
15/66
Routing Protocol Characteristics
Hc vin mng Bch Khoa - Website: www.bkacad.com 15
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
16/66
Distance Vector Routing Protocols
Hc vin mng Bch Khoa - Website: www.bkacad.com 16
Animation 4.1.4.2
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
17/66
Network Discovery
Hc vin mng Bch Khoa - Website: www.bkacad.com 17
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
18/66
Cold Start
Router initial start up After a cold start and before the exchange of
routing information, the routers initiallydiscover their own directly connected networksand subnet masks.
Animation 4.2.1.1
Hc vin mng Bch Khoa - Website: www.bkacad.com 18
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
19/66
Exchange of Routing Information
Initial Exchange:
If a routing protocol is configured then
Routers will exchange routing information Routing updates received from other routers.Routerchecks update for new information. If there is newinformation:
Animation 4.2.2.1
Hc vin mng Bch Khoa - Website: www.bkacad.com 19
1. Metric is updated2. New information is stored in routing table
Router convergence is reached when all routing tables inthe network contain the same network information
Routers continue to exchange routing information.
If no new information is found then Convergence isreached
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
20/66
Initial Exchange of Routing Information
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
Hc vin mng Bch Khoa - Website: www.bkacad.com 20
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
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
21/66
Convergence
Convergence must be reached before anetwork is considered completely operable
Speed of achieving convergence consists of
Hc vin mng Bch Khoa - Website: www.bkacad.com 21
1. Speed of broadcasting routinginformation update
2. Speed of calculating routes
Animation 4.2.4.1
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
22/66
Routing Table Maintenance
Hc vin mng Bch Khoa - Website: www.bkacad.com 22
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
23/66
Periodic Updates : RIPv1 & IGRP
Hc vin mng Bch Khoa - Website: www.bkacad.com 23
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
24/66
Periodic Updates : RIPv1 & IGRP
Periodic updates are time intervals inwhich a router sends out its entire routing
table. Changes may occur for several reasons,
includin :
Hc vin mng Bch Khoa - Website: www.bkacad.com 24
1. Failure of a link2. Introduction of a new link
3. Failure of a router4. Change of link parameters
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
25/66
Periodic Updates : RIPv1 & IGRP
Hc vin mng Bch Khoa - Website: www.bkacad.com 25
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
26/66
Periodic Updates : RIPv1 & IGRP
RIP uses 4 timersUpdate timer 30s
Hc vin mng Bch Khoa - Website: www.bkacad.com 26
Holddown timer 180s
Flush timer 240s
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
27/66
RIP Timers
Update 30 secs Update and Invalid timers are then reset.
Invalid 180 secs - Invalid timer expires, route nowunreachable but still in routing table until flush timerexpires. Holddown timer of 180 sec begins.
Holddown 180 secs Holddown timerexpires, will now accept a poorer route tosame network. Still in routing table
Flush 240 secs Route will now be
removed from therouting table.
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
28/66
Periodic Updates : RIPv1 & IGRP
Invalid Timer. If an update has not been received to refreshan existing route after 180 seconds (the default), the route ismarked as invalid by setting the metric to 16. The route is
retained in the routing table until the flush timer expires.
Flush Timer. By default, the flush timer is set for 240seconds, which is 60 seconds longer than the invalid timer.When the flush timer expires, the route is removed from therouting table.
Holddown Timer. This timer stabilizes routing informationand helps prevent routing loops during periods when the
topology is converging on new information. Once a route ismarked as unreachable, it must stay in holddown long enoughfor all routers in the topology to learn about the unreachablenetwork. By default, the holddown timer is set for 180
seconds.Hc vin mng Bch Khoa - Website: www.bkacad.com 28
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
29/66
Bounded Updates: EIGRP
EIRPG routing updates are
1. Partial updates2. Triggered by topology changes3. Bounded: meaning the propagation of
Hc vin mng Bch Khoa - Website: www.bkacad.com 29
partial updates are automaticallybounded so that only those routers thatneed the information are updated.
4. Non periodic
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
30/66
Triggered Updates
Conditions in which triggered updates are sent:
1. An interface changes state
2. A Route becomes unreachable3. A Route is placed in routing table
Hc vin mng Bch Khoa - Website: www.bkacad.com 30Animation 4.3.3
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
31/66
Triggered Updates
Two problems:
1. Packets containing the update message
can be dropped or corrupted by some linkin the network.
2. The tri ered u dates do not ha en
Hc vin mng Bch Khoa - Website: www.bkacad.com 31
instantaneously. It is possible that a routerthat has not yet received the triggeredupdate will issue a regular update at just
the wrong time, causing the bad route tobe reinserted in a neighbor that hadalready received the triggered update.
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
32/66
Random Jitter
Synchronized updates: a condition wheremultiple routers on multi access LAN segments
transmit routing updates at the same time. Problems:
Hc vin mng Bch Khoa - Website: www.bkacad.com 32
Packet collisions
Solution:
used of random variable called RIP_JITTER,0% to 15% of the specified update interval (25to 30 seconds for the default 30-secondinterval)
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
33/66
Random Jitter
Animation 4.3.4.1
Hc vin mng Bch Khoa - Website: www.bkacad.com 33
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
34/66
Routing Loop
Hc vin mng Bch Khoa - Website: www.bkacad.com 34
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
35/66
Definitions & Implications
Routing loop is a condition inwhich a packet is continuously
Hc vin mng Bch Khoa - Website: www.bkacad.com 35
routers without ever reaching itsdestination.
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
36/66
Definitions & Implications
Routing loops may be caused by:
1.Incorrectly configured static routes
Hc vin mng Bch Khoa - Website: www.bkacad.com 36
redistribution3.Slow convergence
4.Incorrectly configured discard routes
Animation 4.4.1.1
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
37/66
Definitions & Implications
Routing loops can create the following
conditions:1.Excess use of bandwidth
Hc vin mng Bch Khoa - Website: www.bkacad.com 37
. resources may e stra ne3.Network convergence is degraded4.Routing updates may be lost or not
processed in a timely manner
Animation 4.4.1.1
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
38/66
The Solutions
1.Defining a maximum metric toprevent count to infinity
2.Holddown timers
Hc vin mng Bch Khoa - Website: www.bkacad.com 38
.Split horizon4.Route poisoning or poisonreverse
5.Triggered updates
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
39/66
Definitions & Implications
Lab 4.4.1.2
Hc vin mng Bch Khoa - Website: www.bkacad.com 39
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
40/66
Count to Infinity
This is a routing loop whereby packets bounce infinitelyaround a network.
Hc vin mng Bch Khoa - Website: www.bkacad.com 40Animation 4.4.2.1
S
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
41/66
Setting a maximum
Distance Vector routing protocols set a specifiedmetric value to indicate infinity
Once a router counts to infinity it marks theroute as unreachable
Hc vin mng Bch Khoa - Website: www.bkacad.com 41
S i i
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
42/66
Setting a maximum
Hc vin mng Bch Khoa - Website: www.bkacad.com 42
P i R i L i h H ldd Ti
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
43/66
Preventing Routing Loops with Holddown Timers
Network is unstable: a interface resets as
up, then down, then up again in rapidsuccession. The route is flapping.
Hc vin mng Bch Khoa - Website: www.bkacad.com 43
,
react too quickly and unknowingly create arouting loop.
A routing loop could also be created by aperiodic update that is sent by the routersduring the instability.
P ti R ti L ith H ldd Ti
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
44/66
Preventing Routing Loops with Holddown Timers
Holddown timers allow a router to not acceptany changes to a route for a specified period
of time Holddown timers prevent routing loops from
Hc vin mng Bch Khoa - Website: www.bkacad.com 44
.
Holddown timers also help prevent the countto infinity condition.
Point of using holddown timers: Allowsrouting updates to propagate throughnetwork with the most current information.
Holddown timers
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
45/66
Holddown timers
1. A router receives an update from a neighbor indicatingthat a network that previously was accessible is now nolonger accessible.
Hc vin mng Bch Khoa - Website: www.bkacad.com 45
Holddown timers
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
46/66
Holddown timers
2. The router marks the network as possibly downand starts the holddown timer.
Hc vin mng Bch Khoa - Website: www.bkacad.com 46
Holddown timers
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
47/66
Holddown timers
3. If an update with a better metric for that network isreceived from any neighboring router during the holddownperiod, the network is reinstated and the holddown timer is
removed.
Hc vin mng Bch Khoa - Website: www.bkacad.com 47
Holddown timers
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
48/66
Holddown timers
4. If an update from any other neighbor is received duringthe holddown period with the same or worse metric forthat network, that update is ignored. Thus, more time is
allowed for the information about the change to bepropagated.
Hc vin mng Bch Khoa - Website: www.bkacad.com 48
Holddown timers
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
49/66
Holddown timers
5. Routers still forward packets to destination networks thatare marked as possibly down. This allows the router toovercome any issues associated with intermittentconnectivity. If the destination network truly is unavailable
and the packets are forwarded, black hole routing iscreated and lasts until the holddown timer expires.
Hc vin mng Bch Khoa - Website: www.bkacad.com 49
Split Horizon Rule
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
50/66
Split Horizon Rule
A router should not advertise a network through theinterface from which the update came.
Animation 4.4.5.1
Hc vin mng Bch Khoa - Website: www.bkacad.com 50
Split horizon with Poison Reverse or Route Poisoning
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
51/66
Split horizon with Poison Reverse or Route Poisoning
Route poisoning is used to mark the route asunreachable 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
Hc vin mng Bch Khoa - Website: www.bkacad.com 51
unreachable route through an interface,advertise it as unreachable back through thesame interface
Animation 4.4.6.1 Animation 4.4.6.2
IP & TTL
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
52/66
IP & TTL
Purpose of the TTL fieldThe TTL field is found in an IP header and is used
to prevent packets from endlessly traveling on anetwork
Hc vin mng Bch Khoa - Website: www.bkacad.com 52
IP & TTL
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
53/66
IP & TTL
How the TTL field worksTTL field contains a numeric value
The numeric value is decreased by one by every routeron the route to the destination.
If numeric value reaches 0 then Packet is discarded
Hc vin mng Bch Khoa - Website: www.bkacad.com 53
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
54/66
Distance Vector Routing Protocols today
Hc vin mng Bch Khoa - Website: www.bkacad.com 54
RIP and EIGRP
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
55/66
RIP and EIGRP
Factors used to determine whetherto use RIP or EIGRP include
1. Network size
Hc vin mng Bch Khoa - Website: www.bkacad.com 55
. ompa y e weenmodels of routers
3. Administrative knowledge
RIP
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
56/66
RIP
Supports split horizon & split horizonwith poison reverse
Hc vin mng Bch Khoa - Website: www.bkacad.com 56
Easy to configure Works in a multi vendor router
environment
RIP
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
57/66
RIPv2 introduced the following improvements toRIPv1:
1. Includes the subnet mask in the routingupdates, making it a classless routing protocol.2. Has authentication mechanism to secure
Hc vin mng Bch Khoa - Website: www.bkacad.com 57
routing table updates.
3. Supports variable length subnet mask (VLSM).4. Uses multicast addresses instead of broadcast.
5. Supports manual route summarization.
EIGRP
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
58/66
1. Triggered updates
2. EIGRP hello protocol used to establishneighbor adjacencies
Hc vin mng Bch Khoa - Website: www.bkacad.com 58
4. Use of topology table to maintain allroutes
5. Classless distance vector routingprotocol
6. Cisco proprietary protocol
Distance Vector Routing Protocols Compared
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
59/66
g p
Hc vin mng Bch Khoa - Website: www.bkacad.com 59
Animation 4.5.1.1
Summary
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
60/66
y
Hc vin mng Bch Khoa - Website: www.bkacad.com 60
Q&A
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
61/66
Three routers running a distance-vectorrouting protocol lost all power, including
the battery backups. When the routersreload, what will happen?
They will send updates that includeonly directly connected routes to theirdirectly connected neighbors.
Hc vin mng Bch Khoa - Website: www.bkacad.com 61
Q&A
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
62/66
What does the RIP holddown timer do?instructs routers to ignore updates,
for a specified time or event, aboutossible inaccessible routes
Hc vin mng Bch Khoa - Website: www.bkacad.com 62
Q&A
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
63/66
Which of the following methods doessplit horizon use to reduce incorrect
routing information?
Information learned from one source
is not distributed back to that source
Hc vin mng Bch Khoa - Website: www.bkacad.com 63
Q&A
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
64/66
Which of the following can exist in adistance vector network that has not
converged?
routin loo s
inconsistent traffic forwardinginconsistent routing table entries
Hc vin mng Bch Khoa - Website: www.bkacad.com 64
Q&A
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
65/66
If all routers are using RIP, how many
rounds of updates will occur before allrouters know all networks?
Hc vin mng Bch Khoa - Website: www.bkacad.com 65
8/3/2019 CA_Ex_S2M04_Distance Vector Routing Protocols.ppt [Compatibility Mode]
66/66
Hc vin mng Bch Khoa - Website: www.bkacad.com 66