LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-31-2013, 01:38 AM   #511
kingrulez
LQ Newbie
 
Registered: Mar 2013
Posts: 18

Rep: Reputation: Disabled

Doubts on Pegasis protocol outputs!!

Need your help!

Hi,

Why this pegasis file is not TX/RX'ing any data?, where was the problem??, after running SPIN Mit project, I have executed all the protocols, and I am also able to see the required outputs of Leach and Leach-c and Stat-clustering except Pegasis and MTE. Why I am not getting any transmitted or received data from this two protocols?, please help me to solve this issue, I am eagerly waiting for your reply. Please take a look at the represented lines.

BS received info: (14.493734955086248 55.259433600706721 2) from Node 97 a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 98 - mit/uAMPS/ns-bsapp.tcl
BS received info: (22.725265204312869 74.533321277486777 2) from Node 98 a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 99 - mit/uAMPS/ns-bsapp.tcl
BS received info: (98.747841361327033 38.908460754392884 2) from Node 99 a nodik je 100 - mit/uAMPS/ns-bsapp.tcl
BS received: 100 - mit/uAMPS/ns-bsapp.tcl

At 10: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 20: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 30: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 40: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 50: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 60: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 70: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 80: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 90: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100


At 100: - mit/uAMPS/stats.tcl
Total Energy = 0.0059307213061996289
Total Data = 0
Total Alive = 100

Simulation complete. - mit/uAMPS/stats.tcl

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 280.4
 
Old 08-01-2013, 08:47 AM   #512
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
#511,

While I have not seen the Pegasis files, at first glance, looks like there might be a problem in the BS file .. where the data packets received are counted. Can you have a look at that ? Check the code to see how the data counter is updated.
 
2 members found this post helpful.
Old 08-01-2013, 10:21 AM   #513
kingrulez
LQ Newbie
 
Registered: Mar 2013
Posts: 18

Rep: Reputation: Disabled
Hi Deepa_2111,

Thanks for your kind response.

Sure, I can check the file of BS, and then I will let you know the output of pegasis.

Best Regards,
KSR.
 
Old 08-02-2013, 05:30 AM   #514
kingrulez
LQ Newbie
 
Registered: Mar 2013
Posts: 18

Rep: Reputation: Disabled
Hi Deepa_2111,

Thank you very much again for your reply.

Yes, you are right!!, there was a problem in ns-bsapp.tcl file, which is under the sending functions section. I have figured it out, and there is also an another file in the project folder, which is called ns-bsapp-2.tcl for the modifications of pegasis protocol. Now, it seems to be generating the proper output. If you like to see, please take a look at the following output lines.

42 sending data {42 , 1939.7898102607512} to 69 at 1939.7898102607512 (dist = 25.218547443428246) - ns-pegasis.tcl
Receiver 69 received data (42 , 1939.7898102607512) from 42 at 1939.7980523448132 and CH is 31 - ns-pegasis.tcl

At 1940: - mit/uAMPS/stats.tcl
Total Energy = 199.22567444968163
Total Data = 207929
Total Alive = 1

BS received info: (51.564891474118866 96.786523888253853 0.76934642861206703) from Node 42 - mit/uAMPS/ns-bsapp.tcl
BS received: 1 - mit/uAMPS/ns-bsapp.tcl
Only received info from 1 nodes. - mit/uAMPS/ns-bsapp.tcl
There are currently 1 alive ==> 1 cluster-heads needed. - mit/uAMPS/ns-bsapp.tcl

At 1940.0296000000001: - mit/uAMPS/stats.tcl
Total Energy = 199.22581580688964
Total Data = 207929
Total Alive = 1

Simulation complete. - mit/uAMPS/stats.tcl


Best Regards,
KSR.

Last edited by kingrulez; 08-02-2013 at 05:36 AM. Reason: Something important to add
 
Old 08-08-2013, 02:30 AM   #515
kingrulez
LQ Newbie
 
Registered: Mar 2013
Posts: 18

