SlideShare a Scribd company logo
1 of 36
Open Shortest Path First Protocol 
(OSPF) 
Speaker: 
Martín Bratina. martin.bratina@att.com 
Date 22/03/2013
Agenda 
• What is OSPF? 
• Why is OSPF needed? 
• How OSPF works? 
• LAB 
2 © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.
What is OSPF? 
• Open Shortest Path First 
• Internal routing protocol (IGP) 
• Open Standard. RFC 2328 
• Link State Protocol 
• Designed for IP networks 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 3 AT&T Intellectual Property.
Why is OSPF needed? 
• Open standard 
• Link State Protocol 
• Scalability 
• Fast convergence 
• Supports authentication/security 
• Supports VLSM (Variable Length Subnet Masks) 
• Support IPv6 (OSPFv3) 
• Support load balancing 
• Consumes low bandwidth 
• Uses a hierarchical structure 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 4 AT&T Intellectual Property.
How OSPF works? 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 5 AT&T Intellectual Property.
How OSPF works? 
• Uses a Link State Logic. 
• Neighbor discovery 
• Topology database exchange 
• Route computation 
• Divides routers into areas for route optimization and 
segmentation 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 6 AT&T Intellectual Property.
Neighbor Discovery 
• Neighbor discovery 
• Each router discover its neighbors routers sending hello messages 
• Routers from adjacencies with its neighbors 
• Neighbor adjacency requirements 
• Interfaces in the same subnet 
• Different router ID between neighbors 
• Routers in the same area 
• Same authentication parameters 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 7 AT&T Intellectual Property.
Topology Database Exchange 
• Topology Database Exchange 
• Each router generates its own network topology information (LSA 
Message) 
• Each router flood its LSA message to its neighbors 
• Each router stores a LSA copy on its internal OSPF topology database 
(LSDB) 
• Each router has the same LDSB 
• Link State Advertisement (LSA) Message information 
• Router ID of the LSA 
• List of the router interfaces, IP address, subnet and mask 
• List of routers reachable (neighbors) on each interface 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 8 AT&T Intellectual Property.
Link State Advertisements(LSAs) 
LS Age 
Options LS Type 
Link State ID 
Advertising Router 
LS Sequence Number 
LS Checksum 
Length 
0 16 
LSA Header 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 9 AT&T Intellectual Property.
Route Computation 
• Route Computation 
• Each router analyzes its topology database and executes Shortest Path 
First (SPF) algorithm 
• Router choses the shortest (best) route to each destination from its 
perspective (SPF Tree) 
• Router generates entries in the routing table for those selected 
destinations 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 10 AT&T Intellectual Property.
SPF Tree 
BEFORE run SPF AFTER run SPF 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 11 AT&T Intellectual Property.
Communication between OSPF Routers 
• OSPF packets encapsulated in IP packets 
• IP protocol # 89 
• Standard 24 byte header 
• OSPF packet type field 
• OSPF router ID of sender 
• Packet checksum 
• Authentication fields 
• OSPF Area ID 
• Uses Multicast IP address 224.0.0.5 for all OSPF routers 
• DR router use Multicast IP address 224.0.0.6 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 12 AT&T Intellectual Property.
The Hello Protocol 
• Maintains neighbor relationships 
• Elects Designated Router (DR) in multi-access networks 
• The Hello Packet 
• Hello packets sent out every 10 seconds 
• RouterDead Interval (default 40 seconds) 
• Network Mask 
• List of neighbors 
• Ensures that link is bidirectional 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 13 AT&T Intellectual Property.
The Hello Protocol 
Hello Hello 
Hello Hello 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 14 AT&T Intellectual Property.
Designated Router (DR) 
• One per multi access network 
• Generates Network Link Advertisements (LSA type 2) 
• All routers form adjacency to it 
• Assist in DB synchronization 
• Elected by priority. It tie, it is elected by the highest router ID 
Adjacencies WITHOUT DR 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 15 AT&T Intellectual Property. 
Adjacencies WITH DR 
DR
Database Synchronization 
• Crucial to ensure correct and loop free routing 
• Must be done before 2 neighbors start 
communication 
• Whenever new LSAs are introduced 
• uses reliable flooding 
• Each router sends LSA headers (small LSA’s) to its 
neighbor when connection comes up 
• Requests only those LSAs which are recent 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 16 AT&T Intellectual Property.
Database Exchange 
• Neighboring routers first exchange hellos 
• A database description packet establishes the 
sequence number 
• The other router sends LSA headers 
• Sequence number incremented for every pair of 
database description packets 
• implicit acknowledgement for the previous pair 
• After examining LSA headers explicit request sent 
for complete LSA 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 17 AT&T Intellectual Property.
Reliable Flooding 
• Starts when a router wants to update self-originated 
LSAs 
• Neighbor installs more recent LSAs into its 
database 
• Floods out on all interfaces except the one on 
which it arrived 
• Reliability-retransmissions until acks received 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 18 AT&T Intellectual Property.
Reliable Flooding (cont..) 
10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 
10.1.1.3 10.1.1.5 
Time T1 
u 
u 
u 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 19 AT&T Intellectual Property.
Reliable Flooding (cont..) 
10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 
u u 
10.1.1.3 10.1.1.5 
Time T2 
u 
u 
u 
20 © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.
Reliable Flooding (cont..) 
10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 
10.1.1.3 10.1.1.5 
Time T3 
u 
u 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 21 AT&T Intellectual Property.
Reliable Flooding (cont..) 
10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 
10.1.1.3 10.1.1.5 
Time T3+ 
ack ack ack ack 
ack 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 22 AT&T Intellectual Property.
Routing Calculations 
• Link costs configurable by administrator 
• Smaller values for more preferred links 
• Different costs for each link direction possible 
• Dijkstra’s shortest path algorithm 
• incrementally calculates tree of shortest paths 
• each link in the network examined once 
• computes multiple shortest paths (equal-cost multipath)
LAB 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 24 AT&T Intellectual Property.
OSPF Areas 
• Two-level hierarchical routing scheme through the use of 
areas 
• Areas identified by 32-bit id 
• Each area has its own link state database which is a 
collection of network-LSAs and router-LSAs 
• Area’s topology hidden from all other areas 
• All Areas connected through Backbone Area (Area 0) 
• Interconnection of areas through area border routers 
(ABRs) 
• ABR leaks IP addressing information to other areas through 
summary LSAs
Sample Area Configuration 
AREA 0 
Backbone 
AREA 1 
AREA 35 
ASBR 
Internet 
ABR 
ABR
OSPF Areas (Cont…) 
• Reduction in link state databases of an area 
• Reduction in amount of flooding traffic needed for 
synchronization 
• Reduction in the cost of the shortest path 
calculations 
• Increased robustness 
• Routing protection 
• Hidden prefixes
Incorporating external routing information 
• Special routers called AS boundary routers at the 
edge of OSPF domain 
• ASBRs originate AS-External LSAs 
• only routes for which the choice of an ASBR makes 
sense are imported 
• otherwise default routes are used
Interaction with areas 
• Inter Area communication 
• LSA type 1. Router LSA. All routers in an area 
• LSA type 2. Network LSA. DR generates it. 
• Intra Area communication 
• LSA type 3. Summary ABR LSA. 
• LSA type 5. Summary ASBR LSA.
OSPF Area Types 
• Restrict the amount of external routing 
information within an area 
• Used when resources especially router memory is 
very limited 
• Many types of restricted areas 
• Stub Areas 
• Others: not covered on this training
OSPF Area Types (cont…) 
• Stub Areas 
• Don’t support ASBRs and hence no AS-External-LSAs 
• Routing to external destinations based on default routes 
originated by the area’s border routers 
• Summary LSAs also made optional 
• Must lie on the edge of OSPF routing domain 
• Inter-area routing may also be based on default routes 
• Improved scaling 
• But not preferred due to the possibility of suboptimal 
routes
LAB 
© 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 32 AT&T Intellectual Property.
OSPF configuration 
Normal area configuration 
R1#configure terminal 
R1(config)#router ospf 1 
R1(config-router)# router-id 150.1.1.1 
R1(config-router)# network 10.1.1.0 0.0.0.255 area 0 
Stub area configuration 
R1#configure terminal 
R1(config)#router ospf 1 
R1(config-router)# router-id 150.1.1.1 
R1(config-router)# network 10.1.1.0 0.0.0.255 area 1 
R1(config-router)# area 1 stub
OSPF verification 
• R1# show ip ospf neighbors 
• R1# show ip ospf interfaces 
• R1# show ip ospf database 
• R1# show ip route 
• R1# show ip interfaces brief
Issues not covered 
• OSPF Area Types 
• NSSA 
• Totally stubby 
• Totally NSSA 
• OSPF Network Types 
• Broadcast subnets 
• NBMA Subnets 
• OSPF in the WAN 
• OSPF Management 
• Virtual Links 
• OSPF and IPv6 
• Many others
Thank You!

More Related Content

What's hot

Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution ProtocolKashif Latif
 
MPLS Concepts and Fundamentals
MPLS Concepts and FundamentalsMPLS Concepts and Fundamentals
MPLS Concepts and FundamentalsShawn Zandi
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPTAIRTEL
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) KHNOG
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesFebrian ‎
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)Ann Joseph
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKSBASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKSKABILESH RAMAR
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)Respa Peter
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorialkriz5
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)RaghulR21
 
An intoroduction to the IS-IS IGP routing protocol
An intoroduction to the IS-IS IGP routing protocolAn intoroduction to the IS-IS IGP routing protocol
An intoroduction to the IS-IS IGP routing protocolIftach Ian Amit
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4Chaing Ravuth
 

What's hot (20)

Label Distribution Protocol
Label Distribution ProtocolLabel Distribution Protocol
Label Distribution Protocol
 
MPLS Concepts and Fundamentals
MPLS Concepts and FundamentalsMPLS Concepts and Fundamentals
MPLS Concepts and Fundamentals
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD)
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
Mpls technology
Mpls technologyMpls technology
Mpls technology
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKSBASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKS
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
IS-IS Protocol Introduction
IS-IS Protocol IntroductionIS-IS Protocol Introduction
IS-IS Protocol Introduction
 
