Description: Modified MIT code:
Manual how to use modified LEACH,LEACH-C and PEGASIS
1. In folder mit/uAMPS are files ns-leach_2.tcl and ns-bsapp_2.tcl
2. You have to rename file to ns-leach_2 to ns-leach.tcl and you can simulate modified protocol LEACH
3. You have to rename file to ns-bsapp_2.tcl to ns-bsapp.tcl and you can simulate modified protocol LEACH-C
4. You have to use option alg=pegasis in leach_test. Option num_clusters MUST BE 1 like this: num_clusters=1. Only if you want to simulate PEGASIS of course
To Search:
File list (Check if you may need any files):
ns-234-leach_Modified\apps\app.cc
.....................\....\app.h
.....................\common\mobilenode.cc
.....................\......\packet.cc
.....................\......\packet.h
.....................\leach_test
.....................\mac\channel.cc
.....................\...\ll.h
.....................\...\mac-sensor-timers.cc
.....................\...\mac-sensor-timers.h
.....................\...\mac-sensor.cc
.....................\...\mac-sensor.h
.....................\...\mac.cc
.....................\...\phy.cc
.....................\...\phy.h
.....................\...\wireless-phy.cc
.....................\...\wireless-phy.h
.....................\Makefile
.....................\Makefile.in
.....................\mit\leach_sims\test_simulations\leach\conditions.txt
.....................\...\..........\................\.....\leach.alive
.....................\...\..........\................\.....\leach.alive.txt
.....................\...\..........\................\.....\leach.data
.....................\...\..........\................\.....\leach.data.txt
.....................\...\..........\................\.....\leach.energy
.....................\...\..........\................\.....\leach.energy.txt
.....................\...\..........\................\.....\leach.err
.....................\...\..........\................\.....\leach.out
.....................\...\..........\................\.....\startup.energy
.....................\...\..........\................\.....\TDMAschedule.0.txt
.....................\...\..........\................\.....\TDMAschedule.100.txt
.....................\...\..........\................\.....\TDMAschedule.120.txt
.....................\...\..........\................\.....\TDMAschedule.140.txt
.....................\...\..........\................\.....\TDMAschedule.160.txt
.....................\...\..........\................\.....\TDMAschedule.180.txt
.....................\...\..........\................\.....\TDMAschedule.20.txt
.....................\...\..........\................\.....\TDMAschedule.200.txt
.....................\...\..........\................\.....\TDMAschedule.220.txt
.....................\...\..........\................\.....\TDMAschedule.240.txt
.....................\...\..........\................\.....\TDMAschedule.260.txt
.....................\...\..........\................\.....\TDMAschedule.280.txt
.....................\...\..........\................\.....\TDMAschedule.300.txt
.....................\...\..........\................\.....\TDMAschedule.320.txt
.....................\...\..........\................\.....\TDMAschedule.340.txt
.....................\...\..........\................\.....\TDMAschedule.360.txt
.....................\...\..........\................\.....\TDMAschedule.380.txt
.....................\...\..........\................\.....\TDMAschedule.40.txt
.....................\...\..........\................\.....\TDMAschedule.400.txt
.....................\...\..........\................\.....\TDMAschedule.420.txt
.....................\...\..........\................\.....\TDMAschedule.60.txt
.....................\...\..........\................\.....\TDMAschedule.80.txt
.....................\...\..........\................\.....-c\aaa_info
.....................\...\..........\................\.......\conditions.txt
.....................\...\..........\................\.......\leach-c.alive
.....................\...\..........\................\.......\leach-c.alive.txt
.....................\...\..........\................\.......\leach-c.data
.....................\...\..........\................\.......\leach-c.data.txt
.....................\...\..........\................\.......\leach-c.energia.txt
.....................\...\..........\................\.......\leach-c.energy
.....................\...\..........\................\.......\leach-c.err
.....................\...\..........\................\.......\leach-c.out
.....................\...\..........\................\.......\startup.energy
.....................\...\........