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

Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)NetProtocol Xpert
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networkingHarshita Yadav
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing ProtocolsKABILESH RAMAR
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network LayerManoj Kumar
 
Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)ArunChokkalingam
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolUjjayanta Bhaumik
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networksNt Arvind
 

What's hot (20)

Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
Routing
RoutingRouting
Routing
 
Presentation on arp protocol
Presentation on arp protocolPresentation on arp protocol
Presentation on arp protocol
 
Olsr protocol ppt
Olsr protocol pptOlsr protocol ppt
Olsr protocol ppt
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Distance Vector Routing Protocols
Distance Vector Routing ProtocolsDistance Vector Routing Protocols
Distance Vector Routing Protocols
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Routing ppt
Routing pptRouting ppt
Routing ppt
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Global state routing
Global state routingGlobal state routing
Global state routing
 
WLAN
WLANWLAN
WLAN
 
Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Switching concepts Data communication and networks
Switching concepts Data communication and networksSwitching concepts Data communication and networks
Switching concepts Data communication and networks
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 

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 algorithmBushra M
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithmSiva Priya
 
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 algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
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

Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.aasikanpl
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
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
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Patrick Diehl
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |aasikanpl
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfNAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfWadeK3
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Nistarini College, Purulia (W.B) India
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfSwapnil Therkar
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCEPRINCE C P
 
Luciferase in rDNA technology (biotechnology).pptx
Luciferase in rDNA technology (biotechnology).pptxLuciferase in rDNA technology (biotechnology).pptx
Luciferase in rDNA technology (biotechnology).pptxAleenaTreesaSaji
 

Recently uploaded (20)

Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
Call Girls in Munirka Delhi 💯Call Us 🔝9953322196🔝 💯Escort.
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Munirka Delhi 💯Call Us 🔝8264348440🔝
 
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
9953056974 Young Call Girls In Mahavir enclave Indian Quality Escort service
 
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
 
Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?Is RISC-V ready for HPC workload? Maybe?
Is RISC-V ready for HPC workload? Maybe?
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
Call Us ≽ 9953322196 ≼ Call Girls In Mukherjee Nagar(Delhi) |
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdfNAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
NAVSEA PEO USC - Unmanned & Small Combatants 26Oct23.pdf
 
Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...Bentham & Hooker's Classification. along with the merits and demerits of the ...
Bentham & Hooker's Classification. along with the merits and demerits of the ...
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdfAnalytical Profile of Coleus Forskohlii | Forskolin .pdf
Analytical Profile of Coleus Forskohlii | Forskolin .pdf
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
 
Luciferase in rDNA technology (biotechnology).pptx
Luciferase in rDNA technology (biotechnology).pptxLuciferase in rDNA technology (biotechnology).pptx
Luciferase in rDNA technology (biotechnology).pptx
 

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