Events: The system changes state when points in time.e.g., may track number (possibly order) of packets in the queue, current value of retransmission timer.System “state”: The variables maintained by the simulation program is defined as a system “state.”.
![ns2 simulator ns2 simulator](https://i.ytimg.com/vi/diDO6alOh98/maxresdefault.jpg)
Simulated Time: The simulated time is kept by the internal (to simulation program) variable.OPNET (commercial), NS-2 (open source), OMNeT++ The number of packages is used in the Ns2 simulation.Continuously, State changes can occur across time.Using random number generators are used in discrete points in time.Implement these algorithms and let them interact.Mathematically, we know possible for some bits.Algorithmically, we know how bits and pieces of the system work.Programmatic representation of system entities.Ns2 simulation can give more detail than analytical modeling.Usually, only steady-state can be modelled in Ns2 simulation. Most systems are complex and require highly complex mathematical models. The model is available and is computationally efficient when it useful.The simulation can be done only on completed running systems.The behavior/characteristics are affected when the user/system is disturbed.Detail: At an arbitrary level, system details also can be simulated.Generality: over analytic/numerical techniques, it gives more generality.Sometimes it finds bugs (in design) in an advanced manner.
![ns2 simulator ns2 simulator](https://i.ytimg.com/vi/X16q8hR_koM/hqdefault.jpg)