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.
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
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
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
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
@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
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 !
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)
@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.
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.