how did the file leach.save1 and leach.save2 obtained as shown in 25:45 ? because these files contains the results like energy consumption , nodes alive , etc etc updated statistics.
Hello Sir, thank you've for uploading this tutorial. I have completed the installation but when I run the leach test, I get no results on the leach.out when it should be similar as shown on 25:47. Please help me.
+Blaze Mann please check your leach.err file that might contain some error related to path which you can correct in tcl/ex/wireless.tcl . So make changes in path and then try
I am working on LEACH, too. I have already successfully run LEACH. But when I try to change LEACH protocol, I cannot find c file. Could you help me? Thank you very much
Sir I am doing leach simulation in ns3. While simulation the error shown as the directory terminated with signal SIGIOT. How to resolve this sir, please help me
I have changed the scenario file from "scen-670x670-50-600-20-2" to "scen-670x670-50-600-20-0" its doent show any error but when i add the nam file in wireless.tcl it shows the error i want to open nam file where can i add the name procedure to see the output. ?
hi sir i got error like the following when i install i wonde@wonde:~$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.4 g++4.4 [sudo] password for wonde: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libjpgalleg4.4' for regex 'g++4.4' Note, selecting 'libloadpng4.4' for regex 'g++4.4' Note, selecting 'liblogg4.4' for regex 'g++4.4' Package gcc-4.4 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'gcc-4.4' has no installation candidate
facing error while installing LEACH. need help make: gcc-4.4: Command not found Makefile:98: recipe for target 'tcp/linux/tcp_naivereno.o' failed make: *** [tcp/linux/tcp_naivereno.o] Error 127 Ns make failed!
Hello Dear Respected Professor I successfully installed LEACH protocol as the steps on the video but when I run the command ./leach_test and go to see leach.out, I did not find any data on this file. So what is the problem? Thank you
@@tspradeepkumar Thanks for your reply. I'm already installed gcc-4.4 and g++-4.4 but it gives me this error in the leach.err file invalid command name "Resource/Energy" while executing "Resource/Energy instproc setParams {args} { $self instvar energyLevel_ alarmLevel_ set energyLevel_ [lindex $args 0] set alarmLevel_ [lind..." (file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 12) invoked from within "source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" (file "mit/uAMPS/sims/uamps.tcl" line 18) invoked from within "source.orig mit/uAMPS/sims/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/sims/uamps.tcl" (file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.tcl" line 18) invoked from within "source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/$opt(rp).tcl" (file "tcl/ex/wireless.tcl" line 187) how can I solve this error? Thanks in advance
sir i am getting error as make: g++-4.3: Command not found make: *** [tools/random.o] Error 127 Ns make failed! please guide me. as i have tried all yours steps for installing leach protocol but still i am getting this error. please help me out sir
Why can't you Contiki NG OS for sensor networks... As there is limited facility for sensor networks in ns3.. In case if you wanna try ns2, you can try mannasim simulation for LEACH Protocol, In my channel that video is also there.
hello, if you see leach.out / leach-c.out file you will not see any cluster head adv message, all sensors nodes are directly communicating to BS, no clustered are formed. kindly check and confirm
I install the steps below to patch ZRP Agent in NS2. 1. First put following files into NS-2 home's parent directory. - ns-allinone-2.33_ZRP.tar.gz (This contains my code) - PatchZRP.patch - patchmyZRP.sh (THIS SHELL-SCRIPT FILE - This script file should be run from NS-2 home' parent directory) 2. Run patchZRP.sh from shell. But error, i hope him help. Thanks
Sir, I tried to install LEACH in ns-2.35 on ubuntu 14.04. Got error when I run ./leach_test command saying invalid command "Resource/Energy" set energyLevel_ [lindex $args 0] set alarmLevel_ [lind..." home/devendra/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 11) Please help me to correct it. Thank you Pradeep Sir.
sir i am getting this error when installing it on ubuntu 16.04 make: *** No rule to make target 'mit/rca/rcagent.c', needed by 'mit/rca/rcagent.o'. Stop. Ns make failed! See www.isi.edu/nsnam/ns/ns-problems.html for problems
Sir, I get the following error on running leach_test in leach.err INITIALIZE THE LIST xListHead Error!! str2addr:Address 2147483647 outside the range of address field length 1073741824 Kindly help.
+S. Singh hi I have the same problem Did you find an answer to it? INITIALIZE THE LIST xListHeadError!! str2addr:Address 2147483647 outside the range of address field length 1073741824
+Esmaeil Baharloo INITIALIZE THE LIST xListHead SORTING LISTS ...DONE! i have same problem please if you have a solution can you answer thanks elkamelrabiaa@gmail.com
how did the file leach.save1 and leach.save2 obtained as shown in 25:45 ?
because these files contains the results like energy consumption , nodes alive , etc etc updated statistics.
plz can u show us how we simulate 2 sensor and cluster head and base station (sink)
How can I fix bugs at 25:51? thank you!
hi
from where can I get the LEACH-setup file?
also the ns-leach* folder?
thank you ver much sir. but how can i visualise the leach protocol with nam simulator
Hello Sir, thank you've for uploading this tutorial. I have completed the installation but when I run the leach test, I get no results on the leach.out when it should be similar as shown on 25:47. Please help me.
+Blaze Mann please check your leach.err file that might contain some error related to path which you can correct in tcl/ex/wireless.tcl . So make changes in path and then try
+udit agrawal Hi Sir, thank you for the help. How can I generate nam file ou xgraph?
udit agrawal sir, still path change krne ke bad bhi whi error aa rha
thank you Mr Pradeep.
Sir, how to plot xgraph for leach
hello , please do you have a leach protocol code please ? i need it to execute it .
Hi sir, can you simulate the spin protocol with ns2, because spin and leach have a litle different
Let me search and try, in case if you know a source code, please let me know, i will compile it for you...
I am working on LEACH, too. I have already successfully run LEACH. But when I try to change LEACH protocol, I cannot find c file.
Could you help me?
Thank you very much
hi sir where i get full leach code please share to me.
thanks
hello , please can you share with me the code file C++ ?
Sir can I give me source code for ns2 using leach protocol
Sir why leach.out file has total data =0? I thought the leach.out file will give same output as leach.save1 or leach.save2 files
Sir I am doing leach simulation in ns3. While simulation the error shown as the directory terminated with signal SIGIOT. How to resolve this sir, please help me
I have changed the scenario file from "scen-670x670-50-600-20-2" to "scen-670x670-50-600-20-0" its doent show any error but when i add the nam file in wireless.tcl it shows the error i want to open nam file where can i add the name procedure to see the output. ?
hi sir i got error like the following when i install i
wonde@wonde:~$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.4 g++4.4
[sudo] password for wonde:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpgalleg4.4' for regex 'g++4.4'
Note, selecting 'libloadpng4.4' for regex 'g++4.4'
Note, selecting 'liblogg4.4' for regex 'g++4.4'
Package gcc-4.4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gcc-4.4' has no installation candidate
Sir is this same for Ubuntu 20.04 also
Yes, Even for Ubuntu 22.04 as well.
can it be installed in ubutu 16.04
srikanth pochana yes we can, but there could be bugs since the leach protocol was written for very old c compiler
how can I install leach protocol?
facing error while installing LEACH. need help
make: gcc-4.4: Command not found
Makefile:98: recipe for target 'tcp/linux/tcp_naivereno.o' failed
make: *** [tcp/linux/tcp_naivereno.o] Error 127
Ns make failed!
I am getting error "ns make failed" while installing.
Sir can u just help me out regarding the path set on tcl folder "leach.tcl, leach-c.tcl, mte.tcl, stats-clus.tcl".
Hello Dear Respected Professor
I successfully installed LEACH protocol as the steps on the video but when I run the command ./leach_test and go to see leach.out, I did not find any data on this file. So what is the problem?
Thank you
The problem is due to the miscompatibility of the GCC compiler.
@@tspradeepkumar Thanks for your reply. I'm already installed gcc-4.4 and g++-4.4
but it gives me this error in the leach.err file
invalid command name "Resource/Energy"
while executing
"Resource/Energy instproc setParams {args} {
$self instvar energyLevel_ alarmLevel_
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
(file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 12)
invoked from within
"source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl"
(file "mit/uAMPS/sims/uamps.tcl" line 18)
invoked from within
"source.orig mit/uAMPS/sims/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/sims/uamps.tcl"
(file "/home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/leach.tcl" line 18)
invoked from within
"source.orig /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/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 /home/asi/Downloads/asi/ns-allinone-2.35/ns-2.35/tcl/mobility/$opt(rp).tcl"
(file "tcl/ex/wireless.tcl" line 187)
how can I solve this error?
Thanks in advance
@@tspradeepkumar Hello sir. can i get the leach.tar.gz ? i realy need it
sir i am getting error as
make: g++-4.3: Command not found
make: *** [tools/random.o] Error 127
Ns make failed!
please guide me. as i have tried all yours steps for installing leach protocol but still i am getting this error. please help me out sir
Sir would you please tell... How to implement leach protocol in NS3. Please provide a video tutorial.
Why can't you Contiki NG OS for sensor networks... As there is limited facility for sensor networks in ns3.. In case if you wanna try ns2, you can try mannasim simulation for LEACH Protocol, In my channel that video is also there.
hello, if you see leach.out / leach-c.out file you will not see any cluster head adv message, all sensors nodes are directly communicating to BS, no clustered are formed. kindly check and confirm
How to get trace file(.tr) through leach protocol
I'm pacth zrp on ns2 but not yet. I hope you help. thank you very much
I install the steps below to patch ZRP Agent in NS2.
1. First put following files into NS-2 home's parent directory.
- ns-allinone-2.33_ZRP.tar.gz (This contains my code)
- PatchZRP.patch
- patchmyZRP.sh (THIS SHELL-SCRIPT FILE - This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell.
But error, i hope him help.
Thanks
good evening sir path is /home/Desktop/Leach_Protocol. i put leach-setup.sh and ns-leach-2.35.tar.gz both in same file
Sir, I tried to install LEACH in ns-2.35 on ubuntu 14.04. Got error when I run ./leach_test command saying invalid command "Resource/Energy"
set energyLevel_ [lindex $args 0]
set alarmLevel_ [lind..."
home/devendra/ns-allinone-2.35/ns-2.35/mit/rca/resources/ns-energy-resource.tcl" line 11)
Please help me to correct it. Thank you Pradeep Sir.
in dir ns-35
type::
./configure
make clean
make
i too got same problem . if u got any solution plz reply me
or email me guna.hk444@gmail.com
sir i am getting this error when installing it on ubuntu 16.04
make: *** No rule to make target 'mit/rca/rcagent.c', needed by 'mit/rca/rcagent.o'. Stop.
Ns make failed!
See www.isi.edu/nsnam/ns/ns-problems.html for problems
Gcc 4.4 has no installation candidate
How to resolve this issue?
Sir,
I get the following error on running leach_test in leach.err
INITIALIZE THE LIST xListHead
Error!!
str2addr:Address 2147483647 outside the range of address field length 1073741824
Kindly help.
+S. Singh hi
I have the same problem
Did you find an answer to it?
INITIALIZE THE LIST xListHeadError!!
str2addr:Address 2147483647 outside the range of address field length 1073741824
+Esmaeil Baharloo INITIALIZE THE LIST xListHead
SORTING LISTS ...DONE! i have same problem please if you have a solution can you answer thanks
elkamelrabiaa@gmail.com
i have same problem can you help me if you have a solution thanks
+S. Singh please i have same proble can you help me
no, no solution found yet
cp: cannot stat 'test': No such file or directory
cp: cannot stat 'Makefile' : No such file or directory
Check the folder where you gave the command.