1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved....
-
Upload
rudolph-underwood -
Category
Documents
-
view
218 -
download
0
Transcript of 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved....
![Page 1: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/1.jpg)
1Intro to OSPF © 1998, Cisco Systems, Inc.
![Page 2: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/2.jpg)
2© 2005 Cisco Systems, Inc. All rights reserved.
Session NumberPresentation_ID CISCO CONFIDENTIAL
Introduction to OSPF
Presented by: Andrew Short
![Page 3: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/3.jpg)
333© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Agenda
• Distance Vector vs Link State Routing protocols
• OSPF basics
• OSPF issues
![Page 4: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/4.jpg)
444© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF – Open Shortest Path First
• “Open”
• “Shortest Path First”
![Page 5: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/5.jpg)
555© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Distance Vector Routing Protocols
• Learn about network from neighbors only
• Keep a table entry for all destinations
Contains the distance and first gateway
• Periodically send routing table updates to neighbors
![Page 6: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/6.jpg)
666© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Link State Routing Protocols
• Flood Link State Advertisements (LSA) within Autonomous System (AS).
LSA is state of each link from current router
LSA must reach all routers in AS
• Run Shortest Path First (SPF) algorithm to create an SPF tree for the complete AS.
SPF tree is rooted at the current router.
Use Next-Hop entries from SPF tree to populate routing table.
• Triggered LSAs
when a link goes up or down, the attached router sends updated LSAs out all remaining interfaces.
![Page 7: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/7.jpg)
777© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF vs RIP ( link-state vs distance vector )
• RIP•Does not scale (15 hop count limit)
•Flat networks, no hierarchy
•Slow convergence
•(RIP 1) Does not support VLSM (variable length subnet mask)
•Periodic broadcast of route table leads to waste of bandwidth (periodic offload of routing table to the network, re: ISDN links!)
•No concept of link-delay or cost
![Page 8: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/8.jpg)
888© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF vs RIP ( link-state vs distance vector )
• OSPF•No hop count limitation
•Scalable - hierarchical network design
•“Areas” limit route information flooding, short convergence time
•supports VLSM
•link bandwidth determines metric
![Page 9: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/9.jpg)
999© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF – Design, Design, Design
• A healthy OSPF implementation is the product of a well thought out….
• DESIGN.
![Page 10: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/10.jpg)
101010© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Terminology
Area 00.0.0.0
Backbone
Area 2
0.0.0.2
Area 10.0.0.1
To Another AS
Internal RouterArea Border Router (ABR)Backbone RouterAutonomous System Boundary Router (ASBR)
![Page 11: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/11.jpg)
111111© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Terminology contd.
• Router ID (RID)Must be unique
Highest loopback address or Highest interface address if no loopback
• LSA (Link State Advertisement)LSA describes state of all the routers links
OSPF routers flood LSAs to create a picture of the network
Each router uses these LSAs to create shortest-path tree rooted at itself
![Page 12: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/12.jpg)
121212© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Terminology contd.
• AreaLogical group of routers which have complete picture of network within grouping.
If multiple areas exist in the network, there must be an ‘area 0’, which is the backbone area.
All routing information is disseminated from one area to another through area 0.
• NetworkA single broadcast domain within the OSPF Autonomous System
Frame-Relay PVC
Ethernet VLAN
Point to Point T1
![Page 13: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/13.jpg)
131313© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Areas
Area 00.0.0.0
Backbone
Area 1
0.0.0.1
Area 20.0.0.2
To Another AS
Internal RouterArea Border Router (ABR)Backbone RouterAutonomous System Boundary Router (ASBR)
![Page 14: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/14.jpg)
141414© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Terminology contd.
• NeighborsOSPF routers connected to the same network
Must agree on:
Area ID
Authentication
Network Mask
Hello Interval
RouterDeadInterval
Options
• AdjacenciesNeighboring OSPF routers that proceed to the database exchange process
![Page 15: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/15.jpg)
151515© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Configuring OSPF
Router(config)#router ospf 1
Router(config-router)#net 10.0.0.0 0.255.255.255 area 1
- enable OSPF on router and specifies interfaces in OSPF domain
![Page 16: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/16.jpg)
161616© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Forming adjacencies
• OSPF has several network types- Broadcast- Non-broadcast Multi-access (NBMA)- Point-to-multipoint- Point-to-point
• DR/BDR election only performed on broadcast and NBMA networks
• Hellos sent to AllSPFRouters address (224.0.0.5).DR/BDR listen to AllDRRouters address (224.0.0.6)
• On broadcast and NBMA networks, routers only become fully adjacent with DR and BDR.
• On a NBMA network the DR/BDR need to have a static list of all OSPF routers in that network segment.
![Page 17: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/17.jpg)
171717© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Forming adjacencies contd.
• OSPF neighbors progress through the following stages:
• Down: No information has been received from anybody on the segment.
• Attempt: no recent information has been received. Attempt to contact neighbor.
![Page 18: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/18.jpg)
181818© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Forming adjacencies contd.
• Init: The interface has detected a Hello packet from a neighbor.
• Two-way: Router sees itself in neighbors Hello packet
• Exstart: Negotiating parameters before exchanging LSA information
• Exchange: Routers will describe their entire link-state database by sending database description packets.
![Page 19: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/19.jpg)
191919© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Forming adjacencies contd.
• Loading: Finalizing information exchange.
• Full: LSA exchange complete. Both routers now have identical link-state databases
![Page 20: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/20.jpg)
202020© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Stub Areas
• Stub Area
• Totally Stubby Area
• Not So Stubby Area (NSSA)
![Page 21: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/21.jpg)
212121© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF – Stub Area
• External LSAs are NOT flooded into stub areas
• No type 4 or type 5 LSAs in this area.
• No virtual links
• “area 1 stub” on ALL area 1 routers
• Route lookups Intra-area routes
Inter-area routes
Default route
![Page 22: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/22.jpg)
222222© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF – Totally Stub Area
• Type 1 and Type 2 internally
• Only the single ABR produces a single Type 3 Network to advertise the default route.
• “area 1 stub no-summary”
(at the abr of a stub area)
![Page 23: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/23.jpg)
232323© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF – Not So Stubby Area
• Basically, an ospf stub area with an ASBR
• “area 1 nssa”
![Page 24: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/24.jpg)
242424© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types
Type LSA
11 RouterRouter
22 NetworkNetwork
33 Summary NetworkSummary Network
44 Summary ASBRSummary ASBR
55 ExternalExternal
77 NSSANSSA
![Page 25: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/25.jpg)
252525© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types contd.
• Router LSA (Type 1)
Produced by every SPF Router
Describes the state and cost of the router’s links to the area
All of the router’s links in an area must be described in a single LSA
Flooded throughout the particular area and no more
Router indicates whether it is an ASBR, ABR, or end point of virtual link
• “show ip ospf network database router”
![Page 26: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/26.jpg)
262626© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types contd.
• Network LSA (Type 2)
Sent by DRs
Generated for every transit broadcast and NBMA network
Describes all the routers attached to the network
Only the designated router originates this LSA
Flooded throughout the area and no more
• “show ip ospf network database network”
![Page 27: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/27.jpg)
272727© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types contd.
• Summary Network LSA (Type 3) and ASBR Summary LSA (Type 4)
–Both are
•originated by an ABR
•Flooded throughout a single area
–3 - Describes networks (including default routes) external to the area but still in the AS
•“show ip ospf database summary”
–4 - Describes ASBRs external to the area.
•“show ip ospf database asbr-summary”
![Page 28: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/28.jpg)
282828© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types contd.
• External LSA (Type 5)Originated by ASBRs
Defines routes to destination externalto the AS
Default route is also sent as external
Flooded to all non-stub areas
Two types of external LSA:
E1: (E bit = 0) Consider the total cost up to the external destination
E2: (E bit = 1) Considers only the cost of the outgoing interface to the external destination
![Page 29: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/29.jpg)
292929© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
LSA Types contd.
• NSSA External LSA (Type 7)
Originated by ASBRs in NSSA (not-so-stubby-area) area
Flooded only within NSSA area
ABR to NSSA area converts it to a Type 5 LSA
Information DOES leave the Area, but not as a Type 7, because type 7 MUST remain in the area.
Outside the area, it is seen as a Type 5
![Page 30: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/30.jpg)
303030© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Show commands
• show ip ospf
• show ip ospf neighbors
• show ip ospf interface
![Page 31: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/31.jpg)
313131© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Sample Network for Each LSA
3
192.1.1.0
1
192.1.4.0
2
8
192.1.2.0
192.1.3.0
Area 0
18.10.0.6
R7
Router id 131.108.1.1
140.10.0.0
8
2
1
8
4
External RouteExternal Route
Area 1
R3
R4R1
R2195.12.1.1
NSSA
Different Types of LSAs
![Page 32: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/32.jpg)
323232© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
External LSAExternal LSA
External Type 1
NetworkN1N1
NetworkN1N1
Type 11110
Type 11110
Next HopR1R2
Next HopR1R2
Cost = 10
To N1External Cost = 1
To N1External Cost = 2R1
R2
R3
Cost = 8
Selected Route
![Page 33: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/33.jpg)
333333© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
External LSAExternal LSA
External Type 2
NetworkN1N1
NetworkN1N1
Type 212
Type 212
Next HopR1R2
Next HopR1R2
Cost = 10
To N1External Cost = 1
To N1External Cost = 2R1
R2
R3
Cost = 8
Selected Route
![Page 34: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/34.jpg)
343434© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF Is Enabled on this Interface
Rest of the OSPF Network
RIP Between the Routers
router ospf 1redistribute rip subnets
ASBRASBR
Type 5 Details
• Forwarding addressMust be known via intra or inter area route
![Page 35: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/35.jpg)
353535© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
GSR-3#sh ip ospfGSR-3#sh ip ospf Routing Process "ospf 100" with ID 10.10.128.3 Supports only single TOS(TOS0) routes Supports opaque LSA It is an area border router SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 0. Checksum Sum 0x0 Number of opaque AS LSA 0. Checksum Sum 0x0 Number of DCbitless external and opaque AS LSA 0 Number of DoNotAge external and opaque AS LSA 0 Number of areas in this router is 2. 2 normal 0 stub 0 nssa External flood list length 0 Area BACKBONE(0) Number of interfaces in this area is 5 Area has no authentication SPF algorithm executed 2773 times Area ranges are Number of LSA 97. Checksum Sum 0x2B19E3 Number of opaque link LSA 0. Checksum Sum 0x0 Number of DCbitless LSA 0 Number of indication LSA 0 Number of DoNotAge LSA 0 Flood list length 0
Show IP OSPF
![Page 36: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/36.jpg)
363636© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
Area 8 Number of interfaces in this area is 2 It is a stub area, no summary LSA in this area Area has no authentication SPF algorithm executed 11 times Area ranges are Number of LSA 5. Checksum Sum 0x22812 Number of DCbitless LSA 0 Number of indication LSA 0 Number of DoNotAge LSA 0 Flood list length 0
Show IP OSPF (Cont.)
![Page 37: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/37.jpg)
373737© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
3600-g1#sh ip ospf data3600-g1#sh ip ospf data OSPF Router with ID (30.8.1.1) (Process ID 1) Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link count30.8.1.1 30.8.1.1 1592 0x800001D0 0xA180 0 Router Link States (Area 8)Link ID ADV Router Age Seq# Checksum Link count30.8.1.1 30.8.1.1 1592 0x8000023F 0xC782 130.8.1.2 30.8.1.2 298 0x800003D1 0x2967 230.8.3.2 30.8.3.2 666 0x800002B8 0xE52B 1 Net Link States (Area 8)Link ID ADV Router Age Seq# Checksum30.8.1.2 30.8.1.2 299 0x80000203 0x415330.100.1.2 30.8.3.2 666 0x8000027A 0x10AB
OSPF Database
![Page 38: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/38.jpg)
383838© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
GSR-3#show ip ospf database database-summaryGSR-3#show ip ospf database database-summary
OSPF Router with ID (10.10.128.3) (Process ID 100)
Area 0 database summary LSA Type Count Delete Maxage Router 63 0 0 Network 4 0 0 Summary Net 30 0 0 Summary ASBR 0 0 0 Type-7 Ext 0 0 0 Opaque Link 0 0 0 Opaque Area 0 0 0 Subtotal 97 0 0
OSPF Database
![Page 39: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/39.jpg)
393939© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
GSR-3#sh ip ospf neighborGSR-3#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface10.64.1.2 1 FULL/DR 00:00:38 10.128.16.2 GigabitEthernet3/010.10.128.1 1 2WAY/DROTHER 00:00:31 10.128.1.1 Ethernet 6/010.10.128.2 1 FULL/BDR 00:00:36 10.128.1.2 Ethernet 6/010.10.128.4 1 FULL/DR 00:00:38 10.128.1.4 Ethernet 6/0GSR-3#
OSPF Neighbor
![Page 40: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/40.jpg)
404040© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
r4-1#router ospf 1router ospf 1 ospf log-adjacency-changesospf log-adjacency-changes
%OSPF-5-ADJCHG: Process 1, Nbr 172.16.16.2 on Serial0.1 from FULL to DOWN, Neighbor Down%OSPF-5-ADJCHG: Process 1, Nbr 0.0.0.0 on Serial0.1 from DOWN to ATTEMPT, NBMA Start
OSPF Adjacency Changes
![Page 41: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/41.jpg)
414141© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
r4-1#sh ip ospf nei detr4-1#sh ip ospf nei detNeighbor 172.16.133.5, interface address 172.16.133.5 In the area 0 via interface Ethernet0 Neighbor priority is 1, State is FULL, 6 state changes DR is 172.16.133.29 BDR is 172.16.133.6 Options is 0x2 Dead timer due in 00:00:37 Neighbor is up for 00:01:24 Index 2/2, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 4 msec, maximum is 4 msec Neighbor 172.16.133.29, interface address 172.16.133.29 In the area 0 via interface Ethernet0 Neighbor priority is 1, State is FULL, 6 state changes DR is 172.16.133.29 BDR is 172.16.133.6 Options is 0x2 Dead timer due in 00:00:31 Neighbor is up for 00:01:58 Index 1/1, retransmission queue length 0, number of retransmission 2 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor Details
![Page 42: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/42.jpg)
424242© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
r4-1#show ip ospf intr4-1#show ip ospf intSerial0.1 is up, line protocol is up Internet Address 172.16.7.1/24, Area 0 Process ID 1, Router ID 172.16.14.1, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 100 Designated Router (ID) 172.16.14.1, Interface address 172.16.7.1 No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 Hello due in 00:00:12 Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 172.16.30.1 Adjacent with neighbor 172.16.16.2 Suppress hello for 0 neighbor(s)Serial0.2 is up, line protocol is up Internet Address 172.16.14.1/24, Area 33 Process ID 1, Router ID 172.16.14.1, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 100 Designated Router (ID) 172.16.14.1, Interface address 172.16.14.1 No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 Hello due in 00:00:11 Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 172.16.100.2 Suppress hello for 0 neighbor(s)
Show IP OSPF Interface
![Page 43: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/43.jpg)
434343© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
R6-2500#sh ip ospf database self-originateR6-2500#sh ip ospf database self-originate (shows the LSAs this router is generating)
OSPF Router with ID (192.168.6.1) (Process ID 100)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count 192.168.6.1 192.168.6.1 773 0x8000005B 0xC608 1
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum 135.4.1.2 192.168.6.1 773 0x80000056 0x4D14
Router Link States (Area 5)
Link ID ADV Router Age Seq# Checksum Link count 192.168.6.1 192.168.6.1 264 0x80000053 0xC745 0
Summary Net Link States (Area 5)
Link ID ADV Router Age Seq# Checksum 135.4.1.0 192.168.6.1 774 0x8000005C 0xDDFC
Summary ASB Link States (Area 5)
Link ID ADV Router Age Seq# Checksum 5.5.5.5 192.168.6.1 774 0x8000002B 0x681B
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag 1.1.1.0 192.168.6.1 266 0x8000002C 0x31D0 0
Other show Commands
![Page 44: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/44.jpg)
444444© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
R6-2500#sh ip ospf database adv-router 5.5.5.5R6-2500#sh ip ospf database adv-router 5.5.5.5 (shows the LSAs neighbor is generating)
OSPF Router with ID (192.168.6.1) (Process ID 100)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
5.5.5.5 5.5.5.5 1479 0x80000034 0xA52A 1
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
1.1.1.0 5.5.5.5 1478 0x80000032 0xACCB 0
5.5.5.0 5.5.5.5 1478 0x80000030 0x204E 0
135.4.1.0 5.5.5.5 1478 0x80000032 0xB33B 0
R6-2500#
Other show Commands
![Page 45: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/45.jpg)
454545© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
r4-1#sh ip ospf statr4-1#sh ip ospf stat Area 0: SPF algorithm executed 16 times Area 33: SPF algorithm executed 8 times
SPF calculation timeDelta T Intra D-Intra Summ D-Summ Ext D-Ext Total Reason3d18h 4 0 4 4 8 0 20 R, SN,3d18h 8 0 4 0 8 0 20 R, N, SN,3d18h 4 0 4 0 8 0 16 N,3d18h 4 0 4 0 8 0 20 N, SN,3d18h 4 0 4 0 8 0 16 R, N,3d18h 4 0 4 0 8 0 16 R, SN,3d17h 4 0 4 0 8 0 28 R, N, SN, SA, X00:04:45 4 0 4 8 8 0 24 N, SN,00:02:51 4 0 4 0 8 0 20 R, N,00:02:41 4 0 8 8 8 0 28 R, SN,
Show IP OSPF stat
![Page 46: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/46.jpg)
464646© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF issues
• Number of routes in area
• Number of adjacencies per router
• Size of link-state database
Managed with summarization and use of areas
• Route summarization
Pros and Cons
• Reference bandwidth
Ospf auto-cost Reference-bandwidth [#]
• SPF calculation frequency and duration
• Partitioned areas
• Virtual links
Transistional only!
![Page 47: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/47.jpg)
474747© 2005 Cisco Systems, Inc. All rights reserved.Presentation_ID CISCO CONFIDENTIAL
OSPF resources
• RFCs2328: OSPF Version 2
1587: The OSPF NSSA Option
2370: Opaque LSA
• BooksCCIE Professional Development: Routing TCP/IP Vol 1 by Jeff Doyle
• Cisco online OSPF resourcesOSPF Design Guide
http://www.cisco.com/warp/customer/104/1.html
OSPF: Frequently Asked Questions
http://www.cisco.com/en/US/tech/tk365/technologies_q_and_a_item09186a0080094704.shtml
• Dijkstra Algorithm Applet: http://www.dgp.toronto.edu/people/JamesStewart/270/9798s/Laffra/DijkstraApplet.html
![Page 48: 1 Intro to OSPF © 1998, Cisco Systems, Inc.. 2 © 2005 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID CISCO CONFIDENTIAL Introduction.](https://reader036.fdocuments.in/reader036/viewer/2022062518/5697bf821a28abf838c860d2/html5/thumbnails/48.jpg)
Intro to OSPF © 2001, Cisco Systems, Inc.