Sunday, 15 September 2013

NS2 : Simulating a Network using SFQ Queue Management Algorithm


   In this post the NS2 Script (TCL Script) to simulate a wired network using SFQ (Stochastic Fairness Queuing) queue management algorithm is provided.

Executing the TCL Script

Topology in NAM

Data Transfer in NAM

   
Click here to download the NS2 Script.

NS2 : Simulating Multicast in Wired Networks


      In this post I have added the NS2 Script (TCL Script) to simulate multicast in wired networks.   

Executing the TCL Script

Topology Shown in NAM

Data Transfer in NAM

Data Transfer in NAM


Thursday, 5 September 2013

NS2 : Simulating a Network using RED Queue Management Algorithm


   In this post the NS2 Script (TCL Script) to simulate a wired network using RED (Random Early Discard) queue management algorithm is provided.

Executing the TCL Script

Topology in NAM Animator

NAM Showing Packet Drop



NS2 : Simulating a Network using Drop Tail Queue Management Algorithm


   This post contains NS2 Script (TCL Script) to simulate a wired network using Drop Tail queue management algorithm.

Executing the TCL Script

NAM Animator Showing the Topology

NAM Showing Data Transfer 



Tuesday, 20 August 2013

NS2 : Wireless Simulation 2


   This post contains NS2 Script (TCL Script) to simulate a simple Wireless Network. The simulation involves wireless nodes which move from one position to another occasionally. 

Executing the TCL Script

Initial Node Position

Node Position after Movement



Monday, 12 August 2013

NS2 : Wireless Simulation 1


   In this post I have included the TCL Script for wireless simulation using NS2. Xgraph utility is used to plot the graph of Congestion Window VS Time.

Executing the TCL Script

NAM Window Showing the Nodes

NAM Window Showing the Traffic

Graph Plotted Using Xgraph


Wednesday, 7 August 2013

NS2 : Xgraph Utility Example


   In this post I have included an NS2 Script (TCL Script) calling the Xgraph utility to plot the graph.

The Xgraph utility is called by the following line of code in the TCL Script,

exec xgraph out0.tr out1.tr out2.tr -geometry 800x400 &


The three files out0.tr, out1.tr and out2.tr contains the input data for Xgraph. To learn about the data format of Xgraph input files read my post Xgraph for plotting in NS-2.

Executing The TCL Script

NAM Window Showing the Simulated Network

NAM Showing Traffic Flow

Graph Plotted Using Xgraph