OSPF (Open Shortest Path First) is an open standard link state routing Protocol. It is developed by IETF (Internet Engineering Task Force) as one of the IGP (Interior Gateway protocol).It is operating within a single Autonomous system. It is network layer protocol which works on the protocol no: 89 and default Administrative Distance (AD) value is 110. OSPFv2 is used for IPv4 networks and OSPFv3 for IPv6 networks. OSPF uses a hello mechanism to detect neighbouring devices that run OSPF.
OSPF stands for Open Shortest Path First. It is a link state routing Protocol. It uses shortened path first algorithm in order to build and calculate the shortest path to all known destinations. It is an Interior Gateway Protocol (IGP) that is used mainly in larger TCP/IP internetworks and within autonomous systems of the Internet (Network: source to destination using its own shortest path). OSPFv3 is a link-state routing protocol for IPv6 as its predecessor OSPFv2 in IPv4.OSPFv3 still uses the autonomous areas to separate networks into areas.OSPFv3 uses an IPv6 multicast address range of FF02::5 for OSPF routes and FF02::6 for OSPF designated routers when sending updates and acknowledgments. Hop count is the number of intermediate networks devices such as router through which a given data must pass between source and destination. Administrative count is the choosing best path to destination router. Different routing protocol their ADs are Directly connected –o Static route-1 Internal EIGRP-90 OSPF-110 RIP-120 External EIGRP-170 Unknown-255 OSPF use the multicast address of 224.0.0.5 & 224.0.0.6. There are two ways to inject a default route into a normal area. If the ASBR already has the default route in its routing table, you can advertise the existing 0.0.0.0/0 into the OSPF domain with the default-information originate router configuration command Router id is 32 bit number similar to IP address. It is elected as highest IP Address of Loopback interfaces or Highest IP of the active physical interfaces if loopback is not present. It can also be set manually but it will take effect when OSPF process is reset completely or device is reloaded. There should be only one router-id per device running OSPF to avoid database issues. A routing protocol can be analyzed as a process. A protocol is formalized through the Request for Comments (RFC) process. This process involves open written commentary on a proposed technology in an effort to bring about standardization of that technology. An example of a routing protocol standard would be OSPF as defined in RFC 2328. RIP stands for Routing Information Protocol).It is one of a family of IP Routing protocols, and is an Interior Gateway Protocol (IGP) designed to distribute routing information within an Autonomous System (AS). EIGRP stands for Enhanced Interior Gateway Routing Protocol. It is a Cisco proprietary enhanced Distance Vector routing protocol. EIGRP is based on IGRP, hence the configuration is similar. Enhanced Interior Gateway Routing Protocol (EIGRP) is considered as a Hybrid Routing Protocol because EIGRP has characteristics of both Distance Vector and Link State Routing Protocols. Link state protocols is also known as shortest routing protocols or Shortest path first alogrithoms.Link State routing protocols do not view networks in terms of adjacent routers and hop counts, but they build a comprehensive view of the overall network which fully describes the all possible routes along with their costs. Link state protocols are based on Shortest Path First (SPF) algorithm to find the best path to a destination. Shortest Path First (SPF) algorithm is also known as Dijkstra algorithm. OSPF uses five packet types in exchanging messages about up to date routing information to maintain accurate information about the network with neighbours. Hello packets are OSPF packet Type 1. These packets are multicast periodically to 224.0.0.5 multicast address on all interfaces (unicast on virtual-links) enabling dynamic discovery of neighbors and maintain neighbor relationships. On broadcast and NBMA networks, Hello packets are used to elect DR and BDR. LSA stands for Link State Advertisement. It is a message that communicates the routers local routing topology to all other local routers in same OSPF area. Its depends on router and sequence number. LSDB stands for Link State Database. LSDB is the database that OSPF builds and is based on the information that it has found in LSAs (Link State Advertisements). The LSDB is synchronized between routers within the same area. Each router stores the received LSA packets in the link-state database (LSDB). After LSDBs are synced between the routers, OSPF uses the shortest path first (SPF) algorithm to calculate the best routes. DBD stands for Database Description Packets (also referred as DDPs).It is used to check if the database is synchronized between the sending and the receiving router. These packets are exchanged when an adjacency is being initialized. They describe the contents of the topological database. It does not include full LSAs but would include LSA headers in the link-state database of the sender. LSR stands for Link State Request. After exchanging Database Description packets with a neighbouring router, a router may find that parts of its topological database are out of date. The Link State Request packet is used to request the pieces of the neighbour’s database that are more up to date. The sending of Link State Request packets is the last step in bringing up an adjacency What other have (DBDs) – What I have (LADB) = What I need to order (LSR) LSU stands for Link State Update. A packet that contains fully detailed LSAs typically sent in response to an LSR message. Or (LSU packets are used to reply to LSRs and also to announce new information’s or changes to the current topology) LSAck stands for Link state Acknowledgement. It is send by the receiving router to confirm receipt of an LSU message. Before establishing a neighbor relationship, OSPF routers need to go through several state changes. These states are explained below. Init state: A router has received a Hello message from the other OSFP router 2-way state: The neighbour has received the Hello message and replied with a Hello message of his own Exstart state: It is beginning of the LSDB exchange between both routers. Routers are starting to exchange link state information. Exchange state: DBD packets are exchanged. DBDs contain LSAs headers. Routers will use this information to see what LSAs need to be exchanged. 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 Full state: The Both routers have the synchronized database and are fully adjacent with each other. OSPF Routers use 224.0.0.5 multicast IP address. However, in DR/BDR it uses 224.0.0.5 and 224.0.0.6. DR/BDR will use 224.0.0.6 while replying to OSPF routers in Broadcast Multi access network. There are three types of OSRF tables Neighbor table: It stores information about OSPF neighbors Topology table: It stores the topology structure of a network Routing table: The best route for each known network There are four router types used in OSPF. Routing devices that connect to only one OSPF area are called Internal Routers. All interfaces on internal routers are directly connected to networks within a single area. Routers with only interfaces in the backbone area also belong to this category and have a single link-state database. ABR stands for Area Border Router. This router that has directly connected networks belonging to multiple areas. ABRs have multiple link-state databases, one for each area, including the backbone. ABRs are attached to multiple OSPF areas, so there can be multiple ABRs within a network. ASBR stand for Autonomous System Backbone Router .ASBRs are connected to more than one AS and exchange routing information with routers in another AS. ASBRs advertise the exchanged external routing information throughout their AS. Every router within an AS knows how to get to each ASBR with its AS. BR stands for Backbone Router. Routers whose interfaces connect them only to the backbone area are considered backbone routers (BRs). BRs do not have an interface to the other OSPF areas, because if they did, they would be considered ABRs. The idea is that this super backbone can override the default behaviour of OSPF and provide connectivity between customers without the need for crazy virtual-links or tunnelling (can’t use VLS across area 0 anyway). Steps in forming neighborship in OSPF are almost similar to EIGRP’s. Two ospf devices should be connected back to back with cables connected on correct interfaces. IP and mask should be correct. Then run the ospf process if not run already and advertise the interface segments on both routers. Hello, Dead timers and MTU size should be same at both ends. There should not be any access-list or transparent firewall blocking the OSPF Packets or IP addresses. Neighborship should establish now. Area number and authentication parameter. Hello interval: how often OSPF router will send the hello packet to other OSPF Dead interval: how long a router will wait for hello packets before it declares the neighbour dead, Router The default Hello Interval for OSPF is 10 seconds. By default it is 40 seconds. Process id is used similarly to Autonomous system but it has local significance only. It can be different on neighbors running OSPF. The default reference bandwidth for OSPF is 10^8 bps or 100Mbit. Increasing the reference-bandwidth allows a more granular OSPF design. If changed it should be changed on all routers in the OSPF domain. The reason you would change the reference-bandwidth is that you may have link faster than 100M in your network. If you have Gigabit networks but are using the default reference-bandwidth, then Gigabit links are equal in cost to fast Ethernet. device# configure device(config)# router ospf device(config-ospf-router)# auto-cost reference-bandwidth 500 What is OSPF?
What is OSPFv3?
What are the most important features of OSPF?
What is Hop count?
What multicast address does OSPF use?
How to generate default route in OSPF?
What is OSPF Router ID?
What is Routing Protocol?
What is RIP?
What is EIGRP?
What is Linked state protocol?
What are the OSPF Packet Types?
What is Hello Packet in OSPF?
What is LSA in OSPF?
What is LSDB in OSPF?
What is DBD in OSPF?
What is LSR in OSPF?
What is LSU in OSPF?
What is LSAck in OSPF?
What are the OSPF neighbour states?
What is the multicast IPs used by OSPF? What multicast IP does DR/BDR router and non-DR use?
What are the different LSA types in OSPF?
What are the OSRF tables?
What are the OSPF Router Types?
What is internal router in OSPF?
What is ABR in OSPF?
What is ASBR in OSPF?
What is BR in OSPF?
What is OSPF super backbone area?
What problems can cause OSPF neighborship in down state?
What are the OSPF Time intervals?
What is the default hello interval?
What is the default dead interval?
What is Process id?
What is the concept of auto-cost in OSPF?
Related posts:
- BGP Interview Questions and Answers Top BGP Interview Questions and Answers for freshers & Experienced....
- CCNA Interview Questions and Answers CCNA (Cisco Certified Network Associate) is a certification in computer...
- CCNP Interview Questions and Answers Here, we highlight some common questions you might be asked...
- GSM Interview Questions and Answers Here, we highlight some common questions you might be asked...
- Load Runner Interview Questions and Answers Here, we highlight some common questions you might be asked...
- Networking Interview Questions and Answers Computer networking is that the study of however computers may...
- New CCNA Exam-200-301: Exam Topics and Exam Format from 2020 Exam Description CCNA Exam v1.0 (CCNA 200-301) is a 120-minute...
- Operating System Interview Questions and Answers Top Most Asked Operating System Interview Questions and Answers for...