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.
in the files leach.save1 and leach.save2 both files have different values of total data BUT in leach.out total data=0
this is confusing.
for calculating metric PDR if the total data is data received by BS node then how could i get sent data so as to calculate packet delivery ratio
i also have to calculate other metrics like throughput and delay but different values in different files,,!!
i also searched for the same on google but havent found enough stuff to calculate PDR of leach!!
any help will be appreciated!
thank you
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The files leach.alive, leach.data, leach.energy are for meant for a graphics plot e.g. Xgraph.
I don't know if you can get anything useful from the leach.out files.
Usually the genuine trace file.tr (leach.tr) is used for PDR, e.g. with :
PDR.awk, PacketDeliveryRatio.awk, PaDeFr.awk, Pdf-0.awk, pdf.awk
→ https://drive.google.com/file/d/0B7S...ew?usp=sharing
what i am able to conclude on the basis of facts collected,,,,most of the authors in their papers,,,plots total received packets at base station..not the ratio actually(A:B)
i think its not possible to calculate PDR(A:B) of leach in ns2.35 via trace file unless we change leach code files..m i right?
what u say knudfl??
in the files leach.save1 and leach.save2 both files have different values of total data BUT in leach.out total data=0
this is confusing.
for calculating metric PDR if the total data is data received by BS node then how could i get sent data so as to calculate packet delivery ratio
i also have to calculate other metrics like throughput and delay but different values in different files,,!!
i also searched for the same on google but havent found enough stuff to calculate PDR of leach!!
any help will be appreciated!
thank you
Hello!
I do research on this too.
1. leach.save1 and leach.save2 used for what?
2. Did you find any solution?
Thankyou
leach.save1 and leach.save2 : Are old saved examples of leach.out .
Not to be used for anything : You can read the files.
-
Thanks. But why when I check leach.out the result is always show Total Data = 0 ?
Even though leach.save1 and save2 have different results? Is it time-based? Then I'd better process the data from leach.out or leach.save?
Additionally, is there an explanation of the data that displayed? Like, what is total energy, total data, total alive, how can node die, etc?
Thank you for sharing. I am using leach in ns-2.35, Ubuntu 14.04. I do patch with tutorial on youtube (https://www.youtube.com/watch?v=XX9fooieASAS&sns=sms). In the video, leach.out shows Total Data = 0 too, is this error on leach patch or does leach can not be used on ns-2.35? Thank you
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #9.
The "Leach for ns-2.35" may have worked once.
With a specific OS, at a specific OS update level.
I have tested "leach_ns235-Jun2015.patch" with multiple OS´s.
No perfect results with any, I think.
Ref. http://www.nsnam.com/2015/05/leach-p...in-ns2-ns.html
The "Leach for ns-2.35" may have worked once.
With a specific OS, at a specific OS update level.
I have tested "leach_ns235-Jun2015.patch" with multiple OS´s.
No perfect results with any, I think.
Ref. http://www.nsnam.com/2015/05/leach-p...in-ns2-ns.html
-
Thank you. I also use the ref
So, Is there any simulator I can use for LEACH and DTN?
Actually I use ns-2.35 because I know ns-2.35 can be used for DTN.
Ref. https://www.netlab.tkk.fi/tutkimus/dtn/ns/
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
I think I need much ref for simulate it
Please explain in common words, what your question really means.
( Ref. is short for reference. And "it" can mean anything.)
To use "Leach": ns-2.34 + an old Ubuntu version is required : For Leach only.
For DTN : A separate ns-allinone-2.35, for DTN only.
( And a /usr/local/bin/ns-orig for default simulations.)
Please explain in common words, what your question really means.
( Ref. is short for reference. And "it" can mean anything.) -
It = wsn (leach) over dtn
Quote:
To use "Leach": ns-2.34 + an old Ubuntu version is required : For Leach only.
For DTN : A separate ns-allinone-2.35, for DTN only.
( And a /usr/local/bin/ns-orig for default simulations.) -
Is there a simulator to simulate leach and dtn? Not only leach or dtn, but both of them
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.