23.11.2012 Views

Telematics Chapter 6: Network Layer - Freie Universität Berlin

Telematics Chapter 6: Network Layer - Freie Universität Berlin

Telematics Chapter 6: Network Layer - Freie Universität Berlin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Distance Vector Routing<br />

Distance Vector Algorithm<br />

1 Initialization:<br />

2 for all destinations y in N:<br />

3 D x(y) = c(x,y) // if y is not a neighbor then c(x,y) = ∞<br />

4 for each neighbor w<br />

5 D w(y) = ∞ for all destinations y in N<br />

6 for each neighbor w<br />

7 send distance vector DV x = [D x(y): y in N] to w<br />

8<br />

9 Loop:<br />

10 wait (until I see a link cost change to some neighbor w or<br />

11 until I receive a distance vector from some neighbor w)<br />

12<br />

13 for each y in N:<br />

14 D x(y) = min v{c(x,v)+D v(y)}<br />

15<br />

16 if D x(y) changed for any destination y<br />

17 send distance vector DV x = [D x(y): y in N] to all neighbors<br />

Terms<br />

● c(x,y) Cost of link (x,y)<br />

● Dx(y) Distance from node x to y<br />

● DVx Distance vector of node x<br />

Univ.-Prof. Dr.-Ing. Jochen H. Schiller ▪ cst.mi.fu-berlin.de ▪ <strong>Telematics</strong> ▪ <strong>Chapter</strong> 6: <strong>Network</strong> <strong>Layer</strong><br />

6.159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!