0% found this document useful (0 votes)
204 views2 pages

Research & Simulation - Network Simulations and Installation of NS2 and NS3

The document discusses network simulation tools NS2 and NS3 and provides instructions for installing them. It explains that NS2 and NS3 allow designing and testing network protocols virtually. The document then lists the step-by-step commands needed to install NS2 on Ubuntu, including downloading files, configuring, and installing additional libraries. Similarly, it provides the commands to install NS3 and its dependencies, download the NS3 package, and enable support for animation and graph tools.

Uploaded by

deepakk_alpine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views2 pages

Research & Simulation - Network Simulations and Installation of NS2 and NS3

The document discusses network simulation tools NS2 and NS3 and provides instructions for installing them. It explains that NS2 and NS3 allow designing and testing network protocols virtually. The document then lists the step-by-step commands needed to install NS2 on Ubuntu, including downloading files, configuring, and installing additional libraries. Similarly, it provides the commands to install NS3 and its dependencies, download the NS3 package, and enable support for animation and graph tools.

Uploaded by

deepakk_alpine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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