You are on page 1of 7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

33

Mano
Ihavethelight,comegetenlightened
DEC302010

CognitiveRadioNetworkSimulatorinstallation

CognitiveRadioCognitiveNetworks(CRCN)Simulatorisbasedonns2simulator.InthispostIwould
explainindetailthestepsneededtoruncrcnsimulationsinyourLinux.
Note:Theinstallationissuccessfulonlyinversion2.31ofns(nsallinone2.31)
Step1:DownloadCRCNfrom<here
(http://faculty.uml.edu/Tricia_Chigan/Research/CRCN%20user%20code%203/CRCN%20user%20code%203/crcn.zip)>
andnsallinone2.31from<here(http://sourceforge.net/projects/nsnam/files/allinone/)>
Step2:IMPORTANT:backupyournsallinone2.31folderbeforeproceeding.Thisiswillhelpusto
restoretheworkingns2installationincaseanythingunexpectedoccurs.
Step3:ExtractCRCN.zipandyouwillseeseveralfilesinsidethat.Youhavetocopyeachfileinthatand
replacethecorrespondingfilesinns2.31folder.
Letmeexplainthisinmoredetail.
IfyouhaveafoldernamedAODVincrcn.Copyallitscontentsandpasteitin/home/micman/ns
allinone2.31/ns2.31/aodvfolder.
Heremicmanismyusername,replaceitwithyourusername.
Youwouldbereplacingtheexistingaodvfoldercontentswiththenewoneyoucopiedfromcrcn.Leave
restofthefilesunmodified.
Similarly,youwillhavefoldersnamedcommon,mac,mobileandsoon.RepeatStep2forallthese
folders.
Step4:Finally,youwillbeleftwithsometclandperlscriptsinsidethecrcnfolder.Justcopythemand
placetheminanyfolder,preferably/home/micman/nsallinone2.31/ns2.31
Step5:OpenMakefileinrootusermode
$su
#gedit/home/micman/nsallinone2.31/ns2.31/Makefile
Hereihaveusedgediteditor.replaceitwiththeeditorofyourchoice.
Step6:IntheMakefile,findthelinethatsays
https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

1/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

OBJ_CC=\
Inmysystemitisatline164.
Step7:CopythefollowinglinesandappendittoOBJ_CClistingasshown
wcett/wcett_logs.owcett/wcett.o\
wcett/wcett_rtable.owcett/wcett_rqueue.o\
mac/macng.omac/maccon.o\
mac/macngenhanced.o\

(https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/objcc/)
SaveandclosetheMakefile.
Step8:NextexecutethefollowingcommandsinTerminal.
makeclean
makedepend
make
Ifeachofthesecommandsrunwithoutanyerror,thencrcninstallationissuccessful.
Errorswereexperiencedinotherversionsofns2.
ThereisalsoaGUIavailableforCRCNsimulation.Itsjustajarfilethatjustneedstobeexecuted.Allyou
needtodoistorunitstraightaway,butbeforethatithassomedependencies/prerequisites:
*JDK6orlaterversionsshouldhavebeeninstalled.[DownloadJavaJDK
(http://www.java.com/en/download/manual.jsp)]
*Gnuplotshouldhavebeeninstalled.[DownloadGnuplot(http://www.gnuplot.info/)]
Ubuntu10.10userscouldinstalliteasilybyexecutingthefollowinglineinTermninal.
$sudoaptgetinstallgnuplot
*Download<this
(http://stuweb.ee.mtu.edu/~ljialian/CRCN%20user%20code%203/CRCN%20user%20code%203/throughput.pl)>
perlscriptandplaceitin/home/micman/nsallinone2.31/ns2.31/
Heremicmanismyusername
*FinallyDownload<this
(http://stuweb.ee.mtu.edu/~ljialian/CRCN%20user%20code%203/CRCN%20user%20code%203/CRCN.jar)>
jarfile.
Thejarfilecouldbeexecutedasfollows:
$javajarCRCN.jar
https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

2/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

FormorehelponhowtousetheCRCNGUIgo<here(http://stuweb.ee.mtu.edu/~ljialian/helpv4.htm)>

(https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/tip5/)

(https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulator
installation/blogger_appeal/)

About these ads


ByManojKumarPostedinNetworkSimulator(ns)TaggedCognitiveRadioCognitiveNetwork,
(https://wordpress.com/aboutthese-ads/)
crcn,nsallinone2.31,ns2

33commentsonCognitiveRadioNetwork
Simulatorinstallation
1. PINGBACK:hi
KG
JANUARY14,2011@9:53AM
HeyManoj,IseethatyouareworkingwithCRCNsimulator.Ihavejusstartedwithit.Doyouhave
anyexamplescriptstorunforitforthesingleradiomultiplechannelconfiguration.Ifyoufindsome,
plsletmeknowtoo
manoj1987
JANUARY14,2011@12:05PM
https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

3/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

HiSerene!
VisitCRCNofficialsite.
DownloadtheCRCNguijarfiletheyprovide.
Iguesstherearesomesamplescriptsbundledintoit!
KG
JANUARY19,2011@6:36AM
HelloManoj,
Ididcheckwiththescriptsthere.Ibasicallywanttoworkwithasingleradiomultichannel
environmentbutthechannelindex_variablethatgiveninthepacketheaderisnottakinganyvalues
orthelowerlayerastheysayshouldsupportthisdecisionisprobablynotsupportingthedecision.
Canyouhelp?
Thanksalot!
manoj1987
JANUARY19,2011@10:01AM
HiSerene!
IamsorrytosaythatapartfrominstallingCRCN,Igotnoknowledgeaboutit.Ilearntthe
installationparttohelpoutmycolleagueswhohavejuststartedintoCRCN.
KG
JANUARY19,2011@11:44AM
Ok.Thanks!
dipak
JANUARY24,2011@10:18AM
Hi
plznametheofficialwebsiteofCRCN
KG
JANUARY29,2011@10:54AM
Dipak,
Followthelink:stuweb.ee.mtu.edu/~ljialian/
jaibaba
FEBRUARY15,2011@12:28PM
thankyouverymuch.Yourcleardescriptionhelpedmealot
manoj1987
FEBRUARY15,2011@9:23PM
OhThatssogoodtohear
Insteadofathanksyoucancontributeyourfindingstotheworld.
Asmallstepcanmakeabigchange.
LOKESH
FEBRUARY21,2011@5:33PM
ihaveinstalledsuccessfullyNS2.
butimgettingtheerrorinmakedepend
make:***[depend]Error2
pleasesuggest
KG
FEBRUARY22,2011@12:49AM
LOKESH,
Whichstepareyouon?Haveyouinstalledns2.31orsomeotherversionofns?
starbear
MARCH26,2011@6:07PM
LOKESH,
Ihavethesameproblematstep8,makedependerror,haveyousolvedityet?Iinstalledns22.31.

undefinedreferenceto`hdr_wcett::offset_
https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

4/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

undefinedreferenceto`hdr_wcett::offset_
collect2:ldreturned1exitstatus
make:***[ns]Error1
Ajit
APRIL13,2011@7:37AM
formake:***[depend]Error2inubuntudothefollowing.
sudorm/bin/sh
sudolns/bin/bash/bin/sh
Nirav
APRIL15,2011@1:18PM
INCRCNGUIitdoesnotgivemeselectionfortrafficnexttothroughputtab.Cananyonehelp?
Thanksinadvance
Ali
APRIL22,2011@2:35PM
HelloallimtryingtoinstallCRCN.shouldifirstinstallns2.31andtheninstallcrcn?cananyone
explainplz.
Thanks
Sunil
AUGUST8,2011@10:15AM
Hi,IamgettingsameerrorasLOKESH
Everyversionofsoftwares,(ns2,jreetc)isasperthispagesrequirements.yetIamgettingerrorat
step8whentryingmakedepend
Munam
NOVEMBER24,2011@1:35AM
hythere!
Iamtryingtorunmakefilebutitsgivingfollowingerror.pleaseadvice
Makefile:520:***commandscommencebeforefirsttarget.
Maria
DECEMBER1,2011@5:57PM
ihaveinstalledns2.31onubuntu10.04.whenIdomakedependitgivesmethiserror.Thanksfor
yourhelp.
make:***[depend]Error2
SusheelKhiani
MARCH28,2012@7:39PM
hey
thanksforthepost
amhavingadoubt
ihavedownloadns2allinone,butthereisnoMakefileinit.thoughthereismakefile.vcand
makefile.in
asaresultamnotabletomoveaheadfromstep6onwards
thistheerroriget
root@susheelCompaqPresarioCQ40NotebookPC:/home/susheel/Desktop/nsallinone2.31/ns2.31#
make
make:***Notargetsspecifiedandnomakefilefound.Stop.
pleasehelp..
amreallybadlystuck.
thanksalot
islam
MAY3,2012@10:49PM

https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

5/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

wheniusethiscommandforexamplensrandom.tcl
ifounderrorsalsothatishappendwithmostcodes..
whatisthesolutionhelpmeplz
aryamita
MARCH5,2013@11:34PM
hello,sir
Iveinstalledcrcnbuttherearetwoproblems(i)whenitypedinnamfilename.namtoseethe
animationfile,onlythenamconsolecamewithoutanynodesoranyoutput.howdoigetproper
animationwindpw?
(ii)incrcnguiwhenipressedinterferencebutton,thenjustablankscreencomes.whatdoidotogetit
correctly.
Pleasehelp/guidme,sir
Regards,
Aryamita
naresh
APRIL12,2013@9:56AM
whilerunningsampletclfilewhichislocatedinsidecrcnfolder,iamgettingerrorsayingthatunable
tosetchannel
butnodeissettingwithoutanyerror
SonuMishra
JUNE19,2013@11:53AM
whenIrunmakedepend,Iget:
make:***[depend]Error1
Afewlinesbeforeitareasfollows:
internet.ccemulate/ping_responder.ccemulate/arp.ccemulate/icmp.ccemulate/netpcap.cc
emulate/nat.ccemulate/iptap.ccemulate/tcptap.cccommon/tclAppInit.cccommon/tkAppInit.cc>&
/dev/null
Pleasehelp.
leye
AUGUST22,2013@5:54PM
Hinaresh
plziamhavingfewchallengesinCRCNinstallationonNS2.35,couldyoupleasehelp
thanksinadvance
amir
AUGUST24,2013@10:13AM
Hi
Iinstallns2.31inubuntu12.0464bit.IwanttoinstallCRCN,butinstep8whenIusedcommand
make,igetthiserror:
collect2:ldreturned1exitstatus
make:***[ns]Error1
canyouhelpme,Ireallyneedit..
thanks
Prakash
AUGUST28,2013@8:04PM
IcannotdownloadCRCNforthedirectedsource..says
NotFound
TherequestedURL/~ljialian/crcn.zipwasnotfoundonthisserver.
Apache/2.2.3(RedHat)Serveratstuweb.ee.mtu.eduPort80..
Expectinghelpfromanybodyouthere
ThankYou.
anhvanle
OCTOBER4,2013@3:12AM
https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

6/7

7/27/2015

CognitiveRadioNetworkSimulatorinstallation|Mano

Hi,Pleasefixthelinkbecauseitisdownoranyonecansendmethepatchtomyemail
vanla3190@gmail.com
Thanksinadvance
ManojKumar
OCTOBER5,2013@12:29AM
@anhvanle..
deadlinkisfixed.thanksforbringingittomyknowledge.
Anak
NOVEMBER6,2013@10:57PM
HiMr.Manoj,wouldyousendmethepatchtomyemailanakonlen@yahoo.com?.Thankyouin
advance.
SantoshSubedi
NOVEMBER7,2013@10:17AM
Helloeveryone,Igotthesameerrorforthelastcommandmake.Theresponsetothecommand
makeiscollect2:ldreturned1exitstatus
make:***[ns]Error1.Anyideatofixit??????
Pratik
NOVEMBER22,2013@10:05AM
Icannotdownloadthethroughput.plperlscriptfromthewebsite
(http://stuweb.ee.mtu.edu/~ljialian/CRCN%20user%20code%203/CRCN%20user%20code%203/throughput.pl
Ifsomeonehasthisperlscript,thenkindlymailmeonpratik5687@gmail.com
Thankinginadvance.
leye
DECEMBER6,2013@7:25PM
Gooddaysir,
leaseIinstallns2.31inubuntu12.0464bit.IwanttoinstallCRCN,butwhenIusedcommand
make,igetthiserror:
collect2:ldreturned1exitstatus
make:***[ns]Error1
canyouhelpme,Ireallyneedit..
pleaseemailleyemartins@yahoo.com
thanks

CreateafreewebsiteorblogatWordPress.com.|TheiTheme2Theme.
Follow

FollowMano
BuildawebsitewithWordPress.com

https://getch.wordpress.com/2010/12/30/cognitiveradionetworksimulatorinstallation/

7/7

You might also like