Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

Data Analysis

• Quick-and-dirty data analysis through GUI


– Double click on a .sca/.vec file
– Create an analysis file (.anf)
– Browse the file using drop-down menus and/or
regular expressions
– Plot graphs using built-in plotter
• Batch data extraction using command-line
program “scavetool”

Antonio Virdis - Omnet 2015 1


Antonio Virdis - Omnet 2015 2
Antonio Virdis - Omnet 2015 3
Properties…

Antonio Virdis - Omnet 2015 4


Antonio Virdis - Omnet 2015 5
Antonio Virdis - Omnet 2015 6
Apply -> Mean

.sca vect plot

Antonio Virdis - Omnet 2015 7


.sca vect operation

Antonio Virdis - Omnet 2015 8


Apply -> Other…

.sca vect plot

Antonio Virdis - Omnet 2015 9


Antonio Virdis - Omnet 2015 10
Antonio Virdis - Omnet 2015 11
INET
Overview

• Intro

• Mobility

• IP networks

• Applications

Antonio Virdis - Omnet 2015 13


INET
• Open-source model library for OMNeT++

• Useful to quickly develop the standard part of your project

• Models for:
– Internet stack
– Wired and wireless links
– Support for mobility
– Application models
– QoS support (DiffServ MPLS)

• Made of extensible components

Antonio Virdis - Omnet 2015 14


Mobility
• Modeling the capability of an object to move in a 3D space
over time
• Why?
– Analyze mobility aspects.
– Analyze the effects of mobility on the system
• INET provides mobility modules that can be integrated into
compound modules.

Antonio Virdis - Omnet 2015 15


NED definition
import inet.mobility.single.LinearMobility

module MobileNode
{
submodules:
linearMobility: LinearMobility {
}
}

Antonio Virdis - Omnet 2015 16


GUI

Antonio Virdis - Omnet 2015 17


Network definition
import pecsn.MobileNode;

network MobileNetwork
{
parameters:
@display("bgb=500,500,white;");
submodules:
mobileNode: MobileNode {

}
}

Antonio Virdis - Omnet 2015 18


Scenario definition
[General]
network = MobileNetwork
sim-time-limit = 50s

**.mobileNode.linearMobility.speed = 100mps

**.mobileNode.linearMobility.constraintAreaMinX = 0m
**.mobileNode.linearMobility.constraintAreaMinY = 0m
**.mobileNode.linearMobility.constraintAreaMinZ = 0m

**.mobileNode.linearMobility.constraintAreaMaxX = 500m
**.mobileNode.linearMobility.constraintAreaMaxY = 500m
**.mobileNode.linearMobility.constraintAreaMaxZ = 500m

Antonio Virdis - Omnet 2015 19


Flexible mobility definition

Within your mobile node

In the .ini file

Antonio Virdis - Omnet 2015 20


Usage
• Often used by wireless interfaces to perform tx/rx
related operations
• The mobility module offers various interfaces for
obtaining information on the current mobility
(position, speed, etc.)
• E.g. compute distance between two nodes to
evaluate pathloss, delay, etc.

Antonio Virdis - Omnet 2015 21


Example
• Create a simple module pilot with a parameter
posCheckInterval
• Create the associated class
– Read the value of the parameter
– Get access to the mobility module
– Configure a time to trigger every posCheckInterval
seconds
– When the timer fires, print the current position of the
node

Antonio Virdis - Omnet 2015 22


IP-Network node

Antonio Virdis - Omnet 2015 23


Standard Host

Antonio Virdis - Omnet 2015 24


IP Network

Antonio Virdis - Omnet 2015 25


Applications
• INET provides you:
– A set of pre-made application models
– Base classes for UDP and TCP base applications
• Select from .ini one of the available models
• Extend the IUDPApp module and implement
the corresponding class interface

Antonio Virdis - Omnet 2015 26


Managing addresses

Antonio Virdis - Omnet 2015 27

You might also like