Routing Protocol & Algorithms
Routing Protocol & Algorithms
NETWORK LAYER
Delivery
Forwarding
Routing
NETWORK LAYER
DELIVERY
Way a packet is handled by the underlying networks under the control of the
network layer.
FORWARDING
Way a packet is delivered to the next station.
ROUTING
Way routing tables are created to help in forwarding.
DELIVERY
In networks Delivery is of two types
DIRECT DELIVERY
Occurs when the source and destination of the packet are located
on the same physical network or when the delivery is between the last
router and the destination host.
INDIRECT DELIVERY
Destination host is not on the same network as the deliverer.
The packet goes from router to router
FORWARDING
Forwarding means to place the packet in its route to its destination.
Forwarding requires a host or a router to have a routing table.
It is impossible in the Internet because the number of entries needed
in the routing table will be more.
SOLUTION
Next-Hop Method Versus Route Method
Network-Specific Method Versus Host-Specific Method
Default Method
DEFAULT METHOD
ROUTING TABLE
A host or a router has a routing table with an entry for each
destination, or a combination of destinations, to route IP packets.
Two classifiaction of routing table are
-STATIC
-DYNAMIC
RIP
OSPF
BGP
OPTIMIZATION
Assign a metric(cost) for passing through a network.
The metric assigned to each network depends on the type of protocol.
In RIP - Hop count.
OSPF - Throughput , Delay
BGP - Policy Defined by administrator
AUTONOMOUS SYSTEM
The least-cost route between any two nodes is the route with
minimum distance.
Each node maintains a vector (table) of minimum distances to every
node.
Steps Involved
- Initialization
- Sharing
- Updating
INITIALISATION
Each node knows how to reach any other node and the cost.
At the beginning each node can know only the distance between itself
and its immediate neighbor.
Each node can send a message to the immediate neighbors and find
the distance.
The distance for any entry that is not a neighbor is marked as infinite
(unreachable).
SHARING
The whole idea of distance vector routing is the sharing of
information between neighbours.
Each node sends its entire table to the neighbor and let the neighbor
decide what part to use.
In distance vector routing, each node shares its routing table with its
immediate neighbors periodically and when there is a change.
UPDATING
When a node receives a two-column table from a
neighbor, it needs to update its routing table.
The receiving node needs to add the cost between
itself and the sending node
Add the name of the sending node to each row as the
third column if the receiving node uses information
WHEN TO SHARE
The table is sent both periodically and when there is a change in the
table.
Periodic Update : A node sends its routing table, normally every 30 s.
Triggered Update : When there is a change in routing table.
It is due to failure in the neighboring links.
Two-node instability
Three-node instability
Dijkstra algorithm
OSPF PROTOCOL
At the border of an area, special routers called area border routers
summarize the information about the area and send it to other areas.
The routers inside the backbone are called the backbone routers. Note
that a backbone router can also be an area border router.
If the connectivity between a backbone and an area is broken, a virtual
link between routers must be created by an administrator to allow
continuity of the functions
Metric Delay or Throughput.
Point-to-point link
Transient link
Stub link