I installed ns2 in ubuntu 12.10 and ran leach on it without any errors (I fixed them) but I think there is no valid output. I saw this problem only later and nobody knows how to fix it. Can anyone help me find the problem? Thanks.

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 you can see, at the end Total data is 0 and all of the nodes are dead!

I want to know how to work with leach.out file and leach.tr file.

I want to plot a graph for average energy consumption, network lifetime and load balancing, etc. I didn't have any knowledge of how to get all the results.

In ns-leach.tcl, I have this :

- I got two folders in my /ns-allinone-2.34/ns-2.34: one is /mit and other one is /ns-234-leach/mit

-leach.err file in /mit/leach_sims folder is showing number of errors

but

leach.err in /ns-2.34/mit/leach_sims is showing successful execution of ./leach_test or ./test

More Hassan Echoukairi's questions See All
Similar questions and discussions