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 am trying to find a leach protocol implementation for ns2.34 but all links available are dealing with ns2.27
Are the instructions valid for ns2.34???
Thank you. I installed Leach...but in leach.out I get many warnings. Moreover results are odd. If 2J per node was initial condition how can 350 J be result energy.
Hello all! I was working with Leach protocol. Can anyone tell me as to why 5% would be the most optimal value. Is there any mathematical derivation possible? Also the group G would mean all nodes that have not become cluster heads in the last (1/p) rounds. Why 20 rounds? Why would these 2 be related?
Please fo through the Phd Thesis on LEACH by W. Heizelmann. Its's clearly mentioned there why 20sec is chosen as each round.
Adter many simulations, 5% was found to be the optimal value. Forgot which paper had that, but has come across it an year ago. If I find the paper, shall post a link.
oh ok .. Can you post the link here ?
Do you mean the LEACH journal paper ?
I had simulation results with the 5% in some other paper.
The same paper talked about LEACH giving 8 times the performance gain over direct transmission
could anyone give me the step by step instructions (just like ns2.27 given by knudfl and other) about how to install the ns2.34 on ubuntu 10.10 and the instructions about how to install leach on ns2.34 for the ubuntu 10.10?
cd ns-allinone-2.34/ && export CC=gcc41 CXX=g++41 && reboot && ./install
after ./install i found 1 error
-----------------------------
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
-----------------------------------------
Why is that error occurring and how can i resolve this?
@knudfl: Thank you..now the error is like that..
-------------------------------------------------
/opt/ns-allinone-2.34/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/opt/ns-allinone-2.34/otcl-1.13/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
----------------------------------------------
How can i resolve this?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 14.
Either start from scratch with a new unpacked ns-allinone-2.34.tar.gz.
Or : cd ns-allinone-2.34/tcl8.4.18/unix/ && make clean &&
cd ../../tk8.4.18/unix/ && make clean && cd ../../otcl-1.13/ && make clean
Also : Make sure that any Makefile present in the three above gets deleted,
after you have done 'make clean'.
( Not all 'make clean' will remove the Makefile ).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.