SlideShare a Scribd company logo
2
Most read
4
Most read
6
Most read
Open Shortest Path First
(OSPF)
VIGNESH KUMAR
Open Shortest Path First (OSPF)
 This is family of TCP/IP protocols.
 Open Shortest Path First (OSPF) is an IP routing protocol that uses a mathematical algorithm to calculate the
most efficient path to direct traffic on IP networks.
 This is IGP and link state routing protocol.
 OSPF Administrative distance Default Distance Values 110.
 OSPF, which uses link-state or shortest path first (SPF) technology, distributes routing information across routers
within a single autonomous system.
 Each router maintains an overall network topology.
Link State Routing in 4 Steps
 Step 1: Neighbor discovery
 Each Link State enabled router periodically sends a HELLO message on each of its links. Neighbor routers respond to
these HELLO messages identifying themselves. Within the replies, network addresses of the routers are attached and are
used by the HELLO initiator to build up its neighbor table.
 Step 2: Measuring link cost
 A set of tests is performed on each router to measure the cost to each of its neighbors. The cost could be a measure of
the end-to-end delay, throughput, or a combination of these metrics. How these tests are performed is out of the scope of
this article. The important thing to know is that each link state enabled router has to somehow possess an estimate of the
cost for each of its links.
 Step 3: Building and Distributing Link State Packets
 Each router builds up a packet containing its neighbors and the corresponding link costs to these neighbors. At the
beginning of the packet, each router adds its identity along with a sequence number and an age parameter, the latter
being used to ensure no packet will wander around for an indefinite period of time. After the construction process, the
packet is flooded in the network.
 Step 4: Evaluating Shortest Paths
 Using all the details from its link state table, a router is able to compute, using the Dijkstra algorithm, the shortest path
to any given destination.
Administrative distance of ospf routing
 OSPF is a classless Routing protocol supports VLSM and CIDR.
 Its Supports Equal cast load balancing.
 Equal cost load balancing in OSPF Equal-cost multiple path (ECMP) evenly load balances traffic over
multiple paths between each two network nodes. ECMP reduces traffic load on each path and enhances
network robustness.
OSPF table
 Neighbor table – stores information about OSPF neighbors
 Topology table – stores the topology structure of a network
 Routing table – stores the best routes
Neighbor table – stores information about
OSPF neighbors
 OSPF Neighbors
 OSPF routers need to establish a neighbor relationship before exchanging routing updates. OSPF
neighbors are dynamically discovered by sending Hello packets from 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 OSPF is enabled, both routers send Hellos to establish a
neighbor relationship. You can verify that the neighbor relationship has been established by typing
the ‘show ip ospf neighbors’ command.
Topology Table
 Topology Table: Contains the entire road map of the network with all available
OSPF routers and calculated best and alternative paths.
 Throughout the course of normal OSPF operation, each OSPF router will learn
about the various IP networks in a particular topology. All that information is
stored in the OSPF Topology Table.
 Every Routing Protocol has some form of a Topology table, which contains
everything a Routing Protocol knows.
 OSPF calls its topology table a Link State Database (LSDB). Each entry within the
LSDB is called a Link State Advertisement (LSA). Both the LSDB and LSA are very
important concepts of the OSPF protocol, and many additional lessons in this
series will unpack these ideas further.
Topology Table
 The Link State Database can be viewed using the command show ip ospf database,
and below is an example of the Link State Database for Router 5
Routing table
 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 are that the size of the topology and the routing table on a router
is reduced, less time is required to run the SPF algorithm, and routing updates are
also reduced.
OSPF Neighbor States
 Before establishing a neighbor relationship, OSPF routers need to go through several state changes.
These states are explained below:
 1. Init state – a router has received a Hello message from the other OSPF router
2. 2-way state – the neighbor has received the Hello message and replied with a Hello message of his
own
3. Exstart state – beginning of the Link State Database (LSDB) exchange between both routers. Routers
are starting to exchange link state information.
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.
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
6. Full state – both routers have the synchronized database and are fully adjacent to each other.
OSPF Open Shortest Path First  protocol full details

More Related Content

PPTX
ch2_p3_ospf.pptx
PPT
OSPF Overview
PDF
Ospf
PDF
Single-Area OSPFv2 Concepts.pdf
PDF
OSPF.pdf
PPT
module11-ospf(Open Shortest Path First).ppt
PPT
module11-ospf.ppt
PDF
Cisco ospf
ch2_p3_ospf.pptx
OSPF Overview
Ospf
Single-Area OSPFv2 Concepts.pdf
OSPF.pdf
module11-ospf(Open Shortest Path First).ppt
module11-ospf.ppt
Cisco ospf

Similar to OSPF Open Shortest Path First protocol full details (20)

PDF
Cisco ospf
PPTX
OSPF.pptx
PDF
CSC427_Week_11.pdf
PPTX
PPT
ospf.ppt
PPTX
OSPF Open Shortest Path First Routing Protocol
DOCX
PDF
OSPFv3_Technology_White_Paper.pdf
PPT
PPTX
OSPF Configuration
PPTX
Open Shortest Path First (OSPF) || 2020 || Ser-2
PPT
ospf.ppt
PPT
Menggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.ppt
PPT
PPT
PPT
Ccna day3
PDF
Ccna day3-140715152337-phpapp01
PPT
Ccna day3
PPT
BSCI30S03 OSPF open shortest path first .ppt
PPTX
Open Shortest Path First
Cisco ospf
OSPF.pptx
CSC427_Week_11.pdf
ospf.ppt
OSPF Open Shortest Path First Routing Protocol
OSPFv3_Technology_White_Paper.pdf
OSPF Configuration
Open Shortest Path First (OSPF) || 2020 || Ser-2
ospf.ppt
Menggali Lebih Dalam tentang OSPF: Protokol Routing Dinamis yang Efisien.ppt
Ccna day3
Ccna day3-140715152337-phpapp01
Ccna day3
BSCI30S03 OSPF open shortest path first .ppt
Open Shortest Path First
Ad

More from Vignesh kumar (20)

PPTX
VLAN (Virtual Local Area Network) Full details.pptx
PPTX
How to Write Email for HR job Application
PDF
Questions for Network Engineer Full details.pdf
PDF
cybersecurity Interview questions for freshers.pdf
PDF
Linux Cheatsheet, linux commands full details.pdf
PDF
Cisco Certified Network Associate full details
PDF
CD change directory linux full details.pdf
PPTX
Linux Basic Commands class 2vignesh .ppt
PPTX
Linux OS Full Details Introduction.pptx
PPTX
Multiprotocol label switching (MPLS).pptx
PPTX
port forwarding.pptx
PDF
CCNP in networking notes #ccna #ccnp notes
PPTX
OSI model full details
PPTX
what is Cloud VPN.pptx
PPTX
 Site to Site VPN.pptx
PPTX
Desktop Support Engineer Roles
PPTX
Spanning Tree Protocol (STP).pptx
PPTX
Network basic interview questions.
PPTX
What is Network Security.pptx
PPTX
What is Subnet Mask.pptx
VLAN (Virtual Local Area Network) Full details.pptx
How to Write Email for HR job Application
Questions for Network Engineer Full details.pdf
cybersecurity Interview questions for freshers.pdf
Linux Cheatsheet, linux commands full details.pdf
Cisco Certified Network Associate full details
CD change directory linux full details.pdf
Linux Basic Commands class 2vignesh .ppt
Linux OS Full Details Introduction.pptx
Multiprotocol label switching (MPLS).pptx
port forwarding.pptx
CCNP in networking notes #ccna #ccnp notes
OSI model full details
what is Cloud VPN.pptx
 Site to Site VPN.pptx
Desktop Support Engineer Roles
Spanning Tree Protocol (STP).pptx
Network basic interview questions.
What is Network Security.pptx
What is Subnet Mask.pptx
Ad

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Cell Types and Its function , kingdom of life
PDF
Basic Mud Logging Guide for educational purpose
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharma ospi slides which help in ospi learning
PPH.pptx obstetrics and gynecology in nursing
TR - Agricultural Crops Production NC III.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Classroom Observation Tools for Teachers
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Computing-Curriculum for Schools in Ghana
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Cell Types and Its function , kingdom of life
Basic Mud Logging Guide for educational purpose
human mycosis Human fungal infections are called human mycosis..pptx
Final Presentation General Medicine 03-08-2024.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Complications of Minimal Access Surgery at WLH
Pharma ospi slides which help in ospi learning

