LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-13-2013, 06:38 AM   #1
sweetgrl07
LQ Newbie
 
Registered: Feb 2013
Posts: 9

Rep: Reputation: Disabled
problem in running leach algorithm in ns2 simulator on ubunto 12.04


while running leach algorithm in ns2 tcl script i found this error
no such variable
(read trace on "env(uAMPS_LIBRARY)")
invoked from within
"source $env(uAMPS_LIBRARY)/ns-bsapp.tcl"
(file "le.tcl" line 9)
can anyone tell me whats a exactly problem in this and how it is solved..
 
Old 02-13-2013, 08:30 AM   #2
sweetgrl07
LQ Newbie
 
Registered: Feb 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
during installation of ns2 all in one package creates problem
i have ns-allinone-2.35 in home folder but i cant acess it
this problem occur
shruti@shruti-Inspiron-N4010:~$ cd /home/a/ns-allinone-2.35
bash: cd: /home/a/ns-allinone-2.35: No such file or directory
shruti@shruti-Inspiron-N4010:~$
how should i solve it
 
Old 01-08-2014, 03:26 AM   #3
mirbaha
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
problem with result in run leach in ns2.34 in ubuntu 12.04

hi all
I installed ns2 in ubuntu 12.04 and run leach on it without any error(I fixed them)
but there is no valid output I think, I saw this problem later that no one know it.
can any one help me where is the problem?
http://www.4shared.com/file/iEc3lORcba/leach.html


Creating sensor nodes...
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)
*** NOTE: no connection pattern specified.
Loading scenario file...
Node 0: (65.745973803916002,92.581722416254564)
Node 1: (21.008649990432268,92.380389195112684)
Node 2: (37.201202259027028,40.606367467253641)
Node 3: (71.218022131928251,61.297971318148988)
Node 4: (35.003944130150579,11.288995440718249)
Node 5: (34.146372151629237,98.076752432657756)
.
.
.
Node 99: (44.071560420129238,10.71598111219517)
Max Distance for this Simulation is 139.0
Load complete...
Starting Simulation...
THRESH = 0.050000000000000003
0: *******************************************
THRESH = 0.050000000000000003
1: *******************************************
THRESH = 0.050000000000000003
2: *******************************************
THRESH = 0.050000000000000003
3: *******************************************
THRESH = 0.050000000000000003
4: *******************************************
THRESH = 0.050000000000000003
5: *******************************************
THRESH = 0.050000000000000003
.
.
.

THRESH = 0.050000000000000003
99: *******************************************
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
0: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
1: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
2: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
3: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
4: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
.
.
.
99: Warning!!! No Cluster Head ADVs were heard!
Data being sent to the Base Station
Data was sent to the base station
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
.
.
.
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
Warning! There are no nodes in this cluster (11)!
Data being sent to the Base Station
Data was sent to the base station
Warning! There are no nodes in this cluster (26)!
Data being sent to the Base Station
Data was sent to the base station
.
.
Node 0 is DEAD!!!!
Node 1 is DEAD!!!!
Node 2 is DEAD!!!!
Node 3 is DEAD!!!!
Node 4 is DEAD!!!!
Node 5 is DEAD!!!!
.
.
.
Node 94 is DEAD!!!!
Node 95 is DEAD!!!!

At 1.0999999999999999:
Total Energy = 30125.543246939353
Total Data = 0
Total Alive = 4

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 222.8



as we see , at end Total data is 0 and all of the nodes dead!!!
help plsss
 
  


Reply



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
running leach on ns2.34 Stanley33 Linux - Software 76 12-06-2015 11:21 AM
[SOLVED] Running leach protocol on ns2 !! errors !! shanky Linux - Networking 6 07-08-2013 04:18 AM
problem in installing ns-2.1b5 in fedora 14 for implement leach algorithm jayakumarksrit Linux - General 2 04-28-2011 10:30 PM
[SOLVED] NS2 LEACH make problem dkpcad Linux - Wireless Networking 2 10-02-2010 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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