calculating PDR--leach in NS2.35
i run leach application in NS2.35.
system configuration Ubuntu14.04 64bit received output files successfully. please find attached documents below leach.out https://drive.google.com/file/d/0B3n...ew?usp=sharing leach.alive https://drive.google.com/file/d/0B3n...ew?usp=sharing leach.data https://drive.google.com/file/d/0B3n...ew?usp=sharing leach.save1 https://drive.google.com/file/d/0B3n...ew?usp=sharing leach.save2 https://drive.google.com/file/d/0B3n...ew?usp=sharing 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 |
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 "packet delivery ratio leach" https://scholar.google.dk/scholar?q=...1MAicQgQMIITAA → omnet++ → http://ieeexplore.ieee.org/abstract/...8/?reload=true omnet++ https://groups.google.com/forum/?fro...!forum/omnetpp → leach https://groups.google.com/forum/?fro...sort:relevance Latest postings https://groups.google.com/forum/?fro...ch%7Csort:date - |
Quote:
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?? |
Re #3.
Quote:
Please ask Pradeepkumar http://www.nsnam.com/2015/05/leach-p...in-ns2-ns.html ... He is the latest person who have worked with the leach code. The leach setup for ns2 is ancient. I guess the OMNeT++ leach is better ? - |
Quote:
Hello! I do research on this too. 1. leach.save1 and leach.save2 used for what? 2. Did you find any solution? Thankyou |
Re #5, @mauriz.
leach.save1 and leach.save2 : Are old saved examples of leach.out . Not to be used for anything : You can read the files. PDR : Code:
$ awk -f PDR.awk leach.tr Perl, awk scripts https://drive.google.com/file/d/1oid...ew?usp=sharing P.S. : Better results, see posts #1007, #1009 here https://www.linuxquestions.org/quest...68/page68.html - |
Quote:
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? |
Re #7.
Quote:
https://drive.google.com/file/d/0B7S...ew?usp=sharing Quote:
→ #1013 → https://www.linuxquestions.org/quest...68/page68.html 2. Wrong patch. Wrong ns2 version. ``ns-2.34 and leach+pegasis_ns234.patch.gz´´ creates better results → https://www.linuxquestions.org/quest...68/page68.html → #1007 #1009 - |
calculating PDR--leach in NS2.35
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
|
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 Quote:
A typical leach.out from a contemporary OS: Uploaded as leach.out__ns235.txt → https://drive.google.com/file/d/1bFw...ew?usp=sharing All . https://drive.google.com/drive/folde...lk?usp=sharing - |
Quote:
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/ Quote:
|
Re #11.
? Do you want to combine DTN with Leach ? Note : You can have as many ns-allinone-2.xx as you want, installed at the same time. But do never add any *PATH text to .bashrc. Not required. - |
calculating PDR--leach in NS2.35
yes, but I think I need much ref for simulate it
Did you have any ref, Mr? |
Quote:
( 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.) - |
Quote:
Quote:
|
All times are GMT -5. The time now is 05:31 PM. |