Ns3

Post on 16-Jul-2015

145 views 3 download

Tags:

Transcript of Ns3

Introduction to ns-3

Rehmat Ullah Marwat

Malik Nadeem

Ns-3 is not an extension of ns-2; it is a new simulator.

The two simulators are both written in C++

but ns-3 is a new simulator that does not support the

ns-2 APIs. Some models from ns-2 have already been

ported from ns-2 to ns-3.

Network Simulator.

Written completely in C++

Ns-3 is a library written in C++

Uses WAF build system

Similar to “make”

Simulation programs are C++ executables

Not really an evolution of NS-2

Experience of working on:

Linux platform

C++ and/or Python programming language

TCP/IP protocol suit

Unix Network Programming (e.g sockets)

Discrete Event Simulation

Events model packet transmission, receipt, Timers, etc.

Create a list of events

On what time event will be occur

Like Delay Event, Drop Event etc.

That’s why called discrete event technology.

Create Topology

Nodes, links, Queues, Routing, etc.

Create Data Demand on Network

Web Browsers, FTP transfers, Peer-to- peer Searching and Downloads.

Run the Simulation

Analyze Results

Trace File

Log every packet receipt, transmit, queued, drop.

Custom Tracing

User specifies which packets/links/nodes to trace

Reduces size of trace file and post-analysis time

A Node is a husk of a computer to which applications, stacks, and NICs are

added

NS-3 and Autonomic Network

ApplicationApplication

Application

NS-3 and Autonomic Network

ApplicationApplication

Protocolstack

Node

NetDeviceNetDevice

ApplicationApplication

Protocolstack

Node

NetDeviceNetDevice

Sockets-like

API

Channel

Channel

Packet(s)

Web site:

http://www.nsnam.org

Mailing list:

http://mailman.isi.edu/mailman/listinfo/ns-developers

Tutorial:

http://www.nsnam.org/docs/tutorial/tutorial.html

Wiki:

http://www.nsnam.org/wiki/index.php/Main_Page

Thank You