SlideShare a Scribd company logo
Network Layer
 Shortest Path Algorithm
 Distance Vector Routing
- Count to Infinite Problem
 Link State Routing
 Hierarchical Routing
Shortest Path Algorithm
 The first 5 steps used in computing the shortest path from A to D.
The arrows indicate the working node.
 Shortest path is the fastest path rather than the path
with fewest edges or kilometers
 Initially no path is known so all nodes are labeled with
infinity
 Labels on the edges could be computed as a function
of the distance ,bandwidth, average traffic
,communication cost ,measured delay and other
factors
 Initially, no path is known – All nodes are labeled with
infinity.
2. As the algorithm progresses labels are changed
reflecting the better path. The label is called
as tentative label.
3. As it is found that the label represents the shortest
path then it is made permanent and never changed
thereafter.
Distance Vector Routing
(a) A subnet. (b) Input from A, I, H, K, and the new
routing table for J.
 Distance Vector routing is called Routing information
Protocol(RIP)
 A Route with the less number of hops is considered as
the best route
 Every Router advertises its best route to the other
routers
 Convergence : setting of routers to the best paths
across the network
 It reacts rapidly to good news & converge slowly to bad
news .
Possible route from J to B
JA+AB=8+12 =20
JI+IB=10+36 = 46
JH+HB=12+31=43
JK+KB = 6+28 =34
Min =20 when taken ‘A’ Route , So 20 is updated in J new
table
Find the route from J to C
 JA+AC =8+25=33
 JI+IC=10+18=28
 JH+HC=12+19=31
 JK+KC=6+36=42
 Shortest distance is 28 when C Route taken
Find the Route from J to D
 JA+AD =8+40=48
 JI+ID=10+27=37
 JH+HD=12+8=20
 JK+KD=6+24=30
 Shortest distance is 20 through H route
 Find the Route from J to E
 JA+AE =8+14=22
 JI+IE=10+7=17
 JH+HE=12+30=42
 JK+KE=6+22=28
 17 is the shortest distance from the I route
 Find the Route from J to F
 JA+AF=8+23=31
 JI+IF=10+20=30
 JK+KF=6+40
 JH+HF=12+19=13
 30 is the shortest distance through I Route
 Find the Route from J to G
 JA+AG=8+18=26
 JH+HG=12+6=18
 JK+KG=6+31=37
 JI+IG=10+31=41
 18 is the shortest distance through H Route
 Find the Route from J to I
 JA+AI=8+21=29
 JH+HI=12+14=26
 JK+KI=6+22=28
 JI+IJ=10+0=10
10 is the shortest distance from I Route
 Find the Route from J TO K
 JA+AK=8+24=32
 JH+HK=12+22=34
 JK+KK=6+0=6
 JI+IK=10+22=34
 6 is the shortest distance from the K Route
 Find the route from J To L
 JA+AL=8+29=37
 JH+HL=12+9=21
 JK+KL=6+9=15
 JI+IL=10+33=43
 15 is the shortest distance from K Route
3 Distance Vector Routing (2)
The count-to-infinity problem.
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
Initialization
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
Direct
Neighbours
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
3
3
11
3
3
11
Neighbours
of neighbours
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
3
3
11
3
3
11
13
13
13
13
Neighbours
of neighbours
of neighbours
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
3
3
11
3
3
11
13
13
13
13
Stable
convergence
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
3
3
11
3
3
11
13
13
13
13
1
Good news:
A new link!
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
10
2
2
2
2
2
2
1
3
3
11
3
3
11
1
13
1
13
1
Direct
endpoints
know
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
4
2
2
2
2
2
2
1
3
3
3
3
3
3
1
3
1
3
1
Neighbours
know
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
4
2
2
2
2
2
2
1
3
3
3
3
3
3
1
3
1
3
1
Neighbours
of neighbours
know
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
4
2
2
2
2
2
2
1
3
3
3
3
3
3
1
3
1
3
1
A happy and
stable network
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
4
2
2
2
2
2
2
1
3
3
3
3
3
3
1
3
1
3
Bad news:
Link crash!!
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
2
2
2
2
2
2
1
3
3
3
3
3
3
Direct
endpoints
know
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
2
2
2
2
2
2
1
3
3
3
3
3
3
10
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
2
2
2
2
2
2
1
3
3
3
3
3
3
10
5
13
11
13
Get help
from
neighbours
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
4
1
2
2
2
2
2
2
1
3
3
3
3
7
7
10
5
13
11
13
Routing loop
(due to
inconsistent
state info)
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
8
1
2
2
2
2
2
2
1
3
3
3
3
7
7
10
9
13
11
13
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
8
1
2
2
2
2
2
2
1
3
3
3
3
11
11
10
9
13
11
13
Counting
to infinity…
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
2
2
2
2
2
2
1
3
3
3
3
11
11
10
13
13
11
13
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
2
2
2
2
2
2
1
3
3
3
3
11
13
10
13
13
11
13
1
10 2
2
2
A
B C
E
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
A
C
E
B
D
0
0
0
0
0
10
1
2
2
2
2
2
2
1
3
3
3
3
11
13
10
13
13
11
13
Stability
again
Link State Routing
 Each router must do the following:
• Discover its neighbors, learn their network address.
• Measure the delay or cost to each of its neighbors.
• Construct a packet telling all it has just learned.
• Send this packet to all other routers.
• Compute the shortest path to every other router.
Link State Routing : Learning about
the Neighbors
(a) Nine routers and a LAN.
(b) A graph model of (a).
 States of lines of all the routers in a network is
considered to build a common graph of the entire
network .
 New artificial node ‘N’ to which A,C & F are connected.
Possibility of visiting A to C on the LAN is represented
by ANC
Link State Routing (3): Measuring
Line Cost
 A subnet in which the East and West parts are
connected by two lines.
Setting a Link Cost
 Delay = Round trip time of ECHO Packet / 2
 Sending router get a reasonable estimate of the delay
by measuring round trip time & dividing it by two
Link State Routing : Building Link
State Packets
 (a) A subnet. (b) The link state packets for this
subnet.
Link State Routing : Distributing the
Link State Packets
The Packet buffer for router B
 Packet from A arrives directly . So it must be sent to C
& F and Acknowledgement to A , as indicated by the
Flag bits
 E is different ,It arrives twice one via EAB and Vis EFB .
IT must be sent only to C and it must be acknowledged
to both A & F
Duplicate arrives scenario
 If a copy of C’s state arrives from F before the fourth
entry in the table has been forwarded. The sixth bit
will be changed to 100011 to indicate packet must be
Acknowledged to F but not sent there
Hierarchical Routing
 Hierarchical routing.
 The routers are divided into regions . Each router has
complete details about how to route packets to
destination with in its own region. But it does not have
any idea about the internal structure of other regions

More Related Content

PPT
transport layer
priyadharshini murugan
 
PPTX
Introduction to Mobile Ad hoc Networks
Sayed Chhattan Shah
 
PPTX
Token bus
Denver Rockfreak
 
PPTX
Routing protocols
rajshreemuthiah
 
PPTX
Introduction of VANET
Pallavi Agarwal
 
PPTX
Wireless local loop
SANJUU7
 
PPTX
Vanet ppt
Akash Raghunath
 
transport layer
priyadharshini murugan
 
Introduction to Mobile Ad hoc Networks
Sayed Chhattan Shah
 
Token bus
Denver Rockfreak
 
Routing protocols
rajshreemuthiah
 
Introduction of VANET
Pallavi Agarwal
 
Wireless local loop
SANJUU7
 
Vanet ppt
Akash Raghunath
 

What's hot (20)

PPTX
AODV (adhoc ondemand distance vector routing)
ArunChokkalingam
 
PPT
IEEE 802.11
Ramasubbu .P
 
PPTX
Diapositivas exposicion examen
Fer Rondal
 
PPTX
Mobile Ad hoc Networks
Jagdeep Singh
 
PPT
1 introduction-to-computer-networking
Rozitarmizi Mohammad
 
PPTX
Gsm architecture
Naveen Sihag
 
PPT
Security in mobile ad hoc networks
Piyush Mittal
 
PPTX
Mac protocols for ad hoc wireless networks
Divya Tiwari
 
PPTX
Data aggregation in wireless sensor networks
Jasleen Kaur (Chandigarh University)
 
PDF
Location Aided Routing (LAR)
Pradeep Kumar TS
 
PPTX
Transport layer services (cn)
Jay Limbachiya
 
PPTX
Unit 1 - ML - Introduction to Machine Learning.pptx
jawad184956
 
PPT
Leach & Pegasis
ReenaShekar
 
PPTX
Virtual LAN
Lilesh Pathe
 
PPTX
What Is Sliding Window Protocol?
Simplilearn
 
PPTX
Routing Protocols in WSN
Darpan Dekivadiya
 
PPTX
Wi-FI Hacking
Mehul Jariwala
 
PPTX
Mobile ad-hoc network [autosaved]
Subhankar Chakraborty
 
PPTX
AODV routing protocol
Varsha Anandani
 
PPTX
Mac protocols
juno susi
 
AODV (adhoc ondemand distance vector routing)
ArunChokkalingam
 
IEEE 802.11
Ramasubbu .P
 
Diapositivas exposicion examen
Fer Rondal
 
Mobile Ad hoc Networks
Jagdeep Singh
 
1 introduction-to-computer-networking
Rozitarmizi Mohammad
 
Gsm architecture
Naveen Sihag
 
Security in mobile ad hoc networks
Piyush Mittal
 
Mac protocols for ad hoc wireless networks
Divya Tiwari
 
Data aggregation in wireless sensor networks
Jasleen Kaur (Chandigarh University)
 
Location Aided Routing (LAR)
Pradeep Kumar TS
 
Transport layer services (cn)
Jay Limbachiya
 
Unit 1 - ML - Introduction to Machine Learning.pptx
jawad184956
 
