Presentation is loading. Please wait.

Presentation is loading. Please wait.

Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The.

Similar presentations


Presentation on theme: "Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The."— Presentation transcript:

1 Distance Vector Routing 박주호

2 juhpark@cs.chonbuk.ac.kr2 Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The static one.  Two dynamic algorithm –Distance vector routing –Link state routing

3 juhpark@cs.chonbuk.ac.kr3 Distance vector routing  This algorithms operate by –Having each router maintain a table –The table(i.e vector) give  the best known distance to each destination and  which line to use to get there. Updated by exchanging information with the neighbors.

4 juhpark@cs.chonbuk.ac.kr4 History  Sometimes called by other names …  Distributed Bellman-Ford routing algorithm(1957)  Ford-Fulkerson algorithm(1962)  It was original ARPANET routing algorithm  And was used –In the Internet(RIP) –In early versions of DECnet and Novell ’ s IPX  AppleTalk and Cisco routers use improved distributed vector protocols.

5 juhpark@cs.chonbuk.ac.kr5 The Routing table  Each router maintains a routing table –Contain one entry. –Two part of one entry  The preferred outgoing line  An estimate of the time or distance  The router is assumed to know the “ distance ” to each of its neighbors. distanceLine 20 10 ABAB

6 juhpark@cs.chonbuk.ac.kr6 The Metric of distance  Number of hops –The distance is just one hop  Time delay in milliseconds –The router can measure … –Using special ECHO packets(timestamps)  Total number of packets queued along the path –The router simply examines each queue

7 juhpark@cs.chonbuk.ac.kr7 Algorithm 29 24 9 21 17 18 23 14 40 25 12 0 33 22 11 0 20 31 20 7 27 18 36 24 9 22 7 14 0 6 19 30 8 19 31 20 9 0 10 22 19 31 40 22 24 36 28 21 15 6 0 10 12 18 30 17 20 28 20 8 K K - I H H I I H I A A L K J I H G F E D C B A ToAIHKLine JA delay is 8 JI delay is 10 JH delay is 12 JK delay is 6 Vectors received from J’s four neighbors New routing table for J New estimated dealy from J (a) (b) Receive table from neighbors Distances to each neighbor JA = 8 AB = 12 JB = JA+AB = 20

8 juhpark@cs.chonbuk.ac.kr8 The Count-to-Infinity Problem  Distance vector routing works in theory –A serious drawback in practice  Reacts rapidly to good news,  But leisurely to bad news. ABCDEABCDE     Initially 1    After 1 exchange 1 2   After 2 exchange 1 2 3  After 3 exchange 1 2 3 4 After 4 exchange 1 2 3 4 Initially 3 2 3 4 After 1 exchange 3 4 3 4 After 2 exchange 5 4 5 4 After 3 exchange 5 6 5 6 After 4 exchange 7 6 7 6 After 5 exchange 7 8 7 8 After 6 exchange  

9 juhpark@cs.chonbuk.ac.kr9  In case good news. –If longest path of subnet is N hops, –Everyone will know good news.  In case bad news. –Infinity … –Set infinity to the longest path + 1. –If metric is time delay, no well-defined upper bound. –There is a tradeoff …

10 juhpark@cs.chonbuk.ac.kr10 The Split Horizon Hack  Many ad hoc solutions to the problem have been proposed … –But, complicate, useless …  One of them will be described(why fail?)  The Split Horizon Hack algorithm ABCDE 1 2 3 4 Initially  2 3 4 After 1 exchange   3 4 After 2 exchange   4 After 3 exchange     After 4 exchange

11 juhpark@cs.chonbuk.ac.kr11 A B C D Router Fig. 5-12. An example where split horizon fails.


Download ppt "Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The."

Similar presentations


Ads by Google