SlideShare a Scribd company logo
Testing Uncertainty of Cyber-Physical
Systems in IoT Cloud Infrastructures:
Combining Model-Driven Engineering
and Elastic Execution
Hong-Linh Truong, Luca Berardinelli
Distributed Systems Group, TU Wien
truong@dsg.tuwien.ac.at
http://rdsea.github.io
TECPS'17, 13 July, 2017, Santa Barbara, USA 1
Outline
 Our focused CPS
 IoT Cloud Systems, Elastic Execution, Uncertainty
 Top-down and bottom up approaches
 MDE/MBT versus Elastic Execution
 Combining methods and tool pipelines
 Early results
 Summary
TECPS'17, 13 July, 2017, Santa Barbara, USA 2
Our view on IoT Cloud Systems
3
TECPS'17, 13 July, 2017, Santa Barbara, USA
Source: Duc-Hung Le, Nanjangud C. Narendra, Hong Linh Truong:
HINC - Harmonizing Diverse Resource Information across IoT, Network Functions, and Clouds. FiCloud 2016: 317-324
Cyber-physical systems in IoT
Cloud Infrastructures
 Heavily based on virtual resources
 Loosely couple and tightly couple interactions
 Different degrees of data and control interactions
TECPS'17, 13 July, 2017, Santa Barbara, USA 4
(Virtual) Cyber-physical systems
IoT Cloud Systems - Elastic
Execution
5TECPS'17, 13 July, 2017, Santa Barbara, USA
http://tuwiendsg.github.io/iCOMOT/
Examples:
Elastic execution is a fundamental aspect in IoT Cloud Systems,
strongly changing methods for design and execution of CPS/IoT
Testing uncertainty in CPS
 Uncertainty:
 due to lack of knowledge, especially due to the complexity and
diversity of resources and interactions in IoT and Cloud systems
 Supporting testing uncertainties and uncertainties analytics
 Emerging novel aspects: data uncertainties (data/data-centric
CPS), elasticity of CPS resources (w.r.t function and composition),
and Governance (related to business/trustworthiness)
 How to discover them and then deal with them?
 Uncertainty analytics through testing (H2020 U-Test objectives)
 Also adaptation of resources considering uncertainties
