SlideShare a Scribd company logo
1 of 26
Routing Algorithms
N.G.S.Parameswaran.
Assistant Professor,
Department of Computer Applications,
V.H.N.S.N. College (Autonomous)
Virudhunagar.
Routing
• The process of moving a packet of data
from source to destination.
• Routing is usually performed by a
dedicated device called a Router.
• It is the key feature of Internet because
it enables messages to pass from one
computer to another and eventually
reach the target machine
Classification of Routing Algorithms
Adaptive Algorithms
• These are the algorithms which change their
routing decisions whenever network topology or
traffic load changes.
• The changes in routing decisions are reflected in
the topology as well as traffic of the network.
• Also known as Dynamic routing, these make
use of dynamic information such as current
topology, load, delay, etc. to select routes.
• Optimization parameters are distance, number
of hops and estimated transit time.
Classification of Adaptive Algorithms
• (a) Isolated – In this method each, node makes its routing
decisions using the information it has without seeking
information from other nodes. The sending nodes doesn’t
have information about status of particular link.
Disadvantage is that packet may be sent through a
congested network which may result in delay. Examples:
Hot potato routing, backward learning.
• (b) Centralized – In this method, a centralized node has
entire information about the network and makes all the
routing decisions. Advantage of this is only one node is
required to keep the information of entire network and
disadvantage is that if central node goes down the entire
network is done.
• (c) Distributed – In this method, the node receives
information from its neighbors and then takes the decision
about routing the packets. Disadvantage is that the packet
may be delayed if there is change in between interval in
which it receives information and sends packet.
Non-Adaptive Algorithms
• These are the algorithms which do not change their routing
decisions once they have been selected. This is also known
as static routing as route to be taken is computed in advance
and downloaded to routers when router is booted.
• (a) Flooding – This adapts the technique in which every
incoming packet is sent on every outgoing line except from
which it arrived. One problem with this is that packets may
go in loop and as a result of which a node may receive
duplicate packets. These problems can be overcome with the
help of sequence numbers, hop count and spanning tree.
• (b) Random walk – In this method, packets are sent host by
host or node by node to one of its neighbors randomly. This
is highly robust method which is usually implemented by
sending packets onto the link which is least queued.
Types of Routing Algorithms
• Distance Vector
• Link State
• Path Vector
Distance Vector Routing Algorithm
• Historically known as the old ARPANET
routing algorithm (or known as Bellman-
Ford algorithm).
• Each router maintains a Distance Vector
table containing the distance between
itself and ALL possible destination nodes.
• Distances based on a chosen metric, are
computed using information from the
neighbors’ distance vectors.
• A router transmits its distance vector to
each of its neighbors in a routing packet.
• Each router receives and saves the most
recently received distance vector from each
of its neighbors.
• A router recalculates its distance vector
when:
– It receives a distance vector from a neighbor
containing different information than before.
– It discovers that a link to a neighbor has gone
down.
Algorithm
The DV calculation is based on minimizing the cost to
each destination.
Dx(y) = Estimate of least cost from x to y
C(x,v) = Node x knows cost to each neighbor v
Dx = [Dx(y): y ∈ N ] = Node x maintains distance vector
Node x also maintains its neighbors' distance vectors
– For each neighbor v, x maintains Dv = [Dv(y): y ∈ N ]
• From time-to-time, each node sends its own distance
vector estimate to neighbors.
• When a node x receives new DV estimate from any
neighbor v, it saves v’s distance vector and it updates
its own DV using B-F equation:
Dx(y) = min { C(x,v) + Dv(y)} for each node y ∈ N
• Advantages
– It is simpler to configure and maintain than link
state routing.
• Disadvantages
– It is slower to converge than link state.
– It is at risk from the count-to-infinity problem.
– It creates more traffic than link state since a hop
count change must be propagated to all routers and
processed on each router. Hop count updates take
place on a periodic basis, even if there are no
changes in the network topology, so bandwidth-
wasting broadcasts still occur.
– For larger networks, distance vector routing results
in larger routing tables than link state since each
router must know about all other routers. This can
also lead to congestion on WAN links.
Link State Routing Algorithm
• Also known as Shortest path Routing algorithm.
• Information about the state of (Router
interfaces) links is known as link-states
• This information includes:
• The interface's IP address and subnet mask.
• The type of network, such as Ethernet
(broadcast) or Serial point-to-point link.
• The cost of that link.
• Any neighbor routers on that link.
• It is a dynamic routing algorithm in which each
router shares knowledge of its neighbors with
every other router in the network.
• A router sends its information about its
neighbors only to all the routers through
flooding.
• Information sharing takes place only whenever
there is a change.
• It makes use of Dijkastra’s Algorithm for
making routing tables.
Link State Routing Algorithm
Two Phases
Reliable flooding
» Tell all routers what you know about your
local topology
Path calculation (Dijkstraʼs algorithm)
» Each router computes best path over
complete network
Path Vector Routing
• Path Vector Routing is a routing algorithm in unicast
routing protocol of network layer, and it is useful for
interdomain routing.
• The principle of path vector routing is similar to that of
distance vector routing.
• It assumes that there is one node in each autonomous
system that acts on behalf of the entire autonomous
system is called Speaker node.
• The speaker node in an AS creates a routing cable and
advertises to the speaker node in the neighbouring ASs.
• A speaker node advertises the path, not the metrics of
the nodes, in its autonomous system or other
autonomous systems.
• It is the initial table for each speaker node in a
system made four ASs.
• Here Node A1 is the speaker node for AS1, B1 for
AS2, C1 for AS3 and D1 for AS4, Node A1 creates
an initial table that shows A1 to A5 and these are
located in AS1, it can be reached through it
• A speaker in an autonomous system shares its
table with immediate neighbours.
• Here Node A1 share its table with nodes B1 and
C1 , Node C1 share its table with nodes A1,B1
and D1 , Node B1 share its table with nodes A1
and C1 , Node D1 share its table with node C1
• If router A1 receives a packet for nodes
A3 , it knows that the path is in AS1.
• If it receives a packet for D1,it knows that
the packet should go from AS1,to AS2
and then to AS3 ,then the routing table
shows that path completely.
• If the node D1 in AS4 receives a packet
for node A2,it knows it should go through
AS4,AS3,and AS1.
Working Principle
Functions of Path vector Routing
• PREVENTION OF LOOP
• POLICY ROUTING
• OPTIMUM PATH
Any Probes?
Thank You

More Related Content

What's hot

Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layersambhenilesh
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmMOHIT AGARWAL
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptxAcad
 
Congestion control
Congestion controlCongestion control
Congestion controlAman Jaiswal
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issuesقصي نسور
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices21viveksingh
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcastNetProtocol Xpert
 
Congestion control
Congestion controlCongestion control
Congestion controlNithin Raj
 
Unicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting NewUnicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting Newtechbed
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 

What's hot (20)

Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptx
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices
 
Transport layer
Transport layer Transport layer
Transport layer
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 
Tcp
TcpTcp
Tcp
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Lan technologies
Lan technologiesLan technologies
Lan technologies
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Transport layer
Transport layerTransport layer
Transport layer
 
Congestion Control
Congestion ControlCongestion Control
Congestion Control
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Unicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting NewUnicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting New
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 

Similar to Routing algorithms

Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Mugabo4
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxsatvikpatil5
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptanushaj46
 
NetworkAlgorithms.ppt
NetworkAlgorithms.pptNetworkAlgorithms.ppt
NetworkAlgorithms.ppt21121A0594
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxHODElex
 
Routing Presentation
Routing PresentationRouting Presentation
Routing PresentationMohsin Ali
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxHODElex
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmSiva Priya
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layerNitesh Singh
 
DCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCPDCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCPSreedhar Chowdam
 
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
 
Presentation 2
Presentation 2Presentation 2
Presentation 2Haripritha
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptRamya Nellutla
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram SnehiMR. VIKRAM SNEHI
 

Similar to Routing algorithms (20)

Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 
UNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptxUNIT2-nw layer autonomy.pptx
UNIT2-nw layer autonomy.pptx
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
NetworkAlgorithms.ppt
NetworkAlgorithms.pptNetworkAlgorithms.ppt
NetworkAlgorithms.ppt
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Network layer
Network layerNetwork layer
Network layer
 
computer communications
computer communicationscomputer communications
computer communications
 
DCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCPDCCN Network Layer congestion control TCP
DCCN Network Layer congestion control TCP
 
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
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
 
Presentation 2
Presentation 2Presentation 2
Presentation 2
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
11 routing
11 routing11 routing
11 routing
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram Snehi
 

Recently uploaded

Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensorsonawaneprad
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPirithiRaju
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxBerniceCayabyab1
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 GenuineCall Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuinethapagita
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationColumbia Weather Systems
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingNetHelix
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxmalonesandreagweneth
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxSwapnil Therkar
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real timeSatoshi NAKAHIRA
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trssuser06f238
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPirithiRaju
 

Recently uploaded (20)

Environmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial BiosensorEnvironmental Biotechnology Topic:- Microbial Biosensor
Environmental Biotechnology Topic:- Microbial Biosensor
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdfPests of Blackgram, greengram, cowpea_Dr.UPR.pdf
Pests of Blackgram, greengram, cowpea_Dr.UPR.pdf
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 GenuineCall Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
Call Girls in Majnu Ka Tilla Delhi 🔝9711014705🔝 Genuine
 
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
User Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather StationUser Guide: Magellan MX™ Weather Station
User Guide: Magellan MX™ Weather Station
 
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editingBase editing, prime editing, Cas13 & RNA editing and organelle base editing
Base editing, prime editing, Cas13 & RNA editing and organelle base editing
 
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptxLIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
LIGHT-PHENOMENA-BY-CABUALDIONALDOPANOGANCADIENTE-CONDEZA (1).pptx
 
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptxAnalytical Profile of Coleus Forskohlii | Forskolin .pptx
Analytical Profile of Coleus Forskohlii | Forskolin .pptx
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
Grafana in space: Monitoring Japan's SLIM moon lander in real time
Grafana in space: Monitoring Japan's SLIM moon lander  in real timeGrafana in space: Monitoring Japan's SLIM moon lander  in real time
Grafana in space: Monitoring Japan's SLIM moon lander in real time
 
Neurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 trNeurodevelopmental disorders according to the dsm 5 tr
Neurodevelopmental disorders according to the dsm 5 tr
 
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdfPests of soyabean_Binomics_IdentificationDr.UPR.pdf
Pests of soyabean_Binomics_IdentificationDr.UPR.pdf
 

Routing algorithms

  • 1. Routing Algorithms N.G.S.Parameswaran. Assistant Professor, Department of Computer Applications, V.H.N.S.N. College (Autonomous) Virudhunagar.
  • 2. Routing • The process of moving a packet of data from source to destination. • Routing is usually performed by a dedicated device called a Router. • It is the key feature of Internet because it enables messages to pass from one computer to another and eventually reach the target machine
  • 3. Classification of Routing Algorithms Adaptive Algorithms • These are the algorithms which change their routing decisions whenever network topology or traffic load changes. • The changes in routing decisions are reflected in the topology as well as traffic of the network. • Also known as Dynamic routing, these make use of dynamic information such as current topology, load, delay, etc. to select routes. • Optimization parameters are distance, number of hops and estimated transit time.
  • 4. Classification of Adaptive Algorithms • (a) Isolated – In this method each, node makes its routing decisions using the information it has without seeking information from other nodes. The sending nodes doesn’t have information about status of particular link. Disadvantage is that packet may be sent through a congested network which may result in delay. Examples: Hot potato routing, backward learning. • (b) Centralized – In this method, a centralized node has entire information about the network and makes all the routing decisions. Advantage of this is only one node is required to keep the information of entire network and disadvantage is that if central node goes down the entire network is done. • (c) Distributed – In this method, the node receives information from its neighbors and then takes the decision about routing the packets. Disadvantage is that the packet may be delayed if there is change in between interval in which it receives information and sends packet.
  • 5. Non-Adaptive Algorithms • These are the algorithms which do not change their routing decisions once they have been selected. This is also known as static routing as route to be taken is computed in advance and downloaded to routers when router is booted. • (a) Flooding – This adapts the technique in which every incoming packet is sent on every outgoing line except from which it arrived. One problem with this is that packets may go in loop and as a result of which a node may receive duplicate packets. These problems can be overcome with the help of sequence numbers, hop count and spanning tree. • (b) Random walk – In this method, packets are sent host by host or node by node to one of its neighbors randomly. This is highly robust method which is usually implemented by sending packets onto the link which is least queued.
  • 6. Types of Routing Algorithms • Distance Vector • Link State • Path Vector
  • 7. Distance Vector Routing Algorithm • Historically known as the old ARPANET routing algorithm (or known as Bellman- Ford algorithm). • Each router maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. • Distances based on a chosen metric, are computed using information from the neighbors’ distance vectors.
  • 8. • A router transmits its distance vector to each of its neighbors in a routing packet. • Each router receives and saves the most recently received distance vector from each of its neighbors. • A router recalculates its distance vector when: – It receives a distance vector from a neighbor containing different information than before. – It discovers that a link to a neighbor has gone down. Algorithm
  • 9. The DV calculation is based on minimizing the cost to each destination. Dx(y) = Estimate of least cost from x to y C(x,v) = Node x knows cost to each neighbor v Dx = [Dx(y): y ∈ N ] = Node x maintains distance vector Node x also maintains its neighbors' distance vectors – For each neighbor v, x maintains Dv = [Dv(y): y ∈ N ] • From time-to-time, each node sends its own distance vector estimate to neighbors. • When a node x receives new DV estimate from any neighbor v, it saves v’s distance vector and it updates its own DV using B-F equation: Dx(y) = min { C(x,v) + Dv(y)} for each node y ∈ N
  • 10. • Advantages – It is simpler to configure and maintain than link state routing. • Disadvantages – It is slower to converge than link state. – It is at risk from the count-to-infinity problem. – It creates more traffic than link state since a hop count change must be propagated to all routers and processed on each router. Hop count updates take place on a periodic basis, even if there are no changes in the network topology, so bandwidth- wasting broadcasts still occur. – For larger networks, distance vector routing results in larger routing tables than link state since each router must know about all other routers. This can also lead to congestion on WAN links.
  • 11. Link State Routing Algorithm • Also known as Shortest path Routing algorithm. • Information about the state of (Router interfaces) links is known as link-states • This information includes: • The interface's IP address and subnet mask. • The type of network, such as Ethernet (broadcast) or Serial point-to-point link. • The cost of that link. • Any neighbor routers on that link.
  • 12. • It is a dynamic routing algorithm in which each router shares knowledge of its neighbors with every other router in the network. • A router sends its information about its neighbors only to all the routers through flooding. • Information sharing takes place only whenever there is a change. • It makes use of Dijkastra’s Algorithm for making routing tables. Link State Routing Algorithm
  • 13. Two Phases Reliable flooding » Tell all routers what you know about your local topology Path calculation (Dijkstraʼs algorithm) » Each router computes best path over complete network
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. Path Vector Routing • Path Vector Routing is a routing algorithm in unicast routing protocol of network layer, and it is useful for interdomain routing. • The principle of path vector routing is similar to that of distance vector routing. • It assumes that there is one node in each autonomous system that acts on behalf of the entire autonomous system is called Speaker node. • The speaker node in an AS creates a routing cable and advertises to the speaker node in the neighbouring ASs. • A speaker node advertises the path, not the metrics of the nodes, in its autonomous system or other autonomous systems.
  • 21.
  • 22. • It is the initial table for each speaker node in a system made four ASs. • Here Node A1 is the speaker node for AS1, B1 for AS2, C1 for AS3 and D1 for AS4, Node A1 creates an initial table that shows A1 to A5 and these are located in AS1, it can be reached through it • A speaker in an autonomous system shares its table with immediate neighbours. • Here Node A1 share its table with nodes B1 and C1 , Node C1 share its table with nodes A1,B1 and D1 , Node B1 share its table with nodes A1 and C1 , Node D1 share its table with node C1
  • 23. • If router A1 receives a packet for nodes A3 , it knows that the path is in AS1. • If it receives a packet for D1,it knows that the packet should go from AS1,to AS2 and then to AS3 ,then the routing table shows that path completely. • If the node D1 in AS4 receives a packet for node A2,it knows it should go through AS4,AS3,and AS1. Working Principle
  • 24. Functions of Path vector Routing • PREVENTION OF LOOP • POLICY ROUTING • OPTIMUM PATH