Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 need the .tcl codes for LEACH and SPIN protocols. Could you mail me the codes to my e-mail id either to 'ksdeshamukh@gmail.com' or 'kartikavya@gmail.com'
I need the .tcl codes for LEACH and SPIN protocols. Could you mail me the codes to my e-mail id either to 'ksdeshamukh@gmail.com' or 'kartikavya@gmail.com'
No we won't. This isn't the place to come for handouts, or the place where you can get free, customized, personal one-on-one consulting/tech-support. This is the place to come for HELP. Show us what you've done/tried, and where you're stuck. Otherwise, you can look things up on Google yourself.
LEACH : The files to run the simulation { test, leach_test, wireless*.tcl }:
In the leach patches →
exidus-pegasis-leach-ns234.patch.2.tar.gz , ns-234-leach.tar.gz , etc.
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484
Rep:
# 4 .
There are examples, where people say : I added SPIN to ns-2.34/,
but they didn't tell how to do it.
? Might be simple, it's a few lines to edit.
("Old ns2 mac* might be too different from "new ns2 mac* ?)
.. Besides that, is the SPIN protocol used at all in real life ?
the error mentioned in #6 is encountered.
I typed " ns rca.tcl " in ns-2 terminal and it showed the message in post #6 and stopped execution.....
TO knufdl, Sir/Madam, could pls upload a video how to execute SPIN protocol from scratch. It would be helpful....
Pls do as soon as possible....... need them badly .......... Thank you.....
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484
Rep:
# 10 .
This is the result I got so far : Making the ten diff´s between the original
ns-2.1b5a files, and the "ns-2.1b5a SPIN code" , like :
$ diff -Nau ns-allinone-2.1b5a/ns-2.1b5/ll.h spin/ll.h > ll.h.patch
The 10 files are attached as DIFF-2.1b5__spin.tar.bz2.txt .
Download the 4.2kB package, rename to DIFF-2.1b5__spin.tar.bz2, and unpack.
.. Then you have the 10 times "code to be added to ns-2.xx" files.
.. I will try if the code is usable at all with ns-2.34 .... later.
.
To knudfl, Sir I am attaching the leach.txt file, could you provide me the a similar file that works for spin protocol, which shows output on nam and graph. Pls help me .. I need to have atleat some of the output by tomorrow please help me sir.... Waiting for your reply.....
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484
Rep:
# 12 .
Not leach.txt : You mean leach.tcl.txt . ( Saved here as ``kartiksd-(leach).tcl´´ ).
? I don't see that this tcl file has anything to do with LEACH.
? It's just a very nice simulation example with three xgraph outputs.
The file can be used with any "none leach executable 'ns' ".
If really leach , then please explain the "leach functions".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.