TECPS'17, 13 July, 2017, Santa Barbara, USA 6
U-Test Uncertainty
Model
Locality
0..1
Uncertainty
Lifetime
0..1
Random
0..1
0..*
Effect
0..*
Risk
0..1
0..*
Pattern
0..1
0..*
Cause
0..*
0..*
Measurement
0
..
*
substatement
0..*
Uncertainty
Indeterminacy
Source
1..*
source
0..*
Measure
«enumeration»
IndeterminacyNature
nondeterminism
insufficientResolution
missingInfo
composite
unclassified
type1..*
0..*
Belief
Measurement 0..*
0..* beliefDegree
Belief
Statement
Characterizing Uncertainty
Belief Model
TECPS'17, 13 July, 2017, Santa Barbara, USA 7
Figure sources and relevant technical reports:
https://www.simula.no/file/d12pdf/download
Core Uncertainty
Conceptual Model
Infrastructure Level
Uncertainty Taxonomy
<<import>>
Application Level
Uncertainty Taxonomy
<<import>>
Data
ElasticityGovernance
Important infrastructure uncertainty
classes
TECPS'17, 13 July, 2017, Santa Barbara, USA 8
Storage
Uncertainty
Infrastructure
Uncertainty
DataDelivery
Uncertainty
Actuation
Uncertainty
DeploymentTime
Uncertainty
ExecutionEnvironment
Uncertainty
Storage
ComplianceUncertainty
StorageQuality
Uncertainty
StorageDependability
Uncertainty
DataQuality
Uncertainty
DataDelivery
ComplianceUncertainty
DataDeliveryDependability
Uncertainty
ActuationDependability
Uncertainty
EnvironmentDependability
Uncertainty
Actuation
ComplianceUncertainty
ApplicationDependability
Uncertainty
Runtime
Uncertainty
Modeling and Provisioning IoT Cloud
Infrastructures for Uncertainty Testing
The Topdown approach (MDE/MBT)
TECPS'17, 13 July, 2017, Santa Barbara, USA 9
IoT and Cloud Resource Profile
TECPS'17, 13 July, 2017, Santa Barbara, USA 10
Uncertainty
Profile
TECPS'17, 13 July, 2017, Santa Barbara, USA 11
Then Model-based Testing (MBT)
TECPS'17, 13 July, 2017, Santa Barbara, USA 12
Mostly do not
consider how to deal
with the
infrastructures of
SUT
Work with specific
static SUT
deployment
Figure source:
Mark Utting and Bruno Legeard. 2006. Practical Model-Based Testing: A Tools
Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
Elastic Infrastructure Testing
The bottom up approach (from IoT Cloud
systems)
Example from:
Daniel Moldovan,Hong-Linh Truong, A Platform for Run-time Health
Verification of Elastic Cyber-physical Systems, The IEEE International
Symposium on Modelling, Analysis and Simulation of Computer and
Telecommunication Systems (MASCOTS 2016), September 19-21, Imperial
College, London, UK
TECPS'17, 13 July, 2017, Santa Barbara, USA 13
Infrastructure-level Testing
Approach
TECPS'17, 13 July, 2017, Santa Barbara, USA 14
(From modeling/description)
*testing strategy=testing plan
Daniel Moldovan,Hong-Linh Truong, A
Platform for Run-time Health
Verification of Elastic Cyber-physical
Systems, The IEEE International
Symposium on Modelling, Analysis and
Simulation of Computer and
Telecommunication Systems
(MASCOTS 2016), September 19-21,
Imperial College, London, UK
Run-Time view on structure of
Elasic IoT Cloud systems/CPS
TECPS'17, 13 July, 2017, Santa Barbara, USA 15
Infrastructure Testing Platform
Domain-Specific Language for Test Plan
Description
name: "TestName"
description: "human readable description"
timeout: timeInSeconds
Triggers
every: number s|m
event: "Added |"Removed“ |”TestFailed” | “TestPassed”| on ComponentIdentifier
…
Execution
executor: [distinct] ComponentIdentifier for ComponentIdentifier [, ComponentIdentifier]+
where ComponentIdentifier:
• Type. [Service | Process | VirtualContainer | VirtualMachine | PhysicalMachine | PhysicalDevice]
• ID.”ComponentID”
• UUID.”ComponentUUID”
TECPS'17, 13 July, 2017, Santa Barbara, USA 16
Using this DSL: for the test plan, both deployment/configuration and
testing tasks can be described interwoven
Closing the gap: Combining MDE and
Elastic Execution
TECPS'17, 13 July, 2017, Santa Barbara, USA 17
Currently we are not able to leverage strength of
topdown approach and bottom-up approach for
testing CPS uncertainty
Public cloud infrastructures
Private cloud infrs.
Base Transceiver Station (BTS)
Case Stduy BTS
 Data uncertainty: influence both monitoring and controlling of
equipment
 Large-scale systems (1000+ BTS)
 Flexible back-end clouds
 Generic enough for other applications (e.g., in smart agriculture)
TECPS'17, 13 July, 2017, Santa Barbara, USA 18
Sensor
IoT
Gateway
MQTT
Broker
BigQuery
Cassandra
Hadoop FS
Actuator
Optimizer Analytics
Key issues
 Current MDE/MBT tools are not enough for
testing uncertainties
 Models, languages and transformation techniques at
the moment do not support on-demand, pay-per-use,
elasticity of IoT and cloud resources
 Elastic Execution hidden from models for
testing
 IoT and cloud infrastructures are not fixed
 SUT and their configurations are changed
TECPS'17, 13 July, 2017, Santa Barbara, USA 19
Key issues: Two separate worlds
TECPS'17, 13 July, 2017, Santa Barbara, USA 20
SUT Infrastructure
Development
Deployment Description
Development
IoT/Cloud Infrastructures
Infrastructure Configurations
Resource
Information
Adaptor/Tool
Deployment Scripts
Preparing CPS under Test
Requirements
Artifact
Repository
Figure source:
Mark Utting and Bruno Legeard. 2006. Practical Model-Based Testing: A Tools
Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
?
Combining MDE with Elastic
Execution
TECPS'17, 13 July, 2017, Santa Barbara, USA 21
Interwoven test exuection and
provisioning
TECPS'17, 13 July, 2017, Santa Barbara, USA 22
IoT Cloud Infrastructures
Modeling
Uncertainties
and SUT
Uncertainty
Profile
System Under
Test (SUT)
Models
Generating
Uncertainty
Test cases
Deploying/
Configuring
SUT
System Under
Test (SUT)
Test cases
Executing
Tests
IoT/Cloud
Resource
Information
Deploying/
Configuring
Testing Utilities
Test
Utilities
Tool pipelines: from MDE to elastic
execution for testing
TECPS'17, 13 July, 2017, Santa Barbara, USA 23
Key thoughts:
 Different algorithms to create suitable deployment configurations based
on data uncertainties, cost, and time
 Interactions between testing and elasticity control of IoT and Cloud
services
Our current progress
TECPS'17, 13 July, 2017, Santa Barbara, USA 24
Consider to generate provisioning configurations
from SUT models
Extracting
model
information &
Generating test
configuration
test
strategies
Infrastructural
IoT Cloud
resources
Provisioning &
Configuring
SUT
Executing
Tests
Test plans &
executors
IoT Units
Cloud
T
E
S
T
S
ProviderA
ActuatorsSensors
VMsAnalytics GWs
IoT Units
Cloud
T
E
S
T
S
ProviderB
ActuatorsSensors
VMsAnalytics GWs
Infrastructure
(Class Diagrams)
Behaviour
(State Machine
diagrams)
Uncertainty
Hong-Linh Truong, Luca Berardinelli, Ivan Pakovic, Georgiana Copil, Modeling and Provisioning IoT Cloud
Infrastructures for Testing Uncertainties, July, 2017 under submission
Example of BTS monitoring
TECPS'17, 13 July, 2017, Santa Barbara, USA 25
Elastic Test plan
Generic models for Task Executor
TECPS'17, 13 July, 2017, Santa Barbara, USA 26
Test
Configuration
Test
Executor
Provisioning
Task
Reconfiguration
Task
Test Case
Execution Task
Uncertainty
Metric
Concrete tool pipeline
TECPS'17, 13 July, 2017, Santa Barbara, USA 27
HINC
(runtime)Docker
Registry
Artifact
Repository
Extracted
information
(JSON)
Deployment
Description
(YAML/TOSCA)
Generate
Configurations &
Deployment
SALSA, Docker
and gcloud
utilities
Examples
TECPS'17, 13 July, 2017, Santa Barbara, USA 28
"MQTTConfig1": {
"name": "MQTTConfigServer",
"protocolType": "MQTT",
"qosLevel": [],
"type": "CommunicationConfiguration"
}
"MQTTConfig2": {
"name": "MQTTConfigClient",
"protocolType": "MQTT",
"clientID": "",
"serverIP": "35.189.187.208",
"portNumber": 1883,
"topics": ["/gateway/electricity"],
"qosLevel": [2],
"type": "CommunicationConfiguration"
}
services:
ingest:
build: .
volumes:
- ./:/t4u
electricitysensor:
image:
"localhost:5000/t4u/mqttsensor/realsensor:
v01"
iotgateway:
image:
"localhost:5000/t4u/cloudservice/mqttbroke
r:v01"
Enriched model information for
deployment configurations Generated deployment description
TECPS'17, 13 July, 2017, Santa Barbara, USA 29
Example: using SALSA for deployment and
configurations
http://tuwiendsg.github.io/SALSA/
Summary
 Testing uncertainties need to deal with elasticity and
virtualization
 Different tools for modeling, provisioning and testing
uncertainties based on MDE/MBT and elastic techniques
 Closing gaps in testing uncertainties by introducing
novel methods and tool pipelines
 Our future work
 Prototype our approach for uncertainty testing
 Machine learning/big data analytics for uncertainty analytics
(www.u-test.eu)
Check https://github.com/tuwiendsg/COMOT4U for new
update
TECPS'17, 13 July, 2017, Santa Barbara, USA 30
Thanks for your
attention!
Hong-Linh Truong
Distributed Systems Group
TU Wien
rdsea.github.io
TECPS'17, 13 July, 2017, Santa Barbara, USA 31

More Related Content

Similar to Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: Combining Model-Driven Engineering and Elastic Execution (20)

PDF
COMBINING MODEL-DRIVEN ENGINEERING AND ELASTIC EXECUTION FOR TESTING UNCERTAI...
Luca Berardinelli
 
PDF
Uncertainty-wise Engineering of IoT Cloud Systems
Luca Berardinelli
 
PDF
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties
Hong-Linh Truong
 
PDF
Governing Elastic IoT Cloud Systems under Uncertainties
Hong-Linh Truong
 
PDF
Testing with Fewer Resources: Toward Adaptive Approaches for Cost-effective ...
Sebastiano Panichella
 
PDF
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Hong-Linh Truong
 
PDF
Managing and Testing Ensembles of IoT, Network functions, and Clouds
Hong-Linh Truong
 
PDF
STV-20151019-ServiceFunctionaTestAutomation (2)
Libero Maesano
 
PDF
IRJET-Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructu...
IRJET Journal
 
PDF
The Cloudification Perspectives of Search-based Software Testing
Sebastiano Panichella
 
PDF
Testing Challenges and Approaches in Edge Computing
Axel Rennoch
 
PPTX
Automating "Network Ready for Use" with pytest
Jeremy Schulman
 
PDF
Cloud Validation Suite Presentation for Webinar: Cloud and Earth Observation ...
OCRE | Open Clouds for Research Environments
 
PDF
The Future of Automation Testing Emerging Trends and Technologies
Alpha BOLD
 
PDF
Testing Applications—For the Cloud and in the Cloud
TechWell
 
PDF
IoT—Let’s Code Like It’s 1999!
TechWell
 
PDF
Testing and Development Challenges for Complex Cyber-Physical Systems: Insigh...
Sebastiano Panichella
 
PPT
IoT testing and quality assurance indicthreads
IndicThreads
 
PPTX
Test automation asserting Iot_Ingenious tinkerers_MSEC.pptx
6038kannans20MSEC
 
PPTX
Testing & Compliance Challenges for Healthcare in the Cloud
Adam Sandman
 
COMBINING MODEL-DRIVEN ENGINEERING AND ELASTIC EXECUTION FOR TESTING UNCERTAI...
Luca Berardinelli
 
Uncertainty-wise Engineering of IoT Cloud Systems
Luca Berardinelli
 
Modeling and Provisioning IoT Cloud Systems for Testing Uncertainties
Hong-Linh Truong
 
Governing Elastic IoT Cloud Systems under Uncertainties
Hong-Linh Truong
 
Testing with Fewer Resources: Toward Adaptive Approaches for Cost-effective ...
Sebastiano Panichella
 
Integrated Analytics for IIoT Predictive Maintenance using IoT Big Data Cloud...
Hong-Linh Truong
 
Managing and Testing Ensembles of IoT, Network functions, and Clouds
Hong-Linh Truong
 
STV-20151019-ServiceFunctionaTestAutomation (2)
Libero Maesano
 
IRJET-Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructu...
IRJET Journal
 
The Cloudification Perspectives of Search-based Software Testing
Sebastiano Panichella
 
Testing Challenges and Approaches in Edge Computing
Axel Rennoch
 
Automating "Network Ready for Use" with pytest
Jeremy Schulman
 
Cloud Validation Suite Presentation for Webinar: Cloud and Earth Observation ...
OCRE | Open Clouds for Research Environments
 
The Future of Automation Testing Emerging Trends and Technologies
Alpha BOLD
 
Testing Applications—For the Cloud and in the Cloud
TechWell
 
IoT—Let’s Code Like It’s 1999!
TechWell
 
Testing and Development Challenges for Complex Cyber-Physical Systems: Insigh...
Sebastiano Panichella
 
IoT testing and quality assurance indicthreads
IndicThreads
 
Test automation asserting Iot_Ingenious tinkerers_MSEC.pptx
6038kannans20MSEC
 
Testing & Compliance Challenges for Healthcare in the Cloud
Adam Sandman
 

More from Hong-Linh Truong (20)

PDF
QoA4ML – A Framework for Supporting Contracts in Machine Learning Services
Hong-Linh Truong
 
PDF
Sharing Blockchain Performance Knowledge for Edge Service Development
Hong-Linh Truong
 
PDF
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
Hong-Linh Truong
 
PDF
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
Hong-Linh Truong
 
PDF
Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Hong-Linh Truong
 
