OSPF Protocol

OSPF Protocol

  • OSPF stands for Open Shortest Path First : It is a routing protocol used in computer networks to determine the best paths for routing data packets from a source to a destination based on cost metrics.

cost = 10^8/BW.?

OSPF is an Interior Gateway Protocol (IGP) designed for use within an autonomous system (AS), which is a collection of networks under a single administrative domain.??

- Administrative distance (AD) of 110

- Uses Dijkstra's Shortest Path First (SPF) algorithm to determinate the best path for a remote network.

  • OSPF versions :

OSPFv2 : Used for IPv4?

OSPFv3 : Used for IPv6

- Routers exchange information about their interfaces (directly connected networks) so that each router builds a map of the entire network topology.

- OSPF uses Link state Advertisement (LSA) and Link State Database (LSDB) for building the map.

  • LSA : An OSPF message contains routing information (it will be reflooded every 30min by default. However, when an LSA changes, it will be flooded immediately)

?

  • LSDB : A database consists of LSAs, located on each router.

?- OSPF supports a hierarchical design "Areas" to break a large network with one large LSDB into smaller areas with smaller separate LSDBs.


- Areas is a group of links and routers that share the same LSDB

  • Single-area OSPF : One area with the same LSDB
  • Multiarea OSPF : Multiple areas have separate LSDBs

- Areas should be contiguous.

-All not backbone areas must connect to the backbone area by having at least one ABR.

- Interface in the same subnet must be in the same area

  • Backbone area (area 0) : A special area that all areas must connect to
  • Area Border Router (ABR) : A router with interfaces connected to the backbone area and at least one other area.

- Has a LSDB for each area?

- Creates summary informations about each subnet in an area to advertise it into other areas, "Summary LSA"

- It is recommended to connect ABR with two areas only (backbone and other area).

  • Backbone Router : A router connected to the backbone area (includes ABRs)
  • Internal Router (IR) : A router connected to one area (not backbone area).
  • Autonomous System Boundary Router (ASBR) : A router with at least one interface connected to an externel network.
  • Router ID (RID) : An IP address which uniquely identifies each router on the OSPF network.

- Enabling OSPF on an interface means that router will start sending and receiving hello packets out of the interface to discover neighbors and establish adjacencies with them.

Hello packets are always sent to the multicast IP address 224.0.0.5.

- Hello interval/timer : how often a router sends hello messages (default 10 sec)

- Dead interval/timer : how long a router waits without received a hello message from a neighbor before believing that neighbor has failed (default 4x hello timer)


OSPF Network Types : Configuration that are implemented on each OSPF-enabled interface

Two types of the OSPF network types : MBA and Point-to-Point

1- Broadcast (MBA) : network type is configured by default on ethernet interfaces?

-Broadcast network type tells the router to dynamically discover OSPF neighbors

-A Designated Router (DR) and backup Designated Router (BDR) must be elected on each subnet to reduce the amount of ospf traffic on multiaccess networks.

- A DR manages the LSDB exchange process :

- only DR and BDR form full adjacency with other OSPF routers.

-The DR/BDR is responsible for updating the LSDBs of all other OSPF routers using the multicast IP address 224.0.0.5 (all OSPF routers)

- When an LSA changes on DROthers, they send an LSU (LSA update) packet to 224.0.0.6 (all DRs/BDRs)

-When a DR fails, the BDR will operate as a DR.

-The DR/BDR election :?

1. The highest OSPF interface priority (Default priority is 11,(0-255))

2. The router with the highest RID

- The first election is for the DR, and the second one is for the BDR.

2- OSPF Point-to-point : network type exists for serial links that use PPP or HDLC as layer two encapsulation

-Like Broadcast network type, Point-to-Point network type tells the router to dynamically discover OSPF neighbors

-Serial links do not have the ability to add a third router to the link, so there is no DR/BDR election.

-Routers establish full adjacency.

Akram Djerrar

Telecom and IP Network Engineer | Final Year Student at Yahia Fares University | ISC2 Member | Cisco Certified | Juniper Certified | Fortinet Certified

1 年

Thank you for sharing such Precious informations with us

Karim Belhadj

Cybersecurity Engineer | Aspiring Cybersecurity Professional

1 年

Very informative and straight to the point. Great post ??

要查看或添加评论,请登录

Mourad A. HARIMA的更多文章

  • I Highly Recommend Containerlab for Network Engineers

    I Highly Recommend Containerlab for Network Engineers

    As a network engineer, you know the importance of effective tools for testing, prototyping, and managing network…

  • Roadmap to become Telco Cloud Engineer

    Roadmap to become Telco Cloud Engineer

    1. Understand the Role Telco Cloud Engineers focus on integrating telecom services with cloud technologies, supporting…

  • DMZ

    DMZ

    Qu’est-ce qu’un réseau DMZ ? Une zone démilitarisée (DMZ) est un réseau périphérique qui protège le réseau local (LAN)…

    2 条评论
  • Routing Protocol BGP - PART 1

    Routing Protocol BGP - PART 1

    BGP Overview : Border Gateway Protocol (BGP) is an inter-autonomous system routing protocol. An autonomous system (AS)…

  • Routing Protocol IS-IS PART 3

    Routing Protocol IS-IS PART 3

    Authentication : All IS-IS protocol exchanges can be authenticated. This guarantees that only trusted routers can…

    2 条评论
  • Routing Protocol IS-IS - PART 2

    Routing Protocol IS-IS - PART 2

    ISO Network Addressing : IS-IS uses ISO network addresses. There are two types of network addresses: Network Service…

  • Routing Protocol IS-IS - PART 1

    Routing Protocol IS-IS - PART 1

    Overview of IS-IS : IS-IS is an interior gateway protocol (IGP), similar to OSPF, that is used within large autonomous…

    3 条评论
  • Interface Loopback

    Interface Loopback

    Voici comment l'interface loopback est utilisée dans les configurations de routeurs à distance : Accès au routeur à…

  • Protocoles Réseaux - IMAP, POP3, SMTP

    Protocoles Réseaux - IMAP, POP3, SMTP

    IMAP (Internet Message Access Protocol): est un protocole de communication bidirectionnel utilisé par les clients de…

  • Protocoles Réseaux - DNS

    Protocoles Réseaux - DNS

    Le protocole DNS (Domain Name System) : est un système de noms de domaine qui est utilisé pour résoudre les noms de…

社区洞察

其他会员也浏览了