LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-26-2010, 10:39 PM   #136
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

@ wcdj, welcome to LQ. .. .. ..

#131 : Well, that's just the way "test" was made.
'wireless-demo-csci694.tcl' is run first, and next the file
" #Topology " in leach_test, which is another tcl script.

#132 : As far as I remember : In one file, x and y
should be changed to a lower value.
Why not just try it out with x=100 y=100 .
The test is described in post # 6, long time since,
( about ten months ) and I don't remember it all.
......
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-27-2010, 03:53 AM   #137
deepak.stoic
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
I have the following error

invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/home/deepak/ns/ns-2.34/mit/rca//resources/ns-energy-resource.tcl" line 11)
invoked from within
"source.orig /home/deepak/ns/ns-2.34/mit/rca//resources/ns-energy-resource.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)/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 18)
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)

I am using ubuntu 10.10, ns2.34 and tarik-ns234-leach. Please help.
Deepak
 
Old 11-27-2010, 06:52 AM   #138
emtarik05
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 3
Quote:
Originally Posted by wcdj View Post
Hi,I am a newbie here and glad to see everyone.
the original test file is like this,
#!/bin/bash
cd tcl/ex
ns wireless-demo-csci694.tcl
sleep 2

cd ../../
./leach_test
=======
My question is that why run wireless_demo-.. before leach_test, why do this? thx a lot!

you can execute leach_test directly
you don't need to this file
 
1 members found this post helpful.
Old 11-27-2010, 07:03 AM   #139
emtarik05
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 3
Quote:
Originally Posted by wcdj View Post
Hello, everyone, I find a mistake that in the leach_test file, x=1000 y=1000, but in the 100nodes.txt file the nodes are all in 100*100. Is this an error? If is, maybe we must modify the genscen file i think. thank you !
in leach_test we fixe the size of the filed.

to generate the topology they use the three files nodescen.tcl genscen.tcl and 100nodes.txt

in genscen.tcl coordinates are generated randomly and stored in 100nodes.txt
nodescen use this file 100nodes.txt generate the topology (node($i) set x, ....)

be care the size of the topology generated bay nodescen must be small or equal to the size fixed in leach_test

good luck
 
1 members found this post helpful.
Old 12-01-2010, 08:16 AM   #140
wcdj
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Thank you!
I have another question that i simulate leach-c protocol using default options and only change "alg=leach-c" option, but the simulation shows that the leach-c is worse than leach.
btw, the position of base station is (50,175). thanks a lot!
 
Old 12-01-2010, 08:25 AM   #141
wcdj
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Sorry, i cannot execute mte protocol, when i made it, i found the mte.err like following: INITIALIZE THE LIST xListHead
And mte.alive, mte.data, etc are null files. I have no idea about this. plz help me! thank you.
 
Old 12-01-2010, 08:39 AM   #142
wcdj
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by emtarik05 View Post
in leach_test we fixe the size of the filed.

to generate the topology they use the three files nodescen.tcl genscen.tcl and 100nodes.txt

in genscen.tcl coordinates are generated randomly and stored in 100nodes.txt
nodescen use this file 100nodes.txt generate the topology (node($i) set x, ....)

be care the size of the topology generated bay nodescen must be small or equal to the size fixed in leach_test

good luck
i don't know why set x and y in the leach_test file, bcz the 100nodes.txt tells us the size of networking implicitly. thank you very much.

Last edited by wcdj; 12-01-2010 at 08:43 AM.
 
Old 12-01-2010, 01:51 PM   #143
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
... Deleted ...


...

Last edited by knudfl; 12-01-2010 at 01:55 PM.
 
Old 12-05-2010, 01:24 AM   #144
wcdj
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
I am very grateful if anyone could help me, thank you!

Last edited by wcdj; 12-05-2010 at 08:53 AM.
 
Old 12-06-2010, 05:55 AM   #145
hariss7
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Rep: Reputation: 0
hi can any tell me how i run leach_test file..?
 
Old 12-06-2010, 09:07 AM   #146
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
Post # 145, @hariss7.

May be the explanations in posts #138, #139 by @emtarik05 will do ?


Generally about "test" : Post # 6.

..
 
Old 01-01-2011, 12:04 AM   #147
norisknolife
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
can any one help me as i am having these lines printed on screen when i run wireless.tcl. what should i do to have the LEACH simulation results further?
Usage: tcl/ex/wireless.tcl
mandatory arguments:
[-x MAXX] [-y MAXY]
optional arguments:
[-cp conn pattern] [-sc scenario] [-nn nodes]
[-seed seed] [-stop sec]
 
Old 01-06-2011, 06:07 AM   #148
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
Post # 147, @norisknolife.

'tcl/ex/wireless.tcl' is not a leach file. AFAIK.

Using tcl/ex/wireless.tcl, example :
cd ns-allinone-2.27/tcl/ex/ && ns wireless.tcl
 
Old 01-30-2011, 06:57 PM   #149
sawyer
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Rep: Reputation: 0
Hi, Please answer any of the three questions of mine

I am getting this following error in leach.err file please give me solution

invalid command name "Resource / Energy"
while executing while executing
"Resource/Energy instproc setParams {args} { "Resource / Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_ $ Self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0] set energyLevel_ [lindex $ args 0]
set alarmLevel_ [lind..." set alarmLevel_ [lind ... "
(file "mit/rca/resources/ns-energy-resource.tcl" line 11) (File "mit / rca / resources / ns-energy-resource.tcl" line 11)

2nd question)

I have installed same NS2 on Ubuntu 10.04 but I didnt get the problem with that error I am getting problem with Ubuntu 9.10

In the values of Static clustering, the values dont change after timeperiod 60 secs, the values remain same till timeperiod 1360
why is this?

3rd) for the values for MTE, base station is not recieving any data

Thank you,

Please leave me email at niketh6@gmail.com
 
Old 01-30-2011, 11:30 PM   #150
nicktickson122
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Rep: Reputation: 1
I just altered the attempt record as it was in the 6th aviator and it worked. yes the difficulty was it was in alternative entryway through MS morpheme (a Inebriant effort). I fair edited the tryout record and ransomed it and run the ./test. I didnt get any errors..(only irritating warnings)
 
  


Closed Thread

Tags
leach, leach-ns227, ns2, ns227



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 3 02-17-2015 03:21 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 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