SlideShare a Scribd company logo
2
Most read
6
Most read
16
Most read
OSPF Overview
www.netprotocolxpert.in
• OSPF (Open Shortest Path First) is a link state routing
protocol. Because it is an open standard, it is implemented by
a variety of network vendors. OSPF will run on most routers
that doesn't necessarily have to be Cisco routers.
• OSPF is a classless routing protocol that supports VLSM and
CIDR, manual route summarization, incremental updates,
equal cost load balancing and many other useful features.
• OSPF uses only one parameter as the metric, namely
interface cost.
• The administrative distance of OSPF routes is, by default,
110. OSPF uses multicast addresses 224.0.0.5 and 224.0.0.6
for routing updates.
• Routers running OSPF have to establish neighbor
relationships before exchanging routes. Because OSPF is a
link state routing protocol, neighbors doesn't exchange routing
tables. Instead, they exchange information about network
topology. Each OSFP router then runs SFP algorithm to
calculate the best routes and adds those to the routing table.
Because each router knows the entire topology of a network,
a chance for a routing loop to occur is minimal.
• Each OSPF router stores routing and topology information in
three tables:
• Neighbor table - stores information about OSPF neighbors
• Topology table - stores the topology structure of a network
• Routing table - stores the best routes
OSPF neighbors
• OSPF routers need to establish a neighbor relationship before
exchanging routing updates. OSPF neighbors are dynamically
discovered by sending Hello packets out each OSPF-enabled
interface on a router. Hello packets are sent to the multicast
IP address of 224.0.0.5.
• The process is explained in the following figure:
• Routers R1 and R2 are directly connected. After OSFP is
enabled both routers send Hellos to each other to establish a
neighbor relationship. You can verify that the neighbor
relationship has indeed been established by typing the show
ip ospf neighbors command.
• In the example above, you can see that the router-id of R2 is
2.2.2.2. Each OSPF router is assigned a router ID.
• A router ID is determined by using one of the following:
1. using the router-id command under the OSPF process
2. using the highest IP address of the router's loopback
interfaces
3. using the highest IP address of the router's physical
interfaces
• The following fields in the Hello packets must be the same on
both routers in order for routers to become neighbors:
o subnet
o area id
o hello and dead interval timers
o Authentication
o area stub flag
o MTU
• By default, OSPF sends hello packets every 10 second on an
Ethernet network (Hello interval). A dead timer is four times
the value of the hello interval, so if a routers on an Ethernet
network doesn't receive at least one Hello packet from an
OSFP neighbor for 40 seconds, the routers declares that
neighbor „down“.
OSPF Neighbor States
• Before establishing a neighbor relationship, OSPF routers
need to go through several state changes. These states are
explained below.
o 1. Init state – a router has received a Hello message from the
other OSFP router
o 2. 2-way state – the neighbor has received the Hello message
and replied with a Hello message of his own
o 3. Exstart state – beginning of the LSDB exchange between
both routers. Routers are starting to exchange link state
information.
o 4. Exchange state – DBD (Database Descriptor) packets are
exchanged. DBDs contain LSAs headers. Routers will use
this information to see what LSAs need to be exchanged.
o 5. Loading state – one neighbor sends LSRs (Link State
Requests) for every network it doesn't know about. The other
neighbor replies with the LSUs (Link State Updates) which
contain information about requested networks. After all the
requested information have been received, other neighbor
goes through the same process
o 6. Full state - both routers have the synchronized database
and are fully adjacent with each other.
OSPF Areas
• OSPF uses the concept of areas.
• An area is a logical grouping of contiguous networks and
routers.
• All routers in the same area have the same topology table, but
they don't know about routers in the other areas.
• The main benefits of creating areas is that the size of the
topology and the routing table on a router is reduced, less
time is required to run the SFP algorithm and routing updates
are also reduced.
• Each area in the OSPF network has to connect to the
backbone area (area 0).
• All router inside an area must have the same area ID to
become OSPF neighbors.
• A router that has interfaces in more than one area (area 0 and
area 1, for example) is called Area Border Router (ABR).
• A router that connects an OSPF network to other routing
domains (EIGRP network, for example) is called Autonomous
System Border Routers (ASBR).
• NOTE – in OSPF, manual route summarization is possible
only on ABRs and ASBRs.
To better understand the concept of areas, consider the
following example.
• All routers are running OSPF. Routers R1 and R2 are inside
the backbone area (area 0). Router R3 is an ABR, because it
has interfaces in two areas, namely area 0 and area 1. Router
R4 and R5 are inside area 1. Router R6 is an ASBR, because
it connects OSFP network to another routing domain (an
EIGRP domain in this case). If the R1's directly connected
subnet fails, router R1 sends the routing update only to R2
and R3, because all routing updates all localized inside the
area.
• NOTE – the role of an ABR is to advertise address summaries
to neighboring areas. The role of an ASBR is to connect an
OSPF routing domain to another external network (e.g.
Internet, EIGRP network...).
LSA, LSU and LSR
• The LSAs (Link-State Advertisements) are used by OSPF
routers to exchange topology information.
• Each LSA contains routing and topology information to
describe a part of an OSPF network.
• When two neighbors decide to exchange routes, they send
each other a list of all LSAa in their respective topology
database.
• Each router then checks its topology database and sends a
Link State Request (LSR) message requesting all LSAs not
found in its topology table.
• Other router responds with the Link State Update (LSU) that
contains all LSAs requested by the other neighbor.
• The concept is explained in the following example:
• After configuring OSPF on both routers, routers exchange
LSAs to describe their respective topology database. Router
R1 sends an LSA header for its directly connected network
10.0.1.0/24. Router R2 check its topology database and
determines that it doesn't have information about that
network. Router R2 then sends Link State Request message
requesting further information about that network. Router R1
responds with Link State Update which contains information
about subnet 10.0.1.0/24 (next hop address, cost...).

More Related Content

PDF
PPT
PPTX
Open shortest path first (ospf)
PPTX
OSPF Basics
PPTX
OPEN SHORTEST PATH FIRST (OSPF)
PPTX
Bgp protocol
PPTX
Open Shortest Path First
PPTX
OSPF - Copie.pptx
Open shortest path first (ospf)
OSPF Basics
OPEN SHORTEST PATH FIRST (OSPF)
Bgp protocol
Open Shortest Path First
OSPF - Copie.pptx

What's hot (20)

PPTX
OSPF Fundamental
PPTX
#RIPv1 vs #RIPv2
PPT
Routing and OSPF
PPTX
IP ROUTING
PPTX
Ospf area types
PPTX
Routing protocols
PPTX
Olsr protocol ppt
PPTX
Border Gateway Protocol (BGP)
PPT
OSPF LSA Types Explained
PDF
BGP (border gateway routing protocol)
PPTX
Ppt of routing protocols
PPTX
IS-IS Protocol Introduction
PPT
OSPF Configuration
PPTX
PPTX
IS-IS Protocol
PPTX
Unicast multicast & broadcast
PPT
PDF
Routing in Mobile Ad hoc Networks
OSPF Fundamental
#RIPv1 vs #RIPv2
Routing and OSPF
IP ROUTING
Ospf area types
Routing protocols
Olsr protocol ppt
Border Gateway Protocol (BGP)
OSPF LSA Types Explained
BGP (border gateway routing protocol)
Ppt of routing protocols
IS-IS Protocol Introduction
OSPF Configuration
IS-IS Protocol
Unicast multicast & broadcast
Routing in Mobile Ad hoc Networks
Ad

Viewers also liked (7)

PPTX
Layer 2 switching loop
PPTX
Ospf area types
PPSX
OSPF - Routing Protocol
PPT
OSPF- Multi area
PPTX
Bridge Protocol Data Unit (BPDU) Frame Format
PDF
Eincop Netwax Lab: Redistribution
PDF
Eincop Netwax Lab: Lab 1 static route
Layer 2 switching loop
Ospf area types
OSPF - Routing Protocol
OSPF- Multi area
Bridge Protocol Data Unit (BPDU) Frame Format
Eincop Netwax Lab: Redistribution
Eincop Netwax Lab: Lab 1 static route
Ad

Similar to OSPF Overview (20)

PPTX
Allwyn ospf ppt
PPTX
PPT
PPT
PPT
Ccna day3
PDF
Ccna day3-140715152337-phpapp01
PPT
Ccna day3
PPT
BSCI30S03 OSPF open shortest path first .ppt
PDF
Cisco ospf
PDF
Cisco ospf
PPTX
OSPF Open Shortest Path First protocol full details
PPTX
Ccna ppt1
PPTX
ch2_p3_ospf.pptx
PPT
C C N A Day3
PDF
Ospf Last Modified Eng
PDF
Ospf routing protocol
PPTX
OSPF Configuration
PDF
Single-Area OSPFv2 Concepts.pdf
PDF
Open Shortest Path First
PPT
module11-ospf(Open Shortest Path First).ppt
Allwyn ospf ppt
Ccna day3
Ccna day3-140715152337-phpapp01
Ccna day3
BSCI30S03 OSPF open shortest path first .ppt
Cisco ospf
Cisco ospf
OSPF Open Shortest Path First protocol full details
Ccna ppt1
ch2_p3_ospf.pptx
C C N A Day3
Ospf Last Modified Eng
Ospf routing protocol
OSPF Configuration
Single-Area OSPFv2 Concepts.pdf
Open Shortest Path First
module11-ospf(Open Shortest Path First).ppt

More from NetProtocol Xpert (20)

PPTX
Basic Cisco ASA 5506-x Configuration (Firepower)
PPTX
MPLS Layer 3 VPN
PPTX
Common Layer 2 Threats, Attacks & Mitigation
PPTX
Storm-Control
PPTX
Dynamic ARP Inspection (DAI)
PPTX
IP Source Guard
PPTX
DHCP Snooping
PPTX
Password Recovery
PPTX
Application & Data Center
PPTX
Cisco ISR 4351 Router
PPTX
Cisco ASR 1001-X Router
PPTX
Securing management, control & data plane
PPTX
Point to-point protocol (ppp), PAP & CHAP
PPTX
Avoid DNS lookup when mistyping a command
PPTX
TCLSH and Macro Ping Test on Cisco Routers and Switches
PPTX
Private VLANs
PPTX
MTU (maximum transmission unit) & MRU (maximum receive unit)
PPTX
OTV Configuration
PPTX
Cisco OTV 
PPTX
OTV(Overlay Transport Virtualization)
Basic Cisco ASA 5506-x Configuration (Firepower)
MPLS Layer 3 VPN
Common Layer 2 Threats, Attacks & Mitigation
Storm-Control
Dynamic ARP Inspection (DAI)
IP Source Guard
DHCP Snooping
Password Recovery
Application & Data Center
Cisco ISR 4351 Router
Cisco ASR 1001-X Router
Securing management, control & data plane
Point to-point protocol (ppp), PAP & CHAP
Avoid DNS lookup when mistyping a command
TCLSH and Macro Ping Test on Cisco Routers and Switches
Private VLANs
MTU (maximum transmission unit) & MRU (maximum receive unit)
OTV Configuration
Cisco OTV 
OTV(Overlay Transport Virtualization)

Recently uploaded (20)

PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
composite construction of structures.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
UNIT 4 Total Quality Management .pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
web development for engineering and engineering
PDF
Digital Logic Computer Design lecture notes
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT
Project quality management in manufacturing
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PPT on Performance Review to get promotions
PPTX
additive manufacturing of ss316l using mig welding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Internet of Things (IOT) - A guide to understanding
composite construction of structures.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Lecture Notes Electrical Wiring System Components
UNIT 4 Total Quality Management .pptx
Mechanical Engineering MATERIALS Selection
web development for engineering and engineering
Digital Logic Computer Design lecture notes
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Project quality management in manufacturing
Operating System & Kernel Study Guide-1 - converted.pdf
PPT on Performance Review to get promotions
additive manufacturing of ss316l using mig welding
Embodied AI: Ushering in the Next Era of Intelligent Systems

OSPF Overview

  • 2. • OSPF (Open Shortest Path First) is a link state routing protocol. Because it is an open standard, it is implemented by a variety of network vendors. OSPF will run on most routers that doesn't necessarily have to be Cisco routers. • OSPF is a classless routing protocol that supports VLSM and CIDR, manual route summarization, incremental updates, equal cost load balancing and many other useful features. • OSPF uses only one parameter as the metric, namely interface cost. • The administrative distance of OSPF routes is, by default, 110. OSPF uses multicast addresses 224.0.0.5 and 224.0.0.6 for routing updates.
  • 3. • Routers running OSPF have to establish neighbor relationships before exchanging routes. Because OSPF is a link state routing protocol, neighbors doesn't exchange routing tables. Instead, they exchange information about network topology. Each OSFP router then runs SFP algorithm to calculate the best routes and adds those to the routing table. Because each router knows the entire topology of a network, a chance for a routing loop to occur is minimal. • Each OSPF router stores routing and topology information in three tables: • Neighbor table - stores information about OSPF neighbors • Topology table - stores the topology structure of a network • Routing table - stores the best routes
  • 4. OSPF neighbors • OSPF routers need to establish a neighbor relationship before exchanging routing updates. OSPF neighbors are dynamically discovered by sending Hello packets out each OSPF-enabled interface on a router. Hello packets are sent to the multicast IP address of 224.0.0.5. • The process is explained in the following figure:
  • 5. • Routers R1 and R2 are directly connected. After OSFP is enabled both routers send Hellos to each other to establish a neighbor relationship. You can verify that the neighbor relationship has indeed been established by typing the show ip ospf neighbors command. • In the example above, you can see that the router-id of R2 is 2.2.2.2. Each OSPF router is assigned a router ID.
  • 6. • A router ID is determined by using one of the following: 1. using the router-id command under the OSPF process 2. using the highest IP address of the router's loopback interfaces 3. using the highest IP address of the router's physical interfaces
  • 7. • The following fields in the Hello packets must be the same on both routers in order for routers to become neighbors: o subnet o area id o hello and dead interval timers o Authentication o area stub flag o MTU • By default, OSPF sends hello packets every 10 second on an Ethernet network (Hello interval). A dead timer is four times the value of the hello interval, so if a routers on an Ethernet network doesn't receive at least one Hello packet from an OSFP neighbor for 40 seconds, the routers declares that neighbor „down“.
  • 8. OSPF Neighbor States • Before establishing a neighbor relationship, OSPF routers need to go through several state changes. These states are explained below. o 1. Init state – a router has received a Hello message from the other OSFP router o 2. 2-way state – the neighbor has received the Hello message and replied with a Hello message of his own o 3. Exstart state – beginning of the LSDB exchange between both routers. Routers are starting to exchange link state information.
  • 9. o 4. Exchange state – DBD (Database Descriptor) packets are exchanged. DBDs contain LSAs headers. Routers will use this information to see what LSAs need to be exchanged. o 5. Loading state – one neighbor sends LSRs (Link State Requests) for every network it doesn't know about. The other neighbor replies with the LSUs (Link State Updates) which contain information about requested networks. After all the requested information have been received, other neighbor goes through the same process o 6. Full state - both routers have the synchronized database and are fully adjacent with each other.
  • 10. OSPF Areas • OSPF uses the concept of areas. • An area is a logical grouping of contiguous networks and routers. • All routers in the same area have the same topology table, but they don't know about routers in the other areas. • The main benefits of creating areas is that the size of the topology and the routing table on a router is reduced, less time is required to run the SFP algorithm and routing updates are also reduced.
  • 11. • Each area in the OSPF network has to connect to the backbone area (area 0). • All router inside an area must have the same area ID to become OSPF neighbors. • A router that has interfaces in more than one area (area 0 and area 1, for example) is called Area Border Router (ABR). • A router that connects an OSPF network to other routing domains (EIGRP network, for example) is called Autonomous System Border Routers (ASBR). • NOTE – in OSPF, manual route summarization is possible only on ABRs and ASBRs.
  • 12. To better understand the concept of areas, consider the following example.
  • 13. • All routers are running OSPF. Routers R1 and R2 are inside the backbone area (area 0). Router R3 is an ABR, because it has interfaces in two areas, namely area 0 and area 1. Router R4 and R5 are inside area 1. Router R6 is an ASBR, because it connects OSFP network to another routing domain (an EIGRP domain in this case). If the R1's directly connected subnet fails, router R1 sends the routing update only to R2 and R3, because all routing updates all localized inside the area. • NOTE – the role of an ABR is to advertise address summaries to neighboring areas. The role of an ASBR is to connect an OSPF routing domain to another external network (e.g. Internet, EIGRP network...).
  • 14. LSA, LSU and LSR • The LSAs (Link-State Advertisements) are used by OSPF routers to exchange topology information. • Each LSA contains routing and topology information to describe a part of an OSPF network. • When two neighbors decide to exchange routes, they send each other a list of all LSAa in their respective topology database. • Each router then checks its topology database and sends a Link State Request (LSR) message requesting all LSAs not found in its topology table. • Other router responds with the Link State Update (LSU) that contains all LSAs requested by the other neighbor.
  • 15. • The concept is explained in the following example:
  • 16. • After configuring OSPF on both routers, routers exchange LSAs to describe their respective topology database. Router R1 sends an LSA header for its directly connected network 10.0.1.0/24. Router R2 check its topology database and determines that it doesn't have information about that network. Router R2 then sends Link State Request message requesting further information about that network. Router R1 responds with Link State Update which contains information about subnet 10.0.1.0/24 (next hop address, cost...).