IS-IS vs OSPF
IS-IS vs OSPFIS-IS vs OSPF
IS-IS vs OSPF
 
Is is
Is isIs is
Is is
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorial
 
IS-IS Protocol
IS-IS ProtocolIS-IS Protocol
IS-IS Protocol
 
Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Routing information protocol
Routing information protocolRouting information protocol
Routing information protocol
 
An intoroduction to the IS-IS IGP routing protocol
An intoroduction to the IS-IS IGP routing protocolAn intoroduction to the IS-IS IGP routing protocol
An intoroduction to the IS-IS IGP routing protocol
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4
 

Viewers also liked

Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1CAVC
 
CCNP Route - OSPF
CCNP Route - OSPFCCNP Route - OSPF
CCNP Route - OSPFmdyabi
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocolselvakumar_b1985
 
CCNAv5 - S3: Chapter 7 EIGRP
CCNAv5 - S3: Chapter 7 EIGRPCCNAv5 - S3: Chapter 7 EIGRP
CCNAv5 - S3: Chapter 7 EIGRPVuz Dở Hơi
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information ProtocolKashif Latif
 
Shubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelayShubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelayshubham katiyar
 
IGRP and EIGRP
IGRP and EIGRPIGRP and EIGRP
IGRP and EIGRPIT Tech
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)Jasim Alam
 
Codestrong 2012 breakout session at&t api platform and trends
Codestrong 2012 breakout session  at&t api platform and trendsCodestrong 2012 breakout session  at&t api platform and trends
Codestrong 2012 breakout session at&t api platform and trendsAxway Appcelerator
 
Eigrp
EigrpEigrp
Eigrpfirey
 

Viewers also liked (20)

OSPF - Routing Protocol
OSPF - Routing ProtocolOSPF - Routing Protocol
OSPF - Routing Protocol
 
Protocole OSPF
Protocole OSPFProtocole OSPF
Protocole OSPF
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1Routing Protocols and Concepts - Chapter 1
Routing Protocols and Concepts - Chapter 1
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
CCNP Route - OSPF
CCNP Route - OSPFCCNP Route - OSPF
CCNP Route - OSPF
 
RIP - Routing Information Protocol
RIP - Routing Information ProtocolRIP - Routing Information Protocol
RIP - Routing Information Protocol
 
CCNAv5 - S3: Chapter 7 EIGRP
CCNAv5 - S3: Chapter 7 EIGRPCCNAv5 - S3: Chapter 7 EIGRP
CCNAv5 - S3: Chapter 7 EIGRP
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
AT&T API Platform
AT&T API PlatformAT&T API Platform
AT&T API Platform
 
Shubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelayShubham ppt on ospf and framerelay
Shubham ppt on ospf and framerelay
 
bgp protocol
 bgp protocol bgp protocol
bgp protocol
 
IGRP and EIGRP
IGRP and EIGRPIGRP and EIGRP
IGRP and EIGRP
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)
 
Codestrong 2012 breakout session at&t api platform and trends
Codestrong 2012 breakout session  at&t api platform and trendsCodestrong 2012 breakout session  at&t api platform and trends
Codestrong 2012 breakout session at&t api platform and trends
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Eigrp
EigrpEigrp
Eigrp
 
Eigrp
EigrpEigrp
Eigrp
 

Similar to OSPF Basics

CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFrooree29
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPTAIRTEL
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5Waqas Ahmed Nawaz
 
OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)NetProtocol Xpert
 
Prod presentation0900aecd80312824
Prod presentation0900aecd80312824Prod presentation0900aecd80312824
Prod presentation0900aecd80312824SalvatoreFILORIZZO
 
Storage interface sata_pata
Storage interface sata_pataStorage interface sata_pata
Storage interface sata_pataPREMAL GAJJAR
 
SRv6 Network Programming: deployment use-cases
SRv6 Network Programming: deployment use-cases SRv6 Network Programming: deployment use-cases
SRv6 Network Programming: deployment use-cases APNIC
 
Router Full Concept pdf
Router Full Concept pdf Router Full Concept pdf
Router Full Concept pdf Vignesh kumar
 
Segment Routing Session#2.pdfSegment Routing Session#2.pdf
Segment Routing Session#2.pdfSegment Routing Session#2.pdfSegment Routing Session#2.pdfSegment Routing Session#2.pdf
Segment Routing Session#2.pdfSegment Routing Session#2.pdfAhMEd22627
 
Segment Routing Session#1.pdfSegment Routing Session#1.pdf
Segment Routing Session#1.pdfSegment Routing Session#1.pdfSegment Routing Session#1.pdfSegment Routing Session#1.pdf
Segment Routing Session#1.pdfSegment Routing Session#1.pdfAhMEd22627
 
Networking Basics with Linux
Networking Basics with LinuxNetworking Basics with Linux
Networking Basics with LinuxHenry Osborne
 
Cloud Traffic Engineer – Google Espresso Project by Shaowen Ma
Cloud Traffic Engineer – Google Espresso Project  by Shaowen MaCloud Traffic Engineer – Google Espresso Project  by Shaowen Ma
Cloud Traffic Engineer – Google Espresso Project by Shaowen MaMyNOG
 
CCNP v6 Route: Implementing IP Routing Chapter 3
CCNP v6 Route: Implementing IP Routing Chapter 3CCNP v6 Route: Implementing IP Routing Chapter 3
CCNP v6 Route: Implementing IP Routing Chapter 3Andy Juan Sarango Veliz
 

Similar to OSPF Basics (20)

OSPF Configuration
OSPF ConfigurationOSPF Configuration
OSPF Configuration
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
 
OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)OSPF Summary LSA (Type 3 LSA)
OSPF Summary LSA (Type 3 LSA)
 
Day 12.2 enablingospf
Day 12.2 enablingospfDay 12.2 enablingospf
Day 12.2 enablingospf
 
Prod presentation0900aecd80312824
Prod presentation0900aecd80312824Prod presentation0900aecd80312824
Prod presentation0900aecd80312824
 
Storage interface sata_pata
Storage interface sata_pataStorage interface sata_pata
Storage interface sata_pata
 
SATA Protocol
SATA ProtocolSATA Protocol
SATA Protocol
 
SRv6 Network Programming: deployment use-cases
SRv6 Network Programming: deployment use-cases SRv6 Network Programming: deployment use-cases
SRv6 Network Programming: deployment use-cases
 
JUNOS: OSPF and BGP
JUNOS: OSPF and BGPJUNOS: OSPF and BGP
JUNOS: OSPF and BGP
 
Router Full Concept pdf
Router Full Concept pdf Router Full Concept pdf
Router Full Concept pdf
 
CCCNP ROUTE v6_ch03
CCCNP ROUTE v6_ch03CCCNP ROUTE v6_ch03
CCCNP ROUTE v6_ch03
 
CCNP Route
CCNP Route CCNP Route
CCNP Route
 
Segment Routing Session#2.pdfSegment Routing Session#2.pdf
Segment Routing Session#2.pdfSegment Routing Session#2.pdfSegment Routing Session#2.pdfSegment Routing Session#2.pdf
Segment Routing Session#2.pdfSegment Routing Session#2.pdf
 
Segment Routing Session#1.pdfSegment Routing Session#1.pdf
Segment Routing Session#1.pdfSegment Routing Session#1.pdfSegment Routing Session#1.pdfSegment Routing Session#1.pdf
Segment Routing Session#1.pdfSegment Routing Session#1.pdf
 
Networking Basics with Linux
Networking Basics with LinuxNetworking Basics with Linux
Networking Basics with Linux
 
Cloud Traffic Engineer – Google Espresso Project by Shaowen Ma
Cloud Traffic Engineer – Google Espresso Project  by Shaowen MaCloud Traffic Engineer – Google Espresso Project  by Shaowen Ma
Cloud Traffic Engineer – Google Espresso Project by Shaowen Ma
 
CCNP v6 Route: Implementing IP Routing Chapter 3
CCNP v6 Route: Implementing IP Routing Chapter 3CCNP v6 Route: Implementing IP Routing Chapter 3
CCNP v6 Route: Implementing IP Routing Chapter 3
 
CCCNP ROUTE v6_ch02
CCCNP ROUTE v6_ch02CCCNP ROUTE v6_ch02
CCCNP ROUTE v6_ch02
 

Recently uploaded

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

