Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.04 KB

File metadata and controls

40 lines (32 loc) · 1.04 KB

OLSR Network Simulation

Programming Project for Graduate studies in CS6390 Advanced Computer Networks

Academic Info

Identification: Nicholas Baker - ndb180002
Server: csgrads1
Runtime: python 3.6

Execution

Use python3 or higher to run node.py and controller.py.

Only tested for python3.6+

# example scenario.
./node.py 0 2 "sending from 0 to 2" 20 &
./node.py 1 1 &
./node.py 2 2 &
./controller.py &

Node

Files will be created to facilitate input and output links. These are read by the controller to forward data based on the network topology, imitating a group of wirless nodes using a broadcast medium.

usage:

./node.py ID DESTINATION [MESSAGE DELAY]
ID DESTINATION MESSAGE DELAY
node identifier destination for message (equals ID to ignore message) optional message delay for message

Controller

takes no input, reads topology.txt for link statuses at indicated timestamps (in seconds)

usage:

./controller.py