Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-23-2011, 05:26 AM
|
#1
|
LQ Newbie
Registered: Jan 2011
Location: Korea
Distribution: ubuntu 9.04
Posts: 1
Rep:
|
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
BS received: 63
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
Use dst_addr_ and dst_port_ instead
num_nodes is set 101
Min_cost = 156085.562447
last_iter = 15
CH are:
37.124910 58.355159 50
90.080040 75.238376 60
1.707347 95.379759 40
93.097224 85.045951 20
8.297679 59.088131 10
Warning dst_ is no longer being supported in NS. dst_ 0xffffffff
I can't see the line 434 "num_nodes is set 101" that after the successful simulation.
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?
Last edited by kguerilla; 01-26-2011 at 06:21 PM.
|
|
|
09-14-2012, 10:06 AM
|
#2
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
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.
|
|
|
09-14-2012, 10:45 AM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
.
|
|
|
09-18-2012, 08:06 AM
|
#4
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
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.
Last edited by yueling; 09-18-2012 at 08:08 AM.
|
|
|
09-18-2012, 11:13 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
.
|
|
|
09-20-2012, 01:17 AM
|
#6
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
#5
if no files named leach-c.cc or leach-c.h , can i running leach-c.tcl without it files?
thank you 
|
|
|
09-20-2012, 02:39 AM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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
.
|
|
|
09-20-2012, 10:59 AM
|
#8
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
#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.
|
|
|
09-21-2012, 11:00 AM
|
#9
|
LQ Newbie
Registered: Sep 2012
Posts: 7
Rep: 
|
#7 @knudfl
how to compile other files for energy,node setting, etc in mit using leach-c.tcl?
thank you.
|
|
|
09-21-2012, 11:52 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
|
|
|
All times are GMT -5. The time now is 09:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|