Linux - Wireless NetworkingThis 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.
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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.