SlideShare a Scribd company logo
6
Most read
10
Most read
13
Most read
Routing Algorithms in
Computer Networks
What ‘s Routing Algorithms in Computer Networks?
• In computer networks, routing is the process of selecting the path
along which the data will be transferred from the source node(device)
to the destination node
• This path is determined by the help of Routing Algorithms in
Computer Networks.
• This article aims to provide an overview of routing algorithms in
computer networks, the types of routing algorithms, and their
advantages and disadvantages
Categories of Routing Algorithm
• We have two types Nonadoptive routing algorithms and adaptive routing
algorithms
• on-adaptive routing algorithms are also known as static
routing algorithms. Static routing is a type of routing that does not change
the route taken based on network conditions. This means that the same
route is always taken, regardless of whether there are any changes in
network conditions.
• Adaptive routing algorithms allow packets to take multiple paths to avoid
congestion and flatten the on-chip network traffic distribution. Fully
adaptive algorithms, which permit non-minimal routes, can further
improve NoC efficiency as they allow packets to turn around to avoid
becoming blocked in congested regions.
Routing algorithms mehodology materials doc1
Isolated
In these types of algorithms, each node determines its routing
decisions based on the information it receives without consulting other
nodes.
The sending nodes have no information of the state of a specific link.
The drawback is that packets may be routed over a busy network,
causing delays.
Example: Hot potato routing and backward learning.
Centralized
In these types of routing Algorithms, a centralized node has all network
information and makes all routing decisions.
The benefit is that only one node is necessary to retain the information
of the whole network, but the disadvantage is that if the central node
fails, the entire network is destroyed.
Example: The link state algorithm is sometimes referred to as a
centralized algorithm as it contains information of all the nodes present
in the network.
Distributed
• In Distributed Adaptive Routing Algorithms in Computer Networks,
the node collects information from its neighbors before deciding how
to route the packets.
• One disadvantage is that the packet may be delayed if the intervals at
which it receives information and delivers packets change.
Flooding
• Flooding
The flooding technique uses the practice of sending every incoming
packet on every outgoing line except the one from which it arrived.
One disadvantage of this algorithm is that packets can get stuck in a
loop, leading a node to receive duplicate packets.
• These issues can be solved using sequence numbers, hop counts, and
spanning trees.
•
Random Walk
• Each node in the network sends the data packet to a randomly picked
neighbor in the random walk algorithm. This is repeated until the
packet arrives at the target node.
• Random walk is a simple algorithm, however, it might result in
inefficient routing and unnecessary traffic.
Link State Routing Algorithm
•
Each node in the network keeps a map of the network topology and
uses Dijkstra’s algorithm to determine the most efficient path for data
packets in the link-state routing algorithm.
• The map is updated regularly based on information received from
neighboring nodes.
Distance Vector Routing Algorithm
• In the distance vector routing algorithm, each node in the network
has a table that records the distance and the next hop for each
destination node.
• The table is periodically updated based on information received from
surrounding nodes. The Bellman-Ford method is used to select the
best route for data packets.
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Flooding
Flooding is used when source don’t have any idea about destination and should send a broadcast message to know to
destination
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Problems of distance vector routing
• It is delay metric was queue length, it did not take line bandwidth into
account when choosing routes
• Count to infinity problem
(So, It is replaced by link state routing),
(Each router must do the following )
• Learn their neighbors and their network address
• Measure delay or cost to each of its neighbors
• Construct packet telling all it has learned
• Send this packet to all other routers
• Compute shortest path to every other router
• Learning about neighbors
Link State Routing (Learning about neighbors)
Link State Routing (Learning about neighbors and Measuring Line cost)
Learning about neighbors: use to know their neighbor routers
Measuring line Cost: use to measuring the distance neighbors
What is the link state packet?
• Link State Packet (LSP) is a packet of information generated by a
network router in a link state routing protocol that lists the router's
neighbors. Link state packets can be further defined as special
datagrams that determine the names of and the cost or distance to
any neighboring routers and associated networks.
• LSAs are distributed throughout a defined area by the process of
reliable flooding
• When a router receives a new LSA in a Link State Update packet, it
installs the LSA in its database and then forwards the packet on all its
interfaces except the one on which the Update packet was received.
LINK STATE ROUTING
Distributing Link State Packets: determine the names of and the cost or distance to any neighboring routers
Computing new routers: use for constructing subletting graphs which help to detect shortest paths
• Hierarchical routing is the procedure of arranging routers in a hierarchical manner.
• A good example would be to consider a corporate intranet. Most corporate intranets consist of a high speed
backbone network. Connected to this backbone are routers which are in turn connected to a particular workgroup.
References
• https://www.geeksforgeeks.org/classification-of-routing-algorithms/
• https://www.sciencedirect.com/topics/computer-science/adaptive-
routing#:~:text=Adaptive%20routing%20algorithms%20allow%20pac
kets,becoming%20blocked%20in%20congested%20regions.

