際際滷

際際滷Share a Scribd company logo
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 1
OSPF
Cap鱈tulo 11
ITE PC v4.0
Chapter 1 2
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction
ITE PC v4.0
Chapter 1 3
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
OSPF Packet Types
ITE PC v4.0
Chapter 1 4
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
 OSPF Hello Intervals
Usually multicast (224.0.0.5)
Sent every 30 seconds for NBMA segments
 OSPF Dead Intervals
This is the time that must transpire
before the neighbor is considered
down
Default time is 4 times
the hello interval
ITE PC v4.0
Chapter 1 5
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
OSPF Algorithm
 OSPF routers build &
maintain link-state
database containing LSA
received from other routers
Information found in database
is utilized upon execution of
Dijkstra SPF algorithm
SPF algorithm used to create
SPF tree
SPF tree used to populate
routing table
ITE PC v4.0
Chapter 1 6
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
The router ospf command
 To enable OSPF on a router use the following
command
R1(config)#router ospf process-id
Process id
 A locally significant number between 1 and 65535
-this means it does not have to match other OSPF
routers
ITE PC v4.0
Chapter 1 7
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 OSPF network command
-Requires entering: network address
wildcard mask - the inverse of the subnet
mask
area-id - area-id refers to the OSPF area.
OSPF area is a group of routers
that share link state information
-Example: Router(config-router)#network network-address
wildcard-ask area area-id
ITE PC v4.0
Chapter 1 8
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
 Router ID
This is an IP address used to identify a router
3 criteria for deriving the router ID
Use IP address configured with OSPF router-id command
-Takes precedence over loopback and physical interface
addresses
If router-id command not used then router chooses highest
IP address of any loopback interfaces
If no loopback interfaces are configured then the highest IP
address on any active interface is used
Show ip protocols
Show ip ospf
Show ip ospf interface
ITE PC v4.0
Chapter 1 9
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Verifying OSPF
 Use the show ip ospf neighbor command to verify &
troubleshoot OSPF networks
Command will display the following:
 Neighbor adjacency
-No adjacency indicated by -
Neighboring routers Router ID is not displayed
A state of full is not displayed
-Consequence of no adjacency-
No link state information exchanged
Inaccurate SPF trees & routing tables
ITE PC v4.0
Chapter 1 10
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF Metric
 OSPF uses cost as the metric for determining the
best route
-The best route will have the lowest cost
-Cost is based on bandwidth of an interface
Cost is calculated using the formula
108
/ bandwidth
-Reference bandwidth
defaults to 100Mbps
can be modified using
auto-cost reference-bandwidth command
ITE PC v4.0
Chapter 1 11
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Basic OSPF Configuration
Modifying the Cost of a link
 Both sides of a serial link should be configured with the
same bandwidth
Commands used to modify bandwidth value
Bandwidth command
Example: Router(config-if)#bandwidth bandwidth-kbps
ip ospf cost command  allows you to directly specify
interface cost
-Example:R1(config)#interface serial 0/0/0
R1(config-if)#ip ospf cost 1562
ITE PC v4.0
Chapter 1 12
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 2 challenges presented by multiaccess networks
Multiple adjacencies
Extensive LSA flooding
ITE PC v4.0
Chapter 1 13
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Solution to LSA flooding issue
is the use of
Designated router (DR)
Backup designated router (BDR)
 DR & BDR selection
Routers are elected to send &
receive LSA
 Sending & Receiving LSA
DRothers send LSAs via multicast
224.0.0.6 to DR & BDR
DR forward LSA via multicast
address 224.0.0.5 to all other
routers
ITE PC v4.0
Chapter 1 14
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
DR/BDR Election Process
 DR/BDR elections DO NOT occur in point to point
networks
ITE PC v4.0
Chapter 1 15
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Criteria for getting elected DR/BDR
1. DR: Router with the highest OSPF
interface priority.
2. BDR: Router with the second highest
OSPF interface priority.
3. If OSPF interface priorities are equal, the
highest router ID is used to break the tie.
ITE PC v4.0
Chapter 1 16
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction to OSPF
Hello Protocol
 OSPF Hello Packet
Discover OSPF neighbors & establish adjacencies
Advertise guidelines on which routers must agree to become neighbors
Used by multi-access networks to elect a designated router and a
backup designated router
ITE PC v4.0
Chapter 1 17
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
 Timing of DR/BDR Election
Occurs as soon as 1st
router has its interface enabled on
multiaccess network
When a DR is elected it remains as the DR until one of the
following occurs
-The DR fails.
-The OSPF process on the DR fails.
-The multiaccess interface on the DR fails.
ITE PC v4.0
Chapter 1 18
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
OSPF in Multiaccess Networks
OSPF Interface Priority
 Manipulating the DR/BDR election process continued
Use the ip ospf priority interface command.
Example:Router(config-if)#ip ospf priority {0 - 255}
Priority number range 0 to 255
0 means the router cannot become the DR or BDR
1 is the default priority value
ITE PC v4.0
Chapter 1 19
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
Redistributing an OSPF Default Route
 Topology includes a link to ISP
Router connected to ISP
Called an autonomous system border router
Used to propagate a default route
Example of static default route
R1(config)#ip route 0.0.0.0 0.0.0.0
loopback 1
R1(config-router)#default-information
originate
ITE PC v4.0
Chapter 1 20
息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
More OSPF Configuration
Fine-Tuning OSPF
 Modifying OSPF timers
Reason to modify timers
Faster detection of network failures
Manually modifying Hello & Dead intervals
Router(config-if)#ip ospf hello-interval seconds
Router(config-if)#ip ospf dead-interval seconds
Point to be made
Hello & Dead intervals must be the same between
neighbors

More Related Content

Similar to OSPF-BASICO PROTOCOLO DE ENRUTAMIENTO DINAMICO (20)

Exploration routing chapter_1
Exploration routing chapter_1Exploration routing chapter_1
Exploration routing chapter_1
Joshua Torres
CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8
Nil Menon
Chapter_2_CCNA2
Chapter_2_CCNA2Chapter_2_CCNA2
Chapter_2_CCNA2
sunabozu
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10
Chaing Ravuth
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1
CAVC
Ospf
OspfOspf
Ospf
Joshua Fonseca
Exploration routing chapter_2
Exploration routing chapter_2Exploration routing chapter_2
Exploration routing chapter_2
Joshua Torres
CCNA Exploration 2 - Chapter 2
CCNA Exploration 2 - Chapter 2CCNA Exploration 2 - Chapter 2
CCNA Exploration 2 - Chapter 2
Irsandi Hasan
Day 12.2 enablingospf
Day 12.2 enablingospfDay 12.2 enablingospf
Day 12.2 enablingospf
CYBERINTELLIGENTS
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
serieux1
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
SkyBlue659156
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
kecatem465
CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3
Chaing Ravuth
CCNA Exploration 2 - Chapter 10
CCNA Exploration 2 - Chapter 10CCNA Exploration 2 - Chapter 10
CCNA Exploration 2 - Chapter 10
Irsandi Hasan
CCNA Exploration 2 - Chapter 5
CCNA Exploration 2 - Chapter 5CCNA Exploration 2 - Chapter 5
CCNA Exploration 2 - Chapter 5
Irsandi Hasan
Exploration_Routing_Chapter_1 ppt for learning Networking
Exploration_Routing_Chapter_1 ppt for learning NetworkingExploration_Routing_Chapter_1 ppt for learning Networking
Exploration_Routing_Chapter_1 ppt for learning Networking
brainxMagic
Icnd210 s07l02
Icnd210 s07l02Icnd210 s07l02
Icnd210 s07l02
computerlenguyen
CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6
Irsandi Hasan
RS_InstructorPPT_Chapter8.pptx
RS_InstructorPPT_Chapter8.pptxRS_InstructorPPT_Chapter8.pptx
RS_InstructorPPT_Chapter8.pptx
jagali
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solution
Arnold Derrick Kinney
Exploration routing chapter_1
Exploration routing chapter_1Exploration routing chapter_1
Exploration routing chapter_1
Joshua Torres
CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8
Nil Menon
Chapter_2_CCNA2
Chapter_2_CCNA2Chapter_2_CCNA2
Chapter_2_CCNA2
sunabozu
CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10CCNA3 Verson6 Chapter10
CCNA3 Verson6 Chapter10
Chaing Ravuth
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1
CAVC
Exploration routing chapter_2
Exploration routing chapter_2Exploration routing chapter_2
Exploration routing chapter_2
Joshua Torres
CCNA Exploration 2 - Chapter 2
CCNA Exploration 2 - Chapter 2CCNA Exploration 2 - Chapter 2
CCNA Exploration 2 - Chapter 2
Irsandi Hasan
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
serieux1
ENSA_Module_2.pptx
ENSA_Module_2.pptxENSA_Module_2.pptx
ENSA_Module_2.pptx
SkyBlue659156
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 ConfigurationENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
ENSA_Module_2 Packet Tracer - Single-Area OSPFv2 Configuration
kecatem465
CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3
Chaing Ravuth
CCNA Exploration 2 - Chapter 10
CCNA Exploration 2 - Chapter 10CCNA Exploration 2 - Chapter 10
CCNA Exploration 2 - Chapter 10
Irsandi Hasan
CCNA Exploration 2 - Chapter 5
CCNA Exploration 2 - Chapter 5CCNA Exploration 2 - Chapter 5
CCNA Exploration 2 - Chapter 5
Irsandi Hasan
Exploration_Routing_Chapter_1 ppt for learning Networking
Exploration_Routing_Chapter_1 ppt for learning NetworkingExploration_Routing_Chapter_1 ppt for learning Networking
Exploration_Routing_Chapter_1 ppt for learning Networking
brainxMagic
CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6CCNA Discovery 3 - Chapter 6
CCNA Discovery 3 - Chapter 6
Irsandi Hasan
RS_InstructorPPT_Chapter8.pptx
RS_InstructorPPT_Chapter8.pptxRS_InstructorPPT_Chapter8.pptx
RS_InstructorPPT_Chapter8.pptx
jagali
Implementing a scalable ospf based solution
Implementing a scalable ospf based solutionImplementing a scalable ospf based solution
Implementing a scalable ospf based solution
Arnold Derrick Kinney

