OSPF neighbouring routers. Those packets are also
known as Data Base Description (DBD) and they
contain a set of the route headers regarding those
routes. Upon receipt of a DBD, those OSPF
neighbouring routers check whether each route
header present within a DBD is also present within
their LSDB.
LSDB keeps not only the route headers but full
data about routes, allowing the buildup of a network
topology. Each LSDB entry belongs to a single route
and it is called Link State Advertisement (LSA).
Therefore, DBD packets contain summaries of the
LSA. Actually, the sending and receiving DBD is
called DataBase Exchange Process, where each LSA
has a sequence number and is acknowledged by
echoing it.
Each LSA header present in a DBD contains
some fields to identify in a unique way an LSA, such
as LS ID, LS type and Advertising Router, but in
order to determine which instance is more recent,
this is, the one inside the incoming DBD or the one
already stored within the LSDB, the fields to be
examined are LS Sequence Number, LS Age and LS
Checksum.
When a local router detects an LSA more recent
than its own database copy, then it sends an OSPF
type 3 packet to the OSPF neighbouring router
which sent that particular OSPF type 2 packet, so as
to request an update and in turn an OSPF type 4
packet will be deliver from that neighbour.
Eventually, each OSPF type 4 packet will be
acknowledged by an OSPF type 5 packet.
In addition to it, OSPF type 4 packets will be
sent from every local router to all of its proper OSPF
neighbours every 30 minutes by default, this is 1800
seconds, in order for them to refresh their LSA,
although some manufacturers might set different
values varying from 5 to 59 minutes. If such a
refreshment is not produced, the LSA will be flushed
from LSDB if its timer reaches its maximum aging
time, which is 1 hour, this is, 3600 seconds.
Special attention must be paid to OSPF type 4
packets, as those packets implement the flooding of
LSA, containing information about routing, metric
and topology regarding a particular section of the
OSPF network, thus being the relevant stuff about
routing updates. One particular OSPF type 4 packet
may contain a single LSA or multiple LSA.
LSA are used to fill and update LSDB, although
there is not only one sort of LSA but a few of them,
each one being employed for advertising different
OSPF networks. The mostly used LSA types are 1 to
5, although there are defined up to eleven types.
It must be taken into consideration that OSPF is
a highly scalable routing protocol because of the
concept of area, which permits the division of the
whole OSPF domain in different areas, hence routers
belonging to one particular area must have their
LSDB synchronised.
The connection among two or more areas is
performed by an Area Border Router (ABR) which
is a router that has interfaces in more than one area,
thus being able to propagate routes through all of
them. In addition to it, an Autonomous System
Boundary Router (ASBR) is a router being the edge
router with another routing domain, which also
might propagate some external routes inside. Those
OSPF multiarea concepts are depicted in Figure 1.
Figure 1: Multiarea OSPF routing domain.
Regarding LSA types, there are LSA types 1 and
2 that carry routes within the same OSPF area, thus
they are referred to as intra-area LSA. There are also
LSA types 3 and 4 that carry routes from one area to
another one, thus they are known as inter-area LSA.
Finally, there are LSA type 5 that carries external
routes redistributed into OSPF domain.
The mostly used LSA types are described in
Table 2, where the acronym DR will be described in
due course.
Table 2: OSPF LSA main types.
Type LSA name Function
1 Router LSA
Each router advertises all its
directly connected links
2 Network LSA
Each DR in a multi-access
network advertises all the
routers connected
3 Summary LSA
Each ABR advertises routes
from one area into other
connected areas
4 Summary ASBR LSA
Each ABR advertises routes
coming from an ASBR to show
where it is
5 AS external LSA
Each ABR advertises external
routes being redistributed into
OSPF domain
Apart from that, it is important that all
neighbours within a particular network segment