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.
Does anyone solved the problem Data = 0 in leach ns-2.34
I am working with leach and my leach.out shows
At 23.20000000000006: - mit/uAMPS/stats.tcl
Total Energy = 16.416541167470896
Total Data = 0
Total Alive = 14
Simulation complete. - mit/uAMPS/stats.tcl
I have read many threads here but no one answered why we are getting Data =0?
can anyone help?
hello,deepa_2111,
I got the exactly the same problem with you now,could you tell me how do you solve the problem specificly?
Quote:
Originally Posted by deepa_2111
Hey ..
Thanks a lot ...
I've got it running. Regarding ns-allinone-2.35-RC4, it is coz I'm running it on cygwin, and I think this is the most stable version.
I was trying to run the leach_test file, and i had the issues i mentioned above. I fixed it by manually typing the path to remove any extra spaces.
hello all,
i want to work on HELLO flooding attack on leach routing protocol in ns2.34 on ubuntu 10.04. I have already installed leach patch in it and now i want to implement hello flood attack but i have no idea how to do it.. please help me.
I've wrote this simple awk file https://docs.google.com/uc?id=0BzLWx...download&hl=en to calculate the actual cumulative expanded energy by all nodes over time, it's for Leach-C. to be executed for Leach just comment or delete the first 'if condition'. download it into "/mit/leach_sims" and run the command:
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34/mit/leach_sims$ awk -f TotEn.awk leach-c.energy // for Leach-C
wsn@ubuntu:/opt/ns-allinone-2.34/ns-2.34/mit/leach_sims$ awk -f TotEn.awk leach.energy // for Leach
Hi MayTamer
Can you please give me the file TatEn.Awk for leach-c.energy and TotEn.awk for leach.energy . Because the link is not working . Please
Thinks
hi all
i have successfully generated tcl file for leach from mannasim. can anyone tell which parameters should be change to get the different scenario.
can xgraph be generated from leach mannasim file.?
Build example, CentOS 6.6 - 32bits
1) tar xvf ns-allinone-2.34.tar.gz
2) cd ns-allinone-2.34/
3) tar xvf leach+pegasis-ns234-files-2.tar.gz
4) ./install
5) cd ns-2.34/
6) # make install
I have installed leach and leach-c protocol but how to plot graph from leach.alive, leach.energy and leach.data file......
And how to calculate network lifetime and remaining energy for both leach and leach-c protocol.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #72.
The first question :
Create the plot file : $ awk -f leach__nodes-alive.awk leach.alive >> leach.alive.txt
Plot the file : $ xgraph leach.alive.txt &
The awk script http://www.linuxquestions.org/questi...-4175556129/#9
... and please read the thread.
This "leach_ns235-Jun2015.patch" (#11) for a 64bits OS actually supplies usable files.
Which may be a problem with the previous LEACH patches : Not good with a contemporary 32bits OS.
The first question :
Create the plot file : $ awk -f leach__nodes-alive.awk leach.alive >> leach.alive.txt
Plot the file : $ xgraph leach.alive.txt &
The awk script http://www.linuxquestions.org/questi...-4175556129/#9
... and please read the thread.
This "leach_ns235-Jun2015.patch" (#11) for a 64bits OS actually supplies usable files.
Which may be a problem with the previous LEACH patches : Not good with a contemporary 32bits OS.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Re #74.
Use Google, learn to use Google. You are supposed to search Google before asking.
`leach__nodes-alive.awk' : Found in a few seconds ( last month.)
`leach.data.awk' : Your search. Or you can write the script yourself.
`leach_energy.awk' >> "leach_energy1.awk" / *energy2* : A few seconds ... http://blog.csdn.net/delphiwcdj/article/details/6033459
... The scripts are attached as leach_energy*.awk.txt .
-
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.