Leach-c eq_energy=0 condition simulation problem
Hi, LQ members.
I have installed ns-2.27 and ns-2.34 on Ubuntu 9.10. I have a successful running ns-2 and I found no problems in leach_test simulation. But, it does dead-lock operation in the leach-c algorithm simulation environment variable change to eq_energy=0. Firsr time, I have successful simulation results. It is represented the message in the file "leach-c.out" line 430 to 443 contents below. Code:
BS received info: (2.466682112993059 57.526273074339272 2) from Node 98 The simulator may be dead but remain the process. So, I have to killed the process then it has gone. How can I solve the problem? |
Hi kguerilla,
I have installed ns-2.27 on windows xp, and i want to running leach-c.. first time, i have installed mit.tar.gz.. How can i get source code leach-c? can u help me, please? Thank you. |
Post # 2, @yueling : Welcome to LQ.
Do you mean leach-c.tcl ? It's a text file. And is part of the package mit.tar.gz http://www.linuxquestions.org/questi...each-862835/#4 > post #4. . |
post #3, @knudfl: hello...thank you for reply my post..
i have leach-c.tcl from part of the package mit.tar.gz, but i need leach-c.cc and leach-c.h or leach-c.o.. how can i get it? thank you. |
# 4
AFAIK no files are named leach-c.cc, leach-c.h ( Or leach.cc, leach.h ). The name "leach-c.tcl" is a random name for a tcl file : A tcl file is something you write as pure text. There is no source code for a text file. . |
#5
if no files named leach-c.cc or leach-c.h , can i running leach-c.tcl without it files? thank you :) |
Post # 6
Files.cc and files.h are used, when you run './install' and / or 'make' : To build the binary 'ns'. That's it. No .cc or .h files are required ever again ! Not sure that just 'ns leach-c.tcl' will do anything. Most of the files in mit/** are probably used in connection with other tcl files. Like the simulation example command, you can read in leach_test, lines 37..51 . |
#7
okay, i see.. i think if i want to begin simulation about leach-c, i must get files.cc and files.h before.. so i can use the other files in mit to make simulation, right? your post is very helpful =) thank you. |
#7 @knudfl
how to compile other files for energy,node setting, etc in mit using leach-c.tcl? thank you. |
# 9
Not much to find about using the "mit files" : Google .. ns2 leach simulations .. http://ns2.blogspot.dk/ http://magic-xuguang.googlecode.com/...nt%20LEACH.pdf Have you read the two "long LEACH threads" ? 1 http://www.linuxquestions.org/questi...2-34-a-870368/ 2 http://www.linuxquestions.org/questi...2-27-a-785379/ . |
All times are GMT -5. The time now is 02:04 AM. |