12

Ns3

Embed Size (px)

Citation preview

Page 1: Ns3
Page 2: Ns3

Introduction to ns-3

Rehmat Ullah Marwat

Malik Nadeem

Page 3: Ns3

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.

Page 4: Ns3

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

Page 5: Ns3

Experience of working on:

Linux platform

C++ and/or Python programming language

TCP/IP protocol suit

Unix Network Programming (e.g sockets)

Page 6: Ns3

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.

Page 7: Ns3

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

Page 8: Ns3

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

Page 9: Ns3

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

added

NS-3 and Autonomic Network

ApplicationApplication

Application

Page 10: Ns3

NS-3 and Autonomic Network

ApplicationApplication

Protocolstack

Node

NetDeviceNetDevice

ApplicationApplication

Protocolstack

Node

NetDeviceNetDevice

Sockets-like

API

Channel

Channel

Packet(s)

Page 11: Ns3

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

Page 12: Ns3

Thank You