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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
01-18-2014, 12:46 PM
|
#31
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 29 .
"test" and "leach_test" are text files. Please read the files,
to know that 'test' will run 'leach_test'.
*** Please read the leach threads
http://www.linuxquestions.org/questions/tags/leach/
-
|
|
|
01-20-2014, 08:03 AM
|
#32
|
Member
Registered: Jan 2014
Posts: 52
Rep:
|
@knudfl,
hello sir, yes i know that test file internally calls leach_test.I have attached my output files in post #30.please check it tell me what is exact problem and why i m getting output like this.please help..
|
|
|
01-21-2014, 04:52 AM
|
#33
|
Member
Registered: Jun 2010
Location: India
Distribution: Ubuntu
Posts: 128
Rep:
|
Problem accessing your website
Quote:
Originally Posted by senthiya
im getting this result after following your comments
[CODE]----------------------------------------------------------------------------------
gt-itm: /home/senthiya/Desktop/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
cp: cannot stat `/usr/local/ns-allinone-2.34/paulson/.set/ns2.sh': No such file or directory
----------------------------------------------------------------------------------
-e * Modified By Paulson
-e * http://paulson.in
-e * Email : intouch.paul@gmail.com
-e Type the following command in a terminal
-e source /etc/profile.d/ns2.sh
------------------------------------
----------------------------------------------------------------------------------
For trouble shooting, please visit my site
http://paulson.in
pls help me
|
I tried accesssing your website but it is not getting opened.
|
|
|
01-31-2014, 02:52 PM
|
#34
|
LQ Newbie
Registered: Feb 2012
Posts: 7
Rep:
|
@keepwalking123
Hello, I had the same problem as you (invalid commande Energy/Resource) and I changed my gcc to gcc-4.3 and every time I got the same error, please help me I'm very stuck, I try to apply all the thread but no result
|
|
|
02-04-2014, 03:27 AM
|
#35
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 34 .
gcc-4.3 / g++-3.4 worked OK with ns2 for a short while three years ago.
! Now you will have to use gcc / g++ version 4.1.2 !
? Which OS are you using ? Name and version, please.
And show the reply from the command $ uname -m <Enter>
-
Last edited by knudfl; 02-04-2014 at 03:29 AM.
|
|
|
02-25-2014, 03:04 AM
|
#36
|
Member
Registered: Jan 2014
Posts: 52
Rep:
|
hello all..can anybody provide me package of energy leach protocol..actually i want it as a base for my project..please help me..waiting for your repliess..please..
|
|
|
04-12-2014, 02:04 AM
|
#37
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep:
|
leach.out file
Creating sensor nodes... - uAMPS.tcl
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 (100 == BS) - uAMPS.tcl
*** NOTE: no connection pattern specified. - wireless.tcl
Loading scenario file... - wireless.tcl
Node 0: (67.837825076579037,0.95365322239401429) - nodescen
Node 1: (5.6106347616811441,59.567387057266842) - nodescen
.............
.............
Node 1 sending {{1 , 676.96394838678543}} to BS at time 676.97334572120894 - ns-leach.tcl
BS Received data 88 , 676.96394829061455 from 88 at time 677.00115048523071 - mit/uAMPS/ns-bsapp.tcl
This represents data from nodes: 90 - mit/uAMPS/ns-bsapp.tcl
BS Received data 1 , 676.96394838678543 from 1 at time 677.03797213345365 - mit/uAMPS/ns-bsapp.tcl
This represents data from nodes: 86 - mit/uAMPS/ns-bsapp.tcl
90 sending data {90 , 677.13321014530663} to 88 at 677.13321014530663 (dist = 43.592346339591224) - ns-leach.tcl
86 sending data {86 , 677.13321019339207} to 1 at 677.13321019339207 (dist = 58.017970555445295) - ns-leach.tcl
CH 88 received data (90 , 677.13321014530663) from 90 at 677.16554829061454 - ns-leach.tcl
CH 88 must now perform comp and xmit to BS. - ns-leach.tcl
compute_energy = 0 - ns-leach.tcl
Node 88 sending {{88 , 677.16554829061454}} to BS at time 677.17234283058713 - ns-leach.tcl
CH 1 received data (86 , 677.13321019339207) from 86 at 677.16554838678542 - ns-leach.tcl
CH 1 must now perform comp and xmit to BS. - ns-leach.tcl
compute_energy = 0 - ns-leach.tcl
Node 1 sending {{1 , 677.16554838678542}} to BS at time 677.17295704498042 - ns-leach.tcl
Node 86 is DEAD!!!! - ns-leach.tcl
At 677.20000000008542: - mit/uAMPS/stats.tcl
Total Energy = 199.53078228997774
Total Data = 43541
Total Alive = 1
Simulation complete. - mit/uAMPS/stats.tcl
num_nodes is set 101
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5, distCST_ = 221.2
sir this my leach.out for exidus-pegasis-leach-ns234.patch.tar protocol, is it correct?
If it is correct for both(leach and exidus pegasis) then sir please explain a little bit this output.
Thanks sir....
Last edited by shahidz; 04-12-2014 at 02:11 AM.
|
|
|
04-12-2014, 02:59 AM
|
#38
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 37 .
Looks OK. My `leach.out' is 8.3 MB and has 95,114 lines.
Pegasis : The "out file" is `pegasis.out'.
* Choosing one of the three options = leach, leach_c, pegasis :
* The settings are done in "ns-2.34/leach_test", line 5. Default is : alg=leach
* You'd simple select pegasis by editing to : alg=pegasis
... and then also some more edits : See #289 ↓ ↓
"exidus" is the name of the LQ member, who made the "patch package" exididus-pegasis..
, see post #289 here http://www.linuxquestions.org/questi...68/page20.html
""Manual how to use modified LEACH,LEACH-C and PEGASIS
1. In folder mit/uAMPS are files ns-leach_2.tcl and ns-bsapp_2.tcl
2. You have to rename file to ns-leach_2 to ns-leach.tcl and you can simulate modified protocol LEACH
3. You have to rename file to ns-bsapp_2.tcl to ns-bsapp.tcl and you can simulate modified protocol LEACH-C
4. You have to use option alg=pegasis in leach_test. Option num_clusters MUST BE 1 like this: num_clusters=1. Only if you want to simulate PEGASIS of course ...... ""
-
|
|
|
04-14-2014, 05:28 AM
|
#39
|
LQ Newbie
Registered: Mar 2014
Posts: 16
Rep:
|
leach,leah_C and pegasis simulation:
sir i get 694demo.tr file, where is the name.awk file to analyze these protocol?
|
|
|
06-22-2014, 06:09 AM
|
#40
|
LQ Newbie
Registered: Jun 2014
Posts: 9
Rep:
|
couldn't read file "../../rca/ns-ranode.tcl"
hi,keepwalking123
I got the exactly this problem with you, could you tell me how to solve the problem?
Quote:
Originally Posted by keepwalking123
hello knudfl sir,I m using ubuntu 12.04 with ns2.34 for leach protocol.I have done all the steps as your post#24. but my leach.err contains this error
couldn't read file "../../rca/ns-ranode.tcl": no such file or directory
while executing
"source.orig ../../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 ../../rca/ns-ranode.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)
please help.
i have changed path in uAMPS.tcl also.but still error persists.
|
|
|
|
All times are GMT -5. The time now is 06:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|