LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-15-2011, 11:12 PM   #31
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 261Reputation: 261Reputation: 261

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
 
Old 06-16-2011, 11:48 PM   #32
asrmaster
LQ Newbie
 
Registered: Feb 2011
Posts: 5

Rep: Reputation: 0
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 View Post
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
 
Old 06-17-2011, 11:32 PM   #33
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 179

Rep: Reputation: 261Reputation: 261Reputation: 261
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
 
Old 08-04-2011, 07:30 AM   #34
louk_88
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Rep: Reputation: Disabled
Question 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
 
Old 08-23-2011, 11:27 AM   #35
subzero155
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
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 View Post
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 !
 
Old 09-27-2011, 01:47 AM   #36
narendra kumar patel
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
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)
 
Old 11-13-2011, 12:56 AM   #37
upender
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
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
 
Old 11-13-2011, 12:59 AM   #38
upender
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Unhappy pleese help me

how to make deadnodes in ns2 help me it's urrgenttt............
 
Old 03-04-2012, 12:41 PM   #39
scoder
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
@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.
 
Old 03-05-2012, 11:18 AM   #40
scoder
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
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!!
 
Old 03-05-2012, 11:29 AM   #41
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 40, @ scoder.

Post # 249 here
http://www.linuxquestions.org/questi...79/page17.html
 
Old 03-05-2012, 11:34 AM   #42
scoder
LQ Newbie
 
Registered: Mar 2012
Posts: 6

Rep: Reputation: Disabled
@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.
 
Old 03-05-2012, 03:44 PM   #43
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

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

.
 
Old 05-09-2012, 03:18 AM   #44
shailu
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
@ knudfl

can u please tell me what pp means in tcl script that is provided in nsleach.
 
Old 05-10-2012, 04:48 AM   #45
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

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

.
 
  


Reply

Tags
leach, leach-ns234, leach-ns235, tcl-pp


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
installing leach patch in ns2.34 in ubuntu9.10 g_vaibh Ubuntu 13 04-29-2014 05:17 PM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
Leach Installation on NS2 Asmaa Seyam Linux - General 3 10-19-2010 12:31 PM
[SOLVED] NS2 LEACH make problem dkpcad Linux - Wireless Networking 2 10-02-2010 09:04 AM


All times are GMT -5. The time now is 05:22 AM.

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