Stochastic Petri nets

Similar documents
Dependable and Secure Systems Dependability Master of Science in Embedded Computing Systems

Dependable and Secure Systems Dependability

Module 4: Stochastic Activity Networks

Integration of analytic model and simulation model for analysis on system survivability

Performance Testing from UML Models with Resource Descriptions *

A MODELING TOOL FOR A NEW DEFINITION OF STOCHASTIC ACTIVITY NETWORKS *

Petri Nets ee249 Fall 2000

Contents Introduction Petri Net Toolbox at a First Glance... 4

ECE/CS 541: COMPUTER SYSTEMS ANALYSIS. Homework #4 Due Tuesday, October 6, 2009

Reliability and Dependability in Computer Networks. CS 552 Computer Networks Side Credits: A. Tjang, W. Sanders

Sequential Function Chart

The Petri net modelling and analysis Tool Π-Tool

Outline. Petri nets. Introduction Examples Properties Analysis techniques. 1 EE249Fall04

WEEK 5 - APPLICATION OF PETRI NETS. 4.4 Producers-consumers problem with priority

Petri Nets ~------~ R-ES-O---N-A-N-C-E-I--se-p-te-m--be-r Applications.

Modeling Hybrid Systems with Petri Nets

EE249 Discussion Petri Nets: Properties, Analysis and Applications - T. Murata. Chang-Ching Wu 10/9/2007

New Logic Modeling Paradigms for Complex System Reliability and Risk Analysis

Petri Nets: Properties, Applications, and Variations. Matthew O'Brien University of Pittsburgh

Safety and Reliability of Embedded Systems. (Sicherheit und Zuverlässigkeit eingebetteter Systeme) Safety and Reliability Analysis Models: Overview

PETRI NET MODELLING OF CONCURRENCY CONTROL IN DISTRIBUTED DATABASE SYSTEM

SBML Event Semantics

Dependability measures of a communication network in a critical transport infrastructure

Stochastic Petri Nets Supporting Dynamic Reliability Evaluation

Methods of Technical Risk Assessment in a Regional Context

Introduction to Modeling. Lecture Overview

Case Study #3: Analysis of Replicated Data with Repair Dependency

Stochastic Modeling of Intrusion-Tolerant Server Architectures for Dependability and Performance Evaluation

Petri Nets. Petri Nets. Petri Net Example. Systems are specified as a directed bipartite graph. The two kinds of nodes in the graph:

HYBRID PETRI NET MODEL BASED DECISION SUPPORT SYSTEM. Janetta Culita, Simona Caramihai, Calin Munteanu

Reliability Analysis with Dynamic Reliability Block Diagrams in the Möbius Modeling Tool

A Comparison of the Expressiveness of SPA and Bounded SPN models

Probabilistic Model Checking. Mohammad Roohitavaf

2. Introduction to Software for Embedded Systems

Introduction to Electronic Design Automation. Model of Computation. Model of Computation. Model of Computation

Basic Concepts of Reliability

Technische Universiteit Eindhoven Department of Mathematics and Computer Science. Relationship between Simulink and Petri nets

Ravi K. Gedela, Sol M. Shatz and Haiping Xu Concurrent Software Systems Lab The University of Illinois at Chicago Chicago, IL USA

On Modeling Data Dissemination for LCCIs

Result of the Questionnaire

SHARPE Interface User's Manual Version 1.01

Dynamic Modeling - Finite State Machines

Module 8 - Fault Tolerance

Interaction Testing. Chapter 15

CONTROLLER DEPENDABILITY ANALYSIS BY PROBABILISTIC MODEL CHECKING. Marta Kwiatkowska, Gethin Norman and David Parker

Movement PLANNER T1(0,001/100) / TRAJECTORY WORKING IDLE DONE(300)/ - CONTROLLER SHUTDOWN(300)/ -

Simultaneous Simulation of Alternative Configurations of Markovian System Models

DISCRETE-event dynamic systems (DEDS) are dynamic

UML2SAN: TOWARD A NEW SOFTWARE PERFORMANCE ENGINEERING APPROACH

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation,

Interaction Testing! Chapter 15!!

MODERN automated manufacturing systems require. An Extended Event Graph With Negative Places and Tokens for Time Window Constraints

Quantitative modelling of asynchronous variables

Timed Petri Nets in Modeling and Analysis of Cluster Tools

Dependability Modelling using AADL and the AADL Error Model Annex

Formal Process Modelling

