SlideShare a Scribd company logo
1 of 32
Download to read offline
Open Shortest Path First (OSPF)
Computer Networks
Rahul Ranjan
(16010121)
Indian Institute of Information Technology Manipur
April 3, 2018
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 1 / 32
Introduction to OSPF
Each router floods link-state information through its neighbors to
other routers.
Based on the flooded link-state information, each router maintains a
complete link-state database.
Based on the link-state database, a routing table is constructed using
SPF (e.g., Dijkstra’s) algorithm.
Runs over IP directly, protocol number 89
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 2 / 32
Hierarchical OSPF
AS is organized as two-level hierarchy—
1 AS is partitioned into self-contained areas.
2 Areas are interconnected by a backbone area.
3 Areas are identified by a 32-bit area ID.
4 0.0.0.0 is reserved for the backbone area.
Four types of routers—
Internal router, area border router, backbone router, autonomous
system boundary router (ASBR).
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 3 / 32
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 4 / 32
Metric in OSPF
The Metric explains , the cost of reaching a destination from the host
is calculated from the source router to the destination network.
In case of Metric hop- count can be used as the Cost by
administration.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 5 / 32
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 6 / 32
Forwarding Tables
1 Each OSPF router can create a forwarding table after finding the
shortest - path tree between itself and the destination.
2 If we take consider or use the hop count for OSPF , the both tables
will be exactly same.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 7 / 32
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 8 / 32
Link-State Advertisement
OSPF is based on the link-state routing algorithm, which require that
a router advertise the state of each link to all neighbors for the
formation of the Link-State Database.
We used the graph theory and assumed each router as a node and
each network between two router is edge.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 9 / 32
Types of LSA
1 Router link
2 Network link
3 Summary link to Network
4 Summary link to AS
5 External Link
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 10 / 32
Router Link
1 A router link advertises the existence of a router as a node.
2 These types of advertisements can define one or more types of links
that connect the advertising router to other entities.
3 Instead of just giving the address of announcing routers.
4 A transient link announces a link to a transient network.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 11 / 32
Router Link
1 A transient network is connected to the rest of the networks by one or
more routers.
2 The router link define the address and cost of all transient links.
3 A Stub Link advertises a link to a stub network, a network that is not
a through network (No Knowledge of other network) & the Router
link advertises the address & cost of Stub link.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 12 / 32
Router Link
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 13 / 32
Network link
A network link advertises the network as a node.
However a network can’t do announcements itself so one of the router
is assigned as the designated router and does the advertising.
In addition to the address of the designated router , this type of LSP
announces the IP Address of all routers.
In case of Network link , no cost is advertised because each router
announces the cost to the network when it sends a router link
advertisements.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 14 / 32
Network link
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 15 / 32
Summary link to Network
This is done by the area border router,it advertises the summary of
links collected by the backbone to an area or the summary of the links
collected by the area to the backbone
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 16 / 32
Summary link to AS
This is done by the AS router that advertises the summary links from
ASs to the backbone area of the current AS, information which later
can be disseminated to the area so they will know about the network
in other ASs.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 17 / 32
Summary Link to AS
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 18 / 32
External Link
This is also done by an AS router to announce the existence of a
single network outside the AS to the backbone area to be
disseminated into the area.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 19 / 32
External Link
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 20 / 32
Applying SPF to Network
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 21 / 32
OSPF packets
Five types of OSPF packets—–
1 Hello(1)
2 Database description(2)
3 Link-State Request(3)/Update(4)/Acknowledgement(5)
OSPF common header—
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 22 / 32
OSPF common header fields
1 Version number: 2
2 Type: Type of OSPF packet
3 Packet length: in bytes, includes OSPF header.
4 Router ID: 32-bit number assigned to each OSPF running router –
uniquely identifies router within AS
5 Area ID: any four-byte number (0.0.0.0 reserved for backbone area)
6 Checksum: error detection
7 Three Authentication related fields: to authenticate OSPF
packets.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 23 / 32
Hello Packets
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 24 / 32
Hello packet fields
Network mask: Subnet mask of the interface the packet is sent on
Hello interval: Number of seconds between Hello packets
Options: optional capabilities supported by the router
Priority: of the router – used in election of designated router
Dead interval: Number of seconds before declaring a non
responding neighbor down
Designated router/Backup: Every broadcast network with at least
two routers has a designated router. This sends network LSAs for the
broadcast network. This field is 0.0.0.0 if there is no designated router
Neighbors: Router ID of each neighbor from whom Hello packets
have recently been received.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 25 / 32
Database description packet fields
Interface MTU: MTU of the associated interface
Options: optional capabilities supported by the router
I bit: Init bit set to 1 if this packet is the first in the sequence of
database description packets
M bit: More bit is set to 1 if more database description packets are
to follow.
MS bit: Master/Slave bit
Database description seq. no.: identifies the packet number
sequentially so that a receiver can detect a missing packet.
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 26 / 32
OSPF packets
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 27 / 32
LSA header fields
Link-state age: time since LSA generation
Options: Optional capabilities supported by the router
Link-state type: Router LSA, network LSA, summary LSA for IP
networks, summary LSA for ASB routers, AS-external LSAs
Link-state ID: Describes routing domain for the LSA; depends on
LSA type.
Advertising router: Router ID of the router that generated the LSA
Link-state sequence number: Numbers LSAs sequentially to
identify old and duplicate LSAs
Link-state checksum: Entire contents of LSA except link-state age
Length: In bytes of LSA including LSA header
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 28 / 32
Link-state Request/Update/ Acknowledgement
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 29 / 32
Link state updates
Each Link State Update packet carries a set of new link state
advertisements (LSAs) one hop further away from their point of
origination.
A single Link State Update packet may contain the LSAs of several
routers. Each LSA is tagged with the ID of the originating router and
a checksum of its link state contents
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 30 / 32
Performance of OSPF
Update messages :- As the LS message in it is more complex so
these message uses lot of bandwidth.
Convergence of Forwarding tables :- As each router need to run
SPF(Dijkstra) algorithm so this might take some time.
Robustness :- It is more robust than RIP because each router is
independent of others .
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 31 / 32
Thank You!!
”Thank You for listenning me!!!”
Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 32 / 32

