how to integrate the "Resource/Energy" leach class into NS-2.34?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
The author explicitly details the steps to be followed. However, MAKE SURE YOU REPLACE THE PATH WITH YOUR CORRECT PATH. DO NOT BLINDLY DO A COPY-PASTE.
@deepayou provided this time was very helpful... Thanks a lot
but their is one big confusion now that there are two folders in my ns2.34 folder
i.e /mit
and /ns-234-leach/mit
all the above mentioned folders are comprised of the same contents
Can you please tell me exactly which folder to retain and which one to delete
Also leach.err file in /mit folder is showing errors which I was telling you.
and leach.err file in /ns-234-leach/mit folder is showing successful compilation of the program
A big confusion here is which one is useful and to be retained out of abovesaid two folders
Hi guys,
I installed Leach for ns-2.34 completely and had some files like leach.tr, leach.alive, leach.data, leach.energy, leach.err, leah.out...
Please help me how to plot the energy consumption, node alive of Leach protocol.
Tks alot.
Delete the leach.out, leach.energy, leach.alive and leach.data files in both the folders.
Run the leach simulation again. The folder in which these files are created again is the folder you require.
I would suggest you repeat the entire installation again. It might be confusing to have a path like "ns2.34/ns-234-leach/mit/" but if the installation and execution is successful, then, it's your wish.
Quote:
Originally Posted by mittal_saurabhin
@deepayou provided this time was very helpful... Thanks a lot
but their is one big confusion now that there are two folders in my ns2.34 folder
i.e /mit
and /ns-234-leach/mit
all the above mentioned folders are comprised of the same contents
Can you please tell me exactly which folder to retain and which one to delete
Also leach.err file in /mit folder is showing errors which I was telling you.
and leach.err file in /ns-234-leach/mit folder is showing successful compilation of the program
A big confusion here is which one is useful and to be retained out of abovesaid two folders
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 788 .
Quote:
It might be confusing to have a path like "ns2.34/ns-234-leach/mit/"
This structure origins from the "@MayTamer leach package" :
Unpacks to a directory by name "ns-234-leach".
"The other copy" of the MayTamer files, `leach-ns234-patching.tar.gz', https://drive.google.com/file/d/0B7S...it?usp=sharing
... unpacks to "ns-2.34/" , which is much more convenient :
$ cd ns-allinone-2.34/ && tar xvf leach-ns234-patching.tar.gz
... and all the added files will have the right locations.
hello all..i have one problem..i have two lists and i want to do divide operation on first element of first list and first element of second list and result should b store in third list..as in c lang there is no facility of indexing eg.i in for loop..can anyone tell me how should i do this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.