Implementation of two leader election algorithms on top of Peersim(P2P simulator) in the context of Mobile Ad Hoc Networks(MANET): VKT04 and GlobalView Election.
- Ant for building and executing the project
- Python with Pandas for generating stats from a list of configuration files
- Clone the repo
- Build and generate the jar file
$ ant jar
- Run the simulation with the default config (config.txt) or change the config path
$ ant run [-Dconf=<yourconfigfile>]
Alternatively you can just execute the python script that will generate configurations and execute simulations for every configuration file. A script to generate configuration files and a template can be found in the "configs" folder.