SlideShare a Scribd company logo
Routing
DistanceVector Routing
DistanceVector Routing
 Each node constructs a one dimensional array (a vector)
containing the “distances” (costs) to all other nodes and
distributes that vector to its immediate neighbours.
 Starting assumption is that each node knows the cost of the
link to each of its directly connected neighbours.
DistanceVector Routing
DistanceVector Routing
Fig. Initial Routing table at Node ‘A’ Fig. Final Routing table at Node ‘A’
DistanceVector Routing
Fig.Final distances stored at each node
DistanceVector Routing
 The distance vector routing algorithm is sometimes called as
Bellman-Ford algorithm
 Every T seconds each router sends its table to its neighbour each
router then updates its table based on the new information.
 Problems include fast response to good new and slow response to
bad news. Also too many messages to update.
DistanceVector Routing
When a node detects a failure,
 F detects that link to G has failed
 F sets distance to G to infinity and sends update to A
 A sets distance to G to infinity since it uses F to reach G
 A receives periodic update from C with 2-hop path to G
 A sets distance to G to 3 and sends update to F
 F decides it can reach G in 4 hops via A
DistanceVector Routing
 Slightly different circumstances can prevent the network from
stabilizing,
 Suppose the link from A to E goes down
 In the next round of updates, A advertises a distance of infinity to E, but
B and C advertise a distance of 2 to E
DistanceVector Routing
 Depending on the exact timing of events, the following might happen
 Node B, upon hearing that E can be reached in 2 hops from C, concludes
that it can reach E in 3 hops and advertises this to A
 Node A concludes that it can reach E in 4 hops and advertises this to C
 Node C concludes that it can reach E in 5 hops; and so on.
 This cycle stops only when the distances reach some number that is large
enough to be considered infinite
 Count-to-infinity problem
DistanceVector Routing
Partial solutions for Count to infinity problem,
 Use some relatively small number as an approximation of infinity
 For example, the maximum number of hops to get across a certain network is never
going to be more than 16
 One technique to improve the time to stabilize routing is called split horizon
 When a node sends a routing update to its neighbour’s, it does not send those routes it
learned from each neighbour back to that neighbour
 For example, if B has the route (E, 2, A) in its table, then it knows it must have learned this
route fromA, and so whenever B sends a routing update to A, it does not include the route
(E, 2) in that update
DistanceVector Routing
Partial solutions for Count to infinity problem,
 In a stronger version of split horizon, called split horizon with poison
reverse
 B actually sends that back route to A, but it puts negative information in the
route to ensure that A will not eventually use B to get to E
 For example, B sends the route (E, ∞) to A
DistanceVector Routing
RIP (Routing Information Protocol)
 RIP is in fact a fairly straightforward implementation of distance-vector
routing. Routers running RIP send their advertisements every 30 seconds; a
router also sends an update message whenever an update from another
router causes it to change its routing table.
 One point of interest is that it supports multiple address families, not justIP.
The network-address part of the advertisements is actually represented as a
(family,address) pair. RIP version 2 (RIPv2) also has some features related to
scalability.
DistanceVector Routing

More Related Content

PPT
Routing Information Protocol (RIP)
waqasahmad1995
 
PDF
Unit II Arm7 Thumb Instruction
Dr. Pankaj Zope
 
PPTX
Cyclic redundancy check
Saleh Alrkiyan
 
PPTX
Linear block coding
jknm
 
PPT
Parallel adder
Kamil Hussain
 
PDF
Verification of amba axi bus protocol implementing incr and wrap burst using ...
eSAT Journals
 
PDF
Some issue due to incorrect PA and transceiver configuration
criterion123
 
PPT
Chap 24 mobile ip
Noctorous Jamal
 
Routing Information Protocol (RIP)
waqasahmad1995
 
Unit II Arm7 Thumb Instruction
Dr. Pankaj Zope
 
Cyclic redundancy check
Saleh Alrkiyan
 
Linear block coding
jknm
 
Parallel adder
Kamil Hussain
 
Verification of amba axi bus protocol implementing incr and wrap burst using ...
eSAT Journals
 
Some issue due to incorrect PA and transceiver configuration
criterion123
 
Chap 24 mobile ip
Noctorous Jamal
 

What's hot (20)

PDF
Baseline Wandering
Arunabha Saha
 
PDF
Lecture6[1]
ZINABU HAILE
 
PPTX
ANALOG TO DIGITAL CONVERTERS
Harsha Raju
 
PPTX
Forward error correction
Prankit Mishra
 
PPTX
Sliding window protocol(ARQ technique)
shilpa patel
 
PPT
Error correction error detection in digital communication
swatihalunde
 
PDF
Notes: Verilog Part 1 - Overview - Hierarchical Modeling Concepts - Basics
Jay Baxi
 
PDF
I2C BUS PROTOCOL
Kashyap Mandaliya
 
PPTX
8085 architecture
Rishabh Kataria
 
PDF
IEEE 754 Standards For Floating Point Representation.pdf
kkumaraditya301
 
PPTX
Computer Communication Networks, network layer performance.pptx
Electro00
 
PPTX
AMBA Ahb 2.0
Akhil Srivastava
 
PDF
SPI Protocol in LPC2148
Dnyanesh P. Joshi
 
PDF
Synchronous and asynchronous clock
Nallapati Anindra
 
PPTX
MODULE-3_CCN.pptx
Dr. Shivashankar
 
PPTX
I2C
Sarojpatnaik5
 
PPT
Chapter 3
Faisal Mehmood
 
PPTX
RTC Interfacing and Programming
Devashish Raval
 
PPT
Error Detection and Correction
TechiNerd
 
PPTX
Timer counter in arm7(lpc2148)
Aarav Soni
 
Baseline Wandering
Arunabha Saha
 
Lecture6[1]
ZINABU HAILE
 
ANALOG TO DIGITAL CONVERTERS
Harsha Raju
 
Forward error correction
Prankit Mishra
 
Sliding window protocol(ARQ technique)
shilpa patel
 
Error correction error detection in digital communication
swatihalunde
 
Notes: Verilog Part 1 - Overview - Hierarchical Modeling Concepts - Basics
Jay Baxi
 
I2C BUS PROTOCOL
Kashyap Mandaliya
 
8085 architecture
Rishabh Kataria
 
IEEE 754 Standards For Floating Point Representation.pdf
kkumaraditya301
 
Computer Communication Networks, network layer performance.pptx
Electro00
 
AMBA Ahb 2.0
Akhil Srivastava
 
SPI Protocol in LPC2148
Dnyanesh P. Joshi
 
Synchronous and asynchronous clock
Nallapati Anindra
 
MODULE-3_CCN.pptx
Dr. Shivashankar
 
Chapter 3
Faisal Mehmood
 
RTC Interfacing and Programming
Devashish Raval
 
Error Detection and Correction
TechiNerd
 
Timer counter in arm7(lpc2148)
Aarav Soni
 
Ad

Similar to RIP - Routing Information Protocol (20)

PPTX
Computer Network - Unicast Routing Distance vector Link state vector
Kongu Engineering College, Perundurai, Erode
 
PPTX
Distance Vector Routing Protocols
KABILESH RAMAR
 
PPTX
Distance Vector Routing
ShouvikDhali
 
PPTX
routing algo n
SwatiHans10
 
PPT
Day 8 2 distance vector routing
CYBERINTELLIGENTS
 
PDF
Distributed Path Computation Using DIV Algorithm
IOSR Journals
 
PDF
C0431320
IOSR Journals
 
PPTX
Distance_Vector_Routing.pptx
FernandoMM1
 
PPT
Zaharaddeen karami lawal distance vector routing
Klawal13
 
PPT
routing1 1X3 Router (capable of routing the data packets.ppt
JANARTHANANS22
 
PPTX
DISTANCE VECTOR ROUTING AND LINK STATE ROUTING
elaelango
 
PPT
Bellmanford
Abhijeet Gokhale
 
PDF
P5 - Routing Protocols
Kurniawan Dwi Irianto
 
PPTX
Comparative Analysis of Distance Vector Routing & Link State Protocols
East West University
 
PPT
Routing in Engineering: Principles and Applications.ppt
Bchakri3
 
PPTX
PPT on Project Report Ashutosh Kumar.pptx
NiranjanRay8
 
PDF
Computer Communication Networks-Routing protocols 1
Krishna Nanda
 
PPTX
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
PPTX
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
dutt2309
 
PPT
Data Communications and Networks Network Layer
SunilKumar481222
 
Computer Network - Unicast Routing Distance vector Link state vector
Kongu Engineering College, Perundurai, Erode
 
Distance Vector Routing Protocols
KABILESH RAMAR
 
Distance Vector Routing
ShouvikDhali
 
routing algo n
SwatiHans10
 
Day 8 2 distance vector routing
CYBERINTELLIGENTS
 
Distributed Path Computation Using DIV Algorithm
IOSR Journals
 
C0431320
IOSR Journals
 
Distance_Vector_Routing.pptx
FernandoMM1
 
Zaharaddeen karami lawal distance vector routing
Klawal13
 
routing1 1X3 Router (capable of routing the data packets.ppt
JANARTHANANS22
 
DISTANCE VECTOR ROUTING AND LINK STATE ROUTING
elaelango
 
Bellmanford
Abhijeet Gokhale
 
P5 - Routing Protocols
Kurniawan Dwi Irianto
 
Comparative Analysis of Distance Vector Routing & Link State Protocols
East West University
 
Routing in Engineering: Principles and Applications.ppt
Bchakri3
 
PPT on Project Report Ashutosh Kumar.pptx
NiranjanRay8
 
Computer Communication Networks-Routing protocols 1
Krishna Nanda
 
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Chapter_5_v8.0Routing Protocol for Computer network from kurose and ross
dutt2309
 
Data Communications and Networks Network Layer
SunilKumar481222
 
Ad

More from selvakumar_b1985 (20)

PPSX
Triggering transmission
selvakumar_b1985
 
PPSX
Token ring
selvakumar_b1985
 
PPSX
Subnetting
selvakumar_b1985
 
PPSX
Email Security
selvakumar_b1985
 
PPSX
Physical Mediums
selvakumar_b1985
 
PPSX
OSPF - Routing Protocol
selvakumar_b1985
 
PPSX
Layering and Architecture
selvakumar_b1985
 
PPSX
Issues in Data Link Layer
selvakumar_b1985
 
PPSX
Internetworking - IP
selvakumar_b1985
 
PPSX
Hybrid Channel Access Link
selvakumar_b1985
 
PPSX
Hypertext Transfer Protocol
selvakumar_b1985
 
PPSX
Addressing Scheme IPv4
selvakumar_b1985
 
PPSX
File Transfer Protocol
selvakumar_b1985
 
PPSX
Framing Protocols
selvakumar_b1985
 
PPSX
Flow Control
selvakumar_b1985
 
PPSX
Ethernet
selvakumar_b1985
 
PPSX
Error control
selvakumar_b1985
 
Triggering transmission
selvakumar_b1985
 
Token ring
selvakumar_b1985
 
Subnetting
selvakumar_b1985
 
Email Security
selvakumar_b1985
 
Physical Mediums
selvakumar_b1985
 
OSPF - Routing Protocol
selvakumar_b1985
 
Layering and Architecture
selvakumar_b1985
 
Issues in Data Link Layer
selvakumar_b1985
 
Internetworking - IP
selvakumar_b1985
 
Hybrid Channel Access Link
selvakumar_b1985
 
Hypertext Transfer Protocol
selvakumar_b1985
 
Addressing Scheme IPv4
selvakumar_b1985
 
File Transfer Protocol
selvakumar_b1985
 
Framing Protocols
selvakumar_b1985
 
Flow Control
selvakumar_b1985
 
Error control
selvakumar_b1985
 

Recently uploaded (20)

PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
Information Retrieval and Extraction - Module 7
premSankar19
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Inventory management chapter in automation and robotics.
atisht0104
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Software Testing Tools - names and explanation
shruti533256
 

RIP - Routing Information Protocol

  • 2. DistanceVector Routing  Each node constructs a one dimensional array (a vector) containing the “distances” (costs) to all other nodes and distributes that vector to its immediate neighbours.  Starting assumption is that each node knows the cost of the link to each of its directly connected neighbours.
  • 4. DistanceVector Routing Fig. Initial Routing table at Node ‘A’ Fig. Final Routing table at Node ‘A’
  • 6. DistanceVector Routing  The distance vector routing algorithm is sometimes called as Bellman-Ford algorithm  Every T seconds each router sends its table to its neighbour each router then updates its table based on the new information.  Problems include fast response to good new and slow response to bad news. Also too many messages to update.
  • 7. DistanceVector Routing When a node detects a failure,  F detects that link to G has failed  F sets distance to G to infinity and sends update to A  A sets distance to G to infinity since it uses F to reach G  A receives periodic update from C with 2-hop path to G  A sets distance to G to 3 and sends update to F  F decides it can reach G in 4 hops via A
  • 8. DistanceVector Routing  Slightly different circumstances can prevent the network from stabilizing,  Suppose the link from A to E goes down  In the next round of updates, A advertises a distance of infinity to E, but B and C advertise a distance of 2 to E
  • 9. DistanceVector Routing  Depending on the exact timing of events, the following might happen  Node B, upon hearing that E can be reached in 2 hops from C, concludes that it can reach E in 3 hops and advertises this to A  Node A concludes that it can reach E in 4 hops and advertises this to C  Node C concludes that it can reach E in 5 hops; and so on.  This cycle stops only when the distances reach some number that is large enough to be considered infinite  Count-to-infinity problem
  • 10. DistanceVector Routing Partial solutions for Count to infinity problem,  Use some relatively small number as an approximation of infinity  For example, the maximum number of hops to get across a certain network is never going to be more than 16  One technique to improve the time to stabilize routing is called split horizon  When a node sends a routing update to its neighbour’s, it does not send those routes it learned from each neighbour back to that neighbour  For example, if B has the route (E, 2, A) in its table, then it knows it must have learned this route fromA, and so whenever B sends a routing update to A, it does not include the route (E, 2) in that update
  • 11. DistanceVector Routing Partial solutions for Count to infinity problem,  In a stronger version of split horizon, called split horizon with poison reverse  B actually sends that back route to A, but it puts negative information in the route to ensure that A will not eventually use B to get to E  For example, B sends the route (E, ∞) to A
  • 12. DistanceVector Routing RIP (Routing Information Protocol)  RIP is in fact a fairly straightforward implementation of distance-vector routing. Routers running RIP send their advertisements every 30 seconds; a router also sends an update message whenever an update from another router causes it to change its routing table.  One point of interest is that it supports multiple address families, not justIP. The network-address part of the advertisements is actually represented as a (family,address) pair. RIP version 2 (RIPv2) also has some features related to scalability.