LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-06-2014, 10:31 AM   #16
kartiksd
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled

can you tell the similar steps for SPIN protocol as given for LEACH protocol in http://www.linuxquestions.org/questi...34-a-870368/#5
 
Old 05-06-2014, 11:08 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,633

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
# 16 .

Well, you already have the code, with the old line numbers.
See post #11, DIFF-2.1b5__spin.tar.bz2.txt

Add the code to the right places, in e.g. ns-2.34 .

-
 
Old 05-06-2014, 01:31 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,633

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Post #11, continued ...

Adding the code to ns-2.34 : Fails with app.cc, app.h .
Apparently some of the code isn't usable.
Either the code is buggy, or will work with g++-2.95 only.
( I did try using g++-3.2.3 : No luck.)

* You will need assistance from somebody with c++ knowledge.

-
 
Old 05-06-2014, 09:26 PM   #19
kartiksd
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
for the steps mentioned in the link for leach protocol in #16 editing the make file is not possible, it is read only file.. how to edit it
 
Old 05-06-2014, 09:57 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,633

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Post #19.

Ref. "the oldest" post in the Leach thread with 859 posts.

What do you mean ? Are you using the files in Windows© 7 ?
Or do you use a Windows© tool to unpack the files ?
The permissions will stay e.g. 0644 / -rw-rw-r-- with genuine Linux*.
** Do not use the "Makefile". Use "Makefile.in" instead. No edits.

And why use the oldest ns234 patch ? Latest is leach-ns234-patching.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
. http://www.linuxquestions.org/questi...68/page53.html , post # 789.

If you want a patch that works without much editing it's
leach+pegasis-ns234-files-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
That's the edited version, by @exidus. Posts starts at #289, and ..
. http://www.linuxquestions.org/questions/tags/pegasis/

-

Last edited by knudfl; 05-06-2014 at 10:10 PM.
 
Old 07-19-2014, 04:25 PM   #21
sin1028
LQ Newbie
 
Registered: Jul 2014
Posts: 1

Rep: Reputation: Disabled
to knudfl:
same error goes to me; the error as stated in #6.
i have checked the 10 diff code. Most of the spin tar has those line inside. Nothing much to be edited.
i'm using ns2.35 on ubuntu 14.04

Last edited by sin1028; 07-19-2014 at 04:35 PM.
 
Old 03-18-2015, 03:20 AM   #22
sampathvinayak
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
.tcl file needed

please mail .tcl file of basic leach protocol and leach with any attacks like gray hole attack or warmhole attack or black hole atack to sampathvinayak37@gmail.com

Last edited by sampathvinayak; 03-18-2015 at 03:21 AM. Reason: forgot to give mail
 
Old 04-26-2015, 12:52 PM   #23
soufien1988
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Rep: Reputation: Disabled
spin in ns2

how to implement spin in ns2
 
Old 04-26-2015, 03:10 PM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,633

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Post #23, @soufien1988 : Welcome to LQ.

The "old spin" is / was for ns-2.1b5 . "old-spin.tar.gz" :
https://drive.google.com/file/d/0B7S...ew?usp=sharing

SPIN-diff__ns2.1b5.tar.bz2
https://drive.google.com/file/d/0B7S...ew?usp=sharing

SPIN info http://www.linuxquestions.org/questions/tags/spin-ns2/
>>> Read the above posts !

** Please do not repeat your questions.
Duplicate threads / posts are not allowed at LQ. We answer when we can and will.

-
 
Old 04-27-2015, 02:59 AM   #25
soufien1988
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Rep: Reputation: Disabled
ns2

hi knudfl,
I install ns-allinone-2.34 in ubuntu 12.04 and I download spin protocol source code but while executing rca.tcl in SPIN protocol, I encountered this error:

can't read "env(RCA_LIBRARY)": no such variable
while executing
"source $env(RCA_LIBRARY)/timer.tcl"
(file "rca.tcl" line 1)
I did not understand what to do for the first time that I've been using this program please help me, I have a 30-day, and I'm in the same problem I hope to help you and thank you
 
Old 04-27-2015, 03:06 AM   #26
soufien1988
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Rep: Reputation: Disabled
is it-I changes the version of ns-allinone-2.34 on ns-2.1b5
 
Old 04-27-2015, 03:33 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,633

Rep: Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268Reputation: 3268
Re #25.

"rca.tcl" is not a simulation file.
"rca.tcl" is a "configuration file".
** Please read the file. Simulation files are quite different.


Besides that, there are no records of anybody ever used SPIN successfully.


-
 
Old 04-27-2015, 03:51 AM   #28
soufien1988
LQ Newbie
 
Registered: Apr 2015
Posts: 6

Rep: Reputation: Disabled
so what file I run
 
  


Reply

Tags
spin-ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SPIN and LEACH protocol in NS-2 shanky Linux - General 18 04-26-2015 04:02 AM
LEACH and dsdv in tcl file linuxUser123linux Linux - Software 1 03-05-2014 12:05 AM
LEACH tcl linuxUser123linux Linux - Wireless Networking 2 07-19-2013 12:03 PM
a tcl sample file using leach saeed.m Linux - Software 2 07-15-2013 04:47 AM
SPIN and TEEN protocols shanky Linux - Newbie 1 03-10-2012 01:42 PM


All times are GMT -5. The time now is 07:27 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration