Professional Documents
Culture Documents
Malin Bornhager
Halmstad University
Session Number
Version 2002-1 © 2002, Svenska-CNAP Halmstad University 1
Objectives
• OSPF Overview
• OSPF Operation
• OSPF Configuration and Verification
• Multiarea OSPF Operation
• Multiarea OSPF Configuration and Verification
• Stub, Totally Stubby, and Not-So-Stubby
Areas
• Virtual Links
• Fast convergence
• Supports Variable-Length Subnet Masking
(VLSM)
• Network size, no distance limitations
• Processes updates efficiently
• Selects paths based on bandwidth
• Supports equal-cost multipath
• Grouping of members (area)
Version 2002-1 © 2002, Svenska-CNAP / Halmstad University. 3
OSPF Terminology
• Adjacencies database
– Lists neighbors
• Topological database
– Lists all routes
• Routing table
– Lists best routes
Broadcast
Multiaccess
Point-to-Point
NBMA X.25
Frame Relay
• Down
• Init
• Two-way
• ExStart
• Exchange
• Loading
• Full adjacency
P=3 P=2
DR BDR
Hello
DR BDR
Cost=10
10.4.4.0/24
Topology Table
Net Cost Out Interface
10.2.2.0 7 To0
10.3.3.0 17 To0 This is the best route to 10.3.3.0.
10.3.3.0 20 E0
Link-State Change
DR
1 LSU
x A
B
2
Link-State Change
DR
LSU
1 LSU
x A
B
2
Link-State Change
DR
LSU
1 LSU
3
x A
B
LSU
2
Link-State Change
DR
LSU
4 I need to update
my routing table.
1 LSU
3
x A
B
LSU
LSU
Is entry in
LSA link-state
database?
No
Add to database
Send LSAck
to DR
Flood LSA
End
Version 2002-1 © 2002, Svenska-CNAP / Halmstad University. 24
Maintaining Routing Information (cont.)
LSU
Is entry in Is seq. #
LSA link-state Ignore LSA
database? the same?
Yes Yes
No
Add to database
Send LSAck
to DR
Flood LSA
End
Version 2002-1 © 2002, Svenska-CNAP / Halmstad University. 25
Maintaining Routing Information (cont.)
LSU
Is entry in Is seq. #
LSA link-state Ignore LSA
database? the same?
Yes Yes
No
No
Add to database
Is seq. #
higher?
Send LSAck
to DR No
End End
Version 2002-1 © 2002, Svenska-CNAP / Halmstad University. 26
Maintaining Routing Information (cont.)
LSU
Is entry in Is seq. #
LSA link-state Ignore LSA
database? the same?
Yes Yes
No
No
A Add to database Go
Is seq. #
to
higher? Yes
Send LSAck A
to DR No
End End
Version 2002-1 © 2002, Svenska-CNAP / Halmstad University. 27
Configuring OSPF on Routers Within
a Single Area
Cost = 10^8/bandwidth
Router(config-if)#ip ospf cost number