LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   running leach on ns2.34 (https://www.linuxquestions.org/questions/linux-software-2/running-leach-on-ns2-34-a-860250/)

deepa_2111 06-15-2011 11:12 PM

hey asrmaster,

from what i have analysed, the problem is due to the manner in which the channel is implemented. I have posted my reply on the other thread. i havent run on ns2.1b5, but ns2.35 gives me the smae resutls as yours

asrmaster 06-16-2011 11:48 PM

Hi deepa,

Thanks for your reply and help.

But, I have a question.
The your results in ns-2.35 are equivalent to my results in the ns-2.1b5 or ns-2.34?

Quote:

Originally Posted by deepa_2111 (Post 4387123)
hey asrmaster,

from what i have analysed, the problem is due to the manner in which the channel is implemented. I have posted my reply on the other thread. i havent run on ns2.1b5, but ns2.35 gives me the smae resutls as yours


deepa_2111 06-17-2011 11:32 PM

hi asrmaster,

sorry for being unclear.
my ns2.35 results match your ns2.34 results.

am in the process of fixing the channel. Can you please do me a favour ? Can you send me your ns2.1b5 's leach.out ?
can you please enable 'quiet' (set the parameter to 0) in uamps.tcl, re-run it and send me the output file leach.out (in ns2.1b5) ? just want to verify what happens when a cluster head dies on the ns2.1b5 version.

also, can you tell me which version of linux you used to install ns2.1b5 ?

Your help would be appreciated a lot .. thanks in advance
Deepa

louk_88 08-04-2011 07:30 AM

Energy consumption
 
Hello

Can u give me the methode to calculate the energy consumption of nodes in NS2 (scripts or tcl code)? or any other information that can help me.

Thank you

subzero155 08-23-2011 11:27 AM

LEACH on ns2.35
 
@deepa_2111. Can you please explain how you added LEACH on ns2.35? I am using cygwin. Thanks a lot


Quote:

Originally Posted by deepa_2111 (Post 4314733)
hey !

I have just added LEACH to Ns 2.35. HAd to make a couple of changes, but it has passed all the validation tests.
Now, while trying to run LEACH, am stuck at ::

couldn't read file "/usr/local/ns-allinone-2.35-RC4
/ns-2.35/mit/rca
/ns-ranode.tcl": no such file or directory
while executing
"source.orig {/usr/local/ns-allinone-2.35-RC4
/ns-2.35/mit/rca
/ns-ranode.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 $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_leach.tcl" line 187)

I know this is from uamps.tcl. I know the file is there, and the env variables are set. Have seen this question on a couple of forums, but not able to figure out how to fiz this. Please help !


narendra kumar patel 09-27-2011 01:47 AM

mit leach in ns2.34
 
i have installed ns-leach2.34 in ns2.34.the test command in run successfully. but in leach.out file the following errors occured.plz help me. what should i done.





couldn't read file "/home/narendra/simulator/NS-allinone-2.34/NS-2.34/mit/rca/ns-ranode.tcl": no such file or directory
while executing
"source.orig /home/narendra/simulator/NS-allinone-2.34/NS-2.34/mit/rca/ns-ranode.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 $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)

upender 11-13-2011 12:56 AM

help for ns2
 
could you please help me
im doing project with ns2
i have one problem that is how to make a node to dead randomly in ns2

upender 11-13-2011 12:59 AM

pleese help me
 
how to make deadnodes in ns2 help me it's urrgenttt............

scoder 03-04-2012 12:41 PM

@deepa_2111...
i am also trying to implement LEACH on ns2.35.
How did you go about this?? Which patch of LEACH did you use??
Its a little important for my project to kickstart. Kindly help!!
Need steps in brief.
Thx in advance.

scoder 03-05-2012 11:18 AM

LEACH in ns2.35?
 
hi all;
anyone of you has implemented LEACH in ns2.35??
Kindly guide me..as i am stalled because of this.
Please help!!

knudfl 03-05-2012 11:29 AM

# 40, @ scoder.

Post # 249 here
http://www.linuxquestions.org/questi...79/page17.html

scoder 03-05-2012 11:34 AM

@knudfl
I went through the link earlier also. deepa_2111 has not given detailed steps.
Need to implement LEACH to kickstart things.
Any other link??
@deepa_2111...are you reading this?? for benefit of beginners like me, kindly give us steps you took in ns2.35.

knudfl 03-05-2012 03:44 PM

# 42.

Well, you know that you can install leach on ns-2.34, if you have a usable OS.

I.e. you can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.

.

shailu 05-09-2012 03:18 AM

@ knudfl

can u please tell me what pp means in tcl script that is provided in nsleach.

knudfl 05-10-2012 04:48 AM

#44
Quote:

... what pp means in tcl script that is provided in ns-leach.tcl
Don't know.
Another example using pp :
http://wiki.tcl.tk/1821
>>> Powerpoint - export slides to images.
$pp Quit
unset pp

I guess you will have to learn tcl to find an answer.

.


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