Introduction to NS-3

Part - II

UniS PGSDP Workshop
Konstantinos Katsaros
PhD Student
K.Katsaros@surrey.ac.uk
unis logo ns3 logo

Overview

FlowMonitor class

FlowMonitor Measurements

FlowMonitor Example

Create a FlowMonitorHelper object

FlowMonirtorHelper flowmon;

Create a pointer to FlowMonirot class and install probes to all nodes

Ptr<FlowMonitor> monitor = flowmon.InstallAll();

Configure histogram parameters

Monitor->SetAttribute (”DelayBinWidth”, DoubleValue(0.001));
Monitor->SetAttribute (”JitterBinWidth”,DoubleValue (0.001));

Run simulation

Simulator::Run ();

Write results into an XML file

monitor->SerializeToXmlFile (”results.xml”,True,True);

Smart Pointers

Packet Tags

Debugging

Debugging - 2

Visualization

NetAnim 3.0

Adding a new Module

Usage
./create-module.py [options] modulename
Then clean the project, configure and re-build it
%./waf distclean
%./waf configure
%./waf 

Network Simulation Cradle (NSC)

The Network Simulation Cradle (NSC) is a framework which allows real world TCP/IP network stacks to be used inside a network simulator nsc

Distributed Simulation with MPI

Emulation

GlobalValue::Bind (“SimulatorImplementationType”, StringValue (“ns3::RealTimeSimulatorImpl”));
emu1 emu2

/

#