Note: To run the abobe code files run the bootstrap file on every console.
Reference Paper:
Steps to Execute the Program:
-
Clone the Git repo into your local System.
$ git clone https://github.ncsu.edu/ajain28/ajain28-HW2-CSC591.git -
Go to the root of directory.
$ cd ajain28-HW2-CSC591 -
Run the Bootstrap file on the console.
$ . bootstrap -
To build this C++ project use make Command.
$ make -
All the required Executables are generated and Now we can execute the code. As mentioned in the homework we can run this in batch mode or interactive mode.
Format: chord [-i <input_file_name>] <number_of_node>
e.g.
$ chord -i input.txt 3$ chord 3 -
It will display output on stdout.
NOTE: All the exection needs to be run from the Project directory which in this case is ajain28-HW2-CSC591.
Note: All '$' written here means your prompt.
You also have Interactive mode. which can be used by running the code as follows:
$ chord <number_of_nodes>
- After adding/dropping the node to chord ring you have to call stabalize and fix_finger to make it stablize explicitly. There is no periodic call to these method in this Chord Simulation.