LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-09-2012, 01:16 PM   #1
shanky
Member
 
Registered: Aug 2011
Posts: 155

Rep: Reputation: Disabled
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
 
Old 02-09-2012, 03:17 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

..
 
Old 02-09-2012, 03:57 PM   #3
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
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..

Last edited by shanky; 02-09-2012 at 03:58 PM.
 
Old 02-09-2012, 04:05 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

.
 
Old 03-02-2012, 02:42 AM   #5
rajub
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 03-02-2012, 02:55 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
 
Old 03-02-2012, 03:42 AM   #7
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
Hi rajub,

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

Thanks
 
Old 03-02-2012, 04:29 AM   #8
rajub
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
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
 
Old 03-02-2012, 04:32 AM   #9
rajub
LQ Newbie
 
Registered: Dec 2011
Posts: 4

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

Thanks.
 
Old 03-02-2012, 04:37 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#8 #9. May be not a valid link. No code.


Please use the link in post # 6.
 
Old 03-11-2012, 12:10 AM   #11
shanky
Member
 
Registered: Aug 2011
Posts: 155

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-23-2012, 07:15 AM   #12
geetu verma
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
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

Last edited by geetu verma; 05-23-2012 at 08:16 AM.
 
Old 05-23-2012, 11:08 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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/

.

Last edited by knudfl; 05-23-2012 at 11:11 AM.
 
Old 05-25-2012, 08:07 AM   #14
geetu verma
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Question

Quote:
Originally Posted by knudfl View Post
# 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

Last edited by geetu verma; 05-25-2012 at 08:36 AM.
 
Old 05-25-2012, 08:54 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ?

.
 
  


Reply

Tags
leach, ns2, spin, spin-ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 05:19 PM
source code of leach protocol MAHAKR Linux - Newbie 1 06-11-2011 03:48 AM
protocol leach ezzati Linux - Newbie 5 05-03-2011 08:42 PM
Leach Protocol simuation avinash.more Ubuntu 1 01-24-2011 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration