Abstract


  • Router stores info about network in LSA, which are organised in a structure called the LSDB
  • We will use LSA Flooding to ensure router and its routing neighbours have the same routing information. Then we can use Dijkstra’s Algorithm to calculate the best route to route packets

LSA

TYPE-1 LSA (Router LSA)
β”Œβ”€β”€β”€β” "I'm R1, connected to R2 via 10.1.1.0/30"            
β”‚R1 β”‚ "I'm R2, connected to R1,R3 via networks..."         
β””β”€β”€β”€β”˜                                              
TYPE-2 LSA (Network LSA)
 🌐 "Network 192.168.1.0/24 has R1,R2,R3 attached"    
TYPE-3 LSA (Summary LSA) - Inter-area routes
πŸ“‘ "To reach Area 1 networks, go via ABR R5"
TYPE-5 LSA (External LSA)
🌍 "To reach Internet 0.0.0.0/0, go via ASBR"
  • Stands for Link State Advertisements
  • Contains info like the router ID, the IP address of the new network interface and the cost

LSDB

  • A collection of LSA

LSA Flooding


Step 1: Router R1 detects link change
   β”Œβ”€β”€β”€β” ❗ 
   β”‚R1 β”‚ "My link to 192.168.1.0/24 is down!"
   β””β”€β”¬β”€β”˜
     β”‚
Step 2: R1 generates new LSA
     β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚  NEW LSA    β”‚
   β”‚ Type-1, R1  β”‚
   β”‚ Seq: 0x8001 β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
     β”‚
Step 3: LSA Flooding (multicast to neighbors)
     β–Ό
   β”Œβ”€β”€β”€β” ──flooding──> β”Œβ”€β”€β”€β” ──flooding──> β”Œβ”€β”€β”€β”
   β”‚R1 β”‚               β”‚R2 β”‚               β”‚R3 β”‚
   β””β”€β”€β”€β”˜               β””β”€β”€β”€β”˜               β””β”€β”€β”€β”˜
     β”‚                   β”‚                   β”‚
     β–Ό                   β–Ό                   β–Ό
   Updates               Updates             Updates
   LSDB                 LSDB                LSDB
  • When a link is added or down in the network. A LSA is created and is flooded throughout the network until all routers have received it, resulting in all routers in the same OSPF area sharing the same LSDB

Aging timer

The LSA will be flooded again after timer expires. The timer expires every 30 mins.

OSPF Area


  • An area is a set of routers that share the same LSDB
  • We usually use it to divide up the network to make it more efficient to manage
  • Each area has its own LSDB, so router in an area needs less memory to store it. And since we have less nodes in the LSDB, the routing calculation is also more efficient

Important

OSPF interfaces in the same subnet must be in the same area.

If they aren’t in the same area, they can’t be OSPF neighbours and can’t exchange information about the network they know.

Backbone Area

  • All other OSPF areas must have a direct connection with the backbone areas via the Area Border Router
  • All routers inside this area are known as backbone routers

Internal Router

Area Border Router

  • Routers whose interfaces are in multiple areas

Important

Area Border Routers (ABRs) maintain a separate LSDB for each area they are connected to.

It is recommended that you connect an ABR to a maximum of 2 areas, or we can overburden the router.

ASBR

[OSPF Domain]  ←→  [ASBR]  ←→  [BGP/Internet]
(Areas 0,1,2,3)              (Different AS)
  • Acts as a translator, taking routes learned via Border Gateway Protocol (or other protocols) and advertising them into the OSPF domain as external routes (Type-5 LSA)

Intra-area Route

  • A route to a destination inside the same OSPF Area

Inter-area Route

  • A route to a destination in a different OSPF Area

References