Queuing Networks. Renato Lo Cigno. Simulation and Performance Evaluation Queuing Networks - Renato Lo Cigno 1

Reasoning about Timed Systems Using Boolean Methods

Mathematical and Computer Modelling

The PEPA Eclipse Plug-in

ON-LINE QUALITATIVE MODEL-BASED DIAGNOSIS OF TECHNOLOGICAL SYSTEMS USING COLORED PETRI NETS

Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Fault tolerance and Reliability

Modular Petri Net Processor for Embedded Systems

Failure Models. Fault Tolerance. Failure Masking by Redundancy. Agreement in Faulty Systems

Modeling Fault Tolerance Tactics with Reusable Aspects

these developments has been in the field of formal methods. Such methods, typically given by a

An Introduction to Modular Process Nets

Complex systems modelling and optimization

COMPASS: FORMAL METHODS FOR SYSTEM-SOFTWARE CO-ENGINEERING

A Quality of Service Decision Model for ATM-LAN/MAN Interconnection

Modeling and Performance Evaluation TAODV Routing Protocol Using Stochastic Petri Nets

Formal Support for QVT-Relations with Coloured Petri Nets

Transient Analysis Of Stochastic Petri Nets With Interval Decision Diagrams

Modeling Web Proxy Cache Architectures

Stochastic Petri Net Analysis of Deadlock Detection Algorithms in Transaction Database Systems with Dynamic Locking

Discrete Event Simulation and Petri net Modeling for Reliability Analysis

Automatismos Automatic Systems

Compositional Analysis of Discrete Time Petri nets

12 The PEPA Plug-in for Eclipse

Self Stabilization. CS553 Distributed Algorithms Prof. Ajay Kshemkalyani. by Islam Ismailov & Mohamed M. Ali

SRN Model for IEEE DCF MAC Protocol in Multi-hop Ad Hoc Networks with Hidden Nodes

VALIDATING AN ANALYTICAL APPROXIMATION THROUGH DISCRETE SIMULATION

Final Exam -- ELG 7187C

INTEGRATING COLORED PETRI NET AND OBJECT ORIENTED THEORY INTO WORKFLOW MODEL

An Algorithm to Compute a Basis of Petri Net Invariants

Markov Chains and Multiaccess Protocols: An. Introduction

UNIVERSITÄT DES SAARLANDES Fachrichtung 6.2 Informatik Prof. Dr.-Ing. Holger Hermanns

CA441 BPM - Modelling Workflow with Petri Nets. Modelling Workflow with Petri Nets. Workflow Management Issues. Workflow. Process.

CODING TCPN MODELS INTO THE SIMIO SIMULATION ENVIRONMENT

Colored Petri Net Evaluation Tool. Stephen Rojcewicz CS 2310

Pre-processing of Stochastic Petri Nets and an improved Storage Strategy for Proxel Based Simulation

ISO/IEC INTERNATIONAL STANDARD. Software and system engineering High-level Petri nets Part 1: Concepts, definitions and graphical notation

A Simulation Framework to Evaluate Virtual CPU Scheduling Algorithms

Performability Modeling & Analysis in UML

10703 Deep Reinforcement Learning and Control

Concurrent Systems Modeling using Petri Nets Part II

Reliability and Availability Evaluation of Wireless Sensor Networks for Industrial Applications

Distributed Systems (ICE 601) Fault Tolerance

A Modelling and Analysis Environment for LARES

Transcription:

Stochastic Petri nets 1

Stochastic Petri nets Markov Chain grows very fast with the dimension of the system Petri nets: High-level specification formalism Markovian Stochastic Petri nets adding temporal and probabilistic information to the model the approach aimed at equivalence between SPN and MC idea of associating an exponentially distributed random delay with the PN transitions (1980) Non Markovian Stochastic Petri nets non exponentially distributed random delay Automated tools supporting SPN for modelling and evaluation 2

Petri nets Place Transition Token Arcs Weigth of arcs Initial marking t, y transitions preset postset t enabled if: we write 3

