Upload
anang-prasetyo
View
231
Download
0
Embed Size (px)
Citation preview
8/13/2019 15 Routing Protocols
1/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 1BRKRST-1301
14444_04_2008_c1
IP Routing
Novan Aryandi
Cisco Systems Indonesia
mailto:[email protected]:[email protected]8/13/2019 15 Routing Protocols
2/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 2BRKRST-1301
14444_04_2008_c1
To route a router need to know:
Destination addressesSources it can learn from
Possible routes
Best route
Maintain and verify routing information
What is Routing?
172.16.1.010.120.2.0
8/13/2019 15 Routing Protocols
3/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 3BRKRST-1301
14444_04_2008_c1
What is Routing? (cont.)
NetworkProtocol
DestinationNetwork
ConnectedLearned
10.120.2.0172.16.1.0
ExitInterface
E0S0
Routed Protocol: IP
Routers must learn destinations that are not directlyconnected
172.16.1.010.120.2.0
E0S0
8/13/2019 15 Routing Protocols
4/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 4BRKRST-1301
14444_04_2008_c1
Static Route
Uses a route that a
network administrator entersinto the router manually
Dynamic Route
Uses a route that a
network routing protocoladjusts automatically fortopology or traffic changes
Identifying Static and Dynamic Routes
8/13/2019 15 Routing Protocols
5/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 5BRKRST-1301
14444_04_2008_c1
172.16.2.1
SO
Static Routes
172.16.1.0
B172.16.2.2
Network A
Configure unidirectional static routes to and from a stub network toallow communications to occur.
B
Stub Network
8/13/2019 15 Routing Protocols
6/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 6BRKRST-1301
14444_04_2008_c1
Defines a path to an IP destination network or subnet
Router(config)#ip route network [mask]
{address
|interface
}[distance
] [permanent]
Static Route Configuration
8/13/2019 15 Routing Protocols
7/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 7
BRKRST-1301
14444_04_2008_c1
Stub Network
ip route 172.16.1.0 255.255.255.0 172.16.2.1
172.16.2.1
SO
Static Route Example
172.16.1.0
B172.16.2.2
Network A B
This is a unidirectional route. You must have a route configured in the oppositedirection.
8/13/2019 15 Routing Protocols
8/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 8
BRKRST-1301
14444_04_2008_c1
Stub Network
ip route 0.0.0.0 0.0.0.0 172.16.2.2
Default Routes
172.16.2.1
SO
172.16.1.0
B172.16.2.2
Network A B
This route allows the stub network to reach all known networks beyond router A.
8/13/2019 15 Routing Protocols
9/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 9
BRKRST-1301
14444_04_2008_c1
What is a Routing Protocol?
Routing protocols areused between
routers to determine paths andmaintainrouting tables.
Once the path is determined arouter can route a routedprotocol.
NetworkProtocol
DestinationNetwork
ConnectedRIP
IGRP
10.120.2.0172.16.2.0172.17.3.0
ExitInterface
E0S0S1
Routed Protocol: IPRouting protocol: RIP, IGRP
172.17.3.0
172.16.1.010.120.2.0
E0S0
8/13/2019 15 Routing Protocols
10/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 10
BRKRST-1301
14444_04_2008_c1
Autonomous System 100 Autonomous System 200
IGPs: RIP, IGRP EGPs: BGP
Autonomous Systems: Interior or ExteriorRouting Protocols
An autonomous system is a collection of networks under acommon administrative domain
IGPs operate within an autonomous system
EGPs connect different autonomous systems
8/13/2019 15 Routing Protocols
11/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 11BRKRST-1301
14444_04_2008_c1
Administrative Distance:Ranking Routes
IGRPAdministrativeDistance=100
Router D
Router BRouter A
Router C
RIPAdministrativeDistance=120
E
I need to send a packet to
Network E. Both router B
and C will get it there.
Which route is best?
8/13/2019 15 Routing Protocols
12/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 12BRKRST-1301
14444_04_2008_c1
Classes of Routing Protocols
Distance Vector
Hybrid Routing
Link StateC
B
A
D
C
D
B
A
8/13/2019 15 Routing Protocols
13/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 13BRKRST-1301
14444_04_2008_c1
Distance Vector Routing Protocols
Pass periodic copies of routing table to neighborrouters and accumulate distance vectors
C
D
B
A
C B AD
RoutingTable
RoutingTable
RoutingTable
RoutingTable
Distance
How farVectorIn which direction
8/13/2019 15 Routing Protocols
14/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 14BRKRST-1301
14444_04_2008_c1
Routers discover the best path to
destinations from each neighbor
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0
Routing Table
10.2.0.0
10.3.0.0
0
0
S0
S1
Routing Table
10.3.0.0 S0 0
10.4.0.0 E0 0
Routing Table
10.1.0.0
10.2.0.0
E0
S0
0
0
Distance VectorSources of Information andDiscovering Routes
8/13/2019 15 Routing Protocols
15/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 15BRKRST-1301
14444_04_2008_c1
Routers discover the best path to
destinations from each neighbor
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0
Routing Table
10.1.0.0
10.2.0.0
10.3.0.0
Routing Table
10.2.0.0
10.3.0.0
10.4.0.0
10.1.0.0
0
0
1
1
S0
S1
S1
S0
Routing Table
10.3.0.0 S0 0
10.4.0.0 E0 0
10.2.0.0 S0 1
E0
S0
S0 1
0
0
Distance VectorSources of Information andDiscovering Routes
8/13/2019 15 Routing Protocols
16/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 16BRKRST-1301
14444_04_2008_c1
Distance VectorSources of Information andDiscovering Routes
Routers discover the best path to
destinations from each neighbor
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0
Routing Table
10.1.0.0
10.2.0.0
10.3.0.0
10.4.0.0
Routing Table
10.2.0.0
10.3.0.0
10.4.0.0
10.1.0.0
0
0
1
1
S0
S1
S1
S0
Routing Table
10.3.0.0 S0 0
10.4.0.0 E0 0
10.2.0.0 S0
10.1.0.0 S0
1
2
E0
S0
S0
S0
1
2
0
0
8/13/2019 15 Routing Protocols
17/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 17BRKRST-1301
14444_04_2008_c1
Distance VectorSelecting BestRoute with Metrics
Information used to select the best path for routing
56T1
56
T1Ticks, hop count
B
A
Hop count
IPX
RIP
IGRP
Bandwidth
Delay
Load
Reliability
MTU
8/13/2019 15 Routing Protocols
18/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 19BRKRST-1301
14444_04_2008_c1
Distance VectorMaintaining RoutingInformation
Updates proceed step-by-stepfrom router to router
A
Process toupdate this
routingtable
Topologychangecausesrouting
tableupdate
8/13/2019 15 Routing Protocols
19/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic20
BRKRST-1301
14444_04_2008_c1
Distance VectorMaintaining RoutingInformation
Updates proceed step-by-step
from router to router
A
Process toupdate this
routingtable
Router A sendsout this updated
routing tableafter the
next periodexpires
Topologychangecausesrouting
tableupdate
8/13/2019 15 Routing Protocols
20/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 21
BRKRST-1301
14444_04_2008_c1
Distance VectorMaintaining RoutingInformation
Updates proceed step-by-step
from router to router
AB
Process toupdate this
routingtable
Process toupdate this
routingtable
Topologychangecausesrouting
tableupdate
Router A sendsout this updated
routing tableafter the
next periodexpires
8/13/2019 15 Routing Protocols
21/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 22
BRKRST-1301
14444_04_2008_c1
Maintaining Routing InformationProblemRouting Loops
Each node maintains the distance from itself to each possible
destination network
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0
Routing Table
10.3.0.0 S0
E0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
0
Routing Table
10.1.0.0 E0
S0
S0
S0
1
210.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
10.2.0.0 S0
S1
S1
S0
1
110.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
22/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 23
BRKRST-1301
14444_04_2008_c1
Maintaining Routing InformationProblemRouting Loops
Slow convergence produces inconsistent routing
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
E0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
Down
Routing Table
10.1.0.0 E0
S0
S0
S0
1
210.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
10.2.0.0 S0
S1
S1
S0
1
110.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
23/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 24
BRKRST-1301
14444_04_2008_c1
Router C concludes that the best path to network10.4.0.0 is through Router B
Maintaining Routing InformationProblemRouting Loops
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
2
Routing Table
10.1.0.0 E0
S0
S0
S0
1
210.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
10.2.0.0 S0
S1
S1
S1
1
110.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
24/73 2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 25
BRKRST-1301
14444_04_2008_c1
Router A updates its table to reflect the new buterroneous hop count
Maintaining Routing InformationProblemRouting Loops
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
S0
S0
S0
S0
1
2
10.3.0.0
10.1.0.0
10.2.0.0
10.4.0.0
0
2
Routing Table
E0
S0
S0
S0
1
4
10.1.0.0
10.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
S0
S1
S1
S0
3
1
10.2.0.0
10.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
25/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 26BRKRST-1301
14444_04_2008_c1
Symptom: Counting to Infinity
Packets for network 10.4.0.0 bounce between routers A, B, and C
Hop count for network 10.4.0.0 counts to infinity
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
4
Routing Table
E0
S0
S0
S0
1
6
10.1.0.0
10.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
S0
S1
S1
S0
5
1
10.2.0.0
10.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
26/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 27BRKRST-1301
14444_04_2008_c1
Solution: Defining a Maximum
Define a limit on the number of hops to prevent infinite loops
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
16
Routing Table
E0
S0
S0
S0
1
16
10.1.0.0
10.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
S0
S1
S1
S0
16
1
10.2.0.0
10.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
27/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 28BRKRST-1301
14444_04_2008_c1
Solution: Split Horizon
It is never useful to send information about a route back in thedirection from which the original packet came
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
XX
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
0
Routing Table
E0
S0
S0
S0
1
2
10.1.0.0
10.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
S0
S1
S1
E1
1
2
10.2.0.0
10.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
28/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 29BRKRST-1301
14444_04_2008_c1
Solution: Route Poisoning
Routers set the distance of routes that have gone down to infinity
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
Infinity
Routing Table
10.1.0.0 E0
S0
S0
S0
1
210.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
10.2.0.0 S0
S1
S1
E1
1
210.1.0.0
10.4.0.0
10.3.0.0
0
0
8/13/2019 15 Routing Protocols
29/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 30BRKRST-1301
14444_04_2008_c1
Solution: Poison Reverse
Poison Reverse overrides split horizon
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0X
Routing Table
10.3.0.0 S0
S0
S0
S0
1
210.1.0.0
10.2.0.0
10.4.0.0
0
Infinity
Routing Table
10.1.0.0 E0
S0
S0
S0
1
210.4.0.0
10.3.0.0
10.2.0.0
0
0
Routing Table
10.2.0.0 S0
S1
S1
E1
PossiblyDown
210.1.0.0
10.4.0.0
10.3.0.0
0
0
PoisonReverse
8/13/2019 15 Routing Protocols
30/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 31BRKRST-1301
14444_04_2008_c1
Solution: Hold-Down Timers
Router keeps an entry for the network possibly down state, allowingtime for other routers to recompute for this topology change
Network 10.4.0.0 is down
then back upthen back down
Update afterhold-down Time
Network 10.4.0.0is unreachable
A B C
10.1.0.0 10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0 XUpdate after
hold-down Time
8/13/2019 15 Routing Protocols
31/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 32BRKRST-1301
14444_04_2008_c1
Solution: Triggered Updates
Router sends updates when a change in its routing table occurs
A B C
10.2.0.0 10.3.0.0 10.4.0.0
E0 S0 S0 S1 S0 E0 X
Network 10.4.0.0is unreachable
Network 10.4.0.0is unreachable
Network 10.4.0.0is unreachable
10.1.0.0
8/13/2019 15 Routing Protocols
32/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 34BRKRST-1301
14444_04_2008_c1
RIP Timers
1. Update Timer Broadcast the routing table to all itneighbour for every 30 seconds.
2. Invalidation Timer It is either 3 or 6 times the UpdateTimer. If no updates are received for a particular route andthat route is marked as Invalid route.
3. Holddown Timer The Invalid route is not removed fromthe routing table it will be marked as possibly down onthe routing table. If it receives the route with the bettermetric before the hold down timer expiry then it will acceptor it will remove.
8/13/2019 15 Routing Protocols
33/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 35BRKRST-1301
14444_04_2008_c1
Share attributes of both distance-vectorand link-state routing
Hybrid Routing
Choose arouting path basedon distance vectors
Converge rapidly usingchange-based
updates
Balanced Hybrid Routing
8/13/2019 15 Routing Protocols
34/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 36BRKRST-1301
14444_04_2008_c1
Router configuration
Select routing protocols
Specify networks or interfaces Network160.89.0.0
Network 172.30.0.0
IGRP,RIP
Network 172.16.0.0
RIP
RIP
IGRP
IP RoutingConfiguration Tasks
8/13/2019 15 Routing Protocols
35/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 37BRKRST-1301
14444_04_2008_c1
Defines an IP routing protocol
Router(config)#routerprotocol [keyword]
Mandatory configuration command for eachIP routing process
Identifies the physically connected networkthat routing updates are forwarded to
Router(config-router)#network network-number
Dynamic Routing Configuration
8/13/2019 15 Routing Protocols
36/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 38BRKRST-1301
14444_04_2008_c1
19.2 kbps
T1
T1 T1
Hop count metric selects the path
Routes update every 30 seconds
RIP Overview
8/13/2019 15 Routing Protocols
37/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 39BRKRST-1301
14444_04_2008_c1
Starts the RIP routing process
Router(config)#router rip
Router(config-router)#network network-number
Selects participating attached networks
The network number must be a major classful
network number
RIP Configuration
8/13/2019 15 Routing Protocols
38/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 40BRKRST-1301
14444_04_2008_c1
2.3.0.0router rip
network 172.16.0.0
network 10.0.0.0
RIP Configuration Example
router rip
network 10.0.0.0
2.3.0.0router rip
network 192.168.1.0
network 10.0.0.0
172.16.1.1
S2E0 S3
192.168.1.110.1.1.1 10.2.2.210.1.1.2
S2 S3
10.2.2.3
172.16.1.0 A B C 192.168.1.0
E0
8/13/2019 15 Routing Protocols
39/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 41BRKRST-1301
14444_04_2008_c1
Verifying the Routing ProtocolRIP
RouterA#sh ip protocolsRouting Protocol is "rip"
Sending updates every 30 seconds, next due in 0 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Interface Send Recv Key-chain
Ethernet0 1 1 2Serial2 1 1 2
Routing for Networks:
10.0.0.0
172.16.0.0
Routing Information Sources:
Gateway Distance Last Update
10.1.1.2 120 00:00:10
Distance: (default is 120)
172.16.1.1
S2E0 S3
192.168.1.110.1.1.1 10.2.2.210.1.1.2
S2 S3
10.2.2.3
172.16.1.0 A B C 192.168.1.0
E0
Di l i th
8/13/2019 15 Routing Protocols
40/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 42BRKRST-1301
14444_04_2008_c1
Displaying theIP Routing Table
RouterA#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate
default
U - per-user static route, o - ODR
T - traffic engineered route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.1.0 is directly connected, Ethernet0
10.0.0.0/24 is subnetted, 2 subnets
R 10.2.2.0 [120/1] via 10.1.1.2, 00:00:07, Serial2
C 10.1.1.0 is directly connected, Serial2
R 192.168.1.0/24 [120/2] via 10.1.1.2, 00:00:07, Serial2
172.16.1.1
S2E0 S3
192.168.1.110.1.1.1 10.2.2.210.1.1.2
S2 S3
10.2.2.3
172.16.1.0 A B C 192.168.1.0
E0
8/13/2019 15 Routing Protocols
41/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 43BRKRST-1301
14444_04_2008_c1
debug ip r ipCommand
RouterA#debug ip ripRIP protocol debugging is on
RouterA#
00:06:24: RIP: received v1 update from 10.1.1.2 on Serial2
00:06:24: 10.2.2.0 in 1 hops
00:06:24: 192.168.1.0 in 2 hops
00:06:33: RIP: sending v1 update to 255.255.255.255 via
Ethernet0 (172.16.1.1)
00:06:34: network 10.0.0.0, metric 1
00:06:34: network 192.168.1.0, metric 3
00:06:34: RIP: sending v1 update to 255.255.255.255 via
Serial2 (10.1.1.1)
00:06:34: network 172.16.0.0, metric 1
172.16.1.1
S2E0 S3
192.168.1.110.1.1.1 10.2.2.210.1.1.2
S2 S3
10.2.2.3
172.16.1.0 A B C 192.168.1.0
E0
8/13/2019 15 Routing Protocols
42/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 44BRKRST-1301
14444_04_2008_c1
Introduction to OSPF
Open Standard
Link State Protocol, Uses SPF algorithm
Fast Convergence with triggered updates
Classless protocol, supports VLSM and summarization
Uses Cost as metric (Inverse Bandwidth)
Area 1
Area 0
Area 2
8/13/2019 15 Routing Protocols
43/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 45BRKRST-1301
14444_04_2008_c1
Link-State Routing Protocols
After initial flood, pass small event-triggered link-stateupdates to all other routers
Link-State Packets
SPFAlgorithm
TopologicalDatabase
Shortest Path First Tree
RoutingTable
C A
D
B
8/13/2019 15 Routing Protocols
44/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 46BRKRST-1301
14444_04_2008_c1
Shortest Path Algorithm
The best path is the lowest-cost path.
8/13/2019 15 Routing Protocols
45/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 47BRKRST-1301
14444_04_2008_c1
g
OSPF Terminology
8/13/2019 15 Routing Protocols
46/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 48BRKRST-1301
14444_04_2008_c1
Steps in the Operation of OSPF
8/13/2019 15 Routing Protocols
47/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 49BRKRST-1301
14444_04_2008_c1
Hello Protocol
It is the means by which neighbors are discovered. It advertises several parameters on which two routers must agree before they can become
neighbors.
Hello packets act as keepalives between neighbors.
It ensures bi-directional communication between neighbors.
It elects Designated Routers (DRs) and Backup Designated Routers (BDRs) on Broadcastand Nonbroadcast Multiaccess (NBMA) networks.
8/13/2019 15 Routing Protocols
48/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 50BRKRST-1301
14444_04_2008_c1
Establishing Adjacency
8/13/2019 15 Routing Protocols
49/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 51BRKRST-1301
14444_04_2008_c1
OSPF Network Types
8/13/2019 15 Routing Protocols
50/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 52BRKRST-1301
14444_04_2008_c1
DR and BDR Election Process
Router with highest
priority
In case of tie, router
with highest router ID
8/13/2019 15 Routing Protocols
51/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 53BRKRST-1301
14444_04_2008_c1
Hierarchical Design (Areas)
OSPF supports two important concepts: autonomous systems and areas.
Within an AS, areas are used to provide hierarchical routing.
An areais a logical grouping of OSPF routers and links that effectively divide an OSPF
domain into sub-domains
Areas are used to control when and how much routing information is shared across yournetwork.
OSPF implements a two-layer hierarchy: the backbone (area 0) and areas off of
the backbone (areas 165,535)
Every area off the backbone must be connected to the backbone area.
8/13/2019 15 Routing Protocols
52/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 54BRKRST-1301
14444_04_2008_c1
OSPF CONFIGURATION
Configuring the OSPF
8/13/2019 15 Routing Protocols
53/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 55BRKRST-1301
14444_04_2008_c1
Configuring the OSPFRouting Process
Configuring OSPF Loopback Address
8/13/2019 15 Routing Protocols
54/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 56BRKRST-1301
14444_04_2008_c1
Configuring OSPF Loopback Addressand Router Priority
M dif i OSPF C t M t i
8/13/2019 15 Routing Protocols
55/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 57BRKRST-1301
14444_04_2008_c1
Modifying OSPF Cost Metric
8/13/2019 15 Routing Protocols
56/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 58BRKRST-1301
14444_04_2008_c1
Configuring OSPF Timers
Common OSPF
8/13/2019 15 Routing Protocols
57/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 59BRKRST-1301
14444_04_2008_c1
Common OSPFConfiguration Issues
V if i OSPF C fi ti
8/13/2019 15 Routing Protocols
58/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 60BRKRST-1301
14444_04_2008_c1
Verifying OSPF Configuration
show ip protocol
show ip route
show ip ospf interface
shop ip ospf
show ip ospf neighbor detail
show ip ospf database
8/13/2019 15 Routing Protocols
59/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 61BRKRST-1301
14444_04_2008_c1
EIGRP
Characterstic of EIGRP
1. Cisco properitary.
2. Advanced Distance vector protocol.
3. Claless routing protocol.
4. Multiple network layer protocol support using PDM.
5. Faster convergence.
6. Equal and Unequal cost path load balancing.
7. Manual summarization at Interface level.
8. Bandwidth usage control for routing updates.
8/13/2019 15 Routing Protocols
60/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 62BRKRST-1301
14444_04_2008_c1
Share attributes of both distance-vector
and link-state routing
Hybrid Routing
Choose arouting path basedon distance vectors
Converge rapidly usingchange-based
updates
Balanced Hybrid Routing
8/13/2019 15 Routing Protocols
61/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 63BRKRST-1301
14444_04_2008_c1
Process and Techniques
1. Efficient Neighbour Discovery.
2. It uses RTP for its updates.
3. DUAL Finite state Machine.
4. Protocol Dependent Module
8/13/2019 15 Routing Protocols
62/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 64BRKRST-1301
14444_04_2008_c1
Three Tables Maintained by EIGRP
1. Neighbour table.
2. Topology table.
3. Routing table.
8/13/2019 15 Routing Protocols
63/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 65BRKRST-1301
14444_04_2008_c1
Terms Used by Eigrp
1. Successor route
The Efficient and Loop free path with thelowest FD.
2. Feasible Distance The Distance between the local router andthe Destination Network.
3. Advertise Distance The Distance between the Next hop router
and the destination.4. Successor Next Hop Router of the Best path.
5. Feasible Successor Next Hop router fo the backup path forthe Best route.
8/13/2019 15 Routing Protocols
64/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 66BRKRST-1301
14444_04_2008_c1
Condition for Feasible successor
AD of the considered backup route < FD of thesucessor route.
8/13/2019 15 Routing Protocols
65/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 67BRKRST-1301
14444_04_2008_c1
More Info
Topology table will have a maximum of six backuppath for a successor route. It is for faster convergence.
Active State - Recomputation
Passive state No Re-computation
8/13/2019 15 Routing Protocols
66/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 68BRKRST-1301
14444_04_2008_c1
EIGRP packet types
1. Hello2. Update
3. Query
4. Reply5. Ack
6. Note: 224.0.0.10 is the multicast address used byEIGRP packet types (Hello, Update and Query
Packet)
8/13/2019 15 Routing Protocols
67/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 69BRKRST-1301
14444_04_2008_c1
Conditions to Establish Neighbour Adjacency
1. Identical K Metrics
2. Same AS.
8/13/2019 15 Routing Protocols
68/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 70BRKRST-1301
14444_04_2008_c1
EIGRP Metric parameters
1. Bandwidth
2. Load
3. Delay
4. Reliability
5. MTU
6. Note: Eigrp Metric = IGRP Metric * 256.
7. Eigrp Metric 32 bit
8. Igrp Metric 24 bit
8/13/2019 15 Routing Protocols
69/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 71BRKRST-1301
14444_04_2008_c1
Basic configuration
Conf t)#router eigrp
-rtr)#network
8/13/2019 15 Routing Protocols
70/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 72BRKRST-1301
14444_04_2008_c1
Load Balancing
Eigrp supports Equal cost path load balancing. Defaultis 4 and Maximum is 6.
It also supports Unequal cost path load balancing usingVariance command.
8/13/2019 15 Routing Protocols
71/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 73BRKRST-1301
14444_04_2008_c1
Useful show commands for EIGRP
Sh ip eigrp neighbour
Sh ip eigrp topology
Sh ip route eigrp
Sh ip protocols.
8/13/2019 15 Routing Protocols
72/73
2008 Cisco Systems, Inc. All rights reserved. Cisco Publ ic 74BRKRST-1301
14444_04_2008_c1
Summary
After completing this chapter, you should be able to perform thefollowing tasks:
Determine when to use a static or dynamic route.
Configure a static route on a Cisco Router.
Describe how distance vector routing protocols operate.
Configure the RIP and OSPF routing protocols on a Cisco router.
Use show ip route, show ip protocols, and other show and debugcommands to verify proper routing operation.
8/13/2019 15 Routing Protocols
73/73