PDF
Characterizing Incidents in Cloud-based IoT Data Analytics
Hong-Linh Truong
 
PDF
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN
Hong-Linh Truong
 
PDF
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications
Hong-Linh Truong
 
PDF
Deep Context-Awareness: Context Coupling and New Types of Context Information...
Hong-Linh Truong
 
PDF
Towards a Resource Slice Interoperability Hub for IoT
Hong-Linh Truong
 
PDF
On Supporting Contract-aware IoT Dataspace Services
Hong-Linh Truong
 
PDF
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
Hong-Linh Truong
 
PDF
On Engineering Analytics of Elastic IoT Cloud Systems
Hong-Linh Truong
 
PDF
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
Hong-Linh Truong
 
PDF
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
Hong-Linh Truong
 
PDF
SmartSociety – A Platform for Collaborative People-Machine Computation
Hong-Linh Truong
 
PDF
On Developing and Operating of Data Elasticity Management Process
Hong-Linh Truong
 
PDF
ICSOC 2015 Panel: Service Engineering Analytics in the IoT Cloud Systems
Hong-Linh Truong
 
PDF
Principles for Engineering Elastic IoT Cloud Systems
Hong-Linh Truong
 
PDF
TUWien - ASE Summer 2015: Engineering human-based services in elastic systems
Hong-Linh Truong
 
QoA4ML – A Framework for Supporting Contracts in Machine Learning Services
Hong-Linh Truong
 
Sharing Blockchain Performance Knowledge for Edge Service Development
Hong-Linh Truong
 
Measuring, Quantifying, & Predicting the Cost-Accuracy Tradeoff
Hong-Linh Truong
 
DevOps for Dynamic Interoperability of IoT, Edge and Cloud Systems
Hong-Linh Truong
 
Dynamic IoT data, protocol, and middleware interoperability with resource sli...
Hong-Linh Truong
 
Characterizing Incidents in Cloud-based IoT Data Analytics
Hong-Linh Truong
 
Enabling Edge Analytics of IoT Data: The Case of LoRaWAN
Hong-Linh Truong
 
Analytics of Performance and Data Quality for Mobile Edge Cloud Applications
Hong-Linh Truong
 
Deep Context-Awareness: Context Coupling and New Types of Context Information...
Hong-Linh Truong
 
Towards a Resource Slice Interoperability Hub for IoT
Hong-Linh Truong
 
On Supporting Contract-aware IoT Dataspace Services
Hong-Linh Truong
 
Towards the Realization of Multi-dimensional Elasticity for Distributed Cloud...
Hong-Linh Truong
 
On Engineering Analytics of Elastic IoT Cloud Systems
Hong-Linh Truong
 
HINC – Harmonizing Diverse Resource Information Across IoT, Network Functions...
Hong-Linh Truong
 
SINC – An Information-Centric Approach for End-to-End IoT Cloud Resource Prov...
Hong-Linh Truong
 
SmartSociety – A Platform for Collaborative People-Machine Computation
Hong-Linh Truong
 
On Developing and Operating of Data Elasticity Management Process
Hong-Linh Truong
 
ICSOC 2015 Panel: Service Engineering Analytics in the IoT Cloud Systems
Hong-Linh Truong
 
Principles for Engineering Elastic IoT Cloud Systems
Hong-Linh Truong
 
TUWien - ASE Summer 2015: Engineering human-based services in elastic systems
Hong-Linh Truong
 
Ad

Recently uploaded (20)

PPTX
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
PDF
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
PDF
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
PPTX
Climate Action.pptx action plan for climate
justfortalabat
 
PDF
MusicVideoProjectRubric Animation production music video.pdf
ALBERTIANCASUGA
 
PDF
WEF_Future_of_Global_Fintech_Second_Edition_2025.pdf
AproximacionAlFuturo
 
PDF
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
PDF
Merits and Demerits of DBMS over File System & 3-Tier Architecture in DBMS
MD RIZWAN MOLLA
 
PPTX
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
PDF
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
PDF
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
PDF
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 
PPTX
recruitment Presentation.pptxhdhshhshshhehh
devraj40467
 
PPTX
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
PPTX
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
PPTX
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
PPT
deep dive data management sharepoint apps.ppt
novaprofk
 
PPTX
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
Climate Action.pptx action plan for climate
justfortalabat
 
MusicVideoProjectRubric Animation production music video.pdf
ALBERTIANCASUGA
 
WEF_Future_of_Global_Fintech_Second_Edition_2025.pdf
AproximacionAlFuturo
 
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
Merits and Demerits of DBMS over File System & 3-Tier Architecture in DBMS
MD RIZWAN MOLLA
 
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
Building Production-Ready AI Agents with LangGraph.pdf
Tamanna
 
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 
recruitment Presentation.pptxhdhshhshshhehh
devraj40467
 
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
deep dive data management sharepoint apps.ppt
novaprofk
 
b6057ea5-8e8c-4415-90c0-ed8e9666ffcd.pptx
Anees487379
 
Ad

Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: Combining Model-Driven Engineering and Elastic Execution

  • 1. Testing Uncertainty of Cyber-Physical Systems in IoT Cloud Infrastructures: Combining Model-Driven Engineering and Elastic Execution Hong-Linh Truong, Luca Berardinelli Distributed Systems Group, TU Wien [email protected] http://rdsea.github.io TECPS'17, 13 July, 2017, Santa Barbara, USA 1
  • 2. Outline  Our focused CPS  IoT Cloud Systems, Elastic Execution, Uncertainty  Top-down and bottom up approaches  MDE/MBT versus Elastic Execution  Combining methods and tool pipelines  Early results  Summary TECPS'17, 13 July, 2017, Santa Barbara, USA 2
  • 3. Our view on IoT Cloud Systems 3 TECPS'17, 13 July, 2017, Santa Barbara, USA Source: Duc-Hung Le, Nanjangud C. Narendra, Hong Linh Truong: HINC - Harmonizing Diverse Resource Information across IoT, Network Functions, and Clouds. FiCloud 2016: 317-324
  • 4. Cyber-physical systems in IoT Cloud Infrastructures  Heavily based on virtual resources  Loosely couple and tightly couple interactions  Different degrees of data and control interactions TECPS'17, 13 July, 2017, Santa Barbara, USA 4 (Virtual) Cyber-physical systems
  • 5. IoT Cloud Systems - Elastic Execution 5TECPS'17, 13 July, 2017, Santa Barbara, USA http://tuwiendsg.github.io/iCOMOT/ Examples: Elastic execution is a fundamental aspect in IoT Cloud Systems, strongly changing methods for design and execution of CPS/IoT
  • 6. Testing uncertainty in CPS  Uncertainty:  due to lack of knowledge, especially due to the complexity and diversity of resources and interactions in IoT and Cloud systems  Supporting testing uncertainties and uncertainties analytics  Emerging novel aspects: data uncertainties (data/data-centric CPS), elasticity of CPS resources (w.r.t function and composition), and Governance (related to business/trustworthiness)  How to discover them and then deal with them?  Uncertainty analytics through testing (H2020 U-Test objectives)  Also adaptation of resources considering uncertainties TECPS'17, 13 July, 2017, Santa Barbara, USA 6
  • 7. U-Test Uncertainty Model Locality 0..1 Uncertainty Lifetime 0..1 Random 0..1 0..* Effect 0..* Risk 0..1 0..* Pattern 0..1 0..* Cause 0..* 0..* Measurement 0 .. * substatement 0..* Uncertainty Indeterminacy Source 1..* source 0..* Measure «enumeration» IndeterminacyNature nondeterminism insufficientResolution missingInfo composite unclassified type1..* 0..* Belief Measurement 0..* 0..* beliefDegree Belief Statement Characterizing Uncertainty Belief Model TECPS'17, 13 July, 2017, Santa Barbara, USA 7 Figure sources and relevant technical reports: https://www.simula.no/file/d12pdf/download Core Uncertainty Conceptual Model Infrastructure Level Uncertainty Taxonomy <<import>> Application Level Uncertainty Taxonomy <<import>>
  • 8. Data ElasticityGovernance Important infrastructure uncertainty classes TECPS'17, 13 July, 2017, Santa Barbara, USA 8 Storage Uncertainty Infrastructure Uncertainty DataDelivery Uncertainty Actuation Uncertainty DeploymentTime Uncertainty ExecutionEnvironment Uncertainty Storage ComplianceUncertainty StorageQuality Uncertainty StorageDependability Uncertainty DataQuality Uncertainty DataDelivery ComplianceUncertainty DataDeliveryDependability Uncertainty ActuationDependability Uncertainty EnvironmentDependability Uncertainty Actuation ComplianceUncertainty ApplicationDependability Uncertainty Runtime Uncertainty
  • 9. Modeling and Provisioning IoT Cloud Infrastructures for Uncertainty Testing The Topdown approach (MDE/MBT) TECPS'17, 13 July, 2017, Santa Barbara, USA 9
  • 10. IoT and Cloud Resource Profile TECPS'17, 13 July, 2017, Santa Barbara, USA 10
  • 11. Uncertainty Profile TECPS'17, 13 July, 2017, Santa Barbara, USA 11
  • 12. Then Model-based Testing (MBT) TECPS'17, 13 July, 2017, Santa Barbara, USA 12 Mostly do not consider how to deal with the infrastructures of SUT Work with specific static SUT deployment Figure source: Mark Utting and Bruno Legeard. 2006. Practical Model-Based Testing: A Tools Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
  • 13. Elastic Infrastructure Testing The bottom up approach (from IoT Cloud systems) Example from: Daniel Moldovan,Hong-Linh Truong, A Platform for Run-time Health Verification of Elastic Cyber-physical Systems, The IEEE International Symposium on Modelling, Analysis and Simulation of Computer and Telecommunication Systems (MASCOTS 2016), September 19-21, Imperial College, London, UK TECPS'17, 13 July, 2017, Santa Barbara, USA 13
  • 14. Infrastructure-level Testing Approach TECPS'17, 13 July, 2017, Santa Barbara, USA 14 (From modeling/description) *testing strategy=testing plan Daniel Moldovan,Hong-Linh Truong, A Platform for Run-time Health Verification of Elastic Cyber-physical Systems, The IEEE International Symposium on Modelling, Analysis and Simulation of Computer and Telecommunication Systems (MASCOTS 2016), September 19-21, Imperial College, London, UK
  • 15. Run-Time view on structure of Elasic IoT Cloud systems/CPS TECPS'17, 13 July, 2017, Santa Barbara, USA 15
  • 16. Infrastructure Testing Platform Domain-Specific Language for Test Plan Description name: "TestName" description: "human readable description" timeout: timeInSeconds Triggers every: number s|m event: "Added |"Removed“ |”TestFailed” | “TestPassed”| on ComponentIdentifier … Execution executor: [distinct] ComponentIdentifier for ComponentIdentifier [, ComponentIdentifier]+ where ComponentIdentifier: • Type. [Service | Process | VirtualContainer | VirtualMachine | PhysicalMachine | PhysicalDevice] • ID.”ComponentID” • UUID.”ComponentUUID” TECPS'17, 13 July, 2017, Santa Barbara, USA 16 Using this DSL: for the test plan, both deployment/configuration and testing tasks can be described interwoven
  • 17. Closing the gap: Combining MDE and Elastic Execution TECPS'17, 13 July, 2017, Santa Barbara, USA 17 Currently we are not able to leverage strength of topdown approach and bottom-up approach for testing CPS uncertainty
  • 18. Public cloud infrastructures Private cloud infrs. Base Transceiver Station (BTS) Case Stduy BTS  Data uncertainty: influence both monitoring and controlling of equipment  Large-scale systems (1000+ BTS)  Flexible back-end clouds  Generic enough for other applications (e.g., in smart agriculture) TECPS'17, 13 July, 2017, Santa Barbara, USA 18 Sensor IoT Gateway MQTT Broker BigQuery Cassandra Hadoop FS Actuator Optimizer Analytics
  • 19. Key issues  Current MDE/MBT tools are not enough for testing uncertainties  Models, languages and transformation techniques at the moment do not support on-demand, pay-per-use, elasticity of IoT and cloud resources  Elastic Execution hidden from models for testing  IoT and cloud infrastructures are not fixed  SUT and their configurations are changed TECPS'17, 13 July, 2017, Santa Barbara, USA 19
  • 20. Key issues: Two separate worlds TECPS'17, 13 July, 2017, Santa Barbara, USA 20 SUT Infrastructure Development Deployment Description Development IoT/Cloud Infrastructures Infrastructure Configurations Resource Information Adaptor/Tool Deployment Scripts Preparing CPS under Test Requirements Artifact Repository Figure source: Mark Utting and Bruno Legeard. 2006. Practical Model-Based Testing: A Tools Approach. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA. ?
  • 21. Combining MDE with Elastic Execution TECPS'17, 13 July, 2017, Santa Barbara, USA 21
  • 22. Interwoven test exuection and provisioning TECPS'17, 13 July, 2017, Santa Barbara, USA 22 IoT Cloud Infrastructures Modeling Uncertainties and SUT Uncertainty Profile System Under Test (SUT) Models Generating Uncertainty Test cases Deploying/ Configuring SUT System Under Test (SUT) Test cases Executing Tests IoT/Cloud Resource Information Deploying/ Configuring Testing Utilities Test Utilities
  • 23. Tool pipelines: from MDE to elastic execution for testing TECPS'17, 13 July, 2017, Santa Barbara, USA 23 Key thoughts:  Different algorithms to create suitable deployment configurations based on data uncertainties, cost, and time  Interactions between testing and elasticity control of IoT and Cloud services
  • 24. Our current progress TECPS'17, 13 July, 2017, Santa Barbara, USA 24 Consider to generate provisioning configurations from SUT models Extracting model information & Generating test configuration test strategies Infrastructural IoT Cloud resources Provisioning & Configuring SUT Executing Tests Test plans & executors IoT Units Cloud T E S T S ProviderA ActuatorsSensors VMsAnalytics GWs IoT Units Cloud T E S T S ProviderB ActuatorsSensors VMsAnalytics GWs Infrastructure (Class Diagrams) Behaviour (State Machine diagrams) Uncertainty Hong-Linh Truong, Luca Berardinelli, Ivan Pakovic, Georgiana Copil, Modeling and Provisioning IoT Cloud Infrastructures for Testing Uncertainties, July, 2017 under submission
  • 25. Example of BTS monitoring TECPS'17, 13 July, 2017, Santa Barbara, USA 25
  • 26. Elastic Test plan Generic models for Task Executor TECPS'17, 13 July, 2017, Santa Barbara, USA 26 Test Configuration Test Executor Provisioning Task Reconfiguration Task Test Case Execution Task Uncertainty Metric
  • 27. Concrete tool pipeline TECPS'17, 13 July, 2017, Santa Barbara, USA 27 HINC (runtime)Docker Registry Artifact Repository Extracted information (JSON) Deployment Description (YAML/TOSCA) Generate Configurations & Deployment SALSA, Docker and gcloud utilities
  • 28. Examples TECPS'17, 13 July, 2017, Santa Barbara, USA 28 "MQTTConfig1": { "name": "MQTTConfigServer", "protocolType": "MQTT", "qosLevel": [], "type": "CommunicationConfiguration" } "MQTTConfig2": { "name": "MQTTConfigClient", "protocolType": "MQTT", "clientID": "", "serverIP": "35.189.187.208", "portNumber": 1883, "topics": ["/gateway/electricity"], "qosLevel": [2], "type": "CommunicationConfiguration" } services: ingest: build: . volumes: - ./:/t4u electricitysensor: image: "localhost:5000/t4u/mqttsensor/realsensor: v01" iotgateway: image: "localhost:5000/t4u/cloudservice/mqttbroke r:v01" Enriched model information for deployment configurations Generated deployment description
  • 29. TECPS'17, 13 July, 2017, Santa Barbara, USA 29 Example: using SALSA for deployment and configurations http://tuwiendsg.github.io/SALSA/
  • 30. Summary  Testing uncertainties need to deal with elasticity and virtualization  Different tools for modeling, provisioning and testing uncertainties based on MDE/MBT and elastic techniques  Closing gaps in testing uncertainties by introducing novel methods and tool pipelines  Our future work  Prototype our approach for uncertainty testing  Machine learning/big data analytics for uncertainty analytics (www.u-test.eu) Check https://github.com/tuwiendsg/COMOT4U for new update TECPS'17, 13 July, 2017, Santa Barbara, USA 30
  • 31. Thanks for your attention! Hong-Linh Truong Distributed Systems Group TU Wien rdsea.github.io TECPS'17, 13 July, 2017, Santa Barbara, USA 31