LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   SPIN and LEACH protocol in NS-2 (https://www.linuxquestions.org/questions/linux-general-1/spin-and-leach-protocol-in-ns-2-a-928523/)

shanky 02-09-2012 01:16 PM

SPIN and LEACH protocol in NS-2
 
Hi,

I have an upcoming project on wireless sensor networks and the protocols SPIN and LEACH.I would like to know which version of ns-2 should i use to implement these protocols and run some codes?
Are there any open source codes available for these protocols?
Please advice me or direct me in the right direction.A little confused as to how to begin.

Thanks
Regards

knudfl 02-09-2012 03:17 PM

LEACH patches are available for ns-2.27 and ns-2.34 :
http://www.linuxquestions.org/questi...ocol-885707/#2
ns234 info http://www.linuxquestions.org/questi...dora13-907076/

SPIN : Google .. spin ns2 ..

Two hits with code :
http://en.pudn.com/downloads71/sourc...259448_en.html
http://en.pudn.com/downloads135/doc/...573456_en.html

Seems to be the only available information ?
And you will have to download the patch(es),
to see which version of ns-allinone-2.xx it's for.

..

shanky 02-09-2012 03:57 PM

thank you knudfl ..i shall check it out and try ..but it would work on any version of linux right?? i mean fc 11 or 13 would'nt matter much..had faced issues concerning version of fc with ns-3 earlier..

knudfl 02-09-2012 04:05 PM

Default is CentOS / Scientific Linux.
( RHEL 6 / CentOS6 / SL 6 are Fedora 12 based.)

The most versions of ns2 were built and tested on the older
versions of RHEL / CentOS, e.g. CentOS 5.

But any Fedora will do. Just avoid Ubuntu 11.04, 11.10 and similar.

.

rajub 03-02-2012 02:42 AM

hi knudfl,

I've downloaded the SPIN source code. Can u guide me in integrating it with ns. I am using ns2.34 installed on ubuntu 10.04. I've already integrated LEACH with the help of other threads but there are no threads for integrating SPIN. Can u please help me. Thanks anyway.

knudfl 03-02-2012 02:55 AM

Post # 5, @rajub : Welcome to LQ. .. :) ..


An answer may be possible, if you can send the SPIN code :
http://www.linuxquestions.org/questi...ember&u=386037

shanky 03-02-2012 03:42 AM

Hi rajub,

Can you upload the spin code on the forum or can you paste the link over here??

Thanks

rajub 03-02-2012 04:29 AM

thanks for the prompt reply...
i've downloaded the spin code from the links u have mentioned above..
hope they will work!

http://en.pudn.com/downloads71/sourc...259448_en.html
http://en.pudn.com/downloads135/doc/...573456_en.html

rajub 03-02-2012 04:32 AM

let me know if the code available above works..
if not, please tell me where i can find it..

Thanks.

knudfl 03-02-2012 04:37 AM

#8 #9. May be not a valid link. No code.


Please use the link in post # 6.

shanky 03-11-2012 12:10 AM

Knudfl,

Can you please post the code for SPIN and also guide me in integrating with ns2.I have finished working with leach and now need to start with SPIN.

Regards

geetu verma 05-23-2012 07:15 AM

hello knudfl
please help me.i had installed the ns2.34 on ubuntu 11.10 but i am not able to run the given LEACH code .please tell me the steps to run the code as soon as possible

knudfl 05-23-2012 11:08 AM

# 11 : The available SPIN code is for ns-2.1b5.
Not usable in a contemporary OS.
May work with a 1999 OS / an old computer ?
https://docs.google.com/open?id=0B7S...3F0MGR2LTRJcjQ
→ old-spin.tar.gz


# 12, @geetu verma : Welcome to LQ.
> #5 http://www.linuxquestions.org/questi...34-a-870368/#5

http://www.linuxquestions.org/questi...dora13-907076/
→ Please use the attached files in posts #9, #11.

NS-allinone-2.34, Ububtu 11.10 :
http://erl1.wordpress.com/2011/10/14...neiric-ocelot/

.

geetu verma 05-25-2012 08:07 AM

Quote:

Originally Posted by knudfl (Post 4685696)
# 11 : The available SPIN code is for ns-2.1b5.
Not usable in a contemporary OS.
May work with a 1999 OS / an old computer ?
https://docs.google.com/open?id=0B7S...3F0MGR2LTRJcjQ
→ old-spin.tar.gz


# 12, @geetu verma : Welcome to LQ.
> #5 http://www.linuxquestions.org/questi...34-a-870368/#5

http://www.linuxquestions.org/questi...dora13-907076/
→ Please use the attached files in posts #9, #11.

NS-allinone-2.34, Ububtu 11.10 :
http://erl1.wordpress.com/2011/10/14...neiric-ocelot/

.

sir the steps u are give r followed by me give me error at the time when i write "leach.err".it say no such file or directory plz rely as soon as possible

knudfl 05-25-2012 08:54 AM

# 14, @geetu verma : Please write in English.
Short hand writing / SMS speak is not accepted here at LQ.
Quote:

the steps you are give are followed
Which steps ? ? Not sure you will get any LEACH,
if SPIN only was installed.
And which OS / ns2 version did you use ?

.


All times are GMT -5. The time now is 08:38 AM.