SlideShare a Scribd company logo
PRESENTATIONTOPIC
ROUTING ALGORITHM
Link State
DistanceVector
Group Member
BASIT HUSSAIN | 2017-CS-126
HAMZA KHAN | 2017-CS-105
IRTEZA HASSAN | 2017-CS-50
Router
• A router has two processes inside it.
• One of them handles each packet as it arrives, looking up the outgoing line
to use for it in the router tables.This process is forwarding.
• The other process is responsible for filling in and updating the routing
tables.That is where the routing algorithm comes into play.
Router
Router
Router 3
Router 1
Router 2
Routing Algorithm
• Part of the network layer responsible for deciding which output line an
incoming packet should be transmitted on.
• If the network uses datagrams internally, this decision must be made a new
path for every arriving data packet.
• If the network uses virtual circuits internally, routing decisions are made
only when a new virtual circuit is being set up.This case sometimes called
session routing.
Routing Example
• Routing = building maps and giving directions
Desired Properties of Routing Algorithm
• Correctness
• Simplicity
• Robustness
• Stability
• Fairness and Efficiency
Types of Routing Algorithms
• Non-Adaptive or Static Algorithm
Routing paths are computed in advance, offline, and downloaded to the routers when the
network is booted. It does not respond to failures.
• Adaptive or Dynamic Algorithm
Change their routing decisions to reflect changes in the topology, and sometimes
changes in the traffic.
Routing Algorithms
• Shortest Path Algorithm
• Flooding
• DistanceVector Routing
• Link State Routing
• Hierarchical Routing
• Broadcast Routing
• Multicast Routing
• Anycast Routing
DistanceVector Routing
• It’s a Adaptive or Dynamic Algorithm.
• Each Router Maintains a table called “Vector”.
• Table has the Best Known Distance for Each Routers.
• Tables are Updated by exchanging Information with neighbors(Router).
• Each Router knows the Best Distance to Reach another Router.
• Also Known as Bellman-Ford Routing Algorithm.
DistanceVector Routing
• Each Router’sTable has one entry for one router.
• This entry has two parts.
• Preferred out going Line for each Router.
• Estimated distance to destination Router.
• Distance is basically considered by no’s of Hops.
• Delays basically measured by sending ECHO packets to another Router.
A
E
I J K L
H
D
F
B C
G
0
12
25
40
14
23
18
17
29
24
21
9
24
36
18
27
7
20
31
20
33
22
0
11
20
31
19
8
30
19
6
0
9
22
14
7
21
28
36
24
22
40
31
19
9
0
22
10
8
20
28
20
17
30
18
12
15
6
10
0
A
A
I
H
I
I
H
H
K
K
I
-
A
B
C
D
E
F
G
H
L
K
I
J
A I H K J Line
JA Delay is 8
JI Delay is 10
JH Delay is 12
JK Delay is 6
NewRoutingTableforRouterJ
Advantages & Disadvantages
• Advantages of DistanceVector routing –
• It is simpler to configure and maintain than link state routing.
• Disadvantages of DistanceVector routing –
• 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 onWAN links.
Link State Routing Algorithm
Why?
• DistanceVector Routing algorithm often took too long converge after the
network topology changed (due to the count-to-infinity problem).
Link State Routing Algorithm
Idea Behind Link State Routing
• This has five parts
1. Discovery its neighbors and learn their network addresses.
2. Set the distance or cost metric to each of its neighbors.
3. Construct a packet telling all it has just learned.
4. Send this packet to and receive packets from all other routers.
5. Compute the shortest path to every other router.
Link State Routing Algorithm
Learning About Neighbors
A
E
A
E
A
A
E
A
A A
E
A
E
A
A
E
A
A
N
Broadcast LAN
Graph Model
Link State Routing Algorithm
Setting Link Cost
• Each link to have a distance or cost metric for finding shortest paths.
• For example, 1-Gbps Ethernet may have a cost of 1 and 100-Mbps Ethernet a cost of 10.
• Higher capacity paths are the better choices.
• The most direct way to determine this delay is to send over the line a special ECHO packet
that the other side is required to send back immediately.
• The round-trip time and driving it by two, the sending router can get a reasonable estimate
of the delay.
Advantages and disadvantages of link-state
routing
• Advantage:
1. Routers have direct knowledge of all links in the network and how they are connected.
2. Link-state protocols require less router processor power than distance vector protocols.
3. The topology database eliminates the need for a routing table
• Disadvantage:
1. The necessary databases require more memory than a distance vector protocol requires.
2. The complex algorithm requires more CPU time than a distance vector protocol requires.
Link State Routing Algorithm
Building Link State Packet
B C
D
FE
A
8
7
3
2
4
5
61
Link State Routing Algorithm
• Sequence Packet: Each packet contains a sequence no., this keep tracks
how many times this packet has sent.
• Age Packet: Show the life of a packet in Network, after passing by one Hop
it is decremented by one.
• When to build Link State packets?
 Build them periodically at regular intervals.
 Build them when some significant event occurs.
Link State Routing Algorithm
Link State Protocols
• IS-IS(Intermediate System – Intermediate System)
• OSPF(Open Shortest Path First)
The End

More Related Content

What's hot

Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
قصي نسور
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
Network Layer
Network LayerNetwork Layer
Network Layer
Dr Shashikant Athawale
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
Renu Kewalramani
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
Sunita Sahu
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
N.Jagadish Kumar
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
vasanthimuniasamy
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
NetProtocol Xpert
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
Mohsin Ali
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
sambhenilesh
 
Congestion control
Congestion controlCongestion control
Congestion control
Aman Jaiswal
 
TCP/ IP
TCP/ IP TCP/ IP
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
Naiyan Noor
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
Siddique Ibrahim
 
Data link layer
Data link layer Data link layer
Data link layer
Mukesh Chinta
 
Packet switching
Packet switchingPacket switching
Packet switchingasimnawaz54
 
Multicastingand multicast routing protocols
Multicastingand multicast routing protocolsMulticastingand multicast routing protocols
Multicastingand multicast routing protocols
Iffat Anjum
 
Network protocals
Network protocalsNetwork protocals
Network protocals
reddivarihareesh
 

What's hot (20)

Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
 
Mac sub layer
Mac sub layerMac sub layer
Mac sub layer
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Clock synchronization in distributed system
Clock synchronization in distributed systemClock synchronization in distributed system
Clock synchronization in distributed system
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Tcp
TcpTcp
Tcp
 
TCP/ IP
TCP/ IP TCP/ IP
TCP/ IP
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Data link layer
Data link layer Data link layer
Data link layer
 
Packet switching
Packet switchingPacket switching
Packet switching
 
Multicastingand multicast routing protocols
Multicastingand multicast routing protocolsMulticastingand multicast routing protocols
Multicastingand multicast routing protocols
 
Network protocals
Network protocalsNetwork protocals
Network protocals
 

Similar to Presentation Routing algorithm

Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
Mugabo4
 
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
anushaj46
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
AayushMishra89
 
Routing Protocols
Routing ProtocolsRouting Protocols
computer communications
computer communicationscomputer communications
computer communications
JAYASHSINGHRA2111003
 
Chapter07
Chapter07Chapter07
Chapter07
Muhammad Ahad
 
Routing
RoutingRouting
Network layer
Network layerNetwork layer
Network layer
TharuniDiddekunta
 
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
 
Day 9 routing
Day 9 routingDay 9 routing
Day 9 routing
CYBERINTELLIGENTS
 
Core-Stateless Fair Queueing
Core-Stateless Fair QueueingCore-Stateless Fair Queueing
Core-Stateless Fair Queueing
Yuanxuan Wang
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
JAIGANESH SEKAR
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
Sourabh Goyal
 
Frame relay
Frame relayFrame relay
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
DrTThendralCompSci
 
ccna2_mod6_Routing & Routing Protocols.pptx
ccna2_mod6_Routing & Routing Protocols.pptxccna2_mod6_Routing & Routing Protocols.pptx
ccna2_mod6_Routing & Routing Protocols.pptx
sumankumar770546
 
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
PocketRocketDC
 
Lecture 7
 Lecture 7 Lecture 7
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
MrSSaiKumar
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 

Similar to Presentation Routing algorithm (20)

Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1Routing algorithms mehodology materials doc1
Routing algorithms mehodology materials doc1
 
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
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
computer communications
computer communicationscomputer communications
computer communications
 
Chapter07
Chapter07Chapter07
Chapter07
 
Routing
RoutingRouting
Routing
 
Network layer
Network layerNetwork layer
Network layer
 
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)
 
Day 9 routing
Day 9 routingDay 9 routing
Day 9 routing
 
Core-Stateless Fair Queueing
Core-Stateless Fair QueueingCore-Stateless Fair Queueing
Core-Stateless Fair Queueing
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Frame relay
Frame relayFrame relay
Frame relay
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
 
ccna2_mod6_Routing & Routing Protocols.pptx
ccna2_mod6_Routing & Routing Protocols.pptxccna2_mod6_Routing & Routing Protocols.pptx
ccna2_mod6_Routing & Routing Protocols.pptx
 
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
 
Lecture 7
 Lecture 7 Lecture 7
Lecture 7
 
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
fdocuments.in_chapter-7-routing-protocols-for-ad-hoc-wireless-networks-7-rout...
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7
 

Recently uploaded

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
NaapbooksPrivateLimi
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Hivelance Technology
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
MayankTawar1
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
ayushiqss
 

Recently uploaded (20)

Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Visitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.appVisitor Management System in India- Vizman.app
Visitor Management System in India- Vizman.app
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
Multiple Your Crypto Portfolio with the Innovative Features of Advanced Crypt...
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Software Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdfSoftware Testing Exam imp Ques Notes.pdf
Software Testing Exam imp Ques Notes.pdf
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Why React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdfWhy React Native as a Strategic Advantage for Startup Innovation.pdf
Why React Native as a Strategic Advantage for Startup Innovation.pdf
 

Presentation Routing algorithm

  • 2. Group Member BASIT HUSSAIN | 2017-CS-126 HAMZA KHAN | 2017-CS-105 IRTEZA HASSAN | 2017-CS-50
  • 3. Router • A router has two processes inside it. • One of them handles each packet as it arrives, looking up the outgoing line to use for it in the router tables.This process is forwarding. • The other process is responsible for filling in and updating the routing tables.That is where the routing algorithm comes into play.
  • 5. Routing Algorithm • Part of the network layer responsible for deciding which output line an incoming packet should be transmitted on. • If the network uses datagrams internally, this decision must be made a new path for every arriving data packet. • If the network uses virtual circuits internally, routing decisions are made only when a new virtual circuit is being set up.This case sometimes called session routing.
  • 6. Routing Example • Routing = building maps and giving directions
  • 7. Desired Properties of Routing Algorithm • Correctness • Simplicity • Robustness • Stability • Fairness and Efficiency
  • 8. Types of Routing Algorithms • Non-Adaptive or Static Algorithm Routing paths are computed in advance, offline, and downloaded to the routers when the network is booted. It does not respond to failures. • Adaptive or Dynamic Algorithm Change their routing decisions to reflect changes in the topology, and sometimes changes in the traffic.
  • 9. Routing Algorithms • Shortest Path Algorithm • Flooding • DistanceVector Routing • Link State Routing • Hierarchical Routing • Broadcast Routing • Multicast Routing • Anycast Routing
  • 10. DistanceVector Routing • It’s a Adaptive or Dynamic Algorithm. • Each Router Maintains a table called “Vector”. • Table has the Best Known Distance for Each Routers. • Tables are Updated by exchanging Information with neighbors(Router). • Each Router knows the Best Distance to Reach another Router. • Also Known as Bellman-Ford Routing Algorithm.
  • 11. DistanceVector Routing • Each Router’sTable has one entry for one router. • This entry has two parts. • Preferred out going Line for each Router. • Estimated distance to destination Router. • Distance is basically considered by no’s of Hops. • Delays basically measured by sending ECHO packets to another Router.
  • 12. A E I J K L H D F B C G 0 12 25 40 14 23 18 17 29 24 21 9 24 36 18 27 7 20 31 20 33 22 0 11 20 31 19 8 30 19 6 0 9 22 14 7 21 28 36 24 22 40 31 19 9 0 22 10 8 20 28 20 17 30 18 12 15 6 10 0 A A I H I I H H K K I - A B C D E F G H L K I J A I H K J Line JA Delay is 8 JI Delay is 10 JH Delay is 12 JK Delay is 6 NewRoutingTableforRouterJ
  • 13. Advantages & Disadvantages • Advantages of DistanceVector routing – • It is simpler to configure and maintain than link state routing. • Disadvantages of DistanceVector routing – • 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 onWAN links.
  • 14. Link State Routing Algorithm Why? • DistanceVector Routing algorithm often took too long converge after the network topology changed (due to the count-to-infinity problem).
  • 15. Link State Routing Algorithm Idea Behind Link State Routing • This has five parts 1. Discovery its neighbors and learn their network addresses. 2. Set the distance or cost metric to each of its neighbors. 3. Construct a packet telling all it has just learned. 4. Send this packet to and receive packets from all other routers. 5. Compute the shortest path to every other router.
  • 16. Link State Routing Algorithm Learning About Neighbors A E A E A A E A A A E A E A A E A A N Broadcast LAN Graph Model
  • 17. Link State Routing Algorithm Setting Link Cost • Each link to have a distance or cost metric for finding shortest paths. • For example, 1-Gbps Ethernet may have a cost of 1 and 100-Mbps Ethernet a cost of 10. • Higher capacity paths are the better choices. • The most direct way to determine this delay is to send over the line a special ECHO packet that the other side is required to send back immediately. • The round-trip time and driving it by two, the sending router can get a reasonable estimate of the delay.
  • 18. Advantages and disadvantages of link-state routing • Advantage: 1. Routers have direct knowledge of all links in the network and how they are connected. 2. Link-state protocols require less router processor power than distance vector protocols. 3. The topology database eliminates the need for a routing table • Disadvantage: 1. The necessary databases require more memory than a distance vector protocol requires. 2. The complex algorithm requires more CPU time than a distance vector protocol requires.
  • 19. Link State Routing Algorithm Building Link State Packet B C D FE A 8 7 3 2 4 5 61
  • 20. Link State Routing Algorithm • Sequence Packet: Each packet contains a sequence no., this keep tracks how many times this packet has sent. • Age Packet: Show the life of a packet in Network, after passing by one Hop it is decremented by one. • When to build Link State packets?  Build them periodically at regular intervals.  Build them when some significant event occurs.
  • 21. Link State Routing Algorithm Link State Protocols • IS-IS(Intermediate System – Intermediate System) • OSPF(Open Shortest Path First)