Add cn/dvr: Distance Vector Routing simulator with count-to-infinity demos and captured output

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6V3xQR5XUmTbjaYAK
This commit is contained in:
Claude
2026-11-12 20:56:48 +05:30
parent abaf3840f2
commit f784f9b6ee
23 changed files with 1436 additions and 0 deletions
+131
View File
@@ -0,0 +1,131 @@
routers: 5, infinity = 16, poison reverse = off
links: A-B=5 A-C=2 A-D=3 B-C=4 B-E=3 C-E=4
== initial convergence ==
-- round 0 (direct links only) --
A Routing Table
Dest Dist Next hop
A 0 -
B 5 B
C 2 C
D 3 D
E INF -
B Routing Table
Dest Dist Next hop
A 5 A
B 0 -
C 4 C
D INF -
E 3 E
C Routing Table
Dest Dist Next hop
A 2 A
B 4 B
C 0 -
D INF -
E 4 E
D Routing Table
Dest Dist Next hop
A 3 A
B INF -
C INF -
D 0 -
E INF -
E Routing Table
Dest Dist Next hop
A INF -
B 3 B
C 4 C
D INF -
E 0 -
-- after round 1 --
A Routing Table
Dest Dist Next hop
A 0 -
B 5 B
C 2 C
D 3 D
E 6 C
B Routing Table
Dest Dist Next hop
A 5 A
B 0 -
C 4 C
D 8 A
E 3 E
C Routing Table
Dest Dist Next hop
A 2 A
B 4 B
C 0 -
D 5 A
E 4 E
D Routing Table
Dest Dist Next hop
A 3 A
B 8 A
C 5 A
D 0 -
E INF -
E Routing Table
Dest Dist Next hop
A 6 C
B 3 B
C 4 C
D INF -
E 0 -
-- after round 2 --
A Routing Table
Dest Dist Next hop
A 0 -
B 5 B
C 2 C
D 3 D
E 6 C
B Routing Table
Dest Dist Next hop
A 5 A
B 0 -
C 4 C
D 8 A
E 3 E
C Routing Table
Dest Dist Next hop
A 2 A
B 4 B
C 0 -
D 5 A
E 4 E
D Routing Table
Dest Dist Next hop
A 3 A
B 8 A
C 5 A
D 0 -
E 9 A
E Routing Table
Dest Dist Next hop
A 6 C
B 3 B
C 4 C
D 9 C
E 0 -
converged: round 3 changed nothing
rounds that changed something: 2
check vs Floyd-Warshall: match