NS2
NETWORK SIMULATOR VERSION 2
INTRODUCTION
• NS2 is an open-source simulation tool that runs on Linux.
• It is a discreet event simulator targeted at networking
research and provides substantial support for simulation
of routing, multicast protocols and IP protocols, such as
UDP, TCP, RTP and SRM over wired and wireless
networks.
INSTALLATION STEPS
• sudo apt-get install ns2
• Sudo apt-get install nam
• Sudo apt-get update
• Sudo add-apt-repository universe
CHECK INSTALLATION
gedit add.tcl
set a 20
set b 30
set c [expr $a + $b]
puts $c
run add.tcl
TRACE FILE FORMAT
• + : packet enque event
• - : packet deque event
• R : packet reception event
• D : packet drop event
• C : packet collision at MAC level