SlideShare a Scribd company logo
2
Most read
4
Most read
8
Most read
Distance Vector Routing
a)
b)
c)

The least-cost route between any two nodes is the route with
minimum distance.
Each node maintains a vector(table) of minimum distances to
every node.
The table at each node also guides the packets to the desired
node by showing the showing the next hop routing.

Example:
Assume each node as the cities.
Lines as the roads connecting them.

1
Final Distance vector routing tables

2
Initialization
a)
b)
c)

The table in figure are stable.
Each node knows how to reach any other node and their cost.
At the beginning, each node know the cost of itself and its
immediate neighbor.[those node directly connected to it.]

d)

Assume that each node send a message to the immediate neighbors
and find the distance between itself and these neighbors.
The distance of any entry that is not a neighbor is marked as
infinite(unreachable).

e)

3
Initialization of tables in distance vector routing (DVR)

4
Sharing
a)
b)
c)
d)
e)
f)

Idea is to share the information between neighbors.
The node A does not know the distance about E, but node C does.
If node C share it routing table with A, node A can also know how
to reach node E.
On the other hand, node C does not know how to reach node D, but
node A does.
If node A share its routing table with C, then node C can also know
how to reach node D.
Node A and C are immediate neighbors, can improve their routing
tables if they help each other.

5
Sharing
a)
b)
c)
d)
e)

Contd.,

How much of the table must be shared with each neighbor?
The third column of the table(next hop) is not useful for the
neighbor.
When the neighbor receives a table, this column needs to be
replaced with the sender’s name.
If any of the rows can be used, the next node column filled with
sender of the table.
Therefore, a node can send only the first two column of its table to
any neighbor.

6
7
Updating in distance vector routing example: C to A
From C

From A

A to A via C: ACA = AC+ CA = 2+2
A to B via C: ACB = AC + CB = 2+4

A to D via C: ACD = AC + CD = 2+ inf.
A to E via C: ACD = AC + CE = 2+4

A to C via C: ACB = AC + CC = 2+0

8
When to share
a)
b)
c)



Periodic Update: A node sends its table, normally every 30s, in a
periodic update, it depends on the protocol that is using DVR.
Triggered Update: A node sends its two-column routing table to its
neighbors anytime there is a change in its routing table.
This is called triggered update the change can result from the
following:
A node receives a table from a neighbor, resulting in changes in its
own table after updating.
A node detects some failure in the neighboring links which results
in a distance change to infinity.

9
Distance Vector Routing (DVR)
a) 3 keys to understand how this algorithm works:
• Sharing knowledge about the entire AS. Each router
shares its knowledge about the entire AS with
neighbours. It sends whatever it has.
• Sharing only with immediate neighbours. Each
router sends whatever knowledge it has thru all its
interface.
• Sharing at regular intervals. sends at fixed intervals,
e.g. every 30 sec.
a) Problems: Tedious comparing/updating process, slow
response to infinite loop problem, huge list to be
maintained!!
10
11
12

More Related Content

PPTX
Distance Vector Routing
PPTX
Distance Vector & Link state Routing Algorithm
PPTX
Skin effect
PPTX
Blockchain Based voting system PPT.pptx
PPT
2D transformation (Computer Graphics)
PPTX
Distance Vector Routing Protocols
PDF
Multiplexing
PPTX
Prompt Engineering Guide.pptx
Distance Vector Routing
Distance Vector & Link state Routing Algorithm
Skin effect
Blockchain Based voting system PPT.pptx
2D transformation (Computer Graphics)
Distance Vector Routing Protocols
Multiplexing
Prompt Engineering Guide.pptx

What's hot (20)

PPT
Chapter 4 data link layer
PPTX
Computer network switching
PPTX
Computer Network - Network Layer
PPTX
Transport layer
PPTX
Link state routing protocol
PPTX
Csma cd and csma-ca
PPTX
Congestion control
PPTX
Error Detection and Correction - Data link Layer
PDF
7. data link layer error detection and correction codes - parity and checksum
PPTX
Delay , Loss & Throughput
PPTX
Network layer - design Issues
PPTX
Application layer protocols
PPTX
switching techniques in data communication and networking
PPT
Sliding window protocol
PPTX
Media Access Control
PPTX
Transport layer protocol
PPTX
Ethernet Computer network
PPT
Network layer tanenbaum
PPTX
Multiple Access Protocal
PPTX
IP addressing seminar ppt
Chapter 4 data link layer
Computer network switching
Computer Network - Network Layer
Transport layer
Link state routing protocol
Csma cd and csma-ca
Congestion control
Error Detection and Correction - Data link Layer
7. data link layer error detection and correction codes - parity and checksum
Delay , Loss & Throughput
Network layer - design Issues
Application layer protocols
switching techniques in data communication and networking
Sliding window protocol
Media Access Control
Transport layer protocol
Ethernet Computer network
Network layer tanenbaum
Multiple Access Protocal
IP addressing seminar ppt
Ad

Similar to Distance vector routing (20)

