Ccna3 Mod1
Ccna3 Mod1
1 Introduction to OSPF
● OSPF is a link-state routing protocol that was developed as an alternative for the distance vector
Routing Information Protocol (RIP).
● RIP was an acceptable routing protocol in the early days of networking and the internet. However, the
RIP reliance on hop count as the only metric for determining best route quickly became problematic.
Using hop count does not scale well in larger networks with multiple paths of varying speeds.
*OSPF has significant advantages over RIP in that it offers faster convergence and scales to much larger
network implementations.
● OSPF is a link-state routing protocol that uses the concept of areas. A network administrator can divide
the routing domain into distinct areas that help control routing update traffic.
● A link is an interface on a router. A link is also a network segment that connects two routers, or a
stub network such as an Ethernet LAN that is connected to a single router.
● Information about the state of a link is known as a link-state.
● All link-state information includes the network prefix, prefix length, and cost.
1.1.2 Components of OSPF
The SPF algorithm creates an SPF tree by placing each router at the root of the tree and calculating
the shortest path to each node. The SPF tree is then used to calculate the best routes. OSPF places
the best routes into the forwarding database, which is used to make the routing table.
OSPF can be implemented in one of two ways OSPF can be implemented in one of two ways:
Single-Area OSPF - All routers are in one area. Best practice is to use area 0.
Multiarea OSPF - OSPF is implemented using multiple areas, in a hierarchical fashion. All areas
must connect to the backbone area (area 0). Routers interconnecting the areas are referred to as
Area Border Routers (ABRs).
hierarchical-topology design options with multiarea OSPF can offer the following advantages:
● Smaller routing tables - Tables are smaller because there are fewer routing table entries.
This is because network addresses can be summarized between areas. Route summarization
is not enabled by default.
● Reduced link-state update overhead - Designing multiarea OSPF with smaller areas
minimizes processing and memory requirements.
● Reduced frequency of SPF calculations - Multiarea OSPF localize the impact of a topology
change within an area. For instance, it minimizes routing update impact because LSA flooding
stops at the area boundary.
1.1.6 OSPFv3
● OSPFv2 runs over the IPv4 network layer, communicating with other OSPF IPv4 peers, and
advertising only IPv4 routes.
● OSPFv3 has the same functionality as OSPFv2, but uses IPv6 as the network layer
transport, communicating with OSPFv3 peers and advertising IPv6 routes. OSPFv3 also uses
the SPF algorithm as the computation engine to determine the best paths throughout the
routing domain.
● OSPFv3 has separate processes from its IPv4 counterpart. The processes and operations are
basically the same as in the IPv4 routing protocol, but run independently. OSPFv2 and
OSPFv3 each have separate adjacency tables, OSPF topology tables, and IP routing tables,
as shown in the figure.
● Type 1: Hello packet - This is used to establish and maintain adjacency with other OSPF
routers.
● Type 2: Database Description (DBD) packet - This contains an abbreviated list of the LSDB
of the sending router and is used by receiving routers to check against the local LSDB. The
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 sending an LSR.
● Type 4: Link-State Update (LSU) packet - This is used to reply to LSRs and to announce
new information. LSUs contain several 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.
OSPF Type 1 packet is the Hello packet. Hello packets are used to do the following:
● Discover OSPF neighbors and establish neighbor adjacencies.
● Advertise parameters on which two routers must agree to become neighbors.
● Elect the Designated Router (DR) and Backup Designated Router (BDR) on multiaccess
networks like Ethernet. Point-to-point links do not require DR or BDR.
Multiaccess networks can create two challenges for OSPF regarding the flooding of LSAs, as follows:
Number of Adjacencies = n (n - 1) / 2
n = number of routers
Example: 5 (5 - 1) / 2 = 10 adjacencies
*A dramatic increase in the number of routers also dramatically increases the number of LSAs
exchanged between the routers. This flooding of LSAs significantly impacts the operation of OSPF.
LSAs and DR
The solution to managing the number of adjacencies and the flooding of LSAs on a
multiaccess network is the DR. On multiaccess networks, OSPF elects a DR to be the collection and
distribution point for LSAs sent and received. A BDR is also elected in case the DR fails. All other
routers become DROTHERs. A DROTHER is a router that is neither the DR nor the BDR.
Note: The DR is only used for the dissemination of LSAs. The router will still use the best next-hop
router indicated in the routing table for the forwarding of all other packets.