E2 3 DynamicRoutingProtocols
E2 3 DynamicRoutingProtocols
E2 3 DynamicRoutingProtocols
Book:
Routing Protocols
and Concepts
By Rick Graziani and
Allan Johnson
ISBN: 1-58713-206-0
ISBN-13: 978-58713-
206-3
2
Topics
Introduction to Dynamic Routing Metrics
Protocols Purpose of the Metric
Perspective and Background Metrics and Routing Protocols
Load Balancing
Network Discovery and Administrative Distance
Routing Table Maintenance Purpose of Administrative
Dynamic Routing Protocol Distance
Advantages Dynamic Routing Protocols
Classifying Dynamic Routing and Administrative Distance
Protocols Static Routes and
Administrative Distance
IGP and EGP Directly Connected Networks
Distance Vector and Link- and Administrative Distance
State
Classful and Classless
Convergence
3
Introduction to Dynamic Routing
Protocols
Perspective and Background
Network Discovery and Routing Table Maintenance
Dynamic Routing Protocol Advantages
Perspective and Background
7
Role of Dynamic Routing Protocol
Update
Update
Update Update
Update Update
8
Role of Dynamic Routing Protocol
Static Routes
9
Role of Dynamic Routing Protocol
Dynamic Routing Protocol
11
Purpose of Dynamic Routing Protocols
I’m R1
My routes I’m R3
Changes My routes
Changes
this network!
The operations of a dynamic routing protocol vary depending on the type of
routing protocol, but in general:
1. The router shares routing messages and routing information with other
routers that are using the same routing protocol.
2. The router sends and receives routing messages on its interfaces.
3. Routers exchange routing information to learn about remote networks.
4. When a router detects a topology change, the routing protocol can advertise
this change to other routers.
13
Static Routing
Usage,
Advantages, and
Disadvantages
14
Classifying Dynamic Routing
Protocols
IGP and EGP
Distance Vector and Link-State
Classful and Classless
Convergence
Classifying Routing Protocols
16
PAIX
IGP and EGP CENIC BGP Palo Alto
Cabrillo
College
18
Distance Vector Routing
Protocol Operation
What does a street sign like this tell
you?
How far (distance)
Which way (direction)
Distance vector
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:
Nexthop router or
Exit interface
Typically use the Bellman-Ford
algorithm for the best-path (shortest) 19
route determination
Distance Vector Routing
Protocol Operation
Routing protocol
Does not know the topology of an
internetwork.
Only knows the routing information
received from its neighbors.
Does not know if another path
would actually be faster.
Distance Vector routing protocols are like signposts along the path to the final destination. 20
Distance Vector Routing
Protocol Operation
Where might you use a distance
vector routing protocol?
Simple and flat network
The administrators do not have
enough knowledge about link-state
protocols.
Specific types of networks, such as
hub-and-spoke networks, are
being implemented.
Worst-case convergence times in
a network are not a concern.
More in Chapter 4.
21
Link-State Protocol Operation
Link-state routing protocol can
create a “complete view,” or
topology, of the network.
Link-state protocols are
associated with Shortest Path
First (SPF) calculations.
A link-state router uses the link-
OR
state information to:
Create a topology map
Select the best path to all
destination networks in the
topology.
Each router makes the
decision!
Link State routing protocols is like having a complete map of the network topology 22
Link-State Protocol Operation
Link-state protocols work best
in situations where
The network design is
hierarchical, usually occurring
in large networks.
The administrators have a
good knowledge of the
implemented link-state routing
protocol.
Fast convergence of the
network is crucial.
More in later chapters.
23
Classful and Classless Routing Protocols
24
Classful
Routing
Protocols
172.16.0.0 172.16.0.0
192.168.1.0 192.168.1.0
192.168.2.0 192.168.2.0
27
Classless routing Protocols
172.16.0.0/16
Major Classful
Network
/27 and /30 172.16.128.0/30 172.16.132.0/30
subnets
172.16.136.0/30
28
Dynamic Routing Protocols and Convergence
I no longer have a
connection to
this network! X Got it!
30
Metrics
Purpose of the Metric
Metrics and Routing Protocols
Load Balancing
Purpose of a Metric
?
32
Purpose of a Metric
What might be some ways (metrics) that routing protocols might use to
determine the “best path?
Routing protocol metrics:
RIP: Hop count
IGRP and EIGRP: Bandwidth, delay, reliability and load
OSPF (Cisco’s version): Bandwidth
IS-IS: Four values (Cisco uses “default”) – Covered in CCNP
BGP: Attributes – Covered in CCNP
More later
33
Metric
Parameters
56 Kbps
34
Metric Field in the Routing Table
R2# show ip route
The routing table displays the metric for each dynamic and static
route.
Static routes always have a metric of 0.
Routing protocols install route in routing table with the lowest metric.
35
R2# show ip route
<output omitted>
Gateway of last resort is not set
R 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:24, Serial0/0/0
C 192.168.2.0/24 is directly connected, Serial0/0/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial0/0/1
R 192.168.5.0/24 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1
R 192.168.6.0/24 [120/1] via 192.168.2.1, 00:00:24, Serial0/0/0
[120/1] via 192.168.4.1, 00:00:26, Serial0/0/1
R 192.168.7.0/24 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1
R 192.168.8.0/24 [120/2] via 192.168.4.1, 00:00:26, Serial0/0/1
What happens when two or more routes to the same destination have
identical metric values?
The router load balances between these equal-cost paths.
All routing protocols do equal cost load balancing.
EIGRP also does unequal cost load balancing. 37
Administrative Distance
Purpose of Administrative Distance
Dynamic Routing Protocols and Administrative
Distance
Static Routes and Administrative Distance
Directly Connected Networks and Administrative
Distance
Purpose of Administrative Distance
What if a router learns about a remote
network from two different routing ?
sources.
What if RIP advertises the network as
10 hops away but OSPF advertises it
as a cumulative bandwidth of 100,000. So, which one would
Which is better RIP or OSPF? be preferred RIP or
Can’t tell OSPF? OSPF
RIP: 1.1.1.1.
Can’t compare apples and oranges. is 10 hops
OSPF: 1.1.1.1.
Note: This is not common. is 100,000 BW
Administrative distance (AD) is:
Used to determine which routing Which route would be
source takes precedence. preferred, OSPF or a Static
Used when there are multiple Route to the same
routing sources for the same network? Static Route
destination network address.
Lower the AD the more preferred the
routing source. 39
Purpose of Administrative Distance
Cisco uses Administrative distance
(AD) to define the preference of a
routing source.
Routing sources:
Directly connected networks
Static routes
Specific routing protocols
AD for static and dynamic can be
modifed (in CCNP)
Note
The term trustworthiness is
commonly used when defining
administrative distance.
The lower the administrative distance
value, the more trustworthy the route.
40
Purpose of Administrative Distance
AD: 0 to 255.
The lower the value, the more
preferred the route source.
AD of 0 is the most preferred.
Only a directly connected
network has an administrative
distance of 0, which cannot be
changed.
No better route to a network
than being directly connected
to that network.
AD of 255 means the router will
not believe the source of that route
Route will not be installed in
the routing table.
41
Verifying AD: show ip route
42
Verifying AD: show ip protocols
44
Static Routes and Administrative Distance
Static routes
Default AD = 1
After directly connected networks (AD = 0), static routes are the
most preferred route source.
45
Static Routes and Administrative Distance
Exit Interface: ip route 172.16.3.0 255.255.255.0 serial 0/0/0
R2# show ip route
47
Static Routes and Administrative Distance
Exit Interface: ip route 172.16.3.0 255.255.255.0 serial 0/0/0
View AD value this static route with an exit-interface, use command show ip
route [route] option.
48
Directly Connected Networks and Administrative Distance
R2# show ip route 172.16.3.0
Routing entry for 172.16.1.0/24
Known via “connected”, distance 0, metric 0
(connected, via interface)
Routing Descriptor Blocks:
* directly connected, via FastEthernet0/0
Route metric is 0, traffic share count is 1
49
Floating Static
Route (Extra) X