Sunday, December 6, 2009

Network Simulator (ns-2)




NS (version 2) is an object-oriented, discrete event driven network simulator developed at UC Berkely written in C++ and OTcl (Tcl script language with Object-oriented extensions). It implements network protocols such as TCP and UPD, traffic source behavior such as FTP, Telnet, Web, CBR and VBR, router queue management mechanism such as Drop Tail, RED and CBQ, routing algorithms such as Dijkstra, and more. NS also implements multicasting and some of the MAC layer protocols for LAN simulations. NS-2 includes a tool for viewing the simulation results, called NAM.

NAM is a Tcl/TK based animation tool for viewing network simulation traces and real world packet trace data. The first step to use nam is to produce the trace file. The trace file should contain topology information, e.g., nodes, links, as well as packet traces. Usually, the trace file is generated by NS. During an ns simulation, user can produce topology configurations, layout information, and packet traces using tracing events in ns.

When the trace file is generated, it is ready to be animated by NaM. Upon startup, NAM will read the trace file, create topology, pop up a window, do layout if necessary, then pause at the time of the first packet in the trace file. Through its user interface, NAM provides control over many aspects of animation.
Network simulator can be learnt here and here.


No comments:

Post a Comment