{"id":1185,"date":"2020-11-20T18:19:00","date_gmt":"2020-11-20T18:19:00","guid":{"rendered":"http:\/\/bytereign.com\/?p=1185"},"modified":"2025-04-22T10:22:40","modified_gmt":"2025-04-22T09:22:40","slug":"ospf-open-shortest-path-first-quick-reference-notes","status":"publish","type":"post","link":"https:\/\/bytereign.com\/?p=1185","title":{"rendered":"OSPF (Open Shortest Path First): Quick Reference Notes"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1185\" class=\"elementor elementor-1185\">\n\t\t\t\t<div class=\"elementor-element elementor-element-575b3f5 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"575b3f5\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d8b0741 elementor-widget elementor-widget-text-editor\" data-id=\"d8b0741\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"color: #333333;\">Quick OSPF notes, made for network professionals seeking insights into key attributes, the link-state routing protocol, and network convergence.<\/span><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7615539 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"7615539\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fbd230c elementor-widget elementor-widget-text-editor\" data-id=\"fbd230c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><span style=\"color: #333333;\">Open Shortest Path First (OSPF)<\/span><\/p><p>\u00a0<\/p><p><span style=\"color: #333333;\">Basic Information<\/span><\/p><ol><li><span style=\"color: #333333;\">Version: v2<\/span><\/li><li><span style=\"color: #333333;\">Standard: RFC 2328<\/span><\/li><li><span style=\"color: #333333;\">Algorithm: Dijkstra<\/span><\/li><li><span style=\"color: #333333;\">Type: IGP &#8211; Link &#8211; State<\/span><\/li><li><span style=\"color: #333333;\">Metric: Cost (Bandwidth)<\/span><\/li><li><span style=\"color: #333333;\">Administrative Distance: 110<\/span><\/li><li><span style=\"color: #333333;\">Transport: 89<\/span><\/li><li><span style=\"color: #333333;\">Authentication: Plaintext, MD5<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Packet Types<\/span><\/p><ol><li><span style=\"color: #333333;\">Hello Packets<\/span><\/li><li><span style=\"color: #333333;\">Database Description<\/span><\/li><li><span style=\"color: #333333;\">Link State Request<\/span><\/li><li><span style=\"color: #333333;\">Link State Update<\/span><\/li><li><span style=\"color: #333333;\">Link State Acknowledge<\/span><\/li><\/ol><div>\u00a0<\/div><p><span style=\"color: #333333;\">OSPF Table Types<\/span><\/p><ol><li><span style=\"color: #333333;\">Neighbor table<\/span><\/li><li><span style=\"color: #333333;\">Topology table<\/span><\/li><li><span style=\"color: #333333;\">Routing table<\/span><\/li><\/ol><div><span style=\"color: #333333;\">\u00a0<\/span><\/div><p><span style=\"color: #333333;\">OSPF \u2013 Neighbor Adjacency States<\/span><\/p><ol><li><span style=\"color: #333333;\">Down \u2013 No Hellos have been learned from the neighboring router.<\/span><\/li><li><span style=\"color: #333333;\">Init \u2013 Hello packet has been learned from the neighbor, but two-way communication has not yet been initialized.<\/span><\/li><li><span style=\"color: #333333;\">2-Way \u2013 Bidirectional communication has been built, Designated and Backup Designated Routers are selected at this stage.<\/span><\/li><li><span style=\"color: #333333;\">Ex-Start \u2013 The routers are planning to share the link-state information. Master\/slave relations are established between routers.<\/span><\/li><li><span style=\"color: #333333;\">Exchange \u2013 The routers are switching Database Descriptors (DBDs), the router will query a neighbor\u2019s DBD to decide if it has data to share.<\/span><\/li><li><span style=\"color: #333333;\">Loading \u2013 The routers are finally switching Link State Advertisements, including data about all links connected to each router. Routers will share their topology tables.<\/span><\/li><li><span style=\"color: #333333;\">Full \u2013 The routers are completely synchronized.<\/span><\/li><\/ol><div><span style=\"color: #333333;\">\u00a0<\/span><\/div><p><span style=\"color: #333333;\">Path Selection<\/span><\/p><ol><li><span style=\"color: #333333;\">Select the longest match, the most specific route.<\/span><\/li><li><span style=\"color: #333333;\">Select the path with the lowest administrative distance.<\/span><\/li><li><span style=\"color: #333333;\">Select most preferred route origination within OSPF.<\/span><\/li><li><span style=\"color: #333333;\">Select the lowest cumulative cost.<\/span><\/li><\/ol><div><span style=\"color: #333333;\">\u00a0<\/span><\/div><p><span style=\"color: #333333;\">OSPF Session Establishment between peers<\/span><\/p><ol><li><span style=\"color: #333333;\">Neighbor discovery<\/span><\/li><li><span style=\"color: #333333;\">Link-state information exchange<\/span><\/li><li><span style=\"color: #333333;\">Best-path calculation<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">OSPF Network Types<\/span><\/p><ol><li><span style=\"color: #333333;\">Broadcast Multi-Access &#8211; OSPF will elect DRs and BDRs<\/span><\/li><li><span style=\"color: #333333;\">Point-to-Point &#8211; OSPF will not elect DRs and BDRs<\/span><\/li><li><span style=\"color: #333333;\">Point-to-Multipoint &#8211; OSPF will not elect DRs and BDRs<\/span><\/li><li><span style=\"color: #333333;\">Non-broadcast Multi-access Network &#8211; OSPF will elect DRs and BDRs<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Link-state advertisements (LSAs)<\/span><\/p><ol><li><span style=\"color: #333333;\">Router LSA (Type 1)<\/span><\/li><li><span style=\"color: #333333;\">Network LSA (Type 2)<\/span><\/li><li><span style=\"color: #333333;\">Network Summary LSA (Type 3)<\/span><\/li><li><span style=\"color: #333333;\">ASBR Summary LSA (Type 4)<\/span><\/li><li><span style=\"color: #333333;\">External LSA (Type 5)<\/span><\/li><li><span style=\"color: #333333;\">Multicast OSPF LSA (MOSPF &#8211; Type 6)<\/span><\/li><li><span style=\"color: #333333;\">NSSA External LSA (Type 7)<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">OSPF defines two types of external routes<\/span><\/p><ol><li><span style=\"color: #333333;\">Type 2 (E2) \u2013 Includes only the external cost to the destination Network.<\/span><\/li><li><span style=\"color: #333333;\">Type 1 (E1) \u2013 Includes both the external cost, and the internal cost.<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">OSPF Commands of Cisco, Juniper &amp; Alcatel<\/span><\/p><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Cisco OSPF Commands<\/span><\/p><ol><li><span style=\"color: #333333;\">show ip ospf database<\/span><\/li><li><span style=\"color: #333333;\">show ip ospf interface<\/span><\/li><li><span style=\"color: #333333;\">show ip ospf neighbor<\/span><\/li><li><span style=\"color: #333333;\">show route ospf<\/span><\/li><li><span style=\"color: #333333;\">show ospf statistics<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Juniper OSPF Commands<\/span><\/p><ol><li><span style=\"color: #333333;\">show ospf database<\/span><\/li><li><span style=\"color: #333333;\">show ospf interface<\/span><\/li><li><span style=\"color: #333333;\">show ospf neighbor<\/span><\/li><li><span style=\"color: #333333;\">show route protocol ospf<\/span><\/li><li><span style=\"color: #333333;\">show ospf statistics<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Alcatel OSPF Commands<\/span><\/p><ol><li><span style=\"color: #333333;\">show router ospf database<\/span><\/li><li><span style=\"color: #333333;\">show router ospf interface<\/span><\/li><li><span style=\"color: #333333;\">show router ospf neighbor<\/span><\/li><li><span style=\"color: #333333;\">show router ospf routes<\/span><\/li><li><span style=\"color: #333333;\">show router ospf statistics<\/span><\/li><\/ol><p><span style=\"color: #333333;\">\u00a0<\/span><\/p><p><span style=\"color: #333333;\">Other important OSPF topics<\/span><\/p><ol><li><span style=\"color: #333333;\">OSPF Passive-Interfaces<\/span><\/li><li><span style=\"color: #333333;\">OSPF Authentication<\/span><\/li><li><span style=\"color: #333333;\">OSPF Virtual Links<\/span><\/li><li><span style=\"color: #333333;\">OSPF SPF Timers<\/span><\/li><li><span style=\"color: #333333;\">Inter-Area OSPF Summarization<\/span><\/li><li><span style=\"color: #333333;\">External OSPF Summarization<\/span><\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Quick OSPF notes, made for network professionals seeking insights into key attributes, the link-state routing protocol, and network convergence. Open Shortest Path<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[1,49],"tags":[],"class_list":["post-1185","post","type-post","status-publish","format-standard","hentry","category-blog","category-network-engineering"],"_links":{"self":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1185"}],"version-history":[{"count":43,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/bytereign.com\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions\/1810"}],"wp:attachment":[{"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bytereign.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}