Understand Leach.out

when running leach. i got different leach.out
first i was confusing is it correct or no.

for example, one of them show that there is a collision. some times one TDMAschedule.txt file generated and some times more than one.

every time i run leach_test the out put differ. but i notice that in coditions.txt ==> the desired number of clusters is always 1

first, how can i change this value. and how it will effect on leach.out?

second, i need some illustration on how to understand leach.out to be able to determine it is correct or not.

thanks in advance


Similar Content



Leach Doubt..

Hi. I have some doubts regarding “LEACH” protocol. I’m using ns-2.34 on Ubuntu 10.04 and patched leach protocol by following below link. I got ‘leach.out’ file, but I didn’t get ‘leach.err’ file.

https://abdusyarif.wordpress.com/201...-step-by-step/

Then I want to check out the leach source code file. The source code of the leach is not found in that folder. I ran out the leach test file and I’ve got a warning message.

Nam Of Leach Protocol Not Complete

i run leach protocol on ns2.34
from the package provided is
the additional module "pegasis/leach" > exidus-pegasis_ns-234-leach.tar.gz
Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing

the generated nam file look like this

V -t * -v 1.0a5 -a 0
W -t * -x 1000 -y 1000
A -t * -n 1 -p 0 -o 0xffffffff -c 31 -a 1
A -t * -h 1 -m 2147483647 -s 0


why it is not complete ?

Help In Leach

Hello

Now i try with leach+pegasis-ns234-files-2.tar.gz

but the same problem

in leach.err

mac/chanel.cc: INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE!

but leach.out

Total Energy = 1.8677000593689714
Total Data = 0
Total Alive = 4

How To Change Number Of Nodes For LEACH In NS 2.34

Hi everyone,

I have final year project related to the LEACH routing protocol. I want to change the number of nodes for LEACH? As for existing package, it is already 100 nodes, and i want to change it to 80 nodes and below..what should I do?

Thanks

How To Solve This Logical Error Of LEACH?

Hello,
I have installed LEACH in NS-2.34 (ubunto-14.04)

I could run it successfully..

But it always stopped in a few seconds without sending data

i.e. Total Data=0

And it consumed a large energy!!!!

It didn't show any error in leach.error

Is it a logical error or others?

thanks

I Wish To Request To All People Who Viewing This Message For V-leach Protocol Code

Now i am doing m.tech and i wanna do project on NS-2. i have to study about this v-leach protocol and also i want prepare some extensions in that so if you's having any possibility please send some v-leach protocol code for me

LEACH Simulation

hey everybody, I have a problem, I am supposed to use two mobile sinks in a field of x=100 and y=100
when I add the second sink after editing many files like leach test and ranodes.tcl and I add a bsapp for the second Sink too
but!!! when I execute the leach test, the 2nd sink is not known neither its coordinates
any suggestions plz !!
thanks a lottt

Error In Running Leach_test In NS-2.34

Hi all,

I am trying to simulate leach on NS2 but I've had problems with running the leach_test. I've followed all steps from installing NS2 up to installing the LEACH patch (used the latest one from exidus). Here's the error message in the leach.err I found.

Code:
couldn't read file "/mit/uAMPS/uamps.tcl": no such file or directory
    while executing
"source.orig /mit/uAMPS/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/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)

Your help are very much appreciated, thanks!

How Can I Generate A Plot From Leach.alive ?

Hi.
leach protocol was perfactly installed in ns2.
I run test file test.tcl
the test genarate a file leach.alive but i dont know how to genarate a plot from leach.alive .

Please Help .
----------------------------
leach.alive look like :
-----------------------------------
1.0999999999999999 0 0
1.0999999999999999 1 0
1.0999999999999999 2 0
1.0999999999999999 3 0
1.0999999999999999 4 0
1.0999999999999999 5 0
1.0999999999999999 6 0
1.0999999999999999 7 0
1.0999999999999999 8 0
1.0999999999999999 9 0
1.0999999999999999 10 0
1.0999999999999999 11 0
1.0999999999999999 12 0
1.0999999999999999 13 0
1.0999999999999999 14 0
1.0999999999999999 15 0
1.0999999999999999 16 0
1.0999999999999999 17 0
1.0999999999999999 18 0
1.0999999999999999 19 0
1.0999999999999999 20 0
1.0999999999999999 21 0
1.0999999999999999 22 0
1.0999999999999999 23 0
1.0999999999999999 24 0
1.0999999999999999 25 0
1.0999999999999999 26 0
1.0999999999999999 27 0
1.0999999999999999 28 0
1.0999999999999999 29 0
1.0999999999999999 30 0
1.0999999999999999 31 0
1.0999999999999999 32 0
1.0999999999999999 33 0
1.0999999999999999 34 0
1.0999999999999999 35 0
1.0999999999999999 36 0
1.0999999999999999 37 0
1.0999999999999999 38 0
1.0999999999999999 39 0
1.0999999999999999 40 0
1.0999999999999999 41 0
1.0999999999999999 42 0
1.0999999999999999 43 0
1.0999999999999999 44 0
1.0999999999999999 45 0
1.0999999999999999 46 0
1.0999999999999999 47 0
1.0999999999999999 48 0
1.0999999999999999 49 0
1.0999999999999999 50 0
1.0999999999999999 51 0
1.0999999999999999 52 0
1.0999999999999999 53 0
1.0999999999999999 54 0
1.0999999999999999 55 0
1.0999999999999999 56 0
1.0999999999999999 57 0
1.0999999999999999 58 0
1.0999999999999999 59 0
1.0999999999999999 60 0
1.0999999999999999 61 0
1.0999999999999999 62 0
1.0999999999999999 63 0
1.0999999999999999 64 0
1.0999999999999999 65 0
1.0999999999999999 66 0
1.0999999999999999 67 0
1.0999999999999999 68 0
1.0999999999999999 69 0
1.0999999999999999 70 0
1.0999999999999999 71 0
1.0999999999999999 72 0
1.0999999999999999 73 0
1.0999999999999999 74 0
1.0999999999999999 75 0
1.0999999999999999 76 0
1.0999999999999999 77 0
1.0999999999999999 78 0
1.0999999999999999 79 0
1.0999999999999999 80 0
1.0999999999999999 81 0
1.0999999999999999 82 0
1.0999999999999999 83 0
1.0999999999999999 84 0
1.0999999999999999 85 0
1.0999999999999999 86 0
1.0999999999999999 87 0
1.0999999999999999 88 0
1.0999999999999999 89 0
1.0999999999999999 90 0
1.0999999999999999 91 0
1.0999999999999999 92 0
1.0999999999999999 93 0
1.0999999999999999 94 0
1.0999999999999999 95 0
1.0999999999999999 96 1
1.0999999999999999 97 1
1.0999999999999999 98 1
1.0999999999999999 99 1

I Get An Error While Executing Leach.tcl

couldn't read file "mit/uAMPS/ns-leach.tcl": no such file or directory
while executing
"source.orig mit/uAMPS/ns-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 mit/uAMPS/ns-leach.tcl"
(file "leach.tcl" line 7)