Monday, April 29, 2013
Tuesday, April 23, 2013
NS2 simulation
NS2 Installation
How to run NSG2 in Ubuntu 12.04
After installing the NS2 on your PC, you are ready to simulate for the first time...
For your convenience, you can make a new folder to store all NS2 simulation files.
Go to .../ns-allinone-2.35/ns-2.35/tcl/ex
ex is the folder that contains the example tcl files. From this folder, copy simple.tcl and paste it to your own folder.
Then, open the terminal (Ctrl+Alt+t).
Go to the folder that contains simple.tcl
To run simple.tcl, give the command ns simple.tcl
The script will run and an output trace file (out.tr) will be generated
Contents of out.tr file
+ 1 0 2 cbr 210 ------- 0 0.0 3.1 0 0
- 1 0 2 cbr 210 ------- 0 0.0 3.1 0 0
r 1.002336 0 2 cbr 210 ------- 0 0.0 3.1 0 0
+ 1.002336 2 3 cbr 210 ------- 0 0.0 3.1 0 0
- 1.002336 2 3 cbr 210 ------- 0 0.0 3.1 0 0
+ 1.00375 0 2 cbr 210 ------- 0 0.0 3.1 1 1
- 1.00375 0 2 cbr 210 ------- 0 0.0 3.1 1 1
r 1.006086 0 2 cbr 210 ------- 0 0.0 3.1 1 1
+ 1.006086 2 3 cbr 210 ------- 0 0.0 3.1 1 1
- 1.006086 2 3 cbr 210 ------- 0 0.0 3.1 1 1
+ 1.0075 0 2 cbr 210 ------- 0 0.0 3.1 2 2
- 1.0075 0 2 cbr 210 ------- 0 0.0 3.1 2 2
...................................
This file contains event based data for the entire simulation.
From the out.tr file, you will have to extract the data according to your requirement.
For that, you will have to write awk script
A sample awk script is available here
Save the file in the same folder. Then go to terminal window (Ctrl+Alt+t). Give the test.sh (awk script) executable permission by giving the following command
chmod +x test.sh
Command to run test.sh : ./test.sh
For Wireless network
Install awk: sudo apt-get install gawk
To run awk script: gawk -f e2edelay.awk simple.tr
How to run NSG2 in Ubuntu 12.04
After installing the NS2 on your PC, you are ready to simulate for the first time...
For your convenience, you can make a new folder to store all NS2 simulation files.
Go to .../ns-allinone-2.35/ns-2.35/tcl/ex
ex is the folder that contains the example tcl files. From this folder, copy simple.tcl and paste it to your own folder.
Then, open the terminal (Ctrl+Alt+t).
Go to the folder that contains simple.tcl
To run simple.tcl, give the command ns simple.tcl
The script will run and an output trace file (out.tr) will be generated
Contents of out.tr file
+ 1 0 2 cbr 210 ------- 0 0.0 3.1 0 0
- 1 0 2 cbr 210 ------- 0 0.0 3.1 0 0
r 1.002336 0 2 cbr 210 ------- 0 0.0 3.1 0 0
+ 1.002336 2 3 cbr 210 ------- 0 0.0 3.1 0 0
- 1.002336 2 3 cbr 210 ------- 0 0.0 3.1 0 0
+ 1.00375 0 2 cbr 210 ------- 0 0.0 3.1 1 1
- 1.00375 0 2 cbr 210 ------- 0 0.0 3.1 1 1
r 1.006086 0 2 cbr 210 ------- 0 0.0 3.1 1 1
+ 1.006086 2 3 cbr 210 ------- 0 0.0 3.1 1 1
- 1.006086 2 3 cbr 210 ------- 0 0.0 3.1 1 1
+ 1.0075 0 2 cbr 210 ------- 0 0.0 3.1 2 2
- 1.0075 0 2 cbr 210 ------- 0 0.0 3.1 2 2
...................................
This file contains event based data for the entire simulation.
From the out.tr file, you will have to extract the data according to your requirement.
For that, you will have to write awk script
A sample awk script is available here
Save the file in the same folder. Then go to terminal window (Ctrl+Alt+t). Give the test.sh (awk script) executable permission by giving the following command
chmod +x test.sh
Command to run test.sh : ./test.sh
For Wireless network
Install awk: sudo apt-get install gawk
To run awk script: gawk -f e2edelay.awk simple.tr
Monday, April 1, 2013
Wednesday, February 13, 2013
Write a wonderful thesis using LaTex
Write your final year thesis using LaTex.
LaTex is easy to use and time saving in the cases when you will have to edit your thesis many times, like inserting a new equation, figure, or table or inserting a new section etc.....
Follow the instructions given below and get a wonderful thesis using LaTex..
Download links
Protex
It contains the full version of MikTex (LaTex compiler) and a editing tool for LaTex called TexStudio.
you will have to install both.
Lyx
Lyx is another LaTex editing tool, you can use it to write your equations...I would suggest to install it too...
LaTex template for thesis
Above link contains the LaTex template to write your thesis. Download it and unzip it. Save the folder "Local Tex Files" to C drive.
Open TexStudio
Open the Thesis.tex, Thesis.cls files contained in the path Local Tex Files/tex/latex/misc
Modify the contents .....
LaTex is easy to use and time saving in the cases when you will have to edit your thesis many times, like inserting a new equation, figure, or table or inserting a new section etc.....
Follow the instructions given below and get a wonderful thesis using LaTex..
Download links
Protex
It contains the full version of MikTex (LaTex compiler) and a editing tool for LaTex called TexStudio.
you will have to install both.
Lyx
Lyx is another LaTex editing tool, you can use it to write your equations...I would suggest to install it too...
LaTex template for thesis
Above link contains the LaTex template to write your thesis. Download it and unzip it. Save the folder "Local Tex Files" to C drive.
Open TexStudio
Open the Thesis.tex, Thesis.cls files contained in the path Local Tex Files/tex/latex/misc
Modify the contents .....
Now run the program pressing the PDFLATEX icon in the TexStudio tool.
Your Thesis.tex will be complied and a PDF version of your Thesis will be stored in the same folder.
Open the PDF then....
Supporting links to write the latex script
Mathematical equations
Math editor for Latex
Supporting links to write the latex script
Mathematical equations
Math editor for Latex
Thursday, December 13, 2012
EE 4236
Lab Manual and Programs download
Click on the link above.
Click on the File menu at the top left corner and click download.
Click on the link above.
Click on the File menu at the top left corner and click download.
Tuesday, December 11, 2012
How to install NS2.35 and NAM in Ubuntu 12.04
Download NS-23.5 from the Link
- Go to terminal (ctrl+Alt+t) and install the necessary updates using the command “sudo apt-get update” (without Quotes)
- Then install the ns2 required libraries using the command “sudo apt-get install build-essential autoconf automake libxmu-dev” (without quotes)
- Untar the downloaded ns-allinone-xxx.tar.gz file using the command “tar zxvf ns-allinone-2.35.tar.gz”
- execute the commands one by one as given below
./install
cd
sudo apt-get install ns2
Installing NAM
cd ns-allinone-2.35/nam-1.15/
sudo make install
Related post
How to run NSG2 in Ubuntu 12.04
Sunday, December 9, 2012
Subscribe to:
Posts (Atom)