Transition firing Firing rule We write M0[>M1 M0=(2,3,0,0) M1=(21,0,2,1) 4

Reachable marking R N (M): We can build the reachability graph m0 2,3,0,0 Reachability graph t m1 1,0,2,1 5

Transition sequence Let then If then is a transition sequence Reachable markings Analysis Transitions never enabled Conditions on reachable markings 6

Producer/Consumer example p2 free c1 produce deposit take consume p1 Producer busy Buffer (2 slots) c2 Consumer 7

System description with Petri nets Place: a system component (one for every component) a class of system components (CPU, Memory,..) components in a given state (CPU, FaultyCPU,..). Token: number of components (number of CPUs) Occurrence of an event (fault,..).. Transitions: Occurrence of an event (Repair, CPUFaulty, ) Execution of a computation step 8

Timed transitions Timed transition: an activity that needs some time to be executed When a transition is enabled a local timer is set to a delay d; - the timer is decresed - when the timer elapses, the transition fires and remove tokens from input places - if the transitions is desabled before the firing, the timer stops. Handling of the timer (two alternatives): Continue: the timer maintains the value and it will be used when the transition is enabled again Restart: the timer is reset 9

Sequence of timed transitions: (tk1, Tk1) (tkn, Tkn) where tk1 <= tk2 <= tkn [tki, tki+1) is the period of time between the firing of two transitions period of time the net stay in a marking STOCHASTIC PETRI NET: when the delay d of a timed transition is a random variable 10

Stochastic Petri nets (SPN) reachability graph A timed transition T enabled at time t, with d the random value for the transition delay, fires at time t+d if it remains enabled in the interval [t, t+d) 11

Markov chain Random process {M(t), t>=0} with M(0) = M0 and M(t) the marking at time t {M(t), t>=0} is a CTMC (memoriless property of exponential distributions) 12

A redundant system with repair Two identical CPUs Failure of the CPU: exponentially distributed with parameter l Fault detection: exponentially distributed with parameter d CPU repair: exponentially distributed with parameter healty T f faulty T r T d repair SPN Reachability graph 13

Markov chain Properties Steady-state probability that both processors behave correctly Steady-state probability of one undetected faulty processor Steady state probability that both processors must be repaired... 14

Stochastic Activity Networks (SANs) A system is described with SANs through four disjoint sets of nodes: - places - input gates - output gates - activities activity: instantaneous or timed (the duration is expressed via a time distribution function) input gate: enabling predicate (boolean function on the marking) and an input function output gate: output function Cases and case distribution: instantaneous or timed activity may have mutually exclusive outcomes, called cases, chosen probabilistically according to the case distribution of the activity. Cases can be used to model probabilistic behaviors. Output gates allow the definition of different next marking rules for the cases of the activity 15

Example Enabling predicates, and input and output gate functions are usually expressed using pseudo-c code. Graphically, places are drawn as circles, input (output) gates as left-pointing (right-pointing) triangles, instantaneous activities as narrow vertical bars, and timed activities as thick vertical bars. Cases are drawn as small circles on the right side of activities. 16

Case activity: generate_input SAN evolution starting from a given marking M (i) the instantaneous activities enabled in M complete in some unspecified order; (ii) if no instantaneous activities are enabled in M, the enabled (timed) activities become active; (iii) the completion times of each active (timed) activity are computed stochastically, according to the respective time distributions; the activity with the earliest completion time is selected for completion; (iv) when an activity (timed or not) completes, the next marking M is computed by evaluating the input and output functions; (v) if an activity that was active in M is no longer enabled in M, it is removed from the set of active activities. 17

Mobius tool Mobius tool provides a comprehensive framework for evaluation of system dependability and performance. The main features of the tool include: (i) a hierarchical modeling paradigm, allowing one to build complex models by specifying the behavior of individual components and combining them to create a complete system model; (ii) customised measures of system properties; (iii) distributed discrete-event simulation; (iv) numerical solution of Markov models. 18

Example Simulator of a sensor network protocol Hierarchical model Rep operator: constructs a number of replicas of an individual component Join operator: groups individual and/or replicated components. 19

Other extension to PN: Shared variables (global objects that can be used to exchange information among modules) Extended places (places whose marking is a complex data structure instead of a non-negative integer) 20

Activities 21

Simulation and Reward functions Mobius allows system simulation and allows properties of interest to be specified with reward functions Reward function: specifies how to measure a property on the basis of the SAN marking. Measurements can be made at specific time instants, over periods of time, or when the system reaches a steady state. A desired confidence level is associated to each reward function. At the end of a simulation the Mobius tool is able to evaluate for each reward function whether the desired confidence level has been attained or not thus ensuring high accuracy of measurements. 22

Solutions on measures Numerical solver model is the reachability graph. Only for models with deterministic and exponentially distributed actions Finite state, small states-space description Simulation model is a discrete event simulator. For all models Arbitrary large state-space description Provide statistically accurate solutions within some user specifiable confidence interval 23