A simulator to implement peer-to-peer communication strategies between 4^n nodes in a network.
Roll No. | Name |
---|---|
EDM18B037 | Mayank Navneet Mehta |
EDM18B054 | Vishva Nilesh Bhate |
networkx
matplotlib
To install the dependencies, run the following command
pip3 install -r requirements.txt
To execute the simulator on command line:
cd nibble-sim
python3 nibble_sim.py
To execute as a container:
- Create the docker image using the
Dockerfile
:
docker build -t nibble-sim-docker .
- Create a container using the docker image:
docker run -it --rm --name nib-sim-test nibble-sim-docker
The nibble_sim.py
script is executed immediately.
- Attach more shells to the container and execute:
python3 nibble_sim.py
Note: You would need to connect your host system's X11 server with the container to visualize the network.
Click here to view at our documentation and notes.