Tuesday, October 12, 2010

Theorize the Network Simulator (ns-2 tutorial)


Experiments using Network Simulator(NS2)
Introduction:
Network Simulator is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.
Desing: ns is an object oriented simulator, written in C++, with an OTcl(MIT [Massachusetts Institute of Technology in Cambrige] Object Tcl) interpreter as a frontend.
History: Modified from REAL network simulator and then Developed through VINT project at UCB and then the NS1 and  NS2 came into existence.
Main Class: Simulator class
Tool Command Language(Tcl):
Need: The Network Simulator uses Tcl scripts to simulate the communication among the network by using set of protocols(which said to be as set of rules).
History: The Tcl programming language was created in the spring of 1988 by John Ousterhout while working at the University of California, Berkeley.
Commands
Equivalents
set
= (equal to)
$variable1
Shows the value of the variable1