0% found this document useful (0 votes)
3 views3 pages

Link - State Algorithm

Algo

Uploaded by

prakash222326
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Link - State Algorithm

Algo

Uploaded by

prakash222326
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Link-State Routing Protocols

What is a Link-State Routing Protocol?


A link-state routing protocol is a type of dynamic routing protocol used in computer
networks to determine the best path for data packets to travel from a source to a destination.

Instead of relying on route advertisements from neighbouring routers (as in distance-vector


protocols), link-state routers build a complete map of the network topology and calculate
the best routes themselves using an algorithm such as Dijkstra's Shortest Path First (SPF).

Working Mechanism of Link-State Routing Protocols


1. Neighbor Discovery

Each router identifies and forms adjacencies with directly connected routers. It uses Hello
packets to establish and maintain these neighbor relationships.

2. Link-State Advertisement (LSA) Creation

Routers create Link-State Advertisements, which are small messages containing


information about the router’s directly connected links, their status, cost, and neighbors.

3. Flooding of LSAs

The LSA is flooded throughout the network so that every router receives the same set of
link-state information. Each router stores these LSAs in its Link-State Database (LSDB).

4. Building the Link-State Database

The LSDB is essentially a topology map of the entire network, showing how routers and
networks are interconnected.

5. Shortest Path Calculation

Using the LSDB, each router independently runs Dijkstra's algorithm to compute the
shortest path tree, which determines the best routes to all destinations.

6. Routing Table Update

Based on the computed shortest paths, the router updates its routing table, which is used to
forward data packets.
Examples of Link-State Routing Protocols
Protocol Description
OSPF (Open Shortest Path A widely used interior gateway protocol (IGP) that uses
First) link-state principles. Supports hierarchical design with
areas.
IS-IS (Intermediate System to Originally developed for OSI networks, now also
Intermediate System) supports IP routing. Used in large service provider
networks.

Advantages of Link-State Routing Protocols


1. More Accurate Routing

Each router has a complete and synchronized map of the network. This leads to better
route decisions compared to distance-vector protocols.

2. Faster Convergence

Link-state protocols respond quickly to network changes. When a link goes down or
changes, only the affected part of the network is recalculated, minimizing downtime.

3. Highly Scalable

Supports hierarchical network designs. For example, OSPF uses areas (like Area 0, Area
1, etc.) to divide the network into manageable sections.

4. Loop-Free by Design

By using Dijkstra’s algorithm and complete network knowledge, link-state routing avoids
routing loops which are common in poorly configured distance-vector protocols.

5. Efficient Use of Bandwidth

Updates are triggered by changes, not sent periodically. Only the specific change (LSA) is
shared, reducing unnecessary traffic.

Disadvantages of Link-State Routing Protocols


1. High Resource Consumption

• Requires more memory (RAM) to store LSDB.


• Requires higher CPU power to run Dijkstra’s algorithm.
• Larger networks mean larger databases and more processing overhead.

2. Complex Configuration and Management

• Setting up protocols like OSPF or IS-IS can be technically complex, especially in


large networks.
• Requires deep understanding of routing hierarchies, areas, metrics, and LSAs.

3. Initial LSA Flooding Overhead

• When a router starts, it floods LSAs to all routers, which may cause a temporary
spike in network traffic.

4. More Storage Requirements

• The router must store complete topology data instead of just next-hop information.
• This can be a burden in memory-constrained devices.

Comparison: Link-State vs Distance-Vector Protocols


Feature Link-State Protocols Distance-Vector Protocols
Algorithm Used Dijkstra’s SPF Bellman-Ford
Network Knowledge Full map of topology Only neighbor info
Update Method Event-driven LSAs Periodic full-table updates
Convergence Time Faster Slower
Scalability High (supports hierarchy) Low
Resource Usage Higher (CPU, RAM) Lower
Examples OSPF, IS-IS RIP, BGP (Path Vector)

Real-Life Use Case


• Enterprise Networks use OSPF because it supports fine-tuned routing, faster
recovery, and segmentation into areas.
• Large Service Providers and ISPs often use IS-IS due to its scalability and
integration with other protocols.

You might also like