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 10-27-2014, 03:26 AM   #1
rajbora80
LQ Newbie
 
Registered: Jul 2014
Posts: 13

Rep: Reputation: Disabled
Simulation of CR-MAC protocols using NS 2.31-CRCN patch


Hi everyone,

I want to do some simulation of CR-MAC protocols under NS2.31-CRCN patch...

I installed crcn patch in NS2.31...

There are some MAC protocols given but they seem to be incomplete...

Can anyone guide me how to do the simulations of the given MAC protocols in NS2.31 using CRCN patch?
IS there any available online simulation document of these protocols using crcn patch...


Please guide me as I need it urgently...

thanks to all and one in advance.............
 
Old 01-02-2015, 02:13 PM   #3
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
Question

I want to implement same thing using CRAHN SIMULATor but unable to do so.pls help me..
 
Old 01-02-2015, 03:17 PM   #4
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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← Post #3, jainshubh017 : Welcome to LQ.

TFRC-CRAHN info http://www.linuxquestions.org/questions/tags/crahn-ns2/
Build example, post #19 here ...
http://www.linuxquestions.org/questi...446/page2.html

The information required from you to supply an answer :
The same post #19 as above.

TFRC-CRAHN_ns231.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
TFRC-CRAHN_ns233.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
Old 01-03-2015, 01:49 AM   #5
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
i have tried to install ns as in post#5 in http://www.linuxquestions.org/questi...or-4175503446/ but it show following error-
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Solution:
In otcl-1.13/configure, line number 5516

-SHLIB_LD="ld -shared"
+SHLIB_LD="gcc -shared"

i changed code acc. to sitehttp://ramakrishnamundugar.blogspot....untu-1204.html

now it is showing error-
cognitive/SpectrumManager.o: In function `SpectrumManager::senseHandler()':
SpectrumManager.cc.text+0x37d): undefined reference to `Mac802_11::checkBackoffTimer()'
cognitive/SpectrumManager.o: In function `SpectrumManager::transmitHandler()':
SpectrumManager.cc.text+0x56f): undefined reference to `Mac802_11::checkBackoffTimer()'
collect2: error: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems


i am using ubuntu 14.04 LTS 32 bit os
 
Old 01-03-2015, 03:38 AM   #6
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
i am using ubuntu 14.04 32 bit.
i hv tried to install as post#5 in ur link http://www.linuxquestions.org/questi...or-4175503446/
but failed to do so
do i have to set PATH.
 
Old 01-03-2015, 07:07 AM   #7
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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Ubuntu 14.04 - 32bits, TFRC-CRAHN

← #5 .

Download the compilers ....
gcc41 https://drive.google.com/file/d/0B7S...ew?usp=sharing
g++41 https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ {gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb}
→ Click the packages, and they will be installed.
→ Then reboot to automatically add the new compilers to $PATH.

Building ns-2.31 + TFRC-CRAHN :
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ patch -p0 < TFRC-CRAHN_ns231.patch
$ export CC=gcc41 CXX=g++41 && ./install
$ cd ns-2.31/
$ sudo make install
$ cp ns ns-crahn
$ sudo cp ns-crahn /usr/local/bin/
... That's it. No *PATH text to add !

The old (year ~1999) text about "add <PATH> to .bashrc" :
Was meant for a `University Computer´.
I.e. you had no write permissions to /usr/.

-

Last edited by knudfl; 01-03-2015 at 07:11 AM.
 
Old 01-04-2015, 12:48 PM   #8
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
dear knudfl i have followed ur steps as in post#7 till
tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ patch -p0 < TFRC-CRAHN_ns231.patch
$ export CC=gcc41 CXX=g++41 && ./install

after it shows error-
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

p.s-thank u for ur help..
 
Old 01-04-2015, 04:35 PM   #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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #8 .

? What's the reply from the command $ which gcc41
 
Old 01-05-2015, 03:14 PM   #10
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
no reply from that command
shubham@shubham-Inspiron-N5110:~/ns-allinone-2.31$ which gcc41
shubham@shubham-Inspiron-N5110:~/ns-allinone-2.31$
 
Old 01-05-2015, 07:23 PM   #11
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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #10 .

No gcc41 : Usually means that the package isn't installed.

? What's the reply from this command :
sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb

* If the terminal reply ends with "setting up <package name>",
then it's a successful package install

* Remember to do a real restart of the computer,
to activate the PATH script ( /etc/profile.d/gcc41.sh ).

-
 
Old 01-07-2015, 04:24 AM   #12
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
terminal reply ends with "setting up <package name>",

but still getting same error
 
Old 01-07-2015, 04:31 AM   #13
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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #12 .

OK, may be the script /etc/profile.d/gcc41.sh didn't set the PATH you wanted.

* Setting the PATH for everybody, including root :
$ cd /usr/bin/
$ sudo ln -s ../gcc41/bin/gcc41
$ sudo ln -s ../gcc41/bin/g++41
... Which will provide /usr/bin/{ gcc41, g++41 }
... Please test afterwards, with $ which gcc41


-
 
Old 01-07-2015, 09:35 AM   #14
jainshubh017
LQ Newbie
 
Registered: Dec 2014
Posts: 22

Rep: Reputation: Disabled
i have tried steps in post#7 in my friends's laptop
it is executing now.

but xgraph and nam is not running.

thank you for ur helpp.
 
Old 01-07-2015, 11:31 AM   #15
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: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
← #14 .

Xgraph : Is usually installed together with the ns2 prerequisites :
$ sudo apt-get install \
g++ g++-4.4 autoconf automake libtool libxmu-dev xgraph


Nam : Please download nam_1.15-10_i386.deb →
http://www.linuxquestions.org/questi...-4175524760/#2
→ → https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ Click the package, and it will be installed by the 'Package Installer'.

-
 
  


Reply

Tags
crahn-ns2, crcn, crn, 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
ns2.31 and CRCN patch buptmuye Linux - Wireless Networking 27 01-06-2016 07:27 PM
Installation of CRCN patch in NS2.31 abrartunio Linux - Wireless Networking 10 12-28-2015 09:20 PM
[SOLVED] ns2.31 CRCN patch problem leki Linux - Software 23 11-26-2015 03:32 PM
[SOLVED] Meaning of Traffic and IT file generated after simulation in CRCN jaibaba1 Linux - Software 11 07-16-2014 07:22 AM
problem rising when i im trying to install crcn patch amiruldin Ubuntu 3 05-02-2014 04:09 AM


All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration