LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-18-2018, 07:59 AM   #1
karyon25
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
Leach on CRCN


Could some one help me, how to use LEACH on CRCN? After I install the CRCN patch on ns-2.31, there is no leach protocol in ns2.
 
Old 05-18-2018, 10:50 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,026

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
Welcome to LQ.

Did you apply a LEACH patch to ns-2.31 ?
 
Old 05-18-2018, 11:59 AM   #3
karyon25
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Dear knudfl,

Do i need to install the patch for LEACH again?

In ns 2.31 I have not installed the patch of leach.
 
Old 05-18-2018, 12:40 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,026

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
Quote:
Do i need to install the patch for LEACH again?
Where did you apply the LEACH patch ? Not ns-2.31 ?

And which patch did you use ?
 
Old 05-18-2018, 12:47 PM   #5
karyon25
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Dear kndulf,
I have not installed LEACH patch in anywhere yet. I want to implement LEACH-C patch for this.
I have not installed leach patch so could you please suggest accordingly.
 
Old 05-18-2018, 01:26 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,026

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
1. Nobody have ever added CRCN to an ns2 with another complex protocol, AFAIK.
( Except for D2CARP, which is another "Cognitive Radio" protocol.)

1a. The same with Leach: Will usually conflict with another extra protocol.

2. The MIT LEACH (Leach, Leach_c, etc.) requires an old 32bits OS :
Ubuntu 10.04 - i386. See posts #1007, #1009 here ...
https://www.linuxquestions.org/quest...68/page68.html

2a. Mannasim : Any OS, 32 or 64bit. Leach included, but no Leach_C, AFAIK.

3. CRCN requires an oldish 32bits OS : CentOS 6.9 - i386.
.... CentOS 6.9 is used because it is supported.

Ubuntu 10.04-i386 can be used for both, I'll give it a try ... later.

-

Last edited by knudfl; 05-18-2018 at 01:29 PM.
 
Old 05-21-2018, 05:52 AM   #7
karyon25
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
LEACH-C

Considering your experience that the installation of LEACH with CRCN may conflict, can I use install leach-C with centos 6 (32 bit) without installing CRCN patch.
Could you help suggest me working patch (leach-c) for NS-2.31?
 
Old 05-21-2018, 09:18 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,026

Rep: Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444Reputation: 3444
Re #7.

So far CRCN seems to conflict with LEACH. The best chance is LEACH + D2CARP.
D2CARP https://www.linuxquestions.org/questions/tags/d2carp/

There's a good chance with LEACH and ns-2.31 ... with Leach as the only addition.
... I'm still working with some solutions.
Note: You can have as many ns-allinone-2 (2.31) as you want, installed at the same time.
But, do never add any *PATH text to .bashrc . Not required.
https://drive.google.com/file/d/14OT...ew?usp=sharing

Cognitive Radio ns2, overview:
Code:
CogNS : ns-2.31  64bit : OK.   macng: No.  	CogNS-2_ns231-gcc44.patch

CRCN : ns-2.31.  32bit CentOS 6 only.  macng, wcett	  crcn_ns231.patch

CRN : Like CRCN. Only ns-2.31. 32bit CentOS 6 only.  macng, wcett     crn_ns231__2.patch

TFRC-CRAHN : Best with ns-2.31. macng: No. 64bit: OK. TFRC-CRAHN_ns231.patch, TFRC-CRAHN_ns233.patch

D2CARP : ns-2.34, ns-2.35 . macng: No.  64bit.  CRN-D2CARP_ns234-gcc5.patch, CRN-D2CARP_ns235.patch
... All patches https://drive.google.com/drive/folde...00?usp=sharing

-
 
  


Reply

Tags
crcn, leach, 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
How to solve error in leach.err file while running leach code in ns-2.35? Kausha LinuxQuestions.org Member Intro 1 01-18-2016 03:07 AM
leach.out total energy increase leach ns2.34 linuxUser123linux Linux - Software 1 07-13-2013 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 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