More Related Content

What's hot

How packet data travel over network
How packet data travel over networkHow packet data travel over network
How packet data travel over network
Raisa Anjani
 
Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report Slides
Bassam Kanber
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modified
rajesh531
 
Network Protocol Analyzer
Network Protocol AnalyzerNetwork Protocol Analyzer
Network Protocol Analyzer
Sourav Roy
 

What's hot (20)

Academic Experiment 2 - IP forwarding
Academic Experiment 2 - IP forwarding Academic Experiment 2 - IP forwarding
Academic Experiment 2 - IP forwarding
 
Icmp
IcmpIcmp
Icmp
 
How packet data travel over network
How packet data travel over networkHow packet data travel over network
How packet data travel over network
 
Internet Protocol Version 4
Internet Protocol Version 4Internet Protocol Version 4
Internet Protocol Version 4
 
6 ccna (fundamentals of i pv4 addressing and routing)
6  ccna (fundamentals of i pv4 addressing and routing)6  ccna (fundamentals of i pv4 addressing and routing)
6 ccna (fundamentals of i pv4 addressing and routing)
 
Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report Slides
 
The Internet Protocol version 4 (IPv4)
The Internet Protocol version 4 (IPv4)The Internet Protocol version 4 (IPv4)
The Internet Protocol version 4 (IPv4)
 
IP Datagram Structure
IP Datagram StructureIP Datagram Structure
IP Datagram Structure
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modified
 
Introduction to data link layer
Introduction to data link layerIntroduction to data link layer
Introduction to data link layer
 
Network layers forwarding.docx
Network layers forwarding.docxNetwork layers forwarding.docx
Network layers forwarding.docx
 
Et3003 sem2-1314-5 network layers ii (intro to routing)
Et3003 sem2-1314-5 network layers ii (intro to routing)Et3003 sem2-1314-5 network layers ii (intro to routing)
Et3003 sem2-1314-5 network layers ii (intro to routing)
 
Transport layer
Transport layer   Transport layer
Transport layer
 
Pathlet routing_Demo2
Pathlet routing_Demo2Pathlet routing_Demo2
Pathlet routing_Demo2
 
Network Protocol Analyzer
Network Protocol AnalyzerNetwork Protocol Analyzer
Network Protocol Analyzer
 
Routing
RoutingRouting
Routing
 
Detection of ARP Spoofing
Detection of ARP SpoofingDetection of ARP Spoofing
Detection of ARP Spoofing
 
Network layer logical addressing
Network layer logical addressingNetwork layer logical addressing
Network layer logical addressing
 
Routing
RoutingRouting
Routing
 
Ch 19 Network-layer protocols Section 1
Ch 19  Network-layer protocols Section 1Ch 19  Network-layer protocols Section 1
Ch 19 Network-layer protocols Section 1
 

Similar to Open Shortest Path First (OSPF)-Unicast Routing

