SlideShare une entreprise Scribd logo
1  sur  44
Presented to:
Sir Zeeshan
Presented by:
Bushra
Roll No:
2
Presented topic
Routing Algorithms
Router
– A router is located at the gateway
– it routes packets as they travel from one network
to another network(s).
– A router can be hardware device with a software
application
– The router is connected to at least two networks
•find path
•forward packet, forward packet, forward
packet, forward packet...
•find alternate path
•forward packet, forward packet, forward
packet, forward packet…
•repeat until powered off
What does a router do?
Routing versus Forwarding
• Routing = building
maps and giving
directions
• Forwarding = moving
packets between
interfaces according
to the “directions”
6
Routing
• How do packets get from A to B in the
Internet?
A
B
Internet
Network Performance Measures
• Two Performance Measures
– Quantity of Service (Throughput)
• How much data travels across the net?
• How long does it take to transfer long files?
– Quality of Service (Average packet delay)
• How long does it take for a packet to arrive at its
destination?
• How responsive is the system to user commands?
• Can the network support real-time delivery such as
audio and video?
Fairness versus Optimality
• Quantity of service
versus quality of
service.
• To optimize
throughput, saturate
paths between A and
A’, B and B’, and C and
C’, but what happens
to the response time
from X to X’?
Types of Routing Algorithms
• Nonadaptive (static)
– Do not use measurements of current conditions
– Static routes are downloaded at boot time
• Adaptive Algorithms(dynamic)
– Change routes dynamically
• Gather information at runtime
– locally
– from adjacent routers
– from all other routers
• Change routes
– When load changes
– When topology changes
Optimality principle
(a adaptive routing algorithm)
• If router j is on the optimal path from i to k,
then the optimal path from j to k also falls
along the same route.
i
k
(j)
(j)
(j)
Sink Trees
• The set of optimal
routes to a particular
node forms a sink
tree.
• Sink trees are not
necessarily unique
• Goal of all routing
algorithms
– Discover sink trees for
all destinations
• Given a network topology and a set of
weights describing the cost to send data
across each link in the network
• Find the shortest path from a specified
source to all other destinations in the
network.
• Shortest path algorithm first developed by
E. W. Dijkstra
Shortest Path Routing
(a nonadaptive routing algorithm)
Weighted Graph
Example of Shortest Path Routing
Flooding
(a nonadaptive routing algorithm)
• No network information is required
•Packet send by node to every neighbor
•Incoming packets retransmitted on every link
without incoming link
•Eventually a numbers of copies will arrives at
destination
•Each packet is uniquely numbered so duplicate can
be discarded
•Nodes can remember packets already forwarded
to keep network load in bounds
Flooding of A’s LSP
– All nodes are visited
– All possible routes are tried
• Selective Flooding
– Flood only in the direction of the destination
• Practical example
– Mobile when user 1 dial number to call user 2,the
mobile station/company searches for user 2 in whole
country if user 2 is out of reach. Then this process take
few seconds
– Distributed Databases
Flooding
(a nonadaptive routing algorithm)
• Neighboring routers periodically exchange
information from their routing tables.
• Routers replace routes in their own routing
tables anytime that neighbors have found
better routes.
• Information provided from neighbors
– Outgoing line used for destination
– Estimate of time or distance
• can be number of hops, time delay, packet queue length,
etc.
Distance Vector Routing
(an adaptive routing algorithm)
Example of an Internet
The Concept of Distance
Vector Routing
Distance Vector Routing Table
Routing Table Distribution
• Five Steps
1.) Discover your neighbors and learn their addresses.
2.) Measure the cost (delay) to each neighbor.
3.) Construct a packet containing all this information
4.) Send this packet to all other routers.
5.) Compute the shortest path to every other router.
Link State Routing
(an adaptive routing algorithm)
1.) Discovering Your Neighbors
• Send “Hello” packet on each point-to-point
line. Destination node replies with its
address.
Concept of Link State Routing
2.) Measuring Line Cost
• Send an “ECHO” packet over the line.
• Destination is required to respond to
“ECHO” packet immediately.
• Measure the time required for this
operation.
• Question: Should we measure just the time
it takes to transmit the packet, or should
we include the time that the packet waits
in the queue?
Argument 2:
• We should include the time that the packet
spends in the queue, as this provides a more
accurate picture of the real delays.
• We should only include the transmission
times, otherwise the network is likely to
oscillate between preferred paths.
Distributing the Link State Packets
• Use selective flooding
• Sequence numbers prevent duplicate packets
from being propagated
• Lower sequence numbers are rejected as
obsolete
Computing the New Routes
• Dijkstra’s Shortest Path algorithm is used to
determine the shortest path to each
destination.
Hierarchical Routing
• Addresses the growth of routing tables
• Routers are divided into regions
• Routers know the routes for their own
regions only
• Works like telephone routing
• Possible hierarchy
– city, state, country, continent
Routing Mobile Hosts
• Networking portable computers
• Tanenbaum’s proposed solution
– All mobile agents are assumed to have a
permanent home location
– When a portable computer is attached to a
remote network it contacts a process that acts
as the local foreign agent.
– Each home location has a process that acts as
the home agent
The Agents on the Network
Registering a Mobile Agent
• Periodically the foreign agent broadcasts its
address
• The mobile agent registers with the foreign
agent and supplies its home address
• The foreign agent contacts the mobile
agent’s home agent reporting the mobile
agent’s location.
– Security must be used to verify the identity of
the mobile agent.
• The foreign agent registers the mobile
agent
Routing Packets to a Mobile Agent
• Packets sent to the mobile agent are routed
to the users home network
• The home agent routes the packets to the
foreign agent
• The home agent provides the source of
incoming packets with the remote address
of the mobile agent
Broadcast Routing
• Send a separate packet to each destination
• Use flooding
• Use multidestination routing
– Each packet contains a list of destinations
– Routers duplicate packet for all matching
outgoing lines
• Use spanning tree routing
– a subset of the subnet that includes all routers
but contains no loops.
Spanning Tree Broadcasting
• Uses the minimum
number of packets
necessary
• Routers must be able to
compute spanning tree
– Available with link state
routing
– Not available with
distance vector routing
Broadcast Routing (continued)
• Reverse Path Forwarding
– Use When knowledge of a spanning tree is not
available
– Provides an approximation of spanning tree
routing
– Routers check to see if incoming packet arrives
from the same line that the router uses to route
outgoing packets to the broadcast source
• If so, the router duplicates the packet on all other
outgoing lines
• Otherwise, the router discards the packet
tree built by reverse path forwarding
Multicast Routing
• A method to broadcast packets to well-
defined groups
• Hosts can join multicast groups.
– They inform their routers
– Routers send group information throughout
the subnet
• Each router computes a spanning tree for
each group. The spanning tree includes all
the routers needed to broadcast data to the
group
Spanning Trees for Multicast Routing
References:
• http://www.indiastudychannel.com/ Basic-
Types-Routing-Algorithms.aspx
• en.wikipedia.org/wiki/Routing#Routing_algori
thms_and_techniques
• Tanenbaum’s book
Thank you
for your attention!
Any Question?

Contenu connexe

Tendances

Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And CorrectionRenu Kewalramani
 
Congestion control
Congestion controlCongestion control
Congestion controlAman Jaiswal
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layerNaiyan Noor
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptxAcad
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editioneepawan1809
 
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
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network LayerRahul Hada
 
Socket Programming
Socket ProgrammingSocket Programming
Socket ProgrammingCEC Landran
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocaltes31
 

Tendances (20)

Packet switching
Packet switchingPacket switching
Packet switching
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptx
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Network software
Network softwareNetwork software
Network software
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Domain name system
Domain name systemDomain name system
Domain name system
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Computer networks a tanenbaum - 5th editionee
Computer networks   a tanenbaum - 5th editioneeComputer networks   a tanenbaum - 5th editionee
Computer networks a tanenbaum - 5th editionee
 
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
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Error control
Error controlError control
Error control
 
Socket Programming
Socket ProgrammingSocket Programming
Socket Programming
 
Network hardware
Network hardwareNetwork hardware
Network hardware
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Fragmentation
FragmentationFragmentation
Fragmentation
 

Similaire à Routing algorithm

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
 
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
 
computer Netwoks - network layer
computer Netwoks - network layercomputer Netwoks - network layer
computer Netwoks - network layerSendhil Kumar
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Mugabo4
 
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
 
Routing Presentation
Routing PresentationRouting Presentation
Routing PresentationMohsin Ali
 
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
 
MOBILE COMPUTING Unit 4.pptx
 MOBILE COMPUTING Unit 4.pptx MOBILE COMPUTING Unit 4.pptx
MOBILE COMPUTING Unit 4.pptxkarthiksmart21
 
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 protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layerNitesh Singh
 
MobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxMobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxHirazNor
 
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
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iiiJAIGANESH SEKAR
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Tutun Juhana
 

Similaire à Routing algorithm (20)

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
 
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
 
computer Netwoks - network layer
computer Netwoks - network layercomputer Netwoks - network layer
computer Netwoks - network layer
 
11 routing
11 routing11 routing
11 routing
 
Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 
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
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
 
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
 
MOBILE COMPUTING Unit 4.pptx
 MOBILE COMPUTING Unit 4.pptx MOBILE COMPUTING Unit 4.pptx
MOBILE COMPUTING Unit 4.pptx
 
Presentation 2
Presentation 2Presentation 2
Presentation 2
 
Unit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].pptUnit-3-Part-1 [Autosaved].ppt
Unit-3-Part-1 [Autosaved].ppt
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Network layer
Network layerNetwork layer
Network layer
 
MobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxMobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptx
 
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)
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)
 
Golu
GoluGolu
Golu
 

