You are on page 1of 2

3/19/2015

Research&Simulation:NetworkSimulationsandinstallationofNS2andNS3

Research&Simulation
Saturday,January3,2015

AboutMe

OmeshKumarYadav

NetworkSimulationsandinstallationofNS2andNS3

Viewmycompleteprofile

Firstthingwhichcomestothemindofnewresearcheris"Whatactuallythesimulationis,and
howitisdifferentfromrealimplementation..??"
Simulationistheprocessofcreatingvirtualworkingenvironmentwiththehelpofsome
software/toolsforwhichtherealimplementationmightbecostlier,infeasible.Thesoftware/tools
whichprovidestheseenvironmentsareknownassimulators.
Sonetworksimulatorsarethetoolswhichprovidesthefunctionalityofnetworkwiththehelpof
programming.Youcaneasilydesign,testorenhancethefunctionalityofanyprotocoltoseeits
effectontheoutcome.Theoutputofsimulationdependsuponthefunctionalityofthesimulator.
Fornetworksimulations,therearelotsoftoolsavailableonlineforresearch,outofthosei
recommendNS2/NS3foracademicresearchpurposeduetoitsopensourceandeasytoenhance
structure.
FirstIwillbediscussingaboutNS2.Fordetailsofns2pleasereferthelink
NS2isasimulationtoolwhichiseasytoconfigureonlinuxoperatingsystems.IuseUbuntu
12.04LTSversionforinstallation.Thecommandsforns2installationare:
1.Opentheterminalandrun:
sudoaptgetupdate
itwillaskforyoupassword,enteryourpassword,andyoursystemwillbeupdated.Makesure
thatyouareconnectedtothenetwork.
2.Nextcommandstorunare:
sudoaptgetinstalltcl8.5devtk8.5dev
sudoaptgetinstallbuildessentialautoconfautomake
sudoaptgetinstalllibxtdevlibx11devlibxmudev
3.Nowdownloadtheonlineavailableopensourcepackage"nsallinone2.35.tar.gz"anduntarit
andsameittoyouhomedirectory.
4.Gotothispackageviaterminal:
cdnsallinone2.35
5.Nowinthisdirectoryyouwillfindanexecutablebywiththename"install",runit
./install
itcantakesometime.
6.Aftersuccessfulexecutionofthiscommandgotons2.35directory:
cdns2.35
7.andnowrunthefollowingcommandsonebyone:
./configure
make
sudomakeinstall
8.Ifallthesecommandsransuccessfully,itmeansyouhaveconfiguredthenspackage
correctly.
9.Nowinstallsomepackagestomakeitexecutable:
sudoaptgetinstallns2
sudoaptgetinstallnam
sudoaptgetinstallxgraph
sudoaptgetinstallgawk
10.Nowyouarecompletelydone...
11.Tochecksomerunningtclscriptstothensallinone2.35/ns2.35/tcl/ex,andrun:
nsfile_name.tcl

BlogArchive

2015(5)
January(5)
Critical
Differences
ofIT
domain
Cloud
computing
BigData
Analytics
Network
Simulations
and
installation
ofNS2and
NS...
Howtostart
research

Ifthereissomeproblemoftclcl.hnotfoundduringinstallation,thenreferthislink
12.EnjoyNetworkSimulation...

InstallationstepsforNS3:
FollowthegivenstepsfortheinstallationofNS3.Firstinstallsomedependenciestoenablethe
NS3executionenvironmentonyourUbuntu12.04LTSmachine.
1.sudoaptgetinstallgccg++python
2.sudoaptgetinstallgccg++pythonpythondev
3.sudoaptgetinstallmercurial
4.sudoaptgetinstallbzr
5.sudoaptgetinstallgdbvalgrind

http://researchbyomesh.blogspot.in/2015/01/networksimulationsandns2installation.html

1/2

3/19/2015

Research&Simulation:NetworkSimulationsandinstallationofNS2andNS3
6.sudoaptgetinstallgslbinlibgsl0devlibgsl0ldbl
7.sudoaptgetinstallflexbisonlibfldev
8.sudoaptgetinstallg++3.4gcc3.4
9.sudoaptgetinstalltcpdump
10.sudoaptgetinstallsqlitesqlite3libsqlite3dev
11.sudoaptgetinstalllibxml2libxml2dev
12.sudoaptgetinstalllibgtk2.00libgtk2.0dev
13.sudoaptgetinstallvtunlxc
14.sudoaptgetinstalluncrustify
15.sudoaptgetinstalldoxygengraphvizimagemagick
16.sudoaptgetinstalltexlivetexliveextrautilstexlivelatexextra
17.sudoaptgetinstallpythonsphinxdia
18.sudoaptgetinstallpythonpygraphvizpythonkiwipython
pygoocanvaslibgoocanvasdev
19.sudoaptgetinstalllibboostsignalsdevlibboostfilesystemdev
NowdownloadthepackageofNS3fromitsofficialwebsite:
http://www.nsnam.org/ns317/
Extractthedownloadedpackageandgotoitviaterminal,thenrunsomeexecutablefilesgivenin
subfolder:
./build.py
./test.py
Configurethewafusingthefollowingcommandsonceduringinstallation:
./wafconfigure
./waf
NS3enablessupportforanimationwiththetoolsNetAnimandsupportforgraphsusingGnuPlot
tool.
Forenablinggnuplotrunthecommands:
sudoaptgetinstallgnuplot
sudoaptgetinstallgimp
ToinstallNetAnimsupportrunthecommands:
GototheNetAnimfolderandrunthefollowingcommandstoenablesupportforanimationtool:
makeclean
qmakeNetAnim.pro
make
FordetailsofNS3pleasereferthelink:ns3

Gotohomepage
PostedbyOmeshKumarYadavat10:34PM
Labels:Howtoinstallns2,NetworkSimulation

Nocomments:
PostaComment
Enteryourcomment...

Commentas:

Publish

GoogleAccount

Preview

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

Simpletemplate.PoweredbyBlogger.

http://researchbyomesh.blogspot.in/2015/01/networksimulationsandns2installation.html

2/2

You might also like