PPTX
DISTANCE VECTOR ROUTING AND LINK STATE ROUTING
PPSX
RIP - Routing Information Protocol
PPT
VAIBHAV SAHU 079.pptfffffffffffffffffffffffffffff
PPT
Destination sequence distance vector routing protocols
PPTX
Computer Network - Unicast Routing Distance vector Link state vector
PPTX
Comparative Analysis of Distance Vector Routing & Link State Protocols
PPT
Routing in Engineering: Principles and Applications.ppt
PPT
Bellmanford
PPT
Zaharaddeen karami lawal distance vector routing
DOCX
ECE 478578 Fundamentals of Computer NetworksProject # 1..docx
PPT
Introducing ATM Technology unicast.ppt
PDF
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
PDF
End sem
PPTX
Routing Protocols.pptx
PPT
module10-rip (1).ppt
PDF
IT6601 MOBILE COMPUTING
PPTX
Part7-routing.pptx
PPTX
routing algorithm
DISTANCE VECTOR ROUTING AND LINK STATE ROUTING
RIP - Routing Information Protocol
VAIBHAV SAHU 079.pptfffffffffffffffffffffffffffff
Destination sequence distance vector routing protocols
Computer Network - Unicast Routing Distance vector Link state vector
Comparative Analysis of Distance Vector Routing & Link State Protocols
Routing in Engineering: Principles and Applications.ppt
Bellmanford
Zaharaddeen karami lawal distance vector routing
ECE 478578 Fundamentals of Computer NetworksProject # 1..docx
Introducing ATM Technology unicast.ppt
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
End sem
Routing Protocols.pptx
module10-rip (1).ppt
IT6601 MOBILE COMPUTING
Part7-routing.pptx
routing algorithm
Ad

More from Siddique Ibrahim (20)

PPTX
List in Python
PPT
Python Control structures
PPTX
Python programming introduction
PPT
Data mining basic fundamentals
PPT
Basic networking
PPT
Virtualization Concepts
PPT
Networking devices(siddique)
PPT
Osi model 7 Layers
PPT
Mysql grand
PPT
Getting started into mySQL
PPT
pipelining
PPT
Micro programmed control
PPTX
Hardwired control
PPT
interface
PPT
Interrupt
PPT
Interrupt
PPT
Io devies
PPT
Stack & queue
PPT
Metadata in data warehouse
List in Python
Python Control structures
Python programming introduction
Data mining basic fundamentals
Basic networking
Virtualization Concepts
Networking devices(siddique)
Osi model 7 Layers
Mysql grand
Getting started into mySQL
pipelining
Micro programmed control
Hardwired control
interface
Interrupt
Interrupt
Io devies
Stack & queue
Metadata in data warehouse

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Teaching material agriculture food technology
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks

Distance vector routing

  • 1. Distance Vector Routing a) b) c) The least-cost route between any two nodes is the route with minimum distance. Each node maintains a vector(table) of minimum distances to every node. The table at each node also guides the packets to the desired node by showing the showing the next hop routing. Example: Assume each node as the cities. Lines as the roads connecting them. 1
  • 2. Final Distance vector routing tables 2
  • 3. Initialization a) b) c) The table in figure are stable. Each node knows how to reach any other node and their cost. At the beginning, each node know the cost of itself and its immediate neighbor.[those node directly connected to it.] d) Assume that each node send a message to the immediate neighbors and find the distance between itself and these neighbors. The distance of any entry that is not a neighbor is marked as infinite(unreachable). e) 3
  • 4. Initialization of tables in distance vector routing (DVR) 4
  • 5. Sharing a) b) c) d) e) f) Idea is to share the information between neighbors. The node A does not know the distance about E, but node C does. If node C share it routing table with A, node A can also know how to reach node E. On the other hand, node C does not know how to reach node D, but node A does. If node A share its routing table with C, then node C can also know how to reach node D. Node A and C are immediate neighbors, can improve their routing tables if they help each other. 5
  • 6. Sharing a) b) c) d) e) Contd., How much of the table must be shared with each neighbor? The third column of the table(next hop) is not useful for the neighbor. When the neighbor receives a table, this column needs to be replaced with the sender’s name. If any of the rows can be used, the next node column filled with sender of the table. Therefore, a node can send only the first two column of its table to any neighbor. 6
  • 7. 7
  • 8. Updating in distance vector routing example: C to A From C From A A to A via C: ACA = AC+ CA = 2+2 A to B via C: ACB = AC + CB = 2+4 A to D via C: ACD = AC + CD = 2+ inf. A to E via C: ACD = AC + CE = 2+4 A to C via C: ACB = AC + CC = 2+0 8
  • 9. When to share a) b) c)   Periodic Update: A node sends its table, normally every 30s, in a periodic update, it depends on the protocol that is using DVR. Triggered Update: A node sends its two-column routing table to its neighbors anytime there is a change in its routing table. This is called triggered update the change can result from the following: A node receives a table from a neighbor, resulting in changes in its own table after updating. A node detects some failure in the neighboring links which results in a distance change to infinity. 9
  • 10. Distance Vector Routing (DVR) a) 3 keys to understand how this algorithm works: • Sharing knowledge about the entire AS. Each router shares its knowledge about the entire AS with neighbours. It sends whatever it has. • Sharing only with immediate neighbours. Each router sends whatever knowledge it has thru all its interface. • Sharing at regular intervals. sends at fixed intervals, e.g. every 30 sec. a) Problems: Tedious comparing/updating process, slow response to infinite loop problem, huge list to be maintained!! 10
  • 11. 11
  • 12. 12