-
Notifications
You must be signed in to change notification settings - Fork 7
/
DistanceVector_CodeOutputForChangeConfigL
53 lines (38 loc) · 1.23 KB
/
DistanceVector_CodeOutputForChangeConfigL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#START
t=0 distance from X to Y via Y is 2
t=0 distance from X to Z via Z is 7
t=0 distance from Y to X via X is 2
t=0 distance from Y to Z via Z is 1
t=0 distance from Z to Y via Y is 1
t=0 distance from Z to X via X is 7
t=1 distance from X to Z via Y is 3
t=1 distance from X to Y via Z is 8
t=1 distance from Y to Z via X is 9
t=1 distance from Y to X via Z is 8
t=1 distance from Z to Y via X is 9
t=1 distance from Z to X via Y is 3
t=2 distance from Y to Z via X is 5
t=2 distance from Y to X via Z is 4
#INITIAL
router X: Y is 2 routing through Y
router X: Z is 3 routing through Y
router Y: X is 2 routing through X
router Y: Z is 1 routing through Z
router Z: X is 3 routing through Y
router Z: Y is 1 routing through Y
#UPDATE
t=0 distance from X to Y via Y is 1
t=0 distance from Y to X via X is 1
t=1 distance from X to Z via Y is 2
t=1 distance from Y to Z via X is 4
t=1 distance from Z to Y via X is 8
t=1 distance from Z to X via Y is 2
t=2 distance from Y to Z via X is 3
t=2 distance from Y to X via Z is 3
#FINAL
router X: Y is 1 routing through Y
router X: Z is 2 routing through Y
router Y: X is 1 routing through X
router Y: Z is 1 routing through Z
router Z: X is 2 routing through Y
router Z: Y is 1 routing through Y