Distance Vector Routing Protocols Link State Routing Protocols Path Vector Highlighted routing protocols are the focus of this course.. Cisco SYSTEMS Interior Gateway Protocols E
Trang 2Topics
@ Introduction to Distance Vector
Routing Protocols
Distance Vector Technology
Routing Protocol Algorithms
Trang 3@ Distance Vector Technology
@ Routing Protocol Algorithms
@ Routing Protocol Characteristics
Trang 4Distance Vector Routing Protocols Link State Routing Protocols Path Vector
Highlighted routing protocols are the focus of this course
@ There are advantages and disadvantages to using any type of routing
protocol
some of their inherent pitfalls, and
Remedies to these pitfalls
verifying, and troubleshooting these protocols.
Trang 6Cisco SYSTEMS
Interior Gateway Protocols Exterior Gateway Protocols
R O | | | n 1 Link State Routing Protocols Path Vector
EIGRP for IS-IS for IPv6 O9PF9 IPv6
RIPng
Highlighted routing protocols are the focus of this course
@ RIP: Routing Information Protocol originally specified in RFC 1058
Metric: Hop count
Hop count greater than 15 means network is unreachable
Routing updates: Broadcasi/multicast every 30 seconds
@ IGRP: Interior Gateway Routing Protocol - Cisco proprietary
Composite metric: Bandwidth, delay, reliability and load
Routing updates: Broadcast every 90 seconds
IGRP is the predecessor of EIGRP and is now obsolete
@ EIGRP: Enhanced IGRP — Cisco proprietary
lt can perform unequal-cost load balancing
lt uses Diffusing Update Algorithm (DUAL) to calculate the shortest path
No periodic updates, only when a change in topology
@ /GHRP and EIGHP: Cisco never submitted RFCs to IETF for these protocols
Trang 7Cisco SysTEMS
Nenvorking Aca deny
Routes are advertised as vectors of
distance and direction
@ Distance is defined in terms of a metric
Such as hop count,
@ Direction is simply the:
CiLL ORGLAN
@ Routing protocol
Does not know the topology of an
internetwork
Only knows the routing information
received from its neighbors
have the knowledge of the entire path to a
Trang 8Cisco SysTEMS
Nenvorking
ca iörrrv
Meaning of Distance Vector
Distance = How Far 172.16.3.0/24
For R1, 172.16.3.0/24 is one hop away (distance)
It can be reached through SO/0/0 (vector)
Distance: to 172.16.3.0/24 is 1 hop
Direction: out interface SO/0/0 toward R2
@ Remember: R1 does not have a topology map, it only knows distance and
direction!
Trang 9® Some distance vector routing protocols periodically broadcast the entire
routing table to each of its neighbors (RIP and IGRP)
30 seconds for RIP
90 seconds for IGRP
@® Inefficient: updates consume bandwidth and router CPU resources
@ Periodic updates always sent, even no changes for weeks, months
Trang 10
® Neighbors are:
routers that share a link
use the same routing protocol
@ Router is only aware:
Network addresses of its own interfaces
Network addresses of its neighbors
@ lt has no broader knowledge of the network topology
Trang 11@® Broadcast updates (Destination IP 255.255.255.255)
some protocols use multicasts (later)
Updates are entire routing tables with some exceptions (later)
@ Neighboring routers that are configured with the same routing protocol will
process the updates
@ Other devices such as host computers will also process the update up to
Layer 3 before discarding it
11
Trang 12as) := 0; d{vj :=+0° Vy EV \N {ski 7(V) =v vve<=V,Q:=V,¡-~=1
Step 1 : Select the node
If Q=0, then go to step 3, else select the node v from the head of Q
Step 2 :Search the Path (let v be the initial point)
lf dịu) > d(v)+l((v, u)) for all path(v,u), then d(u) = dév) + Iffv, uj), zz (uy=v
— Step 1
Step 3:judgement ie=i#1 lfi < n, then Q — V and go to step 1, else check whether triangle inequality” is satisfied or not on all paths
If any paths “A’ not satisfied the triangle inequality, there is the negatively circuit including the path “A”
* Triangle inequality Let X he linear space,
| u+v]| = llull + || vil foruvex
@ The algorithm used by a particular routing protocol is responsible for
building and maintaining the router's routing table
@ The algorithm used for the routing protocols defines the following
processes:
Mechanism for sending and receiving routing information
Mechanism for calculating the best paths and installing routes in the
routing table
Mechanism for detecting and reacting to topology changes
12
Trang 13Houting Protocol Algorithms
@ Ri and R2 are configured with RIP
@ The algorithm sends and receives updates
® Both R1 and R2 then glean new information from the update
Trang 14
Cisco SYSTEMS
Nenvorking
ca iörrrv
Routing Protocol Algorithms ?20uatng bestpalhs and
installing new routes
Each router cakulates ; the algorithm
@® Each router learns about a new network
@ The algorithm on each router:
e makes its calculations independently
° updates its routing table with the new information
14
Trang 15
Update 172.16.1.0/24 a 172.16.2024 Update 172.16.3.0/24
——
Fa0/0 > = © SO/O/O x
@) route from the table @ about the deleted route
`7
172.16.3.0/24 Down Network Interface | Hop Network Interface | Hop
172.16.1.0/24 ra0o 0 172.16.2.0/24 | S0/0/0 0 172.16.2.0/24 | S0/00 0 ——+??2 +24 tan Hs
st et <=^—¬~^¬^ + 172.16.1.0/24 | S0/00 1
Topology change
@ LAN on R2 goes down
@ Algorithm constructs a “triggered” update and sends it to R1
@ Ri removes network from the routing table
@ Triggered updates - later
15
Trang 16( | Ì a fat te a St | ( S Interior Gateway Protocols Exterior Gateway Protocols
Distance Vector Routing Protocols Link State Routing Protocols Path Vector
Classful RIP IGRP
EIGRP for IS-IS for IPv6
How large a network the routing protocol can handle
@ Classless (use of VLSM) or classful:
Support VLSM and CIDR
@ Resource usage:
Routing protocol usage of RAM, CPU utilization, and link bandwidth
utilization
@® Implementation and maintenance:
Level of knowledge that is required for a network administrator
16
Trang 17Cisco SYSTEMS
Nenvorking Acadanry
Simple implementation and maintenance
The level of knowledge required to deploy
and later maintain a network with distance
vector protocols is not high
Disadvantages Slow convergence The use of periodic updates can cause slower convergence Even
if some advanced techniques are used, like triggered updates which are discussed later, the overall convergence ts still slower com- pared to link-state routing protocols
Low resource requirements Distance vector
protocols typically do not need large amounts
of memory to store the information, nor do
they require a powerful CPU
Limited scalability Slow convergence can limit the size of the network because larger networks require more time to propagate routing information
Depending on the network size and the IP
addressing implemented, distance vector
protocols typically do not require a high level
of link bandwidth to send routing updates
However, this can become an issue if you
deploy a distance vector protocol in a large
network
Routing loops Routing loops can occur when inconsistent routing tables are not updated because of slow convergence In a changing network
17
Trang 18Comparing Routing Protocol Features
Convergence
Scalability— Small Small Small Large Large Large
Size of Network
Resource Usage | Low Low Low Medium High High
Implementation | Simple Simple Simple Complex | Complex Complex
@ Note: Some of this is relative such as Resource usage and
Implementation and Maintenance
18
Trang 19® Initial Exchange of Routing Information
@ Exchange of Routing Information
Trang 20
@ Network discovery is part of the process of the routing protocol algorithm
that enables routers to first learn about remote networks
@ Router powers up:
Knows nothing about the network topology
Does not know that there are devices on the other end of its links
@® Knows only information saved in NVRAM (startup-config)
20
Trang 2110.1.0.0 available through interface FastEthernet 0/0
10.2.0.0 available through interface Serial 0/0/0
10.2.0.0 available through interface Serial 0/0/0
10.3.0.0 available through interface Serial 0/0/1
10.3.0.0 available through interface Serial 0/0/0
10.4.0.0 available through interface FastEthernet 0/0
21
Trang 22Sends an update about network 10.2.0.0 out the FastEthernet 0/0
interface with a metric of 1
Receives an update from R2 about network 10.3.0.0 on Serial 0/0/0
with a metric of 1
Stores network 10.3.0.0 in the routing table with a metric of 1
22
Trang 23Cisco SysTEMS
Sends an update about network 10.3.0.0 out the Serial 0/0/0 interface
Stores network 10.1.0.0 in the routing table with a metric of 1
Receives an update from R3 about network 10.4.0.0 on Serial 0/0/1
Stores network 10.4.0.0 in the routing table with a metric of 1
Trang 24Initial Exchange of Routing Information
Sends an update about network 10.4.0.0 out the Serial 0/0/1
interface with a metric of 1
Sends an update about network 10.3.0.0 out the FastEthernet
0/0 interface with a metric of 1
Receives an update from R2 about network 10.2.0.0 on Serial
0/0/1 with a metric of 1
Stores network 10.2.0.0 in the routing table with a metric of 1 24
Trang 25@ First round of update exchanges, each router knows about the connected
networks of its directly connected neighbors
R1 does not yet Know about 10.4.0.0
R3 does not yet know about 10.1.0.0
@ Full knowledge and a converged network will not take place until there is
another exchange of routing information
20
Trang 26Sends an update about networks 10.2.0.0 with a metric of 1 and 10.3.0.0 with a
metric of 2 out the FastEthernet 0/0 interface
Receives an update from R2 about network 10.4.0.0 on Serial 0/0/0 with a
metric of 2 (new)
Stores network 10.4.0.0 in the routing table with a metric of 2
Same update from R2 contains information about network 10.3.0.0 on Serial
0/0/0 with a metric of 1 There is no change; therefore, the routing information
remains the same 26
Trang 27Cisco SysTEMS
Academy ` Next Exchange of Routing Information
Sends an update about networks 10.3.0.0 with a metric of 1 and
10.4.0.0 with a metric of 2 out the Serial 0/0/0 interface (new)
Sends an update about networks 10.1.0.0 with a metric of 2 (new) and
10.2.0.0 with a metric of 1 out the Serial 0/0/1 interface
Receives an update from R1 about network 10.1.0.0 on Serial 0/0/0
There is no change; therefore, the routing information remains the
same
Receives an update from R3 about network 10.4.0.0 on Serial 0/0/1
There is no change; therefore, the routing information remains the 27
same.
Trang 28Next Exchange of Routing Information
Sends an update about network 10.4.0.0 out the Serial0/0/1 interface
Sends an update about networks 10.2.0.0 with a metric of 2 and
10.3.0.0 with a metric of 1 out the FastEthernet 0/0 interface
Receives an update from R2 about network 10.1.0.0 on Serial 0/0/1
with a metric of 2 (new)
Stores network 10.1.0.0 in the routing table with a metric of 2
Same update from R2 contains information about network 10.2.0.0 on
serial 0/0/1 with a metric of 1 There is no change; therefore, the routing
Trang 29Note on Split Horizon
R1 and F3 n2⁄4 have conipdele routng tabs
@ Distance vector routing protocols typically implement a technique known as
split horizon
Prevents information from being sent out the same interface from which
it was received
@ For example, R2 would not send an update out Serial 0/0/0 containing the
network 10.1.0.0 because R2 learned about that network through Serial
0/0/0
29
Trang 30Convergence
for a network to converge is
directly proportional to the
size of that network
It takes five rounds of
periodic update intervals
before most of the branch
routers in regions 1, 2, and
3 learn about the new
routes advertised by B2-
R4
Routing protocols are
compared based on how
fast they can propagate this
Trang 31the topology ina
routing update to their
operable until it has
converged
@® Therefore, network
administrators prefer
routing protocols with
shorter convergence times
31
Trang 33Cisco SYSTEMS
Nenvorking
ca iörrrv
Routing Table Maintenance
Update Update Update Update
@ Routing protocols must maintain the routing tables so that they have the
most current routing information
® How?
@ Depends on:
Type of routing protocol (distance vector, link-state, or path vector)
Routing protocol itself (RIP, EIGRP, and so on)
33
Trang 34No New Information No New Information No New Information
Network Interface Hop Network Interface | Hop Network Hop 0
@ Some distance vector routing protocols use periodic updates with their
neighbors and to maintain up-to-date routing information in the routing table
HIPv1 and RIPv2
IGRP
Sent even when there is no new information
The term periodic updates refers to the fact that a router sends the
complete routing table to its neighbors at_a predefined interval
34
Trang 35No New Information No New Information No New Information
Network Interface Hop Network Interface | Hop Network Hop 0
@ This 30-second interval is a route update timer that also aids in tracking
the age of routing information in the routing table
Refreshed each time an update is received
@® Routing update may contain a topology change
@ Changes might occur for several reasons, including:
Trang 36IOS implements three additional timers for RIP
@ Invalid Timer: If an update has not been received in 180 seconds (the
default), the route is marked as invalid by setting the metric to 16
Route still is in routing table
@ Flush Timer: 240 seconds (default)
When the flush timer expires, the route is removed from the routing
table
routing loops during periods when the topology is converging on new
information
When a route is marked as unreachable, it must stay in hold-down long
enough for all routers in the topology to learn about the unreachable
network
180 seconds (default)
The hold-down timer is discussed in more detail later in this chapter
36