Skip to main content

NSG 2.1 Tcl/OTcl Script Generator

Are you a beginner for ns2 network simulator?
Are you afraid of Tcl/oTcl script generation?
Then there is a tcl script generator, named NSG 2.1

NSG- Network Simulation Generator

  • NSG 2.1 is a java .jar file.  So, this application can run on all platforms (windows/linux/mac os).
  • It deserves the java installed in you pc, prior to working with NSG 2.1.
  • Java must be installed to run NSG2.1.
  • So, initially, java must be installed.

How to install java in Windows/ubuntu/mint/debian linux/ OS X ?

Step 1: Go to Terminal and run java -version  to check the java version installed in your machine.
Step 2 : For Windows, click here to download the java installer. Then, it is a typical next-next windows executable installation.
For ubuntu/mint/debian linux operating systems, run the following commands in that terminal:
sudo apt-get install default-jre

sudo apt-get install default-jdk

sudo apt-get install openjdk-7-jre

sudo apt-get install openjdk-7-jdk

How to install  and run NSG 2.1 in Windows/ Ubuntu/mint/debian linux/ os X ?

Step 1:  Click here  to download the NSG 2.1 script generator framework.
Step 2: Go to the location where this NSG2.1.jar file is downloaded in the terminal and run

java -jar /(path to nsg2.1 file) NSG2.1.jar
This process is same for both windows and linux users. Execute the same command whenever you want to run the NSG 2.1 script generator.

Note: This NSG 2.1 file works on windows and Macintosh platforms also, as it is a java file.

Comments

Popular posts from this blog

SUMO installation in linux (Debian/Ubuntu/Mint)

SUMO - S imulation of U rban Mo bility SUMO an open source, portal, microscopic, multi-modal road traffic simulation. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.  It allows to simulate as to how a given traffic demand which consists of single vehicles moves through a given road network. The simulator allows to address a large set of traffic management topics. It is purely microscopic: each vehicle is modeled explicitly, has an own route, and moves individually through the network. SUMO Installation Procedure: Installation in Linux and mac OS Step I: Install two pre-requisite packages to build SUMO with GUI. Go to terminal and run: $ sudo apt-get install libgdal1-dev proj libxerces-c2-dev $ sudo apt-get install libfox-1.6-dev libgl1-mesa-dev libglu1-mesa-dev Step II: If you are using Unbuntu 12.04 or older versions, as it doesn't ship with libgdal package, create a symbolic link: $ sudo ln -s /usr/lib/li

Tcl tutorial for Begineers

Initially, we should get ns or tcl shell installed to work with tcl script.   If you didn't install ns2, click here for the installation procedure. Else, follow the tutorial.  After installing ns-2, type ns in terminal. Then, there appears % symbol, which symbolizes the invokement of tcl shell script. Note(optional):  TCL scripting individually can be practiced with in Linux system with tcl shell scripting.