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
           

Friday, August 6, 2010

Code refactoring

  • Code refactoring is the process of changing a computer program's source code without modifying its external functional behavior in order to improve some of the nonfunctional attributes of the software.
  • As in java Netbeans there was a option to refactor to change the nonfunctional attributes of the class such as,   1.Name of the class file, 2.Move or copy the class from one package to another