Recently uploaded (20)

autonomous vehicle project for engineering.pdf
autonomous vehicle project for engineering.pdfautonomous vehicle project for engineering.pdf
autonomous vehicle project for engineering.pdf
JyotiLohar6
How to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using ArduinoHow to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using Arduino
CircuitDigest
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
Sachpazis: Foundation Analysis and Design: Single Piles
Sachpazis: Foundation Analysis and Design: Single PilesSachpazis: Foundation Analysis and Design: Single Piles
Sachpazis: Foundation Analysis and Design: Single Piles
Dr.Costas Sachpazis
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
US Patented ReGenX Generator, ReGen-X Quatum Motor EV Regenerative Accelerati...
Thane Heins NOBEL PRIZE WINNING ENERGY RESEARCHER
GM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptxGM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptx
crdslalcomumbai
CFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptxCFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptx
MohamedShabana37
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
J. Agricultural Machinery
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
Taykon-Kalite belgeleri
Taykon-Kalite belgeleriTaykon-Kalite belgeleri
Taykon-Kalite belgeleri
TAYKON
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
Unit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment FoundationsUnit II: Design of Static Equipment Foundations
Unit II: Design of Static Equipment Foundations
Sanjivani College of Engineering, Kopargaon
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdfWater Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control Monthly - March 2025.pdf
Water Industry Process Automation & Control
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
google_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPTgoogle_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPT
JayeshShete1
AI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge GraphsAI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge Graphs
Max De Marzi
only history of java.pptx real bihind the name java
only history of java.pptx real bihind the name javaonly history of java.pptx real bihind the name java
only history of java.pptx real bihind the name java
mushtaqsaliq9
Lessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the CloudLessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Brian Gongol
autonomous vehicle project for engineering.pdf
autonomous vehicle project for engineering.pdfautonomous vehicle project for engineering.pdf
autonomous vehicle project for engineering.pdf
JyotiLohar6
How to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using ArduinoHow to Make an RFID Door Lock System using Arduino
How to Make an RFID Door Lock System using Arduino
CircuitDigest
Lectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).pptLectureof nano 1588236675-biosensors (1).ppt
Lectureof nano 1588236675-biosensors (1).ppt
SherifElGohary7
Sachpazis: Foundation Analysis and Design: Single Piles
Sachpazis: Foundation Analysis and Design: Single PilesSachpazis: Foundation Analysis and Design: Single Piles
Sachpazis: Foundation Analysis and Design: Single Piles
Dr.Costas Sachpazis
GM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptxGM Meeting 070225 TO 130225 for 2024.pptx
GM Meeting 070225 TO 130225 for 2024.pptx
crdslalcomumbai
CFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptxCFOT Fiber Optics FOA CERTIFICATION.pptx
CFOT Fiber Optics FOA CERTIFICATION.pptx
MohamedShabana37
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
Optimization of Cumulative Energy, Exergy Consumption and Environmental Life ...
J. Agricultural Machinery
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptxMathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
Mathematics behind machine learning INT255 INT255__Unit 3__PPT-1.pptx
ppkmurthy2006
Taykon-Kalite belgeleri
Taykon-Kalite belgeleriTaykon-Kalite belgeleri
Taykon-Kalite belgeleri
TAYKON
How to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using ArduinoHow to Build a Maze Solving Robot Using Arduino
How to Build a Maze Solving Robot Using Arduino
CircuitDigest
Wireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdfWireless-Charger presentation for seminar .pdf
Wireless-Charger presentation for seminar .pdf
AbhinandanMishra30
TM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdfTM-ASP-101-RF_Air Press manual crimping machine.pdf
TM-ASP-101-RF_Air Press manual crimping machine.pdf
ChungLe60
google_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPTgoogle_developer_group_ramdeobaba_university_EXPLORE_PPT
google_developer_group_ramdeobaba_university_EXPLORE_PPT
JayeshShete1
AI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge GraphsAI, Tariffs and Supply Chains in Knowledge Graphs
AI, Tariffs and Supply Chains in Knowledge Graphs
Max De Marzi
only history of java.pptx real bihind the name java
only history of java.pptx real bihind the name javaonly history of java.pptx real bihind the name java
only history of java.pptx real bihind the name java
mushtaqsaliq9
Lessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the CloudLessons learned when managing MySQL in the Cloud
Lessons learned when managing MySQL in the Cloud
Igor Donchovski
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Gauges are a Pump's Best Friend - Troubleshooting and Operations - v.07
Brian Gongol