OSPF Basics

  • 1. Open Shortest Path First Protocol (OSPF) Speaker: Martín Bratina. martin.bratina@att.com Date 22/03/2013
  • 2. Agenda • What is OSPF? • Why is OSPF needed? • How OSPF works? • LAB 2 © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.
  • 3. What is OSPF? • Open Shortest Path First • Internal routing protocol (IGP) • Open Standard. RFC 2328 • Link State Protocol • Designed for IP networks © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 3 AT&T Intellectual Property.
  • 4. Why is OSPF needed? • Open standard • Link State Protocol • Scalability • Fast convergence • Supports authentication/security • Supports VLSM (Variable Length Subnet Masks) • Support IPv6 (OSPFv3) • Support load balancing • Consumes low bandwidth • Uses a hierarchical structure © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 4 AT&T Intellectual Property.
  • 5. How OSPF works? © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 5 AT&T Intellectual Property.
  • 6. How OSPF works? • Uses a Link State Logic. • Neighbor discovery • Topology database exchange • Route computation • Divides routers into areas for route optimization and segmentation © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 6 AT&T Intellectual Property.
  • 7. Neighbor Discovery • Neighbor discovery • Each router discover its neighbors routers sending hello messages • Routers from adjacencies with its neighbors • Neighbor adjacency requirements • Interfaces in the same subnet • Different router ID between neighbors • Routers in the same area • Same authentication parameters © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 7 AT&T Intellectual Property.
  • 8. Topology Database Exchange • Topology Database Exchange • Each router generates its own network topology information (LSA Message) • Each router flood its LSA message to its neighbors • Each router stores a LSA copy on its internal OSPF topology database (LSDB) • Each router has the same LDSB • Link State Advertisement (LSA) Message information • Router ID of the LSA • List of the router interfaces, IP address, subnet and mask • List of routers reachable (neighbors) on each interface © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 8 AT&T Intellectual Property.
  • 9. Link State Advertisements(LSAs) LS Age Options LS Type Link State ID Advertising Router LS Sequence Number LS Checksum Length 0 16 LSA Header © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 9 AT&T Intellectual Property.
  • 10. Route Computation • Route Computation • Each router analyzes its topology database and executes Shortest Path First (SPF) algorithm • Router choses the shortest (best) route to each destination from its perspective (SPF Tree) • Router generates entries in the routing table for those selected destinations © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 10 AT&T Intellectual Property.
  • 11. SPF Tree BEFORE run SPF AFTER run SPF © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 11 AT&T Intellectual Property.
  • 12. Communication between OSPF Routers • OSPF packets encapsulated in IP packets • IP protocol # 89 • Standard 24 byte header • OSPF packet type field • OSPF router ID of sender • Packet checksum • Authentication fields • OSPF Area ID • Uses Multicast IP address 224.0.0.5 for all OSPF routers • DR router use Multicast IP address 224.0.0.6 © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 12 AT&T Intellectual Property.
  • 13. The Hello Protocol • Maintains neighbor relationships • Elects Designated Router (DR) in multi-access networks • The Hello Packet • Hello packets sent out every 10 seconds • RouterDead Interval (default 40 seconds) • Network Mask • List of neighbors • Ensures that link is bidirectional © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 13 AT&T Intellectual Property.
  • 14. The Hello Protocol Hello Hello Hello Hello © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 14 AT&T Intellectual Property.
  • 15. Designated Router (DR) • One per multi access network • Generates Network Link Advertisements (LSA type 2) • All routers form adjacency to it • Assist in DB synchronization • Elected by priority. It tie, it is elected by the highest router ID Adjacencies WITHOUT DR © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 15 AT&T Intellectual Property. Adjacencies WITH DR DR
  • 16. Database Synchronization • Crucial to ensure correct and loop free routing • Must be done before 2 neighbors start communication • Whenever new LSAs are introduced • uses reliable flooding • Each router sends LSA headers (small LSA’s) to its neighbor when connection comes up • Requests only those LSAs which are recent © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 16 AT&T Intellectual Property.
  • 17. Database Exchange • Neighboring routers first exchange hellos • A database description packet establishes the sequence number • The other router sends LSA headers • Sequence number incremented for every pair of database description packets • implicit acknowledgement for the previous pair • After examining LSA headers explicit request sent for complete LSA © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 17 AT&T Intellectual Property.
  • 18. Reliable Flooding • Starts when a router wants to update self-originated LSAs • Neighbor installs more recent LSAs into its database • Floods out on all interfaces except the one on which it arrived • Reliability-retransmissions until acks received © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 18 AT&T Intellectual Property.
  • 19. Reliable Flooding (cont..) 10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 10.1.1.3 10.1.1.5 Time T1 u u u © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 19 AT&T Intellectual Property.
  • 20. Reliable Flooding (cont..) 10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 u u 10.1.1.3 10.1.1.5 Time T2 u u u 20 © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.
  • 21. Reliable Flooding (cont..) 10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 10.1.1.3 10.1.1.5 Time T3 u u © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 21 AT&T Intellectual Property.
  • 22. Reliable Flooding (cont..) 10.1.1.1 10.1.1.2 10.1.1.4 10.1.1.6 10.1.1.3 10.1.1.5 Time T3+ ack ack ack ack ack © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 22 AT&T Intellectual Property.
  • 23. Routing Calculations • Link costs configurable by administrator • Smaller values for more preferred links • Different costs for each link direction possible • Dijkstra’s shortest path algorithm • incrementally calculates tree of shortest paths • each link in the network examined once • computes multiple shortest paths (equal-cost multipath)
  • 24. LAB © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 24 AT&T Intellectual Property.
  • 25. OSPF Areas • Two-level hierarchical routing scheme through the use of areas • Areas identified by 32-bit id • Each area has its own link state database which is a collection of network-LSAs and router-LSAs • Area’s topology hidden from all other areas • All Areas connected through Backbone Area (Area 0) • Interconnection of areas through area border routers (ABRs) • ABR leaks IP addressing information to other areas through summary LSAs
  • 26. Sample Area Configuration AREA 0 Backbone AREA 1 AREA 35 ASBR Internet ABR ABR
  • 27. OSPF Areas (Cont…) • Reduction in link state databases of an area • Reduction in amount of flooding traffic needed for synchronization • Reduction in the cost of the shortest path calculations • Increased robustness • Routing protection • Hidden prefixes
  • 28. Incorporating external routing information • Special routers called AS boundary routers at the edge of OSPF domain • ASBRs originate AS-External LSAs • only routes for which the choice of an ASBR makes sense are imported • otherwise default routes are used
  • 29. Interaction with areas • Inter Area communication • LSA type 1. Router LSA. All routers in an area • LSA type 2. Network LSA. DR generates it. • Intra Area communication • LSA type 3. Summary ABR LSA. • LSA type 5. Summary ASBR LSA.
  • 30. OSPF Area Types • Restrict the amount of external routing information within an area • Used when resources especially router memory is very limited • Many types of restricted areas • Stub Areas • Others: not covered on this training
  • 31. OSPF Area Types (cont…) • Stub Areas • Don’t support ASBRs and hence no AS-External-LSAs • Routing to external destinations based on default routes originated by the area’s border routers • Summary LSAs also made optional • Must lie on the edge of OSPF routing domain • Inter-area routing may also be based on default routes • Improved scaling • But not preferred due to the possibility of suboptimal routes
  • 32. LAB © 2012 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of 32 AT&T Intellectual Property.
  • 33. OSPF configuration Normal area configuration R1#configure terminal R1(config)#router ospf 1 R1(config-router)# router-id 150.1.1.1 R1(config-router)# network 10.1.1.0 0.0.0.255 area 0 Stub area configuration R1#configure terminal R1(config)#router ospf 1 R1(config-router)# router-id 150.1.1.1 R1(config-router)# network 10.1.1.0 0.0.0.255 area 1 R1(config-router)# area 1 stub
  • 34. OSPF verification • R1# show ip ospf neighbors • R1# show ip ospf interfaces • R1# show ip ospf database • R1# show ip route • R1# show ip interfaces brief
  • 35. Issues not covered • OSPF Area Types • NSSA • Totally stubby • Totally NSSA • OSPF Network Types • Broadcast subnets • NBMA Subnets • OSPF in the WAN • OSPF Management • Virtual Links • OSPF and IPv6 • Many others