amran ahmad internetworks research group · omnet++ amran ahmad internetworks research group. uum...

30
OMNET++ Amran Ahmad InterNetworks Research Group UUM College of Arts and Sciences Universiti Utara Malaysia [email protected]

Upload: hadat

Post on 08-May-2018

218 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

OMNET++

Amran AhmadInterNetworks Research Group

UUM College of Arts and SciencesUniversiti Utara Malaysia

[email protected]

Page 2: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

ContentWhy Simulation?What is OMNET++?Why OMNET++?Discrete event simulationOMNET++ ModelsGetting start with OMNET++

InstallationRunning DemoGNED

Creating a new Module

SimpleCompoundINET

Running SimulationAnalyzing dataSimulating Network Security

Page 3: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Why Simulation?

Network simulation is a technique where a program models the behavior of a network

Calculating the interaction between the different network entities – mathematical formulas

Capturing and playing back observations from a production network.

Representing - hosts/routers, data links, packets, etc.

Simulator - NS2, OPNET, Simulink etc

Page 4: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Why Simulation?Simulation vs Emulation

Emulation differs from simulation in that a network emulator appears to be a network.

End-systems such as computers can be attached to the emulator and will behave as if they are attached to a network.

Network simulators are typically programs which run on a single computer, take an abstract description of the network traffic (such as a flow arrival process) and yield performance statistics (such as buffer occupancy as a function of time).

A network emulator emulates the network which connects end-systems, not the end-systems themselves. Systems which emulate the end-systems are called traffic generators.

Page 5: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Why Simulation?Tools

Tool Description

NS-2 A popular network simulator that can also be used as a limited-functionality emulator.

WANsim A simple bridged WAN emulator that utilises the Linux NETEM functionality.

Exata

A network emulator that provides hardware and Internet in the loop capability to connect real IP applications running on real computers to run using the emulated network protocol stacks of WiFi, WiMAX and UMTS in EXata. It can scale to run 100's of emulated nodes.

WANulatorA network emulator that runs from a bootable CDROM, and uses the Linux kernel for network shaping.

Page 6: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

What is OMNET++?Adras Varga - 1995 (1999 available to public)

Technical University of Budapest, Department of Telecommunications (BME-HIT) , Hungary.

A discrete event simulation environment.

Mainly focused in communication networks and others.

C++ based.

GUI support.

Runs on Linux and Windows.

Supports parallel execution (MPI based).

Several component add-on libraries available.

Free for academic and non-profit use.

Page 7: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Why OMNET++?Important issues in a discrete event simulation environment

Pseudo random generatorsFlexibility.Programming model.Model management.Support for hierarchical models.Debugging and tracing.Documentation.Large scale simulation.Parallel simulationExperiment specification

Page 8: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Discrete Even simulation

System model

deterministic

static

stochastic

staticdynamic dynamic

continuous continuous discretediscrete

Page 9: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

OMNET++ ModelsOMNET++ Models

Optimization of wireless sensor networks (WSN)PAWisReaSE Be able to create realistic simulation environments with respect to

hierarchical network topologies, self-similar background traffic, and attack traffic based on real attack tools

OverSim Overlay network simulation framework. The simulator contains several models for structured (e.g. Chord) and unstructured (e.g. GIA) peer-to-peer protocols

INET Framework

Suited for simulations of wired, wireless and ad-hoc networks. Beyond IP and UDP/TCP there is 802.11, Ethernet, PPP, IPv6, OSPF, RIP, MPLS with LDP and RSVP-TE signalling, and several other protocols

MACSimulator/Positif

Support the following MAC protocols: TMAC, TMACP,LMAC, SMAC, CSMA and CSMAACK. Positif is a model for studying distributed localization in wireless sensor networks.

http://www.omnetpp.org/filemgmt/viewcat.php?cid=3

Page 10: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Getting start with OMNET++

Installation (www.omnetpp.org) omnetpp-3.3INET Framework

Page 11: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Getting start with OMNET++Running Demo

omnetpp

Page 12: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Getting start with OMNET++Running Demo

INET

Page 13: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Getting start with OMNET++

GNED

Page 14: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Getting start with OMNET++GNED

Page 15: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Creating a new ModuleSimple vs Compound

Page 16: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Running Simulation

Ned file

Batch file

Configuration file (*.ini)

Page 17: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Analyzing Data

Page 18: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Analyzing Data

Page 19: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Analyzing Data

Page 20: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Analyzing Data

Page 21: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security

ReaSE -

Installation requirement:INET patch + recompile ReaSEGUI

Page 22: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security

ReaSE Features

Topology generation

Traffic patterns

Attack traffic

Page 23: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Topology

generation

Page 24: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Topology

generation

Page 25: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Traffic

profile

Page 26: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Traffic

profile

Page 27: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Server

setting

Page 28: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Server

setting

Page 29: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Server

setting

Page 30: Amran Ahmad InterNetworks Research Group · OMNET++ Amran Ahmad InterNetworks Research Group. UUM College of Arts and Sciences. Universiti Utara Malaysia. amran@uum.edu.my

Simulating Network Security Replace

Nodes