Differences between LEACH results on ns2.1b5 and ns2.35
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.
Differences between LEACH results on ns2.1b5 and ns2.35
I have implemented LEACH on ns2.35. But, the simulation results vary highly from the LEACH paper. The energy consumption in ns2.35 seems to be 4-5 times that of the LEACH paper (which used ns2.1b5). So, I assume it is due to differences in ns2 versions.
I have implemented LEACH on ns2.35. But, the simulation results vary highly from the LEACH paper. The energy consumption in ns2.35 seems to be 4-5 times that of the LEACH paper (which used ns2.1b5). So, I assume it is due to differences in ns2 versions.
Is my assumption valid ??
exactly!
Im going to install ns2.1b5 un ubuntu instead of ns2.34, and I dont know really wich version of ubuntu really works with ns2.1b5. I have tried to install ns2.1b5 under ubuntu 11.04 but but I was not successfull in installing ns2.1b5, even with lower versions of gcc like gcc-3.3.
please share your experiences about wich linux distribution of linux (ubuntu if posible) is better for ns2.1b5 and leach. thank you...
I don't think you have much chance with an 11 year old ns-2.1b5.
The later ns-2.1b8 can be compiled with gcc/g++ version 3.2,
but that's a different story, and is not for LEACH.
But why not use ns-2.27 ?
..
Does LEACH work correclty in ns-2.27?
I didn't try that. According to this blog there is much differences between ns-2.1b5 as LEACH base and ns-2.27.
please tell me did you try LEACH on ns-2.27 and how was the result.
Hi,
i am trying to implement LEACH on ns2.35. Seems to be not much of help on web though. Some of you here have been able to implement it. Can somebody please guide me how to do it??
hi
i have installed leach on ns2.34 (ubuntu8.10) successfully, but the simulation results are as mentioned above worse than in the leach paper. The total energy consumed is above 300j for leach and 700j for leach-c
and nodes are dead at time 100 for leach and 50 for leach-c
i can't see what's the problem
i have read other posts (i have change the code in energy.cc and wirelesphy.cc as mentioned by @deepa_211...) but without change in the simulation results
i have read olso that @asrmaster (in thread #30 "running leach on ns2.34") have found correct results without changes in the code of leach in (ns-2.1b5)
but i can't find the leach implementation for ns-2.1b5
please can you help me
what is the ns2 version i must use
thanks
thanks for your fast reply
i have read those threads and i have made the changes in the files(wirelessphy,energy.cc) but without results i ask if i should change the ns2 version, cause this version that i use generate bad results even after the changes (in some threads there is some people have obtained good results...)
if someone who have obtained correct results, advise me what version of ns2 and leach i should use
please help i have no time !
yes i did make clean and make but i know the stupid mistke i made
sorry i have read the fals tarce file (i have simulated the leach-c and read in leach.out file) the problem with total energy consumed is ok (total energy is less than 200j), but i still have the same problem with nodes which dead early
i know that the changes that you have mentioned are just for limiting the consumption of energy for nodes that are dead
but i think that we should find the source of the problem. as you have mentioned before may be the problem is in the chanel..!(i think that we should stop the function that invoke the remove function, not to stop the remove process after it have invoked)
i have an other question: how we send a message in leach
the function send invokes the function send_now and send_now invoke the function sendmsg (but i can't see how the sendmsg works) can you please explain me how it works ?
thanks (sorry for my bad english, i hope you can understand what i mean)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.