LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-11-2011, 12:10 AM   #1
pushpita
LQ Newbie
 
Registered: Aug 2011
Location: India
Posts: 4

Rep: Reputation: Disabled
Leach Protocol for ns2.34


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???
 
Old 08-11-2011, 04:45 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Leach for ns-2.34, files and instructions, post # 5 here :
http://www.linuxquestions.org/questi...2-34-a-870368/

Extra links for the above, post # 28 :
http://www.linuxquestions.org/questi...368/page2.html

All LEACH information : LQ Search , Tag = leach

..

Last edited by knudfl; 08-11-2011 at 05:04 AM.
 
1 members found this post helpful.
Old 08-23-2011, 12:11 AM   #3
pushpita
LQ Newbie
 
Registered: Aug 2011
Location: India
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-23-2011, 01:36 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
If 2J per node was initial condition how can 350 J be result energy
I think there is a debate about the "energy" in one or two of the very long leach threads.
See post #2 for the 'Search link'.

#94 #95 http://www.linuxquestions.org/questi...368/page7.html
etc. #98 , etc.

..

Last edited by knudfl; 08-23-2011 at 01:38 AM.
 
Old 08-23-2011, 01:41 AM   #5
green022
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
the interesting topic

Content like this is a great change of pace for me. I feel fervently about this and I like learning about this subject
 
Old 09-06-2011, 12:26 AM   #6
pushpita
LQ Newbie
 
Registered: Aug 2011
Location: India
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-30-2012, 07:45 AM   #7
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
Pushpita,

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.

Regards,
Deepa
 
1 members found this post helpful.
Old 01-30-2012, 10:57 AM   #8
pushpita
LQ Newbie
 
Registered: Aug 2011
Location: India
Posts: 4

Original Poster
Rep: Reputation: Disabled
I found the paper. Its the journal paper which has the details.
 
Old 01-30-2012, 11:18 PM   #9
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
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
 
Old 03-30-2012, 02:42 AM   #10
auvikuet
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
Hi everyone

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?

Thanks in advance...
 
Old 03-30-2012, 03:26 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10, @auvikuet : Duplicate posts are not allowed. Read the rules.
http://www.linuxquestions.org/questi...ml#post4640393
>> Just read the complete thread.

And post # 11 , and post # 9 here
http://www.linuxquestions.org/questi...dora13-907076/

Ubuntu 10.10 : sudo apt-get install g++-4.1
cd ns-allinone-2.34/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

Or use "g++41-compat" http://www.linuxquestions.org/questi...asim-932264/#6
cd ns-allinone-2.34/ && export CC=gcc41 CXX=g++41 && ./install


And : Welcome to LQ. .. ..


.

Last edited by knudfl; 03-30-2012 at 05:11 AM.
 
Old 03-30-2012, 05:40 AM   #12
auvikuet
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
@knudfl: Thanks for your response and sorry for my duplicate post

I did what you told me to do..

use "g++41-compat" http://www.linuxquestions.org/questi...asim-932264/#6

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?
 
Old 03-30-2012, 06:22 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 12

You'd probably forgotten one or more build requisites :

sudo apt-get install g++ make autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev
 
Old 03-30-2012, 07:13 AM   #14
auvikuet
LQ Newbie
 
Registered: Mar 2012
Posts: 13

Rep: Reputation: Disabled
@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?
 
Old 03-30-2012, 08:40 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ).

.
 
  


Reply

Tags
leach, ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 4 09-14-2014 10:16 AM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration