Professional Documents
Culture Documents
s
1
s
3
=
2
3
2
s
1
s
1
=
3
2
( +)
3
s
0
=
3
( +)
3
; s
1
=
3
2
( +)
3
; s
2
=
3
2
( +)
3
; s
3
=
3
( +)
3
A = s
0
+ s
1
=
2
( + 3)
( +)
3
= 3a
2
+ 2a
3
a =
( +)
Dependable Systems Course PT 2011
Example: 2-of-3 System
13
Example: 2-of-3 System
Interested in steady-state availability of the system
Interpretation as steady-state probability for the system being
operational at
Derived from probability vector -> contains steady-state
probabilities for the system being in one of the failure states after
a number of steps
,Static steady-state availability computable if probabilities are in
equilibrium
Probability for leaving state is similar to probability for going
into that state - probability mass is evenly distributed
Typically achieved after a high number of steps
Example: 2-of-3 System
Dependable Systems Course PT 2011
Example: 2-of-3 System
Interested in steady-state availability of the system
Interpretation as steady-state probability for the system being operational at t
Derived from probability vector -> contains steady-state probabilities for the system
being in one of the failure states after a number of steps
,Static steady-state availability computable if probabilities are in equilibrium
Probability for leaving state is similar to probability for going into that state -
probability mass is evenly distributed
Typically achieved after a high number of steps
12
Resulting formula equals to result from Boolean investigation, but Markov
chains also support non-independent events - common cause failure
Markov chains grow exponentially with their number of components - which is
bad
Divide-and-conquer - Decompose and aggregate chain parts
Structural decomposition - Consider a system as set of independent subsystems
Behavioral decomposition - Assume time constants for some fault occurences and handling
processes based on criticality - e.g. fault in parked airplane
Markov Chains
Dependable Systems Course PT 2011
Markov Chains
Resulting formula equals to result from Boolean investigation, but Markov chains
also support non-independent events - common cause failure
Markov chains grow exponentially with their number of components - which is bad
Divide-and-conquer - Decompose and aggregate chain parts
Structural decomposition - Consider a system as set of independent subsystems
Behavioral decomposition - Assume time constants for some fault occurences and
handling processes based on criticality - e.g. fault in parked airplane
14
Mathematical model for concurrent systems with many components (Carl
Adam Petri)
Bipartit directed graph (places vs. transitions)
Each place has a capacity for tokens, default is unlimited or one
Each arc has a weight expressing a cost factor, default is one
Places are pre- / postconditions for transitions
Distribution of tokens is called a marking
Every net has an initial marking
What is Petri Nets
Dependable Systems Course PT 2011
Stochatic Petri Nets
Mathematical model for concurrent systems with
many components (Carl Adam Petri)
Bipartit directed graph (places vs. transitions)
Each place has a capacity for tokens,
default is unlimited or one
Each arc has a weight expressing a cost factor,
default is one
Places are pre- / postconditions for transitions
Distribution of tokens is called a marking
Every net has an initial marking
16
Place / State
Transition
Token
Input place of
the transition
Output place of
the transition
Redes de Petri Estocsticas
Extension SPN
Transition is activated (may fire) when
All input places contain enough tokens for the transition costs
All output places have enough capacity to take the new tokens
Tokens are consumed and placed in output places, considering the arc
weights
Atomic nondeterminstic operation - any activated transition may fire
Firing happens with given delay
More complex Petri net versions can
distinguish different token types
Colored tokens (data values)
Activation times for tokens
Petri nets allow both formal analysis (for exponential distribution) and
simulation
Stochastic Petri Nets
Dependable Systems Course PT 2011
Stochastic Petri Nets
Transition is activated (may re) when
All input places contain enough tokens for the transition costs
All output places have enough capacity to take the new tokens
Tokens are consumed and placed in output places, considering the arc weights
Atomic nondeterminstic operation - any activated transition may re
Firing happens with given delay
More complex Petri net versions can
distinguish different token types
Colored tokens (data values)
Activation times for tokens
Petri nets allow both formal analysis (for exponential distribution) and simulation
17
A stochastic process and a sequence of random variables indexed
on time witha well-defined correlation structure
Have probability distributions associated with them
Arrival of customers in a bank queue
Number of requests in a Web Server
Why stochastic modeling?
In many systems, you need to join in time to events
How to model stochastic processes?
Analytical queuing
theory models
Petri Nets
Stochastic Petri Nets
Probabilistic behavior model
Distributions:
Exponential - SPN (stochastic Petri net)
exponential or immediate GSPN(Generalized)
There are other models with arbitrary functions
Stochastic Petri Nets
Reachability set
All possible markings reachable from an initial marking
Possible analysis questions
Can some system state (e.g. an error state) be reached at
all ?
Exists a firing sequence that transforms M0 to M ?
Boundedness
Marking is bounded if there is a k so that for every reachable
marking the number of tokens in each place is bounded by k
Useful for modeling limited (bounded) resources
Typical Petri Net Properties
Complexity of the petri net does not depend on the number of
components !
Example: 2-of-3 System
Dependable Systems Course PT 2011
Example: 2-of-3 System
23
Complexity of the petri net does not depend on the number of components !
Modeling of cold standby components (inhibitor arc)
Limited repair capacities - at most R repairmen available at a time
Dependability analysis - prove that there is no state where some
property is violated
Example: K-of-N With Standby and Repairmen
Dependable Systems Course PT 2011
Example: K-of-N With Standby and Repairmen
Modeling of cold standby components (inhibitor arc)
Limited repair capacities - at most R repairmen available at a time
Dependability analysis - prove that there is no state where some property is violated
24
buffer size = #token_capacity(p1 + p2)
unit count = #token_capacity(p3 + p4)
Firing rate of t1 is arrival rate
t2 is an immediate transition
Firing rate of t3 is the service rate, depends on token count in p4
Example: Parallel System with Input Buffer
Dependable Systems Course PT 2011
Example: Parallel System with Input Buffer
25
Input buffer with
positions
Identical units
buffer size = #token_capacity(p1 + p2)
unit count = #token_capacity(p3 + p4)
Firing rate of t1 is arrival rate
t2 is an immediate transition
Firing rate of t3 is the service rate, depends on token count in p4
Free buffer
positions
Filled buffer positions
Free units
(
C
)
A
n
d
r
e
a
B
o
b
b
i
o
Active units
Dependable Systems Course PT 2011
Example: Parallel System with Input Buffer
26
(C) Andrea Bobbio
Light lines - Fault free operation
Heavy lines - Failures
Dotted lines - repairs
Rate computation demands exponential distribution
Example: Parallel System with Input Buffer
In many cases, simulation is the only way to solve the net More
than one outgoing non-exponential distribution
Special guard functions
Complexity issues
...
Typical simulation problems
Modeled failure rates might be small, so many runs needed
for valid result
Random number generation
Confidence intervals
Petri Net Simulation
Petri net has according reachability graph
Combines to Markov chain when transition probabilities are given
Petri Net ->Markov Chain
Dependable Systems Course PT 2011
Petri Net -> Markov Chain
Petri net has according reachability graph
Combines to Markov chain when transition
probabilities are given
21
Dependable Systems Course PT 2011
Petri Net -> Markov Chain
Petri net has according reachability graph
Combines to Markov chain when transition
probabilities are given
21
Dependable Systems Course PT 2011
Petri Net -> Markov Chain
Petri net has according reachability graph
Combines to Markov chain when transition
probabilities are given
21
Dependable Systems Course PT 2011
Petri Net -> Markov Chain
Petri net has according reachability graph
Combines to Markov chain when transition
probabilities are given
21
!"#$%&
! Dependability:
! Dependability
! Attributs
! Model Base State
! Modelos Formais
! Makov chain
! Petri Net
! Tools
! Concluso
''
Astro
Mercury
TimeNet
Sharp
CPN Tool
INA
...
Tools
[1] D. Lardner, Babbage's calculating engine. Edinburgh Review, July 1834. Reprinted in P.
Morrison and E. Morrison, editors, Charles Babbage and His Calculating Engines. Dover, 1961.
[2] C. Babbage. On the mathematical powers of the calculating engine (December 1837).
Unpublished Manuscript. Buxton MS7, Museum of the History of Science. In B. Randell, editor,
The Origins of Digital Computers: Selected papers, pages 17-52. Springer, 1974.
[3]Fundamental Concepts of Dependability by A Avizienis, J C Laprie, B Randell, Brian Randell
K. Goseva-Popstojanov, K. S. Trivedi, Stochastic Modeling Formalisms for Dependability,
Performance and Performability, LNCS 1769, 2000
[5] David M. Nicol, Fellow, IEEE, William H. Sanders, Fellow, IEEE, and Kishor S. Trivedi, Fellow,
IEEE, Dependability to Security Model-Based Evaluation
[6] . K. Muppala, M. Malhotra, and K. S. Trivedi, Markov dependability models of complex
systems: Analysis techniques, in Reliability and Maintenance of Complex Systems, S. Ozekici,
Ed. Berlin, Germany: Springer, 1996, pp. 442486.
[7] Vedran Kordic, Petri Net Theory and Applications
[8] Peter J. Haas, Stochastic Petri Nets- Modelling, Stability, Simulation, Springer.
[9] Ebeling, C. E., An Introduction to Reliability and Maintainability Engineering. Illinois, Waveland
Press, 1997
References
http://www.ee.duke.edu/~kst/
http://www.modcs.org
http://www.informatik.uni-hamburg.de/TGI/PetriNets
http://www.informatik.uni-hamburg.de/TGI/PetriNets/tools/quick.html
http://tandem.bu.edu/rsg.html
Links
Thank You!
Thanks