More Related Content

PPTX
Link state routing protocol
PPTX
The medium access sublayer
PDF
Location Aided Routing (LAR)
PPTX
Circuit Switching
PPT
Packet switching
PPTX
SLOTTED ALOHA and pure aloha are the category of aloha
PPT
Unit 5 Application Layer
PPTX
RPC: Remote procedure call
Link state routing protocol
The medium access sublayer
Location Aided Routing (LAR)
Circuit Switching
Packet switching
SLOTTED ALOHA and pure aloha are the category of aloha
Unit 5 Application Layer
RPC: Remote procedure call

What's hot (20)

PPTX
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
PPTX
Routing algorithm
PPSX
Congestion control in TCP
PDF
Processes and Processors in Distributed Systems
PPT
Introduction to switching & circuit switching
PPTX
GO BACK N PROTOCOL
PPTX
Geographic Routing in WSN
PPT
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
PPSX
Adoptive retransmission in TCP
PPT
Chapter 23
PPTX
MANET routing protocols Issues and Classifications
PPTX
Distance Vector Routing Protocols
PPT
Distance vector routing
PPTX
Open shortest path first (ospf)
PPTX
19 Network Layer Protocols
PPTX
Network layer - design Issues
PPTX
ENCAPSULATION AND TUNNELING
PPTX
Mobile transport layer - traditional TCP
PPTX
Csma cd and csma-ca
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
Routing algorithm
Congestion control in TCP
Processes and Processors in Distributed Systems
Introduction to switching & circuit switching
GO BACK N PROTOCOL
Geographic Routing in WSN
Chapter 26 - Remote Logging, Electronic Mail & File Transfer
Adoptive retransmission in TCP
Chapter 23
MANET routing protocols Issues and Classifications
Distance Vector Routing Protocols
Distance vector routing
Open shortest path first (ospf)
19 Network Layer Protocols
Network layer - design Issues
ENCAPSULATION AND TUNNELING
Mobile transport layer - traditional TCP
Csma cd and csma-ca
Ad

Similar to Routing algorithms mehodology materials doc1 (20)

PPTX
CN_UNIT_3_routing algorithms.ppt.......x
PPTX
Routing algorithms
PPT
NETWORK LAYER.ppt
PPT
NetworkAlgorithms.ppt
PPTX
Network Layer
PPTX
Routing algorithm
PPT
12-Routing Network computer cisco net.ppt
PDF
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
PPT
Network Layer
PPTX
CN-UNIT-3 __Network Layer (2).pptx
PPTX
Network layer new
PPTX
Network Layer
PDF
An Insight on Routing
PPTX
Module 3 Part B - computer networks module 2 ppt
PPT
Routing
PDF
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
PPT
Routing and IP in Advance Computer Network,Vikram Snehi
PPTX
Unit 4_Network Layer_Part II.pptx
PPTX
Routing Presentation
PPT
11-RoutingThe development of wireless systems traces its roots .ppt
CN_UNIT_3_routing algorithms.ppt.......x
Routing algorithms
NETWORK LAYER.ppt
NetworkAlgorithms.ppt
Network Layer
Routing algorithm
12-Routing Network computer cisco net.ppt
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
Network Layer
CN-UNIT-3 __Network Layer (2).pptx
Network layer new
Network Layer
An Insight on Routing
Module 3 Part B - computer networks module 2 ppt
Routing
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
Routing and IP in Advance Computer Network,Vikram Snehi
Unit 4_Network Layer_Part II.pptx
Routing Presentation
11-RoutingThe development of wireless systems traces its roots .ppt
Ad

