Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
55 views5 pages

Network Simulator Version 2

NS2 is an open-source network simulator for Linux that allows simulation of routing protocols, IP protocols like TCP and multicast over wired and wireless networks. It can be installed on Linux using apt-get install ns2 and nam. The trace file format produced by NS2 uses symbols like +, -, R, D and C to represent packet queue, dequeue, reception, drop and collision events.

Uploaded by

Chintan Kotadiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views5 pages

Network Simulator Version 2

NS2 is an open-source network simulator for Linux that allows simulation of routing protocols, IP protocols like TCP and multicast over wired and wireless networks. It can be installed on Linux using apt-get install ns2 and nam. The trace file format produced by NS2 uses symbols like +, -, R, D and C to represent packet queue, dequeue, reception, drop and collision events.

Uploaded by

Chintan Kotadiya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

You might also like