Ns3 Part1 Introduction
Ns3 Part1 Introduction
Instructors
Intelligent Wireless Network Group (IWING)
..
Assoc.Prof. Anan Phonphoem, Ph.D.
..
Asst.Prof. Chaiporn Jaikaeo, Ph.D.
.
Aphirak Jansang, M.Eng. (Pursuing Ph.D.)
2
Time Table
09:00 - 10:15 ns-3 Introduction & Installation
10:15 - 10.30 Break
10:30 - 12:00 Hands-On:
Point-to-point and CSMA (Ethernet)
12:00 - 13:00 Lunch
13:00 - 14:15 Hands-On:
Wireless & Tracing System and Visualizing Results
14:15 - 14:30 Break
14:30 - 15:30 Demonstation:
ns-3 protocol stack modification
15:30 - 16:00 Q&A
Credits
Modified from ns-3 Tutorial (20 August 2010)
Tutorial examples from www.nsnam.org
Slides from
OPNET
OMNet++
C++ engine
Very popular in European Community
ns-3 Overview
Network Simulator version 3
Rewritten from scratch
An open source discrete event simulator
NS-3 Overview
Project started around mid 2006
University of Washington
(Mathieu Lacage)
ns-3 Basic
10
Doxygen documentation
Mercurial Code Repository
Formal review/check-in procedure
Quarterly releases
11
Components
Node
Net Device
Channel
Application
Protocol Stack
13
Application
Application
Sockets-like
API
Protocol
stack
Protocol
stack
Packet(s)
Node
NetDevice
NetDevice
Node
Channel
Channel
14
NetDevice
NetDevice
Architecture Elements
15
Node Structure
16
Ethernet NIC
WifiNetDevice
Channel example:
WifiChannel
WifiNetDevice
CsmaChannel
CSMA Channel
WifiChannel
CsmaNetDevice
17
Mesh
Routing
Adhoc:
OLSR (RFC 3626)
19
Onoff
Generates streams, alternating on-and-off periods
Highly parameterized
ns-3 Packet
p->method ();
22
ns-3 Validation
ns-3 strategies:
23
Scenario
Generation
Visualization
Animation
Educational
script library
Execution manager
Problem
Definition
Modeling
Experiment
Definition
Framework to
manage hybrid
ns-3/testbed/VM
experiments
24
Output data
management
ns-3
execution
Optional: Connections to
NICs or to virtual machines (VMs)
Iterate as needed
Resources
Web site:
http://www.nsnam.org
Mailing list:
http://mailman.isi.edu/mailman/listinfo/ns-developers
Code server:
http://code.nsnam.org
Wiki:
http://www.nsnam.org/wiki/index.php/Main_Page
25
Documentation
26
http://www.nsnam.org/tutorials/simutools08/