More from Mugabo4 (20)

PPT
05Transport protocols and internet design.ppt
PPT
Basics on IPV4 & IPv6 with comparison.ppt
PPTX
computor system technology and application.pptx
PPT
wireless and mobile communication tech.ppt
PPT
1 Basic E-Commerce Concepts for online business.ppt
PPTX
RFID Technology and its operation system.pptx
PPT
BluetoothSecurity consideration and fondamentary.ppt
PPT
Chapter6TransportLayer header format protocols-2.ppt
PPTX
TCP and UDP comparison and itsi application.pptx
PPT
TCPIP in brief and working operation.ppt
PPTX
3G Network architecture and channel.pptx
PPTX
radar technology and operation process.pptx
PPTX
Presentation about Bluetooth and working principles.pptx
PPTX
CHUK site performance in last 5 days.pptx
PPTX
Perfornance at BK ARENA for checking 4G QoS.pptx
PPTX
How to write business plan for e commerce.pptx
PPTX
introduction on server.pptx
PPTX
SAN overview.pptx
PPTX
Customer service and Building Trust with online shoppers.pptx
PPTX
AB testing.pptx
05Transport protocols and internet design.ppt
Basics on IPV4 & IPv6 with comparison.ppt
computor system technology and application.pptx
wireless and mobile communication tech.ppt
1 Basic E-Commerce Concepts for online business.ppt
RFID Technology and its operation system.pptx
BluetoothSecurity consideration and fondamentary.ppt
Chapter6TransportLayer header format protocols-2.ppt
TCP and UDP comparison and itsi application.pptx
TCPIP in brief and working operation.ppt
3G Network architecture and channel.pptx
radar technology and operation process.pptx
Presentation about Bluetooth and working principles.pptx
CHUK site performance in last 5 days.pptx
Perfornance at BK ARENA for checking 4G QoS.pptx
How to write business plan for e commerce.pptx
introduction on server.pptx
SAN overview.pptx
Customer service and Building Trust with online shoppers.pptx
AB testing.pptx

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Well-logging-methods_new................
PPTX
Internet of Things (IOT) - A guide to understanding
DOCX
573137875-Attendance-Management-System-original
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Geodesy 1.pptx...............................................
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Construction Project Organization Group 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Sustainable Sites - Green Building Construction
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPT
Project quality management in manufacturing
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
bas. eng. economics group 4 presentation 1.pptx
Well-logging-methods_new................
Internet of Things (IOT) - A guide to understanding
573137875-Attendance-Management-System-original
Lesson 3_Tessellation.pptx finite Mathematics
Embodied AI: Ushering in the Next Era of Intelligent Systems
additive manufacturing of ss316l using mig welding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Lecture Notes Electrical Wiring System Components
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Geodesy 1.pptx...............................................
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Construction Project Organization Group 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Sustainable Sites - Green Building Construction
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
Project quality management in manufacturing
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx

Routing algorithms mehodology materials doc1

  • 2. What ‘s Routing Algorithms in Computer Networks? • In computer networks, routing is the process of selecting the path along which the data will be transferred from the source node(device) to the destination node • This path is determined by the help of Routing Algorithms in Computer Networks. • This article aims to provide an overview of routing algorithms in computer networks, the types of routing algorithms, and their advantages and disadvantages
  • 3. Categories of Routing Algorithm • We have two types Nonadoptive routing algorithms and adaptive routing algorithms • on-adaptive routing algorithms are also known as static routing algorithms. Static routing is a type of routing that does not change the route taken based on network conditions. This means that the same route is always taken, regardless of whether there are any changes in network conditions. • Adaptive routing algorithms allow packets to take multiple paths to avoid congestion and flatten the on-chip network traffic distribution. Fully adaptive algorithms, which permit non-minimal routes, can further improve NoC efficiency as they allow packets to turn around to avoid becoming blocked in congested regions.
  • 5. Isolated In these types of algorithms, each node determines its routing decisions based on the information it receives without consulting other nodes. The sending nodes have no information of the state of a specific link. The drawback is that packets may be routed over a busy network, causing delays. Example: Hot potato routing and backward learning.
  • 6. Centralized In these types of routing Algorithms, a centralized node has all network information and makes all routing decisions. The benefit is that only one node is necessary to retain the information of the whole network, but the disadvantage is that if the central node fails, the entire network is destroyed. Example: The link state algorithm is sometimes referred to as a centralized algorithm as it contains information of all the nodes present in the network.
  • 7. Distributed • In Distributed Adaptive Routing Algorithms in Computer Networks, the node collects information from its neighbors before deciding how to route the packets. • One disadvantage is that the packet may be delayed if the intervals at which it receives information and delivers packets change.
  • 8. Flooding • Flooding The flooding technique uses the practice of sending every incoming packet on every outgoing line except the one from which it arrived. One disadvantage of this algorithm is that packets can get stuck in a loop, leading a node to receive duplicate packets. • These issues can be solved using sequence numbers, hop counts, and spanning trees. •
  • 9. Random Walk • Each node in the network sends the data packet to a randomly picked neighbor in the random walk algorithm. This is repeated until the packet arrives at the target node. • Random walk is a simple algorithm, however, it might result in inefficient routing and unnecessary traffic.
  • 10. Link State Routing Algorithm • Each node in the network keeps a map of the network topology and uses Dijkstra’s algorithm to determine the most efficient path for data packets in the link-state routing algorithm. • The map is updated regularly based on information received from neighboring nodes.
  • 11. Distance Vector Routing Algorithm • In the distance vector routing algorithm, each node in the network has a table that records the distance and the next hop for each destination node. • The table is periodically updated based on information received from surrounding nodes. The Bellman-Ford method is used to select the best route for data packets.
  • 14. Flooding Flooding is used when source don’t have any idea about destination and should send a broadcast message to know to destination
  • 18. Problems of distance vector routing • It is delay metric was queue length, it did not take line bandwidth into account when choosing routes • Count to infinity problem (So, It is replaced by link state routing), (Each router must do the following ) • Learn their neighbors and their network address • Measure delay or cost to each of its neighbors • Construct packet telling all it has learned • Send this packet to all other routers • Compute shortest path to every other router • Learning about neighbors
  • 19. Link State Routing (Learning about neighbors)
  • 20. Link State Routing (Learning about neighbors and Measuring Line cost) Learning about neighbors: use to know their neighbor routers Measuring line Cost: use to measuring the distance neighbors
  • 21. What is the link state packet? • Link State Packet (LSP) is a packet of information generated by a network router in a link state routing protocol that lists the router's neighbors. Link state packets can be further defined as special datagrams that determine the names of and the cost or distance to any neighboring routers and associated networks. • LSAs are distributed throughout a defined area by the process of reliable flooding • When a router receives a new LSA in a Link State Update packet, it installs the LSA in its database and then forwards the packet on all its interfaces except the one on which the Update packet was received.
  • 22. LINK STATE ROUTING Distributing Link State Packets: determine the names of and the cost or distance to any neighboring routers Computing new routers: use for constructing subletting graphs which help to detect shortest paths
  • 23. • Hierarchical routing is the procedure of arranging routers in a hierarchical manner. • A good example would be to consider a corporate intranet. Most corporate intranets consist of a high speed backbone network. Connected to this backbone are routers which are in turn connected to a particular workgroup.