Module5 Networks Part2
Module5 Networks Part2
communication
Module 5
Routing protocols (Part 2)
Outline
• Link State Routing
• Reliable Flooding
• Example
• Implementation
• Performance analysis
• Packet Tracer
Link State Routing
• Initial state : similar to distance vector i.e., state of
link to neighbors known (up/down).
• goal: To find the path of least cost to destination.
• Basic Idea -- Every node knows how to reach its
neighbors. If this info is dissemination to every
node, every node ultimately has the info. to build
the complete map of the network.
Mechanisms
• Two mechanisms:
– Reliable dissemination of link state
information -- process is called reliable
flooding.
– calculation of routes using the collected
information -- the computation is based on
Dijkstra’s algorithm.
Reliable Flooding
• Process of making sure that all the nodes
participating in the link state routing protocol
get a copy of the link-state info. from all other
nodes.
• Each node sends out link-state information on
its directly connected links.
• Each node that receives this, forwards it.
Link State Information
• Each node creates a link-state packet (LSP) that
contains:
– ID of the node that created LSP
– a list of directly connected nodes and the cost
to each node.
– sequence number
– TTL } for reliability
An Example
– X receives LSP from some node Y.
– X checks to see if it already has an
update from Y. If it does, it
compares the sequence number in X A X A
3 B 2
7
A C
8
1
D
OSPF (Open Shortest Path First)
Boundary Router
Backbone
Area 0
Area Backbone Router
- Link-state advertisements runs OSPF routing limited
to backbone.
only in area .
- each nodes has detailed area Area 1
Area 2
topology;
- only know direction
(shortest path) to nets in
other areas. Area Border Router