LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2011, 05:58 PM   #1
ridhaasma
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
leach_test execution on ns2.29


hello,
i added leach protocol to ns2.29 using the MIT uAMPS extension. I executed ./lesch_test
the output file, leach.out contains only those lines:
Code:
num_nodes is set 101
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 6: (75.978135678906995,64.526355389750734)
Node 7: (94.45503554048716,5.7823289678349754)
Node 8: (83.602962402441989,14.98909784247591)
Node 9: (21.767438492629417,45.338745622587737)
Node 10: (8.2976788321033492,59.088131160982016)
Node 11: (94.220422624713009,62.643053551503947)
Node 12: (41.80104012684945,50.081411958710021)
Node 13: (18.290790039250062,13.30818967582108)
Node 14: (70.743881524886874,92.416788773805266)
Node 15: (48.968921345178465,20.661048414493468)
Node 16: (50.240702391714187,95.485097540302704)
Node 17: (18.034359867700545,3.486296443029445)
Node 18: (94.184317995879951,55.832556754272687)
Node 19: (77.781369061107455,71.469810032970187)
Node 20: (93.097224129874832,85.045950806255433)
Node 21: (67.295200735002382,30.438753185066748)
Node 22: (84.124781416787201,85.201271942444734)
Node 23: (77.777536668711122,7.0587910278974055)
Node 24: (37.10080587170124,53.244285682795699)
Node 25: (76.709470747369096,56.074851032381346)
Node 26: (50.021301233219582,8.0098267216281158)
Node 27: (21.157710403743067,97.638755709695985)
Node 28: (14.567212860364101,31.146544139434834)
Node 29: (79.967351481303268,11.276346264070062)
Node 30: (21.551660225517892,18.753410279170335)
Node 31: (88.566562015827074,38.207800005659372)
Node 32: (58.494695116996155,20.340831354419155)
Node 33: (68.352573722765115,1.7065585133184484)
Node 34: (82.128933343165059,40.982698575119812)
Node 35: (96.214952038701142,84.698914449987427)
Node 36: (34.655160938694685,49.28989664152725)
Node 37: (15.292854148565258,26.999674936290681)
Node 38: (83.536654237442022,0.54776868808445001)
Node 39: (6.3483406353501328,96.561058329679554)
Node 40: (1.7073469244443564,95.37975913629856)
Node 41: (47.611803769884546,11.585960449458081)
Node 42: (25.23727404197551,62.864823482402052)
Node 43: (69.088268731296182,66.532566895025113)
Node 44: (12.85180468710689,0.28137620551575732)
Node 45: (29.089886103332923,13.7157387164029)
Node 46: (20.420606583552718,9.134849770523072)
Node 47: (29.42009318127301,63.506097655513372)
Node 48: (46.98329621319813,48.259455220894637)
Node 49: (96.663897576119709,30.126561843849046)
Node 50: (37.124909570964476,58.355159199962003)
Node 51: (75.160673761349486,25.443907000796827)
Node 52: (35.744962392256113,65.582926648474725)
Node 53: (52.248180914785806,35.176634804893581)
Node 54: (13.701165846409818,75.494380609828227)
Node 55: (34.054909382972362,60.861999616428278)
Node 56: (7.6275533100718409,96.288482377439962)
Node 57: (20.523317633440399,35.399465232807891)
Node 58: (58.812167802272441,56.104252792943385)
Node 59: (44.176690999500771,77.645628609529524)
Node 60: (90.080040362700842,75.238375912997114)
Node 61: (31.383969742517902,70.379462498416885)
Node 62: (67.626210892398944,93.726468548982623)
Node 63: (60.756902750933961,41.264534947119898)
Node 64: (33.038856244198442,84.056896243270913)
Node 65: (44.255160654082502,96.485113164635891)
Node 66: (25.296958035462051,65.973702010686381)
Node 67: (20.00969360582982,2.9204331817666223)
Node 68: (83.720485951621313,90.207388899385649)
Node 69: (15.585231974527813,40.993795888961202)
Node 70: (82.727505770850698,1.1894906876559792)
Node 71: (91.769987434041681,78.17880393852424)
Node 72: (51.15779477691175,9.0568155558113084)
Node 73: (17.899046520655531,29.27487265750527)
Node 74: (22.784754691079613,43.372092975011142)
Node 75: (54.766631012208123,62.767422181911492)
Node 76: (32.064611386537841,9.9235735414193815)
Node 77: (85.500510635553155,7.082251742054825)
Node 78: (31.405028715452659,24.317620612828815)
Node 79: (6.2496398139044826,37.69635229264216)
Node 80: (62.592982436806423,0.25581540551773058)
Node 81: (99.489520536497949,20.371656920933937)
Node 82: (86.437870136666049,61.283386946322118)
Node 83: (89.884406835718266,87.225687916961363)
Node 84: (2.1368203694637962,13.539949578018836)
Node 85: (65.932557762569076,28.498315498464887)
Node 86: (71.188582699368055,66.509428278780277)
Node 87: (23.961081460100171,13.896099903572399)
Node 88: (51.751079341280779,80.390488906013999)
Node 89: (22.947043377415763,70.958044226727466)
Node 90: (91.849318608571465,11.497854260493934)
Node 91: (44.436556121537727,45.198734684474182)
Node 92: (55.133841957493615,34.481779595130021)
Node 93: (35.269655350255618,77.097471746195794)
Node 94: (77.207638312693518,28.777121439938025)
Node 95: (57.080041038375363,44.249731974792546)
Node 96: (5.2453003382521217,57.762785003410087)
Node 97: (19.127552313323857,76.771730034040161)
Node 98: (2.466682112993059,57.526273074339272)
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
6: *******************************************
THRESH = 0.050000000000000003
7: *******************************************
THRESH = 0.050000000000000003
8: *******************************************
THRESH = 0.050000000000000003
9: *******************************************
THRESH = 0.050000000000000003
10: *******************************************
THRESH = 0.050000000000000003
11: *******************************************
THRESH = 0.050000000000000003
12: *******************************************
THRESH = 0.050000000000000003
13: *******************************************
THRESH = 0.050000000000000003
14: *******************************************
14: Is a cluster head at time 0
THRESH = 0.050000000000000003
15: *******************************************
THRESH = 0.050000000000000003
16: *******************************************
THRESH = 0.050000000000000003
17: *******************************************
THRESH = 0.050000000000000003
18: *******************************************
THRESH = 0.050000000000000003
19: *******************************************
THRESH = 0.050000000000000003
20: *******************************************
THRESH = 0.050000000000000003
21: *******************************************
THRESH = 0.050000000000000003
22: *******************************************
THRESH = 0.050000000000000003
23: *******************************************
THRESH = 0.050000000000000003
24: *******************************************
THRESH = 0.050000000000000003
25: *******************************************
THRESH = 0.050000000000000003
26: *******************************************
THRESH = 0.050000000000000003
27: *******************************************
THRESH = 0.050000000000000003
28: *******************************************
THRESH = 0.050000000000000003
29: *******************************************
THRESH = 0.050000000000000003
30: *******************************************
THRESH = 0.050000000000000003
31: *******************************************
THRESH = 0.050000000000000003
32: *******************************************
THRESH = 0.050000000000000003
33: *******************************************
33: Is a cluster head at time 0
THRESH = 0.050000000000000003
34: *******************************************
THRESH = 0.050000000000000003
35: *******************************************
THRESH = 0.050000000000000003
36: *******************************************
THRESH = 0.050000000000000003
37: *******************************************
THRESH = 0.050000000000000003
38: *******************************************
THRESH = 0.050000000000000003
39: *******************************************
THRESH = 0.050000000000000003
40: *******************************************
THRESH = 0.050000000000000003
41: *******************************************
THRESH = 0.050000000000000003
42: *******************************************
THRESH = 0.050000000000000003
43: *******************************************
THRESH = 0.050000000000000003
44: *******************************************
THRESH = 0.050000000000000003
45: *******************************************
THRESH = 0.050000000000000003
46: *******************************************
THRESH = 0.050000000000000003
47: *******************************************
THRESH = 0.050000000000000003
48: *******************************************
THRESH = 0.050000000000000003
49: *******************************************
THRESH = 0.050000000000000003
50: *******************************************
THRESH = 0.050000000000000003
51: *******************************************
THRESH = 0.050000000000000003
52: *******************************************
THRESH = 0.050000000000000003
53: *******************************************
THRESH = 0.050000000000000003
54: *******************************************
THRESH = 0.050000000000000003
55: *******************************************
THRESH = 0.050000000000000003
56: *******************************************
THRESH = 0.050000000000000003
57: *******************************************
THRESH = 0.050000000000000003
58: *******************************************
58: Is a cluster head at time 0
THRESH = 0.050000000000000003
59: *******************************************
THRESH = 0.050000000000000003
60: *******************************************
THRESH = 0.050000000000000003
61: *******************************************
THRESH = 0.050000000000000003
62: *******************************************
THRESH = 0.050000000000000003
63: *******************************************
THRESH = 0.050000000000000003
64: *******************************************
THRESH = 0.050000000000000003
65: *******************************************
THRESH = 0.050000000000000003
66: *******************************************
THRESH = 0.050000000000000003
67: *******************************************
THRESH = 0.050000000000000003
68: *******************************************
THRESH = 0.050000000000000003
69: *******************************************
THRESH = 0.050000000000000003
70: *******************************************
THRESH = 0.050000000000000003
71: *******************************************
THRESH = 0.050000000000000003
72: *******************************************
THRESH = 0.050000000000000003
73: *******************************************
THRESH = 0.050000000000000003
74: *******************************************
THRESH = 0.050000000000000003
75: *******************************************
THRESH = 0.050000000000000003
76: *******************************************
THRESH = 0.050000000000000003
77: *******************************************
THRESH = 0.050000000000000003
78: *******************************************
THRESH = 0.050000000000000003
79: *******************************************
THRESH = 0.050000000000000003
80: *******************************************
THRESH = 0.050000000000000003
81: *******************************************
THRESH = 0.050000000000000003
82: *******************************************
THRESH = 0.050000000000000003
83: *******************************************
THRESH = 0.050000000000000003
84: *******************************************
THRESH = 0.050000000000000003
85: *******************************************
THRESH = 0.050000000000000003
86: *******************************************
THRESH = 0.050000000000000003
87: *******************************************
THRESH = 0.050000000000000003
88: *******************************************
THRESH = 0.050000000000000003
89: *******************************************
THRESH = 0.050000000000000003
90: *******************************************
THRESH = 0.050000000000000003
91: *******************************************
THRESH = 0.050000000000000003
92: *******************************************
THRESH = 0.050000000000000003
93: *******************************************
93: Is a cluster head at time 0
THRESH = 0.050000000000000003
94: *******************************************
THRESH = 0.050000000000000003
95: *******************************************
THRESH = 0.050000000000000003
96: *******************************************
THRESH = 0.050000000000000003
97: *******************************************
97: Is a cluster head at time 0
THRESH = 0.050000000000000003
98: *******************************************
THRESH = 0.050000000000000003
99: *******************************************
and the other files (leach.alive, leach.data, and leach.data) are empty.
what should i do?
thanks

Last edited by ridhaasma; 09-23-2011 at 09:25 AM.
 
Old 09-20-2011, 05:46 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Why are you using ns-allinone-2.29 ?
The "mit files" are for ns-2.27 , AFAIK.

About 'leach_test' : Please read the LQ LEACH threads.
There are some (many) posts about tests.
LQ Search → Tag = leach
http://www.linuxquestions.org/questions/search.php

..
 
Old 09-22-2011, 03:55 PM   #3
ridhaasma
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
thank you, i solved the last problem. Now ,in file leach.out, i have Total data=0
 
Old 09-23-2011, 03:12 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please edit post # 1 :
Write [/code] at code end, and [code] at code text start.


"leach.out" is 0 bits, read the LEACH threads for explanation.
The Search link : See post #2.

.
 
1 members found this post helpful.
Old 10-02-2011, 06:04 PM   #5
ridhaasma
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello,
at the end of the simulation of leach protocol, i have got:
Code:
At 1432.2999999997928:
		Total Energy = 199.87103966711234
		Total Data = 0
		Total Alive = 4

Simulation complete.
how can i solve this problem?
Note: i haven't problem , when i simulated leach-c protocol
thanks
 
Old 12-12-2011, 03:35 AM   #6
nzyt1
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
I have no data in leach.alive ~.data .. so on. How did you solve the problem? It's so difficult.
Quote:
Originally Posted by ridhaasma View Post
thank you, i solved the last problem. Now ,in file leach.out, i have Total data=0
 
  


Reply

Tags
leach, ns2



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
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
leach_test error mehran Fedora 1 04-22-2012 10:12 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM
How to tell where the execution is going on right now? bahadur Programming 7 04-03-2005 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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