how to integrate the "Resource/Energy" leach class into NS-2.34?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed ns-2.34 on ubuntu and also followed the instructions to install leach on it.I have run simulations successfully to measure network lifetime, energy consumption for different number of nodes.I now want to change the cluster head probability and get the graph for this by changing the CH probabalilty.Where do i change this parameter in the code to get the desired results ??
I have followed many steps from this form and it was too helpful for me in running leach.
I'm using ubuntu platform and at last after completing all the process in the terminal I'm getting nothing to be done.
According to the older posts its not a prob. But, after running the leach_test in the simulation results the file leach.err contains a statement "./leach_test: line 37: ns: command not found"
@ deepa thnx dear
but when ever i run ./leach_test it gives no results.
and in ./test file it is set that ./leach_test file will be running whenever ./test command wil be executed.
can u plz help me where can i deifne mobility for all the sensor nodes.
Regards
@Hi shanky..!
can you plz help me to generate graphs for leach protocol.
regards
Thank you for helping me. I got rid of that prob.
Now i would like to change the criteria for cluster head changing. So, can please help in finding where i have to change the codes so that it works as required for me....?
@ engr
Hi
what i have done is ,i ran a lot of simulations changing parameters like number of nodes,number of cluster heads and then tabulated the results of network lifetime,energy consumed,data throughput,number of nodes alive.Using these results in word excel i got the graphs.
If in case you are aware of a better methodology to generate graphs please let me know.
Can you help in knowing how to change the criteria for cluster head changing. Please help me in finding where i have to change the codes so that it works as required for me....?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.