Dernier

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Dernier (20)

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Routing algorithm

  • 1.
  • 2. Presented to: Sir Zeeshan Presented by: Bushra Roll No: 2
  • 4. Router – A router is located at the gateway – it routes packets as they travel from one network to another network(s). – A router can be hardware device with a software application – The router is connected to at least two networks
  • 5. •find path •forward packet, forward packet, forward packet, forward packet... •find alternate path •forward packet, forward packet, forward packet, forward packet… •repeat until powered off What does a router do?
  • 6. Routing versus Forwarding • Routing = building maps and giving directions • Forwarding = moving packets between interfaces according to the “directions” 6
  • 7. Routing • How do packets get from A to B in the Internet? A B Internet
  • 8. Network Performance Measures • Two Performance Measures – Quantity of Service (Throughput) • How much data travels across the net? • How long does it take to transfer long files? – Quality of Service (Average packet delay) • How long does it take for a packet to arrive at its destination? • How responsive is the system to user commands? • Can the network support real-time delivery such as audio and video?
  • 9. Fairness versus Optimality • Quantity of service versus quality of service. • To optimize throughput, saturate paths between A and A’, B and B’, and C and C’, but what happens to the response time from X to X’?
  • 10. Types of Routing Algorithms • Nonadaptive (static) – Do not use measurements of current conditions – Static routes are downloaded at boot time • Adaptive Algorithms(dynamic) – Change routes dynamically • Gather information at runtime – locally – from adjacent routers – from all other routers • Change routes – When load changes – When topology changes
  • 11. Optimality principle (a adaptive routing algorithm) • If router j is on the optimal path from i to k, then the optimal path from j to k also falls along the same route. i k (j) (j) (j)
  • 12. Sink Trees • The set of optimal routes to a particular node forms a sink tree. • Sink trees are not necessarily unique • Goal of all routing algorithms – Discover sink trees for all destinations
  • 13. • Given a network topology and a set of weights describing the cost to send data across each link in the network • Find the shortest path from a specified source to all other destinations in the network. • Shortest path algorithm first developed by E. W. Dijkstra Shortest Path Routing (a nonadaptive routing algorithm)
  • 15. Example of Shortest Path Routing
  • 16. Flooding (a nonadaptive routing algorithm) • No network information is required •Packet send by node to every neighbor •Incoming packets retransmitted on every link without incoming link •Eventually a numbers of copies will arrives at destination •Each packet is uniquely numbered so duplicate can be discarded •Nodes can remember packets already forwarded to keep network load in bounds
  • 18. – All nodes are visited – All possible routes are tried • Selective Flooding – Flood only in the direction of the destination • Practical example – Mobile when user 1 dial number to call user 2,the mobile station/company searches for user 2 in whole country if user 2 is out of reach. Then this process take few seconds – Distributed Databases Flooding (a nonadaptive routing algorithm)
  • 19. • Neighboring routers periodically exchange information from their routing tables. • Routers replace routes in their own routing tables anytime that neighbors have found better routes. • Information provided from neighbors – Outgoing line used for destination – Estimate of time or distance • can be number of hops, time delay, packet queue length, etc. Distance Vector Routing (an adaptive routing algorithm)
  • 20. Example of an Internet
  • 21. The Concept of Distance Vector Routing
  • 24. • Five Steps 1.) Discover your neighbors and learn their addresses. 2.) Measure the cost (delay) to each neighbor. 3.) Construct a packet containing all this information 4.) Send this packet to all other routers. 5.) Compute the shortest path to every other router. Link State Routing (an adaptive routing algorithm)
  • 25. 1.) Discovering Your Neighbors • Send “Hello” packet on each point-to-point line. Destination node replies with its address.
  • 26. Concept of Link State Routing
  • 27. 2.) Measuring Line Cost • Send an “ECHO” packet over the line. • Destination is required to respond to “ECHO” packet immediately. • Measure the time required for this operation. • Question: Should we measure just the time it takes to transmit the packet, or should we include the time that the packet waits in the queue?
  • 28. Argument 2: • We should include the time that the packet spends in the queue, as this provides a more accurate picture of the real delays. • We should only include the transmission times, otherwise the network is likely to oscillate between preferred paths.
  • 29. Distributing the Link State Packets • Use selective flooding • Sequence numbers prevent duplicate packets from being propagated • Lower sequence numbers are rejected as obsolete
  • 30. Computing the New Routes • Dijkstra’s Shortest Path algorithm is used to determine the shortest path to each destination.
  • 31. Hierarchical Routing • Addresses the growth of routing tables • Routers are divided into regions • Routers know the routes for their own regions only • Works like telephone routing • Possible hierarchy – city, state, country, continent
  • 32.
  • 33. Routing Mobile Hosts • Networking portable computers • Tanenbaum’s proposed solution – All mobile agents are assumed to have a permanent home location – When a portable computer is attached to a remote network it contacts a process that acts as the local foreign agent. – Each home location has a process that acts as the home agent
  • 34. The Agents on the Network
  • 35. Registering a Mobile Agent • Periodically the foreign agent broadcasts its address • The mobile agent registers with the foreign agent and supplies its home address • The foreign agent contacts the mobile agent’s home agent reporting the mobile agent’s location. – Security must be used to verify the identity of the mobile agent. • The foreign agent registers the mobile agent
  • 36. Routing Packets to a Mobile Agent • Packets sent to the mobile agent are routed to the users home network • The home agent routes the packets to the foreign agent • The home agent provides the source of incoming packets with the remote address of the mobile agent
  • 37. Broadcast Routing • Send a separate packet to each destination • Use flooding • Use multidestination routing – Each packet contains a list of destinations – Routers duplicate packet for all matching outgoing lines • Use spanning tree routing – a subset of the subnet that includes all routers but contains no loops.
  • 38. Spanning Tree Broadcasting • Uses the minimum number of packets necessary • Routers must be able to compute spanning tree – Available with link state routing – Not available with distance vector routing
  • 39. Broadcast Routing (continued) • Reverse Path Forwarding – Use When knowledge of a spanning tree is not available – Provides an approximation of spanning tree routing – Routers check to see if incoming packet arrives from the same line that the router uses to route outgoing packets to the broadcast source • If so, the router duplicates the packet on all other outgoing lines • Otherwise, the router discards the packet
  • 40. tree built by reverse path forwarding
  • 41. Multicast Routing • A method to broadcast packets to well- defined groups • Hosts can join multicast groups. – They inform their routers – Routers send group information throughout the subnet • Each router computes a spanning tree for each group. The spanning tree includes all the routers needed to broadcast data to the group
  • 42. Spanning Trees for Multicast Routing
  • 43. References: • http://www.indiastudychannel.com/ Basic- Types-Routing-Algorithms.aspx • en.wikipedia.org/wiki/Routing#Routing_algori thms_and_techniques • Tanenbaum’s book
  • 44. Thank you for your attention! Any Question?