<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Ns-3</id>
		<title>Ns-3 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Ns-3"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Ns-3&amp;action=history"/>
		<updated>2026-04-28T14:40:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Ns-3&amp;diff=1530&amp;oldid=prev</id>
		<title>Minal: Created page with 'ns-3 (http://www.nsnam.org) is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. ns-3 is free software, licensed under…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Ns-3&amp;diff=1530&amp;oldid=prev"/>
				<updated>2012-12-11T12:38:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;ns-3 (http://www.nsnam.org) is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. ns-3 is free software, licensed under…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;ns-3 (http://www.nsnam.org) is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. ns-3 is free software, licensed under the GNU GPLv2 license, and is publicly available for research, development, and use. ns-3 is intended as an eventual replacement for the popular ns-2 simulator. The project has an active developer base and a vibrant community of networking researchers involved with it.&lt;br /&gt;
&lt;br /&gt;
Please note that ns-3 is _not_ an evolution of ns-2, and is a completely new simulator written from scratch. ns-3's source code is written in C++, whereas end users can develop their simulation scripts using C++ or Python. ns-3 works on Linux and Unix variants, OSX and Windows (via Cygwin).&lt;br /&gt;
&lt;br /&gt;
In the following tutorials, we will cover some of the important concepts that underly ns-3, and the basics of writing simulation scripts. Note that there are also a tonne of tutorials at http://www.nsnam.org/tutorials.html.&lt;br /&gt;
&lt;br /&gt;
== Version and OS ==&lt;br /&gt;
&lt;br /&gt;
For the tutorials, we will be using ns-3-dev. We recommend using a GNU/Linux variant or OSX for these tutorials.&lt;br /&gt;
&lt;br /&gt;
(Please see the associated text box of individual spoken tutorials on the website to decide the versions of software and OS to which it is applicable.)&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
ns-3 allows one to perform network simulations, and thus aid in the testing and validation of network models. Simulations are important because they provide a platform to verify the working of a protocol before a real world implementation of the same can be experimented with.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
To run a simulation, a user writes a simulation script in either C++ or Python. The simulation script uses the models that are available and generates PCAP and/or ASCII traces. Users may use their own formats for extraction of data out of a simulation.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
Users are expected to be familiar with C++ and be familiar with Computer Networks.&lt;br /&gt;
&lt;br /&gt;
== Contributors ==&lt;br /&gt;
* Prof. M. S. Gaur, Department of Computer Engineering, Malaviya National Institute of Technology, Jaipur, India.&lt;br /&gt;
* Lalith Suresh P., Department of Computer Science and Engineering, Instituto Superior Técnico, Lisbon, Portugal.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NS-3 Basic Tutorials ==&lt;br /&gt;
&lt;br /&gt;
=== NS-3 Concepts  and Installation ===&lt;br /&gt;
This tutorial covers some important concepts of ns-3, and then proceeds to demonstrate an installation of the same.&lt;br /&gt;
# Packets: Packet objects are units of information sent and received by applications.&lt;br /&gt;
# Nodes: A Node class represents a network element in ns-3. Just like in a real network node, it may _optionally_ have an Ipv4 stack, one or more routing protocols, a mobility model or applications running on top of it.&lt;br /&gt;
# Applications: Applications are traffic generators, which generate streams of data as per user defined intervals/bursts. They are highly configurable. A well known kind of application that ns-3 offers is 'ping'.&lt;br /&gt;
# NetDevices: NetDevice objects represent real world network interfaces in ns-3. Presently, ns-3 allows users to use Csma, Wifi, Point-to-point, Wimax, Mesh and many more with their simulation nodes.&lt;br /&gt;
# Helpers: Helpers, as the name suggests, add an extra layer of abstraction to make it easier for users to write simulation scripts with fewer lines of code.&lt;br /&gt;
# Logging: Allows a user to perform classical 'printf' style debugging with ease.&lt;br /&gt;
# Tracing: This is ns-3's mechanism to probe and collect information from particular points of the simulation system. This can be from different part's of a node's stack such as the NetDevice, the PHY, or the transport.&lt;br /&gt;
# Use [http://mercurial.selenic.com/ Mercurial] to clone [http://code.nsnam.org/ns-3-dev ns-3-dev].&lt;br /&gt;
# Build ns-3.&lt;br /&gt;
&lt;br /&gt;
=== Basic Simulation Tutorial ===&lt;br /&gt;
This tutorial covers the writing of basic simulation scripts. The following sequence of steps will be involved:&lt;br /&gt;
# Creating nodes.&lt;br /&gt;
# Adding Csma network devices to the nodes and connecting the devices.&lt;br /&gt;
# Setting up an Ipv4 stack on the nodes.&lt;br /&gt;
# Setting up applications on the nodes.&lt;br /&gt;
# Running the simulation.&lt;br /&gt;
# Viewing Trace Files using [http://www.wireshark.org/ Wireshark].&lt;br /&gt;
&lt;br /&gt;
== NS-3 Advanced Tutorials ==&lt;br /&gt;
&lt;br /&gt;
These tutorials cover Wifi simulations, routing protocols, mobility models, the PyViz visualiser, the tracing subsystem and the flow monitor.&lt;br /&gt;
&lt;br /&gt;
=== Wifi Simulations ===&lt;br /&gt;
# Create nodes.&lt;br /&gt;
# Add Wifi NetDevices to the nodes. Setup the MAC/PHY properties.&lt;br /&gt;
# Setting up an Ipv4 stack on the nodes.&lt;br /&gt;
# Setup a routing protocol (we'll use OLSR) on the nodes to perform routing.&lt;br /&gt;
# Setup a mobility model for the nodes.&lt;br /&gt;
# Setup applications on the nodes.&lt;br /&gt;
&lt;br /&gt;
=== PyViz Visualiser ===&lt;br /&gt;
# Use PyViz to visualise the Wifi simulation.&lt;br /&gt;
# Demonstrate the varying of simulation speed.&lt;br /&gt;
# Observe a node's routing table and other properties attached to it.&lt;br /&gt;
&lt;br /&gt;
=== Tracing Subsystem ===&lt;br /&gt;
# Make use of the tracing subsystem with the Wifi simulation.&lt;br /&gt;
# Use the tracing mechanism to observe a particular node's NetDevice.&lt;br /&gt;
&lt;br /&gt;
=== ns-3 Flow Monitor ===&lt;br /&gt;
# Setup the flow monitor to monitor flow statistics in the Wifi simulation.&lt;/div&gt;</summary>
		<author><name>Minal</name></author>	</entry>

	</feed>