CCNA3 Module 1: Single Area OSPFv2 Concepts - Enterprise Networking Security and Automation (ENSA)
Summary
Highlights
This module introduces Single Area OSPF version 2 concepts for the CCNA 3 course. It focuses on explaining how OSPF operates in both point-to-point and broadcast multi-access networks, covering its features, characteristics, packet types, and operational processes.
OSPF (Open Shortest Path First) is an Interior Gateway Protocol (IGP) used for IP routing within a single autonomous system. It's a link-state routing protocol, developed as an alternative to RIP (Routing Information Protocol), offering faster convergence and better scalability. OSPF uses areas to control routing update traffic effectively, where a link is an interface, network segment, or stub network, and link state information includes network prefix, prefix length, and cost.
OSPF uses five types of packets to exchange routing information: Hello, Database Description (DBD), Link State Request (LSR), Link State Update (LSU), and Link State Acknowledgment (LSACK). These packets build and maintain three databases: the Adjacency Database (neighbor table), Link State Database (LSDB, topology table), and Forwarding Database (routing table). The SPF algorithm is used to calculate the shortest path and populate the forwarding database.
To achieve convergence, OSPF routers follow a generic link-state routing process: establishing neighbor adjacencies, exchanging Link State Advertisements (LSAs), building the Link State Database (LSDB), executing the SPF algorithm, and choosing the best routes.
OSPF supports hierarchical routing using areas for efficiency and scalability. A single-area OSPF puts all routers in one area (best practice is Area 0), while multi-area OSPF uses multiple areas connected to a backbone area (Area 0) via Area Border Routers (ABRs). Multi-area OSPF offers advantages like smaller routing tables, reduced link-state update overhead, and localized impact of topology changes.
OSPFv3 is the equivalent of OSPFv2 for exchanging IPv6 prefixes. While primarily for IPv6, OSPFv3 with the address families feature can support both IPv4 and IPv6, though this is not covered in detail in this course. OSPFv3 shares similar functionality with OSPFv2, using the SPF algorithm for path determination, but runs separate processes for IPv4 and IPv6.
A detailed explanation of the five OSPF packet types is provided: Hello (discovers neighbors, builds adjacencies), Database Description (checks database synchronization), Link State Request (requests specific link state records), Link State Update (sends requested link state records), and Link State Acknowledgment (acknowledges receipt). LSUs contain LSA messages.
The OSPF Type 1 packet, the Hello Packet, is crucial for discovering neighbors, establishing adjacencies, advertising parameters for neighbor agreement, and electing Designated Routers (DR) and Backup Designated Routers (BDR) on multi-access networks. The packet header includes fields like hello interval, router priority, and router ID.
OSPF routers progress through several operational states to achieve full adjacency: Down (no Hellos received), Init (Hellos received, router ID noted), Two-Way (bi-directional communication, DR/BDR election on multi-access links), Exstart (decide which router initiates DBD exchange), Exchange (exchange DBD packets), Loading (LSR/LSU used to gain more route info if needed), and Full State (LSDB fully synchronized).
Routers establish adjacencies by sending Hello packets containing their router ID to the multicast address 224.0.0.5. If a router receives a Hello from an unknown ID, it attempts to establish adjacency. The process involves transitioning through Down, Init, and Two-Way states, with DR/BDR elections occurring in multi-access networks.
After the Two-Way state, routers synchronize databases through a three-step process: deciding which router sends DBDs first (highest router ID), exchanging DBDs (acknowledged with LSACKs), and sending LSRs if more current link information is found in DBDs. Once all LSRs are satisfied, routers reach the Full state, and incremental LSUs are sent for updates.
Multi-access networks pose challenges to OSPF due to excessive adjacencies and extensive LSA flooding. To mitigate this, OSPF elects a Designated Router (DR) as a central collection and distribution point for LSAs, and a Backup Designated Router (BDR) for redundancy. Other routers become DR Others. The DR only handles LSA dissemination and not general packet forwarding.