Leach & Pegasis
ReenaShekar
 
Virtual LAN
Lilesh Pathe
 
What Is Sliding Window Protocol?
Simplilearn
 
Routing Protocols in WSN
Darpan Dekivadiya
 
Wi-FI Hacking
Mehul Jariwala
 
Mobile ad-hoc network [autosaved]
Subhankar Chakraborty
 
AODV routing protocol
Varsha Anandani
 
Mac protocols
juno susi
 
Ad

Similar to routing alg.pptx (20)

PPTX
routing algorithm
AnusuaBasu
 
PPTX
Comparative Analysis of Distance Vector Routing & Link State Protocols
East West University
 
PPTX
IAP presentation-1.pptx
HirazNor
 
PPT
Lec-9-Couche Reseau1111111111111111111111111111111
SyrineZanina2
 
PPTX
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
PDF
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
Khoa Mac Tu
 
PPT
Routing
Rachna Sharma
 
PPT
Routing table
obadahamdan
 
PPTX
IAP PPT-1.pptx
HirazNor
 
PDF
Resolution of Some Cases of Bgp Inter-Domain Oscillations with the Spvpoc Alg...
ijceronline
 
PPSX
RIP - Routing Information Protocol
selvakumar_b1985
 
PDF
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
mrcopyxerox
 
PDF
Lecture set 5
Gopi Saiteja
 
PPT
Route1
Saeed
 
PDF
Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...
Eswar Publications
 
PDF
Evaluation of channel estimation combined with ICI self-cancellation scheme i...
ijcsse
 
PDF
06_AJMS_334_21.pdf
BRNSS Publication Hub
 
PDF
An Algorithm for Computing Average Packet Delay
CSCJournals
 
PPTX
Routing Protocols.pptx
HirazNor
 
routing algorithm
AnusuaBasu
 
Comparative Analysis of Distance Vector Routing & Link State Protocols
East West University
 
IAP presentation-1.pptx
HirazNor
 
Lec-9-Couche Reseau1111111111111111111111111111111
SyrineZanina2
 
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
Khoa Mac Tu
 
Routing
Rachna Sharma
 
Routing table
obadahamdan
 
IAP PPT-1.pptx
HirazNor
 
Resolution of Some Cases of Bgp Inter-Domain Oscillations with the Spvpoc Alg...
ijceronline
 
RIP - Routing Information Protocol
selvakumar_b1985
 
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
mrcopyxerox
 
Lecture set 5
Gopi Saiteja
 
Route1
Saeed
 
Link-and Node-Disjoint Evaluation of the Ad Hoc on Demand Multi-path Distance...
Eswar Publications
 
Evaluation of channel estimation combined with ICI self-cancellation scheme i...
ijcsse
 
06_AJMS_334_21.pdf
BRNSS Publication Hub
 
An Algorithm for Computing Average Packet Delay
CSCJournals
 
Routing Protocols.pptx
HirazNor
 
Ad

More from Acad (20)

PPTX
Network Layer design Issues.pptx
Acad
 
PPTX
Computer Science basics
Acad
 
DOCX
Union
Acad
 
DOCX
Stacks
Acad
 
DOCX
Str
Acad
 
DOC
Functions
Acad
 
DOCX
File
Acad
 
DOCX
Ds
Acad
 
DOCX
Dma
Acad
 
PDF
Botnet detection by Imitation method
Acad
 
PDF
Bot net detection by using ssl encryption
Acad
 
PDF
An Aggregate Location Monitoring System Of Privacy Preserving In Authenticati...
Acad
 
PDF
Literature survey on peer to peer botnets
Acad
 
PPT
Tiny os
Acad
 
PPT
Data retrieval in sensor networks
Acad
 
DOCX
Structure and Typedef
Acad
 
DOCX
Union from C and Data Strutures
Acad
 
PPT
Cluster analysis
Acad
 
PPT
Classification and prediction
Acad
 
PPT
Association rule mining
Acad
 
Network Layer design Issues.pptx
Acad
 
Computer Science basics
Acad
 
Union
Acad
 
Stacks
Acad
 
Str
Acad
 
Functions
Acad
 
File
Acad
 
Ds
Acad
 
Dma
Acad
 
Botnet detection by Imitation method
Acad
 
Bot net detection by using ssl encryption
Acad
 
An Aggregate Location Monitoring System Of Privacy Preserving In Authenticati...
Acad
 
Literature survey on peer to peer botnets
Acad
 
Tiny os
Acad
 
Data retrieval in sensor networks
Acad
 
Structure and Typedef
Acad
 
Union from C and Data Strutures
Acad
 
Cluster analysis
Acad
 
Classification and prediction
Acad
 
Association rule mining
Acad
 

Recently uploaded (20)

PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPT
SCOPE_~1- technology of green house and poyhouse
bala464780
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
Zero Carbon Building Performance standard
BassemOsman1
 
SCOPE_~1- technology of green house and poyhouse
bala464780
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 

routing alg.pptx

Editor's Notes