Unicast Routing
Unicast Routing
Faculty Name
Dr. Amanpreet Kaur
Assistant Professor
Department of Electronics and Communication
Engineering,
Thapar Institute of Engineering and Technology, Patiala.
www.thapar.edu
2
Outline of the lecture
• Unicast Routing
• Intradomain protocol
Distance-vector routing algorithm
RIP (Routing Information Protocol)
Link-state routing algorithm
OSPF (Open Shortest Path First)
• Interdomain protocol
Path Vector Routing
Border Gateway Protocol
3
Unicast Routing
• It is the process of forwarding unicasted traffic
from a source to a destination on an internetwork.
• Unicasted traffic is destined for a unique
address.
• It is the simplest form of routing because the
destination is already known.
• Router just has to look up the routing table and
forward the packet to next hop
• Routing packets is from source to the destination
router.
• To find best route internet can be modeled as
graph
At the beginning
Each node can know only the distance between itself and its immediate neighbors
We assume each node can send a message to the immediate neighbors and find the distance
• Algorithm: Updating
Shared knowledge about the Receipt: a two-column table from a neighbor
Add the cost between itself and the sending node to
entire autonomous system each value in the second column
Shared only neighbors Repeat the following steps for each advertised
destination
Shared at regular interval If (destination not in the routing table)
Add the advertised information to the table
Else
If (next-hop field is the same)
Replace retry in the table with the
new advertised one
Else
If (advertised hop count smaller than
one in the table)
• Replace entry in
Reference: 1. Ferouzan, Behrouz A., Data Communications and Networking the routing table
Updating in Distance Vector Routing
Reach A via C
In link state routing, four sets of actions are required to ensure that
each node has the routing table showing the least-cost node to every
other node.
1. Creation of the states of the links by each node, called the link state
packet (LSP).
2. Dissemination of LSPs to every other router, called flooding, in an
efficient and reliable way.
3. Formation of a shortest path tree for each node.
4. Calculation of a routing table based on the shortest path tree.
• Flooding of LSPs:
The creating node sends a copy of the LSP out of each interface.
It discards the old LSP and keeps the new one.
It sends a copy of it out of each interface except the one from which
the packet arrived.