LinuxQuestions.org
Review your favorite Linux distribution.
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 01-24-2012, 11:57 PM   #1
Sudha Rajaram
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
How to install cbrp protocol in ns2.35


I am doing my project in wireless sensor networks. For cluster head selection i have planned to use cbrp protocol. But i don't know how to install it in ns2.35. Can anyone help me to continue with it.
 
Old 01-25-2012, 04:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.

Probably use CBRP for the ns2 version, it is meant for. Ns-allinone-2.29.3 ?

You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.

Note : Ubuntu 11.10 cannot be used for any ns2.
If it must be Ubuntu : Version 10.04 ( or 10.10 ) can be used.

..
 
Old 01-25-2012, 06:31 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Or you can download it from here:

http://www.comp.nus.edu.sg/~tayyc/cbrp/

extract the package and compile it.
 
Old 07-05-2012, 01:18 AM   #4
vinoshanthi
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
Hi,
I tried a lot to install CBRP in ns2.35...I'm using the files in that link.
I've change the Makefile and Makefile.in and try to configure it by ./configure
But it stopped from here ---> "config.status: autoconf.h is unchanged"

Now It doesn't allow me to change the Makefile also..
Can anyone help me??
 
Old 07-05-2012, 02:23 AM   #5
kgntech
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: 0
Thanks for posting for much liked and informative blog, please keep up your good work like this.
 
Old 07-07-2012, 05:12 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Post #4, @vinoshanthi : Welcome to LQ.

The code linked in post #3 is for ns-2.1b5 only.
"ns-2.1b5" could be used in some "1999 Linux OS".
Not usable in a contemporary OS.

The code must be edited, if you want to use it in ns-allinone-2.xx.
Some of the old ns2.1b5 patches have been ported to ns-2.26, ns-2.27,
etc. I have found no CBRP patches, that are usable in "2.26 ... 2.35".

.
 
Old 07-08-2012, 11:53 PM   #7
vinoshanthi
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
@knudfl
Thanks for your information. If you found anything about this please do post it.
It will be really helpful.
 
Old 08-29-2015, 06:07 AM   #8
manpreet kaur
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
tcl script of cbrp protocol

hello sir, i am using a ns 2.35 version , i need a patch of cbrp protocol and also tcl script of cbrp protocol plse send me code and patch in my email is sahnipreet15@yahoo.com
 
Old 08-29-2015, 07:45 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
@manpreet kaur : Welcome to LQ.

The available code is mostly from year 2000. The @nitin code probably 2013.
. http://www.comp.nus.edu.sg/~tayyc/cbrp/
. https://groups.google.com/forum/#!ms...8/aBk2dghC4F4J

There used to exist some more links, i.e. some are not valid any more.
Please see the attached files.
-
Attached Files
File Type: txt CPRP_ns229.txt (880 Bytes, 88 views)
File Type: txt CBRP-links.txt (908 Bytes, 64 views)
File Type: txt TextFile-nitin.txt (152 Bytes, 52 views)

Last edited by knudfl; 08-29-2015 at 07:53 AM.
 
Old 10-08-2015, 06:41 AM   #10
astyvalentina
LQ Newbie
 
Registered: Oct 2015
Posts: 3

Rep: Reputation: Disabled
Ineed help sir, about cbrp

Quote:
Originally Posted by knudfl View Post
@manpreet kaur : Welcome to LQ.

The available code is mostly from year 2000. The @nitin code probably 2013.
. http://www.comp.nus.edu.sg/~tayyc/cbrp/
. https://groups.google.com/forum/#!ms...8/aBk2dghC4F4J

There used to exist some more links, i.e. some are not valid any more.
Please see the attached files.
-
Hello sir, have you tried using cbrp and patching in NS 2? Can you help me to teach me how to patching and give me the right source code about cbrp? thanks in advance sir
 
Old 02-11-2016, 10:53 PM   #11
Pashya
LQ Newbie
 
Registered: Feb 2016
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
Any help??I have the same issue with cbrp in NS 2.35
 
Old 02-14-2016, 09:04 PM   #12
Pashya
LQ Newbie
 
Registered: Feb 2016
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
I am having problem with simulating the CBRP protocol in NS2.35. Can someone help me with it?

When I tried running the CBRP protocol from *

http://www.comp.nus.edu.sg/~tayyc/cbrp/

I get an error message of the form

invalid command name "NetIf/SharedMedia"
while executing
"NetIf/SharedMedia set CPThresh_ 10.0"
(file "cmu/scripts/run.tcl" line 70)

when i changed the network interface to Phy/WirelessPhy the error is

invalid command name "MobileNode"
while executing
"MobileNode instproc init args {
eval $self next $args ;# parent class constructor

$self instvar nifs_ nports_ arptable_ classifier_ dmux_
$self i..."
(file "cmu/scripts/mobile_node.tcl" line 20)
invoked from within
"source.orig cmu/scripts/mobile_node.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source cmu/scripts/mobile_node.tcl"
(file "cmu/scripts/run.tcl" line 156
 
  


Reply

Tags
cbrp, 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
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 05:06 AM
protocol used in ns2 simulator keerthanagupta Linux - Newbie 0 01-23-2012 02:06 AM
installing a new protocol in ns2.34 MounaRM Linux - Networking 1 11-26-2010 08:45 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM


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