Quick-and-dirty data analysis through GUI - unipi.it
Transcript of Quick-and-dirty data analysis through GUI - unipi.it
![Page 1: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/1.jpg)
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
![Page 2: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/2.jpg)
Antonio Virdis - Omnet 2015 2
![Page 3: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/3.jpg)
Antonio Virdis - Omnet 2015 3
![Page 4: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/4.jpg)
Antonio Virdis - Omnet 2015 4
Properties…
![Page 5: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/5.jpg)
Antonio Virdis - Omnet 2015 5
![Page 6: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/6.jpg)
Antonio Virdis - Omnet 2015 6
![Page 7: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/7.jpg)
Antonio Virdis - Omnet 2015 7
.sca vect plot
Apply -> Mean
![Page 8: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/8.jpg)
Antonio Virdis - Omnet 2015 8
.sca vect operation
![Page 9: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/9.jpg)
Antonio Virdis - Omnet 2015 9
.sca vect plot
Apply -> Other…
![Page 10: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/10.jpg)
Antonio Virdis - Omnet 2015 10
![Page 11: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/11.jpg)
Antonio Virdis - Omnet 2015 11
![Page 12: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/12.jpg)
INET
![Page 13: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/13.jpg)
Overview
• Intro
• Mobility
• IP networks
• Applications
Antonio Virdis - Omnet 2015 13
![Page 14: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/14.jpg)
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
![Page 15: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/15.jpg)
Mobility
• Modeling the capability of an object to move in a 3D spaceover time
• Why?– Analyze mobility aspects.
– Analyze the effects of mobility on the system
• INET provides mobility modules that can be integrated intocompound modules.
Antonio Virdis - Omnet 2015 15
![Page 16: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/16.jpg)
NED definition
import inet.mobility.single.LinearMobility
module MobileNode
{
submodules:
linearMobility: LinearMobility {
}
}
Antonio Virdis - Omnet 2015 16
![Page 17: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/17.jpg)
GUI
Antonio Virdis - Omnet 2015 17
![Page 18: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/18.jpg)
Network definition
import pecsn.MobileNode;
network MobileNetwork
{
parameters:
@display("bgb=500,500,white;");
submodules:
mobileNode: MobileNode {
}
}
Antonio Virdis - Omnet 2015 18
![Page 19: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/19.jpg)
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
![Page 20: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/20.jpg)
Flexible mobility definition
Antonio Virdis - Omnet 2015 20
Within your mobile node
In the .ini file
![Page 21: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/21.jpg)
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
![Page 22: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/22.jpg)
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 posCheckIntervalseconds
– When the timer fires, print the current position of the node
Antonio Virdis - Omnet 2015 22
![Page 23: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/23.jpg)
IP-Network node
Antonio Virdis - Omnet 2015 23
![Page 24: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/24.jpg)
Standard Host
Antonio Virdis - Omnet 2015 24
![Page 25: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/25.jpg)
IP Network
Antonio Virdis - Omnet 2015 25
![Page 26: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/26.jpg)
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
![Page 27: Quick-and-dirty data analysis through GUI - unipi.it](https://reader034.fdocuments.net/reader034/viewer/2022042804/62686ddf9d8a1358804e3d88/html5/thumbnails/27.jpg)
Managing addresses
Antonio Virdis - Omnet 2015 27