GROUP INFO
Jacob Ville 4540-7373
Shaifil Maknojia 7805-9466
-
Extract the zip file
-
Go to project3 folder
-
mix escript.build
-
./project3 num_nodes num_requests
num_nodes - integer
num_requests - integerEg:
\DOS\Projects\project3
\DOS\Projects\project3> mix escript.build
\DOS\Projects\project3> ./project3 1200 15O/P:
Average number of hops is 4.95
usage: ./project3 num_nodes num_requests failure_rate
failure_rate - integer (0 - 100)
The chord protocol is working as specified in the paper. Nodes are created and initialized with a finger table referencing other nodes in the network. Once all nodes are initialized they begin to send messages to a random key that is mapped to a node. Each time the message is sent and received, the number of hops increases, and is recorded once it reaches its destination.
To verify output and observe traversal, uncomment line #33 in lib/node.exs
The largest network used had 250,000 nodes. After that our systems exceeded the max number of simultaneous processes.