SlideShare a Scribd company logo
1 of 12
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

Similar to OSPF Open Shortest Path First protocol full details

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

OSPF Overview
OSPF OverviewOSPF Overview
OSPF Overview
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
 
Ospf new
Ospf newOspf new
Ospf new
 
RIP and OSPF
RIP and OSPFRIP and OSPF
RIP and OSPF
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
ospf.ppt
ospf.pptospf.ppt
ospf.ppt
 
C C N A Day3
C C N A  Day3C C N A  Day3
C C N A Day3
 
Network Performance Analysis of Dynamic Routing Protocols for Real Time Appl...
Network Performance Analysis of Dynamic Routing Protocols for  Real Time Appl...Network Performance Analysis of Dynamic Routing Protocols for  Real Time Appl...
Network Performance Analysis of Dynamic Routing Protocols for Real Time Appl...
 
13. eigrp and ospf
13. eigrp and ospf13. eigrp and ospf
13. eigrp and ospf
 
Ospf routing protocol
Ospf routing protocolOspf routing protocol
Ospf routing protocol
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
E04402030037
E04402030037E04402030037
E04402030037
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
OSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdfOSPFv3_Technology_White_Paper.pdf
OSPFv3_Technology_White_Paper.pdf
 
Osp fv3 cs
Osp fv3 csOsp fv3 cs
Osp fv3 cs
 
Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2
 
Ospf
OspfOspf
Ospf
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 

More from Vignesh kumar

More from Vignesh kumar (20)

Multiprotocol label switching (MPLS).pptx
Multiprotocol label switching (MPLS).pptxMultiprotocol label switching (MPLS).pptx
Multiprotocol label switching (MPLS).pptx
 
port forwarding.pptx
port forwarding.pptxport forwarding.pptx
port forwarding.pptx
 
CCNP in networking notes #ccna #ccnp notes
CCNP in networking notes #ccna #ccnp notesCCNP in networking notes #ccna #ccnp notes
CCNP in networking notes #ccna #ccnp notes
 
OSI model full details
OSI model full detailsOSI model full details
OSI model full details
 
what is Cloud VPN.pptx
what is Cloud VPN.pptxwhat is Cloud VPN.pptx
what is Cloud VPN.pptx
 
 Site to Site VPN.pptx
 Site to Site VPN.pptx Site to Site VPN.pptx
 Site to Site VPN.pptx
 
Desktop Support Engineer Roles
Desktop Support Engineer Roles Desktop Support Engineer Roles
Desktop Support Engineer Roles
 
Spanning Tree Protocol (STP).pptx
Spanning Tree Protocol (STP).pptxSpanning Tree Protocol (STP).pptx
Spanning Tree Protocol (STP).pptx
 
Network basic interview questions.
Network basic interview questions.Network basic interview questions.
Network basic interview questions.
 
What is Network Security.pptx
What is Network Security.pptxWhat is Network Security.pptx
What is Network Security.pptx
 
What is Subnet Mask.pptx
What is Subnet Mask.pptxWhat is Subnet Mask.pptx
What is Subnet Mask.pptx
 
Types of Storage Devices in Network
Types of Storage Devices in NetworkTypes of Storage Devices in Network
Types of Storage Devices in Network
 
Virtual Local Area Networks (VLANs) and Types.pptx
Virtual Local Area Networks (VLANs) and Types.pptxVirtual Local Area Networks (VLANs) and Types.pptx
Virtual Local Area Networks (VLANs) and Types.pptx
 
What is RAID.pptx
What is RAID.pptxWhat is RAID.pptx
What is RAID.pptx
 
What is NET Bios.pptx
What is NET Bios.pptxWhat is NET Bios.pptx
What is NET Bios.pptx
 
domain controller vs child domain controller.
domain controller vs child domain controller.domain controller vs child domain controller.
domain controller vs child domain controller.
 
PRTG Network Monitoring Tool.pptx
PRTG Network Monitoring Tool.pptxPRTG Network Monitoring Tool.pptx
PRTG Network Monitoring Tool.pptx
 
c-Panel vs WHM.pptx
c-Panel vs WHM.pptxc-Panel vs WHM.pptx
c-Panel vs WHM.pptx
 
What is mail server? ,what is WHM?
What is mail server? ,what is WHM?What is mail server? ,what is WHM?
What is mail server? ,what is WHM?
 
SSL VS TLS.pptx
SSL VS TLS.pptxSSL VS TLS.pptx
SSL VS TLS.pptx
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
MinawBelay
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Software testing for project report .pdf
Software testing for project report .pdfSoftware testing for project report .pdf
Software testing for project report .pdf
 
Word Stress rules esl .pptx
Word Stress rules esl               .pptxWord Stress rules esl               .pptx
Word Stress rules esl .pptx
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 

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.