
However, configuration and execution are still in most cases quite separate: at the end of the simulation script comes a call Simulator::Run() – akin to ns-2’s $ns run – at which point the user-written C++ has done its job and the library takes over. As the simulator core itself is also written in C++, this in some cases allows improved interaction between configuration and execution.


Gone is the Tcl programming interface instead, ns-3 simulation programs are written in the C++ language, with extensive calls to the ns-3 library, although they are often still referred to as simulation “scripts”. The project is managed by the NS-3 Consortium, and all materials are available at Ns-3 represents a rather sharp break from ns-2.

In this chapter we take a somewhat cursory look at the ns-3 simulator, intended as a replacement for ns-2.
