STARTING Network Simulator in Ubuntu
We can start ns with the command ‘ns YouFile.tcl’. where YouFile.tcl’ is the name of a Tcl script file which defines the simulation scenario (i.e. the topology and the events).Open you Terminal and type:
1
| ns YouFile.tcl |
████████████████████████████████████████████████████████████████████
You can either start nam with the command ‘nam YouFile.tcl’ where ‘YouFile.tcl’ is the name of a nam trace file that was generated by ns, or you can execute it directly out of the Tcl simulation script for the simulation which you want to visualize.Open you Terminal and Type:
1
| nam YouFile.tcl |
Here is brief features of Network Animator
Here in this small post, i have only talk about Basics of ns,nam and Network animator
Hi as i have already mentinoned a small intoduction of Network simulator-2 here. Now finally i decided my self to write more about it. So today i am going to write about “From whear to Download and How to Install network Simulator-2 on any Linux Distribution(Ubuntu/Fedora).
We can build “Network-Simulator-2 either from the the various packages like Tcl/Tk, otcl,ns,nam,xgraph etc or we can go through downloading an ‘all-in-one’ package. well i suggest you to start with the all-in-one package, Beacuse it is easy to install for any newbi like me. I comes to know about disadvantage of the all-in-one distribution from it’s offical tutorial is the size, since it contains some components that we don’t need anymore after you compiled ns and nam. And remember one thing ns-allinone package work’s only in *NIX/LINUX system .
We can Download Network Simulator-2 from the Following Source (ns-allinone Package ie. Download ns-allinone-2.35.tar.gz (59.5 MB) )
████████████████████████████████████████████████████████████████████
After Downloading ns-allinone-2.35.tar.gz file start installing it in you Linux(Ubuntu/Fedora). I am going to First install in Fedora F17.
Installation Process For Installing Network Simulator-2(NS-2) in Fedora F17.
STEP-1
Get inside into root account,Then in home directory,and start installing Dependency for NetworkSimulator-2 in Fedora F17.
1
2
3
4
5
6
7
8
9
| su cd yum install autoconf yum install automake yum install gcc-c++ yum install libX11-devel yum install xorg-x11-proto-devel yum install libXt-devel yum install libXmu-devel |
STEP-2
Open you Terminal (Hit Ctrl+Alt+T). get inside root, and it’s home directory.Download ns-allineone-2.35.tar.gz and then untar it.
1.su
2.cd
3.wget http://nchc.dl.sourceforge.net/project/nsnam/allinone/ns-allinone-2.35/ns-allinone-2.35.tar.gz
4.tar -xzvf ns-allinone-2.35.tar.gz
STEP-3
After untaring the above ns-allinone-2.35.tar.gz Package, a newly directory(Folder) is created.Now delete that ns-allinone-2.35.tar.gz as there is now no need of it. Get inside ns-allinone-2.35 (Directory/folder). It containes around 18 sub-directory and 3 files.
1.bin, 2.include, 3.nam-1.15, 4.README, 5.tclcl, 6.zlib-1.2.3, 7.cweb, 8.install, 8.ns-2.35, 9.sgb, 10.tclcl-1.20, 11.dei80211mr-1.1.4, 12.INSTALL.WIN32, 13.otcl, 14.share, 15.tk8.5.10, 16.gt-itm 17.lib, 18.otcl-1.14, 19.tcl8.5.10, 20. xgraph-12.2. Now install it.
1
2
3
| cd ns-allinone-2.35/ ls ./install
STEP-4
While installation of ns-allinone in Fedora F17, We will encounter the following error. This error tells that at line number 137 in the following file(ns-2.35/linkstate/ls.h) has mistake.And to fix this mistake i have to place ‘This->erase’
So open that file with you favorite editor like vi,nano,gedit. i have used vi
|
No comments:
Post a Comment