LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Closed Thread
 
Search this Thread
Old 11-23-2011, 05:09 AM   #226
tani_a
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled

can anyone say how to work leach protocol in ns2.34 fedora

if some one has code please please mail to tanweer664@yahoo.com
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-23-2011, 07:18 AM   #227
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
Post # 226, @ tani_a : Welcome to LQ.

LEACH for ns-2.34, post #5 here ...
http://www.linuxquestions.org/questi...34-a-870368/#5

Fedora http://www.linuxquestions.org/questi...dora13-907076/

..

Last edited by knudfl; 11-23-2011 at 07:24 AM.
 
Old 12-01-2011, 06:50 AM   #228
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
# 226, # 227.

Ref. your email from today : ""please send make file of leach ns2.28""

Answer :
The LEACH Makefile's for ns-2.27 are linked here
http://www.linuxquestions.org/questi...atch-916400/#2

There is no LEACH for ns-2.28.

.
 
Old 12-04-2011, 10:39 AM   #229
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
Mail from tani_a : Quote ...""
Code:
                     i got this message running leach

can't read "env(RCA_LIBRARY)": no such variable
    while executing
"source $env(RCA_LIBRARY)/ns-ranode.tcl"
    (file "mit/uAMPS/sims/uamps.tcl" line 9)
    invoked from within
"source.orig mit/uAMPS/sims/uamps.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source mit/uAMPS/sims/uamps.tcl"
    (file "tcl/mobility/leach.tcl" line 18)
    invoked from within
"source.orig tcl/mobility/leach.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source tcl/mobility/$opt(rp).tcl"
    (file "tcl/ex/wireless.tcl" line 187)

my set path is
export PATH=$PATH:/home/hasnain/ns-allinone-2.34/bin:/home/hasnain/ns-allinone-2.34/tcl8.4.18/unix:/home/hasnain/ns-allinone-2.34/tk8.4.18/unix
Regards , Tanweer"" : End of quote.


Answer :
1) What is the original command, that takes you to this error ?
2) Setting a PATH and an LD_LIBRARY_PATH : Not required.
Is just an old text. And impossible to do, if you have more than one
version of ns-allinone-2.xx.
3) All technical discussion is supposed to take place in your thread,
so everybody can read the answers.
Start a new thread >>> http://www.linuxquestions.org/questi...ux-software-2/
> "New Thread"

Last edited by knudfl; 02-09-2012 at 02:02 AM.
 
Old 12-10-2011, 11:01 AM   #230
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
New mail from tani_a :
Quote:
how can i update gcc 4.1.2 to gcc 4.3 version
Answer :
Which Fedora version ? ?

Generally : The default gcc-4.1.2 in Fedora ( 8 ? )
will do for the most ns2.
NS-2.27 : Please use "compat-gcc-34-c++".
I.e. : # yum install compat-gcc-34-c++

Also general : You can have as many gcc versions as you want,
installed at the same time.

.

Last edited by knudfl; 12-10-2011 at 04:16 PM.
 
Old 12-11-2011, 01:21 AM   #231
tani_a
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
i want update gcc 4.1.2 to gcc 4.3 on fedora version 8

please help me in detail.
 
Old 12-13-2011, 06:41 AM   #232
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
# 231, @tani_a : Please do not use another members thread
for an off topic question.
This thread is about ns-2.27-LEACH only.

Start a new thread instead :
http://www.linuxquestions.org/questi...ux-software-2/
> > > "New Thread".

.
 
Old 12-27-2011, 04:02 AM   #233
tani_a
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
I need inter cluster communication in ns2.
please if some one has such model share with me.
 
Old 12-30-2011, 07:42 PM   #234
rami2007
LQ Newbie
 
Registered: Mar 2011
Posts: 5

Rep: Reputation: 0
I install ns-2.27 on Ubuntu 9.10. and i install leach based on this instructions on this posts ,

but now my problem with the results of energy consumption it is greater than the initial energy
for example if the initial energy of node is 5 J the final results of energy consumption of the same node is 11 J!!!

from where it gain the rest energy ? is it right ?

please if any one have any information please tell me ASAP.

Regards,
Anas Al-Roubaiey
KFUPM
 
Old 12-31-2011, 09:18 AM   #235
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
# 234 @rami2007.

An "Energy debate" is linked here, post #6

http://www.linuxquestions.org/questi...34-a-896658/#6
 
Old 01-04-2012, 09:26 AM   #236
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
Hi,

I had to increase the number of nodes in LEACH from 100 to 300. So, I had to increase the size of meta_ buffer in packet.h from 1000 to 2000. ns2 stops at app.c at line tcl.evalf in the recv function.

I think I have to increase the queue / buffer size, but am unsure as to which one to do so. Please help ?

Regards,
Deepa

P.S : Further, I tried increasing various queues in the various tcl files in the different folders. However, none of these seem to work. So, I guess there is some other parameter to be changed. But, am totally clueless.

Last edited by deepa_2111; 01-30-2012 at 07:43 AM.
 
1 members found this post helpful.
Old 02-08-2012, 07:49 AM   #237
khushbushah
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
Please send me this mit.tar.gz file for ns2.27

Quote:
Originally Posted by knudfl View Post
@ maunik : Click my name, send an email, and I will attach
mit.tar.gz + LEACH-Makefile-org to a return mail. ( 580 kB.)

.....
I want to use LEACH 2.27 but unfortunately i cant download mit.tar.gz+LEACH-Makefile-org from the specified links in forum.
please send me if anybody have.
 
Old 02-08-2012, 10:41 AM   #238
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,624

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
Post # 237, @khushbushah

Please use the links in post #4 here
http://www.linuxquestions.org/questi...each-862835/#4
 
Old 02-09-2012, 02:33 AM   #239
keepwalking
Member
 
Registered: Oct 2010
Posts: 46

Rep: Reputation: 0
Hello everone
Im trying to simulate my leader selection protocol on ns2 and I am a beginner on this field. I need some one who can help me with the C++ statement for random selection of a node to be a leader and the remaining energy based leader selection statement .
 
Old 02-10-2012, 10:00 AM   #240
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 264Reputation: 264Reputation: 264
@ keepwalking,

hi ...
am not sure what you mean

i think you can do a line by line conversion of the tcl code to C++ code as the logic for leader selection should remain the same.
Calculate the threshold for each node , and generate a random value for each node, and compare.
 
  


Closed Thread

Tags
leach, leach-ns227, ns2, ns227


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 1 03-21-2009 05:28 AM
NS2 installation ds_priyaa Fedora 2 05-28-2008 02:23 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM
ns2 installation pranoti Linux - Software 2 06-11-2007 12:45 AM
LXer: Interview with Bernard Leach (iPodLinux) LXer Syndicated Linux News 0 10-31-2006 11:33 AM


All times are GMT -5. The time now is 05:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration