NS2 Projects

Network Simulator Version 2, also known as NS-2. NS-2 is an event driven packet level network simulator developed as part of the VINT project (Virtual Internet Testbed). Numerous state of the art simulation tools are available for network research. Among the available simulators, NS-2 is the widely used and highly recognized open source network simulator. The simulation behavior of NS-2 is highly trusted within the research community. It is a dependable and realistic discrete event based simulator tool and proves to be more practicable. It is primarily designed based on OSI model to support wired networks. CMU wireless extension of NS2 extensively supports wireless network.

Features of NS2

  • To evaluate the performance of existing network protocols.
  • To evaluate new network protocols before use.
  • To run large scale experiments not possible in real-time.
  • To simulate mobile ad hoc networks and protocols.
  • To simulate wireless sensor networks and protocols.
  • To simulate vehicular ad hoc networks and protocols.
  • To simulate a variety of IP networks

Protocol support in Wired Networks

Application layer :FTP, CBR, Exponential, Pareto, RealAudio, Video
Transport layer:TCP and its variants, UDP, XCP, SCTP, RTP, RTCP, LossMonitor
Network layer :LS, DV, RLM
Queue:DropTail, Priority Queue, CMUPriority queue, RED, FQ,SFQ

Protocol support in Wireless Networks

Application layer :FTP, CBR, Exponential, Pareto, RealAudio, Video
Transport layer:TCP and its variants, UDP, XCP, SCTP, RTP, RTCP,LossMonitor
Network layer:AODV, DSR, DSDV, AOMDV, TORA, OLSR, ZRP, ZBR, FSR, CGSR, CBRP, LEACH, PEGASIS, GPSR, POR
MAC layer:IEEE 802.11, IEEE 802.15.4, IEEE 802.11p
Queue:DropTail, Priority Queue, CMUPriority queue, RED
Physical layer:Interface – WirelessPhy, WirelessPhyExt, Multichannel Interface
Antenna – OmniAntenna, Directional Antenna
Propagation Model – FreeSpace, TwoRayGround, Shadowing, Nakagami
Channel – Wireless Channel
Channel fading -Rayleigh fadingModulation Scheme – BPSK, QPSK, QAM16, QAM64
Energy Model
Error Model

New protocol development using NS2

Extension to the existing protocols or modeling a new Protocol in NS2 can be done in the following aspects. The protocols are developed as C++ files, and the dependent files are modified in the NS-allinone package. The directory structure of the newly added files is mentioned in Makefile. Then NS is rebuilt using Linux utility tool make. Simulation can be carried out by mentioning the newly developed protocol in the TCL configuration file.

Performance Analysis

AWK script can be applied to process the trace file. The results from the execution of AWK script can be plotted as Xgraph in NS2 for the purpose of self or comparative protocol analysis.

Impact on varying

  • Node mobility
  • Network traffic
  • Node density
  • Physical layer properties of the node
  • Attack scenarios
  • Selection of the protocol at each layer
  • Protocol specific feature
  • Topology
  • Number of clusters
  • Nature and location of Sink

Performance Metrics

  • Packet Delivery Ratio (PDR)
  • Throughput
  • Average End to End Delay
  • Routing Overhead
  • Control Overhead
  • Storage overhead
  • Packet Loss
  • Hop count
  • Attack detection accuracy
  • Attack detection time
  • False Alarm
  • Energy consumption
  • Residual energy
  • Network lifetime
  • Percentage of alive nodes and dead nodes
  • Aggregation accuracy and deviation
  • Percentage of coverage

Tool and Technologies

  • NS2
  • Java
  • TCL
  • C++
  • NAM
  • X-Graph
  • Gnuplot
  • AWK
  • Trace Graph
  • BonnMotion
  • CRCN Simulator
  • SUMO
  • MOVE
  • Open Street Map (OSM)
  • Mannasim