Skip to content

nathaniel-hahn/dvp

Repository files navigation

distance vector routing implementation in java

by nathaniel hahn for csds 325

Running Steps

  • make the bash script an executable

  • use the bash script if possible, macos and linux (it will compile the java)

  • adjust the bash script ports if needed

  • all forwarding tables should be printed

  • update the topology.txt as needed, but maintain the format

  • running without the bash file is more difficult and requires multiple terminals open and started at the same time

please reach out to me (nrh51@case.edu) with any questions

expected output

Nathaniels-MacBook-Pro➜  dvp : main : ᐅ  ./router_test.sh
Starting server on port 5555...
Server started on port 5555
Starting router u...
JOIN message received from router u
Starting router v...
JOIN message received from router v
Starting router w...
JOIN message received from router w
Starting router x...
JOIN message received from router x
Starting router y...
JOIN message received from router y
Starting router z...
JOIN message received from router z
All routers joined. Sending initial vectors...
Sent initial vector to router u
Sent initial vector to router v
Sent initial vector to router w
Sent initial vector to router x
Sent initial vector to router y
Sent initial vector to router z
All routers started. Press Enter to stop all processes and view results...

======================= RESULTS =======================
============== Router u Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
Algorithm has stabilized
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized

Forwarding Table for Router u
================================
Destination	Next Hop
--------------------------------
v		w
w		w
x		x
y		w
z		w
================================

============== Router v Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized

Forwarding Table for Router v
================================
Destination	Next Hop
--------------------------------
Algorithm has stabilized
Algorithm has stabilized
u		w
w		w
x		w
y		y
z		y
================================

============== Router w Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
UPDATE message sent to server
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized

Forwarding Table for Router w
================================
Destination	Next Hop
--------------------------------
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
u		u
v		v
x		x
y		v
z		v
================================
Algorithm has stabilized

============== Router x Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized

Forwarding Table for Router x
================================
Destination	Next Hop
--------------------------------
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
u		null
v		w
w		w
y		y
z		z
================================

============== Router y Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
UPDATE message sent to server
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized

Forwarding Table for Router y
================================
Destination	Next Hop
--------------------------------
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
Algorithm has stabilized
u		v
v		v
w		v
x		x
z		z
================================

============== Router z Output ==============
JOIN message sent to server
UPDATE message sent to server
UPDATE message sent to server
UPDATE message sent to server
Algorithm has stabilized
UPDATE message sent to server
UPDATE message sent to server

Forwarding Table for Router z
================================
Destination	Next Hop
--------------------------------
u		x
v		y
w		y
x		x
y		y
================================

Cleanup complete.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors