Home » » Simple tool for generating Tcl script : NSG2

Simple tool for generating Tcl script : NSG2

Posted by All Tutor Flashing Rom on Wednesday, August 8, 2012

Everyone spent a lot of time to write TCL scripts for ns2, Here is a tool to create TCL scripts automatically.NSG2 is created for that. Now, I would like to share NSG2 with you. Hope you would like it.What is NSG2? :

NS2 Scenarios Generator 2(NSG2) is a JAVA based ns2 scenarios generator. Since NSG2 is written by JAVA language, you can run NSG on any platform. NSG2 is capable of generating both wired and wireless TCL scripts for ns2. Some major functions of NSG2 are listed below:
1. Creating wired and wireless nodes
2. Creating connection between nodes
3. Creating links (Duplex-Link and Simplex-Link)
4. Creating agents (TCP and UDP)
5. Creating applications (CBR and FTP)
6. Node movement
Is NSG2 free?
Yes, it is a free software. you can download it from here : download NSG2
Launch NSG2 :
To execute NSG2, you have to install JAVA6.0 first.  The details of JAVA6.0 installation, please refer the link
To execute NSG2 
 open the terminal and run $java -jar NSG2.1.jar
How to use NSG2
1.The nsg2 work space is like this


To create a node just click on the node and click on the workspace where you want the node

Change the agents type, protocols TCP,UDP etc.. and packet size

Then set application type,start time,stop time,rate and interval

Setup the simulation parameters 

Generate Tcl Script and save it 

you can run the Tcl script using your terminal
    check this link  to know how to run a Tcl script







0 comments:

Post a Comment

Popular Posts

Powered by Blogger.
.comment-content a {display: none;}