OSPF Open Shortest Path First protocol full details

  • 1. Open Shortest Path First (OSPF) VIGNESH KUMAR
  • 2. Open Shortest Path First (OSPF)  This is family of TCP/IP protocols.  Open Shortest Path First (OSPF) is an IP routing protocol that uses a mathematical algorithm to calculate the most efficient path to direct traffic on IP networks.  This is IGP and link state routing protocol.  OSPF Administrative distance Default Distance Values 110.  OSPF, which uses link-state or shortest path first (SPF) technology, distributes routing information across routers within a single autonomous system.  Each router maintains an overall network topology.
  • 3. Link State Routing in 4 Steps  Step 1: Neighbor discovery  Each Link State enabled router periodically sends a HELLO message on each of its links. Neighbor routers respond to these HELLO messages identifying themselves. Within the replies, network addresses of the routers are attached and are used by the HELLO initiator to build up its neighbor table.  Step 2: Measuring link cost  A set of tests is performed on each router to measure the cost to each of its neighbors. The cost could be a measure of the end-to-end delay, throughput, or a combination of these metrics. How these tests are performed is out of the scope of this article. The important thing to know is that each link state enabled router has to somehow possess an estimate of the cost for each of its links.  Step 3: Building and Distributing Link State Packets  Each router builds up a packet containing its neighbors and the corresponding link costs to these neighbors. At the beginning of the packet, each router adds its identity along with a sequence number and an age parameter, the latter being used to ensure no packet will wander around for an indefinite period of time. After the construction process, the packet is flooded in the network.  Step 4: Evaluating Shortest Paths  Using all the details from its link state table, a router is able to compute, using the Dijkstra algorithm, the shortest path to any given destination.
  • 5.  OSPF is a classless Routing protocol supports VLSM and CIDR.  Its Supports Equal cast load balancing.  Equal cost load balancing in OSPF Equal-cost multiple path (ECMP) evenly load balances traffic over multiple paths between each two network nodes. ECMP reduces traffic load on each path and enhances network robustness.
  • 6. OSPF table  Neighbor table – stores information about OSPF neighbors  Topology table – stores the topology structure of a network  Routing table – stores the best routes
  • 7. Neighbor table – stores information about OSPF neighbors  OSPF Neighbors  OSPF routers need to establish a neighbor relationship before exchanging routing updates. OSPF neighbors are dynamically discovered by sending Hello packets from 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 OSPF is enabled, both routers send Hellos to establish a neighbor relationship. You can verify that the neighbor relationship has been established by typing the ‘show ip ospf neighbors’ command.
  • 8. Topology Table  Topology Table: Contains the entire road map of the network with all available OSPF routers and calculated best and alternative paths.  Throughout the course of normal OSPF operation, each OSPF router will learn about the various IP networks in a particular topology. All that information is stored in the OSPF Topology Table.  Every Routing Protocol has some form of a Topology table, which contains everything a Routing Protocol knows.  OSPF calls its topology table a Link State Database (LSDB). Each entry within the LSDB is called a Link State Advertisement (LSA). Both the LSDB and LSA are very important concepts of the OSPF protocol, and many additional lessons in this series will unpack these ideas further.
  • 9. Topology Table  The Link State Database can be viewed using the command show ip ospf database, and below is an example of the Link State Database for Router 5
  • 10. Routing table  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 are that the size of the topology and the routing table on a router is reduced, less time is required to run the SPF algorithm, and routing updates are also reduced.
  • 11. OSPF Neighbor States  Before establishing a neighbor relationship, OSPF routers need to go through several state changes. These states are explained below:  1. Init state – a router has received a Hello message from the other OSPF router 2. 2-way state – the neighbor has received the Hello message and replied with a Hello message of his own 3. Exstart state – beginning of the Link State Database (LSDB) exchange between both routers. Routers are starting to exchange link state information. 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. 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 6. Full state – both routers have the synchronized database and are fully adjacent to each other.