Rep: Reputation: Disabled
MTE protocol output check!!


Hi,

Why this MTE protocol not showing any kind of data??, why it is always showing total data = 0??. If you have idea regarding this, please try to help me out.


Node 18 removing sensing energy = 0 J.
Node 31 removing sensing energy = 0 J.
Node 47 removing sensing energy = 0 J.
Node 61 removing sensing energy = 0 J.
Node 62 removing sensing energy = 0 J.
47 sending data {47} to 100 (dist = 96.896573397072189) at 3024.0005727994348
18 sending data {18} to 47 (dist = 6.6263902370979979) at 3024.0026731857947
62 sending data {62} to 100 (dist = 106.31478171976121) at 3024.0044289889438
31 sending data {31} to 100 (dist = 98.448764235870357) at 3024.0087710113353
61 sending data {61} to 100 (dist = 142.2810050948118) at 3024.009825255866
Node 47 received data {18} from 18 at 3024.0110752078822
Node 47 must now pass data {18} along next hop to 100.
COLLISION!!!! rx_state_ = 16
COLLISION!!!! rx_state_ = 16
47 sending data {18} to 100 (dist = 96.896573397072189) at 3024.0132450247452
Node 18 removing sensing energy = 0 J.
Node 31 removing sensing energy = 0 J.
Node 47 removing sensing energy = 0 J.
Node 61 removing sensing energy = 0 J.
Node 62 removing sensing energy = 0 J.
18 sending data {18} to 47 (dist = 6.6263902370979979) at 3028.8042656443613
47 sending data {47} to 100 (dist = 96.896573397072189) at 3028.8044549807137
61 sending data {61} to 100 (dist = 142.2810050948118) at 3028.8063542582545
Node 47 received data {18} from 18 at 3028.8084916664488
Node 47 must now pass data {18} along next hop to 100.
31 sending data {31} to 100 (dist = 98.448764235870357) at 3028.8090102353876
62 sending data {62} to 100 (dist = 106.31478171976121) at 3028.809948217161
47 sending data {18} to 100 (dist = 96.896573397072189) at 3028.8118538970066

At 3030: - mit/uAMPS/stats.tcl
Total Energy = 198.55243012100343
Total Data = 0
Total Alive = 5

Best Regards,
KSR.
 
Old 08-13-2013, 05:07 AM   #516
Shivjay
LQ Newbie
 
Registered: Apr 2011
Location: Gwalior
Posts: 6

Rep: Reputation: 0
Dear Users,

I am running leach routing in my fedora 16.
It seems that, while simulation my clusters going down or breaking. In first part of simulation i got clusters but after first round of simulation, my simulation terminate.
And comes output in form of:

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

Simulation complete.

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


Please help me...
Waiting for reply....
 
Old 08-13-2013, 06:20 PM   #517
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
Can you enable the 'pp' option and check your output ? And see if CHs are elected, if they send out advertisements are sent out, and if they are received by other nodes. That should be the first step.

Quote:
Originally Posted by Shivjay View Post
Dear Users,

I am running leach routing in my fedora 16.
It seems that, while simulation my clusters going down or breaking. In first part of simulation i got clusters but after first round of simulation, my simulation terminate.
And comes output in form of:

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

Simulation complete.

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


Please help me...
Waiting for reply....
 
1 members found this post helpful.
Old 08-14-2013, 12:13 AM   #518
Shivjay
LQ Newbie
 
Registered: Apr 2011
Location: Gwalior
Posts: 6

Rep: Reputation: 0
Smile

Quote:
Originally Posted by deepa_2111 View Post
Can you enable the 'pp' option and check your output ? And see if CHs are elected, if they send out advertisements are sent out, and if they are received by other nodes. That should be the first step.

Dear Deepa,

Thanks for your reply,
I don't understand where i should enable "pp" option and which file i'll have to select "CH".
Which files have this content and where i should change.
Waiting for your reply...
Thanks

Shivjay Singh
 
Old 08-14-2013, 06:24 AM   #519
Shivjay
LQ Newbie
 
Registered: Apr 2011
Location: Gwalior
Posts: 6

Rep: Reputation: 0
Dear Users,
I am still facing this problem.
Please help me to fix this one.


Node 93 is DEAD!!!! - ns-leach.tcl
Node 94 is DEAD!!!! - ns-leach.tcl
Node 95 is DEAD!!!! - ns-leach.tcl

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

Simulation complete.

num_nodes is set 101
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 395.9
 
Old 08-14-2013, 09:00 AM   #520
deepa_2111
Member
 
Registered: Apr 2011
Distribution: -
Posts: 185

Rep: Reputation: 268Reputation: 268Reputation: 268
Shivjay (#518),

Please look in the tcl files. I no longer have the leach set up, so not sure in which tcl file. Try ns-leach.tcl. The 'pp' option enables you to print out all the information.
Look in the leach.out file and see if CHs are chosen. This is in the beginning of your round. The nodes with their locations is printed, along with the info as to whether or not they are CHs.
 
2 members found this post helpful.
Old 08-25-2013, 02:41 AM   #521
adventurousman
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
Hi
please i want explain for ns-leach.tcl and leach.tcl
please help me please please please
 
Old 08-25-2013, 02:59 AM   #522
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 521 .

{ns-leach.tcl, leach.tcl} are files that are used by other files :
Code:
$ cd mit/
$ grep -Rn leach.tcl *
leach-c.tcl:7:source uAMPS/ns-leach.tcl
uAMPS/sims/leach-c.tcl:7:source $env(uAMPS_LIBRARY)/ns-leach.tcl
uAMPS/sims/leach.tcl:7:source mit/uAMPS/ns-leach.tcl
uAMPS/sims/mit/leach-c.tcl:7:source uAMPS/ns-leach.tcl
uAMPS/sims/stat-clus.tcl:7:source $env(uAMPS_LIBRARY)/ns-leach.tcl


$ grep -Rn ns-leach.tcl *                    
leach-c.tcl:7:source uAMPS/ns-leach.tcl
uAMPS/sims/leach-c.tcl:7:source $env(uAMPS_LIBRARY)/ns-leach.tcl
uAMPS/sims/leach.tcl:7:source mit/uAMPS/ns-leach.tcl
uAMPS/sims/mit/leach-c.tcl:7:source uAMPS/ns-leach.tcl
uAMPS/sims/stat-clus.tcl:7:source $env(uAMPS_LIBRARY)/ns-leach.tcl
 
Old 08-25-2013, 11:12 AM   #523
adventurousman
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
thank you knudfl to answer
but I ask for code in ns-leach.tcl and leach.tcl
Is there an explanation of the commands in the files ns-leach.tcl and leach.tcl
please help me
Is there a book that explains the OTCL detail for all instructions
please help me
 
Old 08-25-2013, 11:40 AM   #524
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,383

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
# 523 .
Quote:
Is there a book ..
Probably http://www.isi.edu/nsnam/ns/doc/index.html
 
Old 08-26-2013, 03:05 AM   #525
adventurousman
LQ Newbie
 
Registered: Jun 2013
Posts: 5

Rep: Reputation: Disabled
thank you knudfl
thank you knudfl
thank you knudfl
 
  


Reply

Tags
leach, leach-warning50, ns2, ns2 ns234, pegasis


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
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
labview stopped at "init tmp resource files" on FC4 baosheng Linux - Software 2 09-28-2007 11:02 AM
ORiNOCO WLAN card not working - "failed to allocate resource" hauneboo Linux - Laptop and Netbook 1 11-29-2005 09:08 AM
What "kernel opts" allow PC to power down with "turning energy off"? kornerr Linux - General 1 03-10-2005 12:07 PM
nvidia insmod: "Device or resource busy" w/GeForce 4 MX KeithSpook Linux - Hardware 4 03-03-2004 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:51 PM.

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