A simulation in ns3 of the clustering and energy profiles of a Wireless sensor network WSN based on the LEACH , mainting a low energy footprint to extend the lifetime of the clusters and hence the lifetime of the network.
Download and extract the project into your ns3 root src directory and execute the build by running
$./waf
then
$./waf --run scratch/leach
All config files variables are currently hard coded in the consts file and the simulation is known to work with ns-allinone-3.19, other versions not tested with it yet.