testing cyber-physical systems under uncertainty · testing cyber-physical systems under...

12
Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien http://dsg.tuwien.ac.at/staff/truong ARTEMIS Spring Event, 14 April 2016 Acknowledgement: Materials are provided by U-Test consortium

Upload: ngocong

Post on 08-Oct-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Testing Cyber-Physical Systems under

UncertaintyHong-Linh Truong, TU Wien

http://dsg.tuwien.ac.at/staff/truong

ARTEMIS Spring Event, 14 April 2016

Acknowledgement: Materials are provided by U-Test consortium

Page 2: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Project facts:Total cost: EUR 3 713 233,75

EU contribution: EUR 3 713 233,75

Coordinator: Oslo Medtech, Norway

Topic(s):ICT-01-2014 - Smart Cyber-Physical Systems

Funding scheme: RIA - Research and Innovation action

Overall project objective:

Improving CPS dependability

via systematic and automated

testing of Uncertainty in CPS

The consortium

Page 3: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Cyber-physical systems (CPS) in U-Test

Diverse types of CPS elements: sensors, actuators,

controllers, gateways, cloud storage, etc.

Infrastructural resources are from IoT, Network

functions and Clouds

Multi-level interactions in virtualized environments

Handling Systems: Picture courtesy Handling Systems: Picture courtesy Handling Systems: Picture courtesy Handling Systems: Picture courtesy

ULMA Handling Systems, Spain ULMA Handling Systems, Spain ULMA Handling Systems, Spain ULMA Handling Systems, Spain

Geo Sports: Picture courtesy Geo Sports: Picture courtesy Geo Sports: Picture courtesy Geo Sports: Picture courtesy

Future Position X, Sweden Future Position X, Sweden Future Position X, Sweden Future Position X, Sweden

Page 4: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Our CPS view

CPS Infrastructures

Page 5: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Our problem: Uncertainty

• The presence of uncertainty is pervasive in CPS • Strongly influence function, composition, business, and trustworthiness of

CPS

• Emerging types of uncertainties due to the change of CPS• Conventional aspects, e.g., infrastructural physical resources and typical

system/application operations

• Emerging novel aspects: data uncertainties (data/data-centric CPS), actuations and elasticity of CPS resources, and data governance

• How to discover them and then deal with them?• Uncertainty analytics through testing

• Also adaptation of CPS resources considering uncertainties

Page 6: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

U-Taxonomy

Core Uncertainty Conceptual ModelCore Uncertainty

Conceptual Model

Infrastructure Level Uncertainty Taxonomy

<<import>>

Application Level

Uncertainty Taxonomy

<<import>>Core Belief Model

Core Measure Model

<<import>>

Core Uncertainty Model

<<import>>

Structure of Core uncertainty

conceptual model

• Infrastructure and Application Levels: focus on common and specific uncertainties within infrastructures and applications

Page 7: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Uncertainty Model

Locality

0..1

Uncertainty

Lifetime

0..1

Random0..1

0..*

Effect

0..*

Risk0..1

0..*

Pattern

0..1

0..*

Cause

0..*0..*

Measurement0..

*

substatement

0..*

UncertaintyIndeterminacy

Source1..*

source

0..*

Measure«enumeration»«enumeration»

IndeterminacyNature

nondeterminisminsufficientResolutionmissingInfocompositeunclassified

type1..*

0..*

Belief

Measurement0..*

0..* beliefDegree

BeliefStatement

Characterizing Uncertainty

Belief Model

Page 8: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Example

• FPX Geo Sports• UC1_INTE_1: Mixing connection with external sensor and X4 unit

• BeliefAgent: Roland Norgren

• IndeterminacySource: Human behaviour (Non-determinism) and Wireless Connection (InsufficientResolution)

• Evidence: History log

• Uncertainty (Occurrence): X4 connects with external sensor

• Lifetime: from triggering external sensor’s connection to visualize the results within specific time constraint

• Risk: Low

• Random

• Measure: Non-Specificity

• Measurement: rare

BeliefModel

UncertaintyModel

MeasureModel

Page 9: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Model-based and Search-based Testing

Uncertainty Reqs

as text UMFmanually modelled

using

Test Ready

Models as

Stereotyped

UML modelsoutput

UTF

input

Test Cases

generates

Test Driver

input

System

Under Test

executes on

discover new uncertainties

discover new uncertainties

collect results

Rational Software

Architect

Tools

Page 10: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

IoT Cloud Systems/CPS

Dynamic Testing Infrastructures for Uncertainty Testing

Modeling Uncertainties

and SUT

Uncertainty Profile

System Under Test (SUT) Models

Generating Uncertainty Test cases

Deploying/Configuring SUT

System Under Test (SUT)

Test cases

Testing

Resource Information (IoT, Network functions, clouds)

Deploying/Configuring

Testing Utilities

Test Utilities

� Use information models for basic elements in IoT, network functions, and clouds

� Deploy a new CPS using virtualized components or configure existing CPS

� Deploy test utilities and perform tests on the fly

Page 11: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Summary: U-Test Results and methods

Key expected results:

• Understanding Uncertainty (U-Taxonomy)

• Modeling Framework

• Extensible and Configurable

• Testing Framework

• Extensible and Configurable

• Tools implementing Taxonomy and Frameworks

• Standards (Crosscutting)

Model-Based Testing:

• Abstraction

• Managing Complexity

• Automation

• Systematic

Search-Based Testing

• Optimization

• Smart Mechanisms

• Discovering unknown uncertainties

• Genetic Algorithms.....

Page 12: Testing Cyber-Physical Systems under Uncertainty · Testing Cyber-Physical Systems under Uncertainty Hong-Linh Truong, TU Wien ... Funding scheme: RIA -Research and Innovation action

Thank you for your attention!

@utesth2020

www.u-test.eu

U-test.eu