Professional Documents
Culture Documents
C.M. Caringal, A.R. Ebreo, M.F.T. Marfa, D.J.S. Masangcay, A.J.H. Miranda
djhay970@gmail.com, anne.jeline.miranda@gmail.com
April 6, 2019
Abstract
This paper defines the principles of Open Shortest Path First (OSPF). The OSPF is a link state protocol
that handles routing for IP traffic. Version 2 of OSPF, which is explained in RFC 2328, is an open standard, such
as RIP v1 and v2. This paper draws heavily on the concepts of OSPF. Besides the characteristics of OSPF,
information to undertake a basic routing configuration will be presented here.
Evolution of OSPF
Link-State Operation
1. Establish Neighbor Adjacencies (see
Figure 8-2). OSPF-enabled routers
must recognize each other on the 3. Build the Topology Table (Figure 8-4).
network before they can share After LSAs are received, OSPF-
information. An OSPF enabled router enabled routers build the topology table
sends Hello packets out all OSPF-
(LSDB) based on the received LSAs.
This database eventuallyholds all the
information about the topology of the network. An OSPF area is a group of routers that share
the same link-state information in their
LSDBs.
OSPF can be implemented in one of two ways:
1. Single-Area OSPF
4.4
4.5 OSPF Messages
Single-Area and Multiarea OSPF
Types of OSPF Packets
Data Link Ethernet Frame Header: OSPF uses link-state packets (LSP) to establish
Identifies the destination multicast and maintain neighbor adjacencies
MAC addresses 01-00-5E-00-00-05 or and exchange routing updates.
01-00-5E-00-00-06, as shown in
figure. There are five different types of LSPs used by
OSPF. Each packet serves a specific
purpose in the OSPF routing process:
■ Type 1: Hello packet: Used to establish and
maintain adjacency with other OSPF
IP Packet Header: Identifies the IPv4 routers.
protocol field 89, which indicates that ■ Type 2: Database Description (DBD) packet:
this is an OSPF packet. It also Contains an abbreviated list of the sending
identifies one of two OSPF multicast router’s LSDB and is used by receiving routers
addresses, 224.0. 0.5 or 224.0.0.6, as to check against the local LSDB. The
shown in figure. LSDB must be identical on all link-state routers
within an area to construct an accurate
SPF tree.
■ Type 3: Link-State Request (LSR) packet:
Receiving routers can then request more
information about any entry in the DBD by
OSPF Packet Header: Identifies the sending an LSR.
OSPF packet type, the router ID and the ■ Type 4: Link-State Update (LSU) packet:
area ID, as shown in figure. Used to reply to LSRs and to announce new
information. LSUs contain seven different
types of LSAs.
■ Type 5: Link-State Acknowledgment
(LSAck) packet: When an LSU is received, the
router sends an LSAck to confirm receipt of the
LSU. The LSAck data field is empty.
■ Full state
When OSPF is enabled on an interface, the
router must determine if there is another OSPF
neighbor on the link. To accomplish this, the
router forwards a Hello packet that contains its
router ID out all OSPF-enabled interfaces. The
OSPF router ID is used by the OSPF process to It also notices its own Router ID in the Hello
uniquely identify each router in the OSPF area. packet’s list of neighbors. When a router
A router ID is an IP address assigned to identify receives a Hello packet with its Router ID
a specific router among OSPF peers. When a listed in the list of neighbors, the router
neighboring OSPF-enabled router receives a transitions from the Init state to the Two-Way
Hello packet with a router ID that is not within state.
its neighbor list, the receiving router attempts to
establish an adjacency with the initiating router. The action performed in Two-Way state
depends on the type of interconnection
between the adjacent routers:
■ If the two adjacent neighbors are
interconnected over a point-to-point link, then
they immediately transition from the Two-
Way state to the database synchronization
phase.
■ If the routers are interconnected over a
When OSPF is enabled, the enabled Gigabit common Ethernet network, then a designated
Ethernet 0/0 interface transitions from the router DR and a BDR must be elected.
Down state to the Init state. R1 starts sending Because R1 and R2 are interconnected over an
Hello packets out all OSPF- enabled interfaces Ethernet network, a DR and BDR election
takes place. As shown in Figure 8-20, R2
to discover OSPF neighbors to develop
becomes the DR and R1 is the BDR. This
adjacencies with.
process occurs only on multiaccess networks
In Figure 8-18, R2 receives the Hello packet such as Ethernet LANs.
from R1 and adds the R1 router ID to its Hello packets are continually exchanged to
neighbor list. maintain router information.