Skip to content

Traditional Leach Clustering Model in ns3

Notifications You must be signed in to change notification settings

Nocturnals/leach_ns3

 
 

Repository files navigation

leach_ns3

Modification to Traditional Leach Clustering Model in ns3 also known as Preprocessing Leach.

We(I and Wuxiucheng) have uploaded whole ns3 folder In order to run code one need to download/clone leach_ns3 And then complile as we do ns3 by using ./waf Code is in scratch folder by name leach.cc which can be run using command: ./waf --run scratch/leach We have plot.py file which reads ouput file generated by leach.cc and plots leach.cc will produce three txt format files which holds average energy of overall network with every round.

Modified is only made for cluster head percent 0.05 and sink fixed at (500,500) with 50 nodes in network placed in (100,100) have 0.75 joule of energy

This work was part of Spring 2018 Wireless Sensor Network Project Course Complete Report can be found here https://drive.google.com/open?id=1-Dnl9tNPO2X2ilbeEDVEUNpv51FUBJm9

About

Traditional Leach Clustering Model in ns3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.6%
  • C++ 34.7%
  • C 0.5%
  • Perl 0.4%
  • Gnuplot 0.3%
  • Makefile 0.2%
  • Other 0.3%