OSPF-BASICO PROTOCOLO DE ENRUTAMIENTO DINAMICO

  • 1. 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public ITE PC v4.0 Chapter 1 1 OSPF Cap鱈tulo 11
  • 2. ITE PC v4.0 Chapter 1 2 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction
  • 3. ITE PC v4.0 Chapter 1 3 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF OSPF Packet Types
  • 4. ITE PC v4.0 Chapter 1 4 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF OSPF Hello Intervals Usually multicast (224.0.0.5) Sent every 30 seconds for NBMA segments OSPF Dead Intervals This is the time that must transpire before the neighbor is considered down Default time is 4 times the hello interval
  • 5. ITE PC v4.0 Chapter 1 5 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF OSPF Algorithm OSPF routers build & maintain link-state database containing LSA received from other routers Information found in database is utilized upon execution of Dijkstra SPF algorithm SPF algorithm used to create SPF tree SPF tree used to populate routing table
  • 6. ITE PC v4.0 Chapter 1 6 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration The router ospf command To enable OSPF on a router use the following command R1(config)#router ospf process-id Process id A locally significant number between 1 and 65535 -this means it does not have to match other OSPF routers
  • 7. ITE PC v4.0 Chapter 1 7 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration OSPF network command -Requires entering: network address wildcard mask - the inverse of the subnet mask area-id - area-id refers to the OSPF area. OSPF area is a group of routers that share link state information -Example: Router(config-router)#network network-address wildcard-ask area area-id
  • 8. ITE PC v4.0 Chapter 1 8 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration Router ID This is an IP address used to identify a router 3 criteria for deriving the router ID Use IP address configured with OSPF router-id command -Takes precedence over loopback and physical interface addresses If router-id command not used then router chooses highest IP address of any loopback interfaces If no loopback interfaces are configured then the highest IP address on any active interface is used Show ip protocols Show ip ospf Show ip ospf interface
  • 9. ITE PC v4.0 Chapter 1 9 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration Verifying OSPF Use the show ip ospf neighbor command to verify & troubleshoot OSPF networks Command will display the following: Neighbor adjacency -No adjacency indicated by - Neighboring routers Router ID is not displayed A state of full is not displayed -Consequence of no adjacency- No link state information exchanged Inaccurate SPF trees & routing tables
  • 10. ITE PC v4.0 Chapter 1 10 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF Metric OSPF uses cost as the metric for determining the best route -The best route will have the lowest cost -Cost is based on bandwidth of an interface Cost is calculated using the formula 108 / bandwidth -Reference bandwidth defaults to 100Mbps can be modified using auto-cost reference-bandwidth command
  • 11. ITE PC v4.0 Chapter 1 11 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Basic OSPF Configuration Modifying the Cost of a link Both sides of a serial link should be configured with the same bandwidth Commands used to modify bandwidth value Bandwidth command Example: Router(config-if)#bandwidth bandwidth-kbps ip ospf cost command allows you to directly specify interface cost -Example:R1(config)#interface serial 0/0/0 R1(config-if)#ip ospf cost 1562
  • 12. ITE PC v4.0 Chapter 1 12 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks 2 challenges presented by multiaccess networks Multiple adjacencies Extensive LSA flooding
  • 13. ITE PC v4.0 Chapter 1 13 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks Solution to LSA flooding issue is the use of Designated router (DR) Backup designated router (BDR) DR & BDR selection Routers are elected to send & receive LSA Sending & Receiving LSA DRothers send LSAs via multicast 224.0.0.6 to DR & BDR DR forward LSA via multicast address 224.0.0.5 to all other routers
  • 14. ITE PC v4.0 Chapter 1 14 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks DR/BDR Election Process DR/BDR elections DO NOT occur in point to point networks
  • 15. ITE PC v4.0 Chapter 1 15 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks Criteria for getting elected DR/BDR 1. DR: Router with the highest OSPF interface priority. 2. BDR: Router with the second highest OSPF interface priority. 3. If OSPF interface priorities are equal, the highest router ID is used to break the tie.
  • 16. ITE PC v4.0 Chapter 1 16 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction to OSPF Hello Protocol OSPF Hello Packet Discover OSPF neighbors & establish adjacencies Advertise guidelines on which routers must agree to become neighbors Used by multi-access networks to elect a designated router and a backup designated router
  • 17. ITE PC v4.0 Chapter 1 17 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks Timing of DR/BDR Election Occurs as soon as 1st router has its interface enabled on multiaccess network When a DR is elected it remains as the DR until one of the following occurs -The DR fails. -The OSPF process on the DR fails. -The multiaccess interface on the DR fails.
  • 18. ITE PC v4.0 Chapter 1 18 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public OSPF in Multiaccess Networks OSPF Interface Priority Manipulating the DR/BDR election process continued Use the ip ospf priority interface command. Example:Router(config-if)#ip ospf priority {0 - 255} Priority number range 0 to 255 0 means the router cannot become the DR or BDR 1 is the default priority value
  • 19. ITE PC v4.0 Chapter 1 19 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public More OSPF Configuration Redistributing an OSPF Default Route Topology includes a link to ISP Router connected to ISP Called an autonomous system border router Used to propagate a default route Example of static default route R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 1 R1(config-router)#default-information originate
  • 20. ITE PC v4.0 Chapter 1 20 息 2007 Cisco Systems, Inc. All rights reserved. Cisco Public More OSPF Configuration Fine-Tuning OSPF Modifying OSPF timers Reason to modify timers Faster detection of network failures Manually modifying Hello & Dead intervals Router(config-if)#ip ospf hello-interval seconds Router(config-if)#ip ospf dead-interval seconds Point to be made Hello & Dead intervals must be the same between neighbors