logo

OSPF areas and LSAs (Link-State Advertisements)

OSPF Areas: What Are They?

In large networks, managing every router’s connection can be complex. OSPF Areas help by dividing the network into smaller, manageable sections. This improves performance and reduces the load on routers.

1. Backbone Area (Area 0)

  • The core of every OSPF network.
  • All other areas must connect to Area 0.
  • Think of it as the “highway” for routing traffic between different areas.

2. Standard Areas (Non-Backbone Areas like Area 1, 2, etc.)

  • Handle internal routing for specific regions of the network.
  • Must connect to Area 0 (directly or through virtual links).

3. Special Area Types

  • Stub Area: Blocks external routes to reduce routing table size (saves resources).
  • Totally Stubby Area: Even stricter; allows only default routes.
  • NSSA (Not-So-Stubby Area): Allows limited external routing with some flexibility.

Why Use OSPF Areas?

  • Scalability: Handles large networks easily.
  • Efficiency: Reduces unnecessary routing updates.
  • Faster Convergence: Limits the scope of changes to specific areas.

🚀 OSPF Areas Example

[Area 1] —— [Backbone Area (Area 0)] —— [Area 2]
| |
Router A Router B
  • Routers in Area 1 exchange information within Area 1.
  • To send data from Area 1 to Area 2, traffic must pass through Area 0.

Link-State Advertisements (LSAs): What Are They?

LSAs (Link-State Advertisements) are the messages OSPF routers send to share network information. They help routers build a map of the network and decide the best path for data.


🚩 Types of LSAs in OSPF

LSA TypeNamePurposeWhere Used?
Type 1Router LSAShares router’s links and statusInside an area
Type 2Network LSAInfo about multi-access networks (like LANs)Inside an area
Type 3Summary LSAShares routes between areasSent by ABRs (Area Border Routers)
Type 4ASBR Summary LSAInfo about routers connected to external networksBetween areas
Type 5External LSAAdvertises routes from outside OSPF (like the internet)Throughout the OSPF domain
Type 7NSSA External LSAExternal routes in NSSA areasNSSA areas only

How LSAs Work (Simple Process)

  1. Hello Packets: Routers find neighbors and establish relationships.
  2. LSA Flooding: Routers send LSAs to share link information with neighbors.
  3. Database Build: Routers collect LSAs in the Link-State Database (LSDB).
  4. Best Path Calculation: Routers run Dijkstra’s Algorithm to find the best route.

🚀 Real-World Example: OSPF with Areas & LSAs

[Area 1]—(ABR)—[Area 0]—(ABR)—[Area 2]
| |
Router A Router B
  • Router A sends a Type 1 LSA (Router LSA) to other routers in Area 1.
  • ABR (Area Border Router) converts it to a Type 3 LSA to share with Area 0 and Area 2.
  • If an external route is added (like an internet link), Type 5 LSA advertises it across all areas.

logo

বিসিএস, ব্যাংক, শিক্ষক নিয়োগ, পিএসসি ও অন্যান্য চাকরির পরীক্ষার জন্য একটি সহায়ক প্লাটফর্ম।

Contact Us

Email: contact@openexamschool.com


© 2025 Open Exam School. All rights reserved. Developed By Nuton.