OSPF (Open Shortest Path First) Case Study: Anil Nembang
OSPF (Open Shortest Path First) Case Study: Anil NembangOSPF (Open Shortest Path First) Case Study: Anil Nembang
OSPF (Open Shortest Path First) Case Study: Anil Nembang
Anil Nembang
 

Similar to Open Shortest Path First (OSPF)-Unicast Routing (20)

Arun project-Final
Arun project-FinalArun project-Final
Arun project-Final
 
Optimal Performance Analysis Enabling OSPF and BGP in Internal and External WAN
Optimal Performance Analysis Enabling OSPF and BGP in Internal and External WANOptimal Performance Analysis Enabling OSPF and BGP in Internal and External WAN
Optimal Performance Analysis Enabling OSPF and BGP in Internal and External WAN
 
Ospf routing protocol
Ospf routing protocolOspf routing protocol
Ospf routing protocol
 
OSPF.pdf
OSPF.pdfOSPF.pdf
OSPF.pdf
 
RIP and OSPF
RIP and OSPFRIP and OSPF
RIP and OSPF
 
CSC427_Week_11.pdf
CSC427_Week_11.pdfCSC427_Week_11.pdf
CSC427_Week_11.pdf
 
SIMULATION OF THE COMBINED METHOD
SIMULATION OF THE COMBINED METHODSIMULATION OF THE COMBINED METHOD
SIMULATION OF THE COMBINED METHOD
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
IPv6 Routing.pdf
IPv6 Routing.pdfIPv6 Routing.pdf
IPv6 Routing.pdf
 
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
OSPF Beyond Stump-the-Chump_Interview_Questions - Part 01 -
 
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...
 
CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3CCNP ROUTE V7 CH3
CCNP ROUTE V7 CH3
 
ch2_p3_ospf.pptx
ch2_p3_ospf.pptxch2_p3_ospf.pptx
ch2_p3_ospf.pptx
 
OSPF (Open Shortest Path First) Case Study: Anil Nembang
OSPF (Open Shortest Path First) Case Study: Anil NembangOSPF (Open Shortest Path First) Case Study: Anil Nembang
OSPF (Open Shortest Path First) Case Study: Anil Nembang
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
Single-Area OSPFv2 Concepts.pdf
Single-Area OSPFv2 Concepts.pdfSingle-Area OSPFv2 Concepts.pdf
Single-Area OSPFv2 Concepts.pdf
 
OSPF.pptx
OSPF.pptxOSPF.pptx
OSPF.pptx
 
Arp config-arp
Arp config-arpArp config-arp
Arp config-arp
 
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
Day 3 ENHANCED IGRP (EIGRP) AND OPEN SHORTEST PATH FIRST (OSPF)
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 

Open Shortest Path First (OSPF)-Unicast Routing

  • 1. Open Shortest Path First (OSPF) Computer Networks Rahul Ranjan (16010121) Indian Institute of Information Technology Manipur April 3, 2018 Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 1 / 32
  • 2. Introduction to OSPF Each router floods link-state information through its neighbors to other routers. Based on the flooded link-state information, each router maintains a complete link-state database. Based on the link-state database, a routing table is constructed using SPF (e.g., Dijkstra’s) algorithm. Runs over IP directly, protocol number 89 Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 2 / 32
  • 3. Hierarchical OSPF AS is organized as two-level hierarchy— 1 AS is partitioned into self-contained areas. 2 Areas are interconnected by a backbone area. 3 Areas are identified by a 32-bit area ID. 4 0.0.0.0 is reserved for the backbone area. Four types of routers— Internal router, area border router, backbone router, autonomous system boundary router (ASBR). Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 3 / 32
  • 4. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 4 / 32
  • 5. Metric in OSPF The Metric explains , the cost of reaching a destination from the host is calculated from the source router to the destination network. In case of Metric hop- count can be used as the Cost by administration. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 5 / 32
  • 6. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 6 / 32
  • 7. Forwarding Tables 1 Each OSPF router can create a forwarding table after finding the shortest - path tree between itself and the destination. 2 If we take consider or use the hop count for OSPF , the both tables will be exactly same. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 7 / 32
  • 8. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 8 / 32
  • 9. Link-State Advertisement OSPF is based on the link-state routing algorithm, which require that a router advertise the state of each link to all neighbors for the formation of the Link-State Database. We used the graph theory and assumed each router as a node and each network between two router is edge. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 9 / 32
  • 10. Types of LSA 1 Router link 2 Network link 3 Summary link to Network 4 Summary link to AS 5 External Link Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 10 / 32
  • 11. Router Link 1 A router link advertises the existence of a router as a node. 2 These types of advertisements can define one or more types of links that connect the advertising router to other entities. 3 Instead of just giving the address of announcing routers. 4 A transient link announces a link to a transient network. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 11 / 32
  • 12. Router Link 1 A transient network is connected to the rest of the networks by one or more routers. 2 The router link define the address and cost of all transient links. 3 A Stub Link advertises a link to a stub network, a network that is not a through network (No Knowledge of other network) & the Router link advertises the address & cost of Stub link. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 12 / 32
  • 13. Router Link Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 13 / 32
  • 14. Network link A network link advertises the network as a node. However a network can’t do announcements itself so one of the router is assigned as the designated router and does the advertising. In addition to the address of the designated router , this type of LSP announces the IP Address of all routers. In case of Network link , no cost is advertised because each router announces the cost to the network when it sends a router link advertisements. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 14 / 32
  • 15. Network link Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 15 / 32
  • 16. Summary link to Network This is done by the area border router,it advertises the summary of links collected by the backbone to an area or the summary of the links collected by the area to the backbone Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 16 / 32
  • 17. Summary link to AS This is done by the AS router that advertises the summary links from ASs to the backbone area of the current AS, information which later can be disseminated to the area so they will know about the network in other ASs. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 17 / 32
  • 18. Summary Link to AS Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 18 / 32
  • 19. External Link This is also done by an AS router to announce the existence of a single network outside the AS to the backbone area to be disseminated into the area. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 19 / 32
  • 20. External Link Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 20 / 32
  • 21. Applying SPF to Network Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 21 / 32
  • 22. OSPF packets Five types of OSPF packets—– 1 Hello(1) 2 Database description(2) 3 Link-State Request(3)/Update(4)/Acknowledgement(5) OSPF common header— Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 22 / 32
  • 23. OSPF common header fields 1 Version number: 2 2 Type: Type of OSPF packet 3 Packet length: in bytes, includes OSPF header. 4 Router ID: 32-bit number assigned to each OSPF running router – uniquely identifies router within AS 5 Area ID: any four-byte number (0.0.0.0 reserved for backbone area) 6 Checksum: error detection 7 Three Authentication related fields: to authenticate OSPF packets. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 23 / 32
  • 24. Hello Packets Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 24 / 32
  • 25. Hello packet fields Network mask: Subnet mask of the interface the packet is sent on Hello interval: Number of seconds between Hello packets Options: optional capabilities supported by the router Priority: of the router – used in election of designated router Dead interval: Number of seconds before declaring a non responding neighbor down Designated router/Backup: Every broadcast network with at least two routers has a designated router. This sends network LSAs for the broadcast network. This field is 0.0.0.0 if there is no designated router Neighbors: Router ID of each neighbor from whom Hello packets have recently been received. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 25 / 32
  • 26. Database description packet fields Interface MTU: MTU of the associated interface Options: optional capabilities supported by the router I bit: Init bit set to 1 if this packet is the first in the sequence of database description packets M bit: More bit is set to 1 if more database description packets are to follow. MS bit: Master/Slave bit Database description seq. no.: identifies the packet number sequentially so that a receiver can detect a missing packet. Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 26 / 32
  • 27. OSPF packets Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 27 / 32
  • 28. LSA header fields Link-state age: time since LSA generation Options: Optional capabilities supported by the router Link-state type: Router LSA, network LSA, summary LSA for IP networks, summary LSA for ASB routers, AS-external LSAs Link-state ID: Describes routing domain for the LSA; depends on LSA type. Advertising router: Router ID of the router that generated the LSA Link-state sequence number: Numbers LSAs sequentially to identify old and duplicate LSAs Link-state checksum: Entire contents of LSA except link-state age Length: In bytes of LSA including LSA header Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 28 / 32
  • 29. Link-state Request/Update/ Acknowledgement Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 29 / 32
  • 30. Link state updates Each Link State Update packet carries a set of new link state advertisements (LSAs) one hop further away from their point of origination. A single Link State Update packet may contain the LSAs of several routers. Each LSA is tagged with the ID of the originating router and a checksum of its link state contents Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 30 / 32
  • 31. Performance of OSPF Update messages :- As the LS message in it is more complex so these message uses lot of bandwidth. Convergence of Forwarding tables :- As each router need to run SPF(Dijkstra) algorithm so this might take some time. Robustness :- It is more robust than RIP because each router is independent of others . Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 31 / 32
  • 32. Thank You!! ”Thank You for listenning me!!!” Rahul Ranjan(16010121) (Indian Institute of Information Technology Manipur)Open Shortest Path First (OSPF) April 3, 2018 32 / 32