SlideShare a Scribd company logo
1 of 24
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.
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.
Flooding
Flooding is used when source don’t have any idea about destination and should send a broadcast message to know to
destination
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

Similar to Routing algorithms mehodology materials doc1

Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iiiJAIGANESH SEKAR
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)ZainabShahzad9
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmSiva Priya
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithmBasit Hussain
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmBushra M
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1aishwaryaarrao3
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxAayushMishra89
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxsatvikpatil5
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 
Routing in Ad hoc networks
Routing in Ad hoc networksRouting in Ad hoc networks
Routing in Ad hoc networksTran Thang
 

Similar to Routing algorithms mehodology materials doc1 (20)

Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 
Network layer
Network layerNetwork layer
Network layer
 
Network layer (Unit 3) part1.pdf
Network  layer (Unit 3) part1.pdfNetwork  layer (Unit 3) part1.pdf
Network layer (Unit 3) part1.pdf
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
unit-4
unit-4 unit-4
unit-4
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
 
CN WEEK 11.pdf
CN WEEK 11.pdfCN WEEK 11.pdf
CN WEEK 11.pdf
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptx
 
manet.pdf
manet.pdfmanet.pdf
manet.pdf
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
computer communications
computer communicationscomputer communications
computer communications
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7
 
UNIT-3 Adhoc.pptx
UNIT-3 Adhoc.pptxUNIT-3 Adhoc.pptx
UNIT-3 Adhoc.pptx
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Routing in Ad hoc networks
Routing in Ad hoc networksRouting in Ad hoc networks
Routing in Ad hoc networks
 

More from Mugabo4

radar technology and operation process.pptx
radar technology and operation process.pptxradar technology and operation process.pptx
radar technology and operation process.pptxMugabo4
 
Presentation about Bluetooth and working principles.pptx
Presentation about Bluetooth and working principles.pptxPresentation about Bluetooth and working principles.pptx
Presentation about Bluetooth and working principles.pptxMugabo4
 
CHUK site performance in last 5 days.pptx
CHUK site performance in last 5 days.pptxCHUK site performance in last 5 days.pptx
CHUK site performance in last 5 days.pptxMugabo4
 
Perfornance at BK ARENA for checking 4G QoS.pptx
Perfornance at BK ARENA for checking 4G QoS.pptxPerfornance at BK ARENA for checking 4G QoS.pptx
Perfornance at BK ARENA for checking 4G QoS.pptxMugabo4
 
How to write business plan for e commerce.pptx
How to write business plan for e commerce.pptxHow to write business plan for e commerce.pptx
How to write business plan for e commerce.pptxMugabo4
 
introduction on server.pptx
introduction on server.pptxintroduction on server.pptx
introduction on server.pptxMugabo4
 
SAN overview.pptx
SAN overview.pptxSAN overview.pptx
SAN overview.pptxMugabo4
 
Customer service and Building Trust with online shoppers.pptx
Customer service and Building Trust with online shoppers.pptxCustomer service and Building Trust with online shoppers.pptx
Customer service and Building Trust with online shoppers.pptxMugabo4
 
AB testing.pptx
AB testing.pptxAB testing.pptx
AB testing.pptxMugabo4
 
onlinemarketing strategies.pdf
onlinemarketing strategies.pdfonlinemarketing strategies.pdf
onlinemarketing strategies.pdfMugabo4
 

More from Mugabo4 (10)

radar technology and operation process.pptx
radar technology and operation process.pptxradar technology and operation process.pptx
radar technology and operation process.pptx
 
Presentation about Bluetooth and working principles.pptx
Presentation about Bluetooth and working principles.pptxPresentation about Bluetooth and working principles.pptx
Presentation about Bluetooth and working principles.pptx
 
CHUK site performance in last 5 days.pptx
CHUK site performance in last 5 days.pptxCHUK site performance in last 5 days.pptx
CHUK site performance in last 5 days.pptx
 
Perfornance at BK ARENA for checking 4G QoS.pptx
Perfornance at BK ARENA for checking 4G QoS.pptxPerfornance at BK ARENA for checking 4G QoS.pptx
Perfornance at BK ARENA for checking 4G QoS.pptx
 
How to write business plan for e commerce.pptx
How to write business plan for e commerce.pptxHow to write business plan for e commerce.pptx
How to write business plan for e commerce.pptx
 
introduction on server.pptx
introduction on server.pptxintroduction on server.pptx
introduction on server.pptx
 
SAN overview.pptx
SAN overview.pptxSAN overview.pptx
SAN overview.pptx
 
Customer service and Building Trust with online shoppers.pptx
Customer service and Building Trust with online shoppers.pptxCustomer service and Building Trust with online shoppers.pptx
Customer service and Building Trust with online shoppers.pptx
 
AB testing.pptx
AB testing.pptxAB testing.pptx
AB testing.pptx
 
onlinemarketing strategies.pdf
onlinemarketing strategies.pdfonlinemarketing strategies.pdf
onlinemarketing strategies.pdf
 

Recently uploaded

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 

Recently uploaded (20)

Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 

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.
  • 4.
  • 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.
  • 12.
  • 13.
  • 14. Flooding Flooding is used when source don’t have any idea about destination and should send a broadcast message to know to destination
  • 15.
  • 16.
  • 17.
  • 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.