Created on 08-08-2024 12:30 AM Edited on 12-30-2024 02:38 AM By Jean-Philippe_P
Description |
This article describes that before an OSPF-enabled firewall can become completely adjacent to its neighbors, it must go through a series of steps known as OSPF states. These OSPF neighbor states are very important for firewalls to communicate with each other and decide the best pathway to send data. |
Scope | FortiGate. |
Solution |
OSPF routers establish connections with one another through eight states:
Down State:
Down State is known as the initial stage of neighbor in which no data (Hellos) have been received from the neighbor, but it is still possible to send them hello packets.
Attempt state is the second stage in which the building of the neighborship process starts. It is only for manually configured neighbors on NBMA (Non-Broadcast Multi-Access) networks. One such example of NBMA networks is frame relay. The attempt state is valid for neighbors on NBMA networks. It means no information is received from the neighbor but a serious effort is being made to contact neighbors.
Init State:
In the Init state, the firewall knows the existence of another firewall. However, it needs the necessary information to engage in the exchange of routing updates with that router.
2-Way State:
On point-to-point networks (such as serial links) and point-to-multipoint networks (such as MPLS), a firewall becomes fully adjacent to every neighbor.
Note: Both DR and BDR are elected on broadcast and NBMA networks to minimize the number of adjacencies and reduce the amount of link-state information exchanged. When talking specifically about DR, it is responsible for distributing LSAs to all other routers/firewalls on the network segment, whereas BDR acts as a backup in case DR fails.
Exstart State:
The Exstart state acts as the initial stage in the process of forming adjacencies. During this state, the local firewall and its neighboring firewall/ work together to determine which firewall will be responsible for synchronizing the database. Once the master/slave relationship is established, the router with the highest router ID becomes the master and the next highest is selected as a slave device.
Exchange State:
This state is where the actual DBD exchange takes place. The firewalls send and receive DBDs that contain summaries of their LSAs. Each DBD has a sequence number that is incremented by one for each new packet. The firewall must keep track of the sequence numbers and acknowledge each received DBD.
Loading State:
During the loading state, OSPF firewalls engage in the exchange of Link State Requests (LSR) and Link State Updates (LSU), which include all Link State Advertisements (LSA). The updates are derived from the DDP or Data Base Descriptors (DBD) of neighboring entities.
Full State:
The full state is the operational state of OSPF, indicating that the network is functioning as expected. The databases of all firewalls are in perfect sync, and periodic Link State Advertisements (LSAs) are sent and received by all firewalls in the network.
It is noteworthy that in the case of Broadcast networks and NBMA media, firewalls will only achieve Full State with their designated router (DR) and backup designated router (BDR) routers. In the context of point-to-point and point-to-multipoint networks, a firewall must maintain its full state concerning each neighboring firewall.
To troubleshoot the OSPF at different stages, refer to the below guide: Technical Tip: How to troubleshoot OSPF neighborship in various states |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.