Docsity

Understanding System States and Transitions in Markov Models for Reliability, Study notes of Computer Science

Toggle sidebar
bg1
Markov Models for Reliability Modeling
Prof. Naga Kandasamy
ECE Department, Drexel University, Philadelphia, PA 19104
Many complex systems cannot be easily modeled in a combinatorial fashion. The corresponding reliability
block diagrams can be difficult to construct. Also, the repair process in high-availability computing systems
is very difficult to model in a combinatorial fashion. In the face of these difficulties, Markov models are often
used for reliability and availability modeling.
Two major concepts underlying the Markov models are the system state and state transition. In the case of
reliability modeling, the state of a system represents a distinct combination of working and failed modules.
As time passes, the system progresses through different states as modules fail and perhaps, are repaired.
These changes in states are called state transitions.
1 Reliability Modeling of a TMR System
Assume we have a TMR system with three identical computers in a ma jority voting arrangement with a
perfect voter. We can define the state of this system as S= (S1, S2, S3) where Si= 1 if module iis fault
free and Si= 0 if module ihas failed. So, the TMR system has eight distinct states in which it can operate:
(000),(001),(010),(011),(100),(101),(110), and (111). Each state represents a unique combination of faulty
and fault-free modules in the system. For a TMR system, at leat two modules must operate correctly for the
system to operate correctly. So, state (000),(001),(010), and (100) are failed states of the system.
The state diagram for the TMR system is shown in Fig. 1. It can be partitioned into three major cate-
Fig. 1: The Markov model of the TMR system, showing the various system states and state transitions.
1
pf3
pf4
pf5

Partial preview of the text

Download Understanding System States and Transitions in Markov Models for Reliability and more Study notes Computer Science in PDF only on Docsity!

Markov Models for Reliability Modeling

Prof. Naga Kandasamy

ECE Department, Drexel University, Philadelphia, PA 19104

Many complex systems cannot be easily modeled in a combinatorial fashion. The corresponding reliability block diagrams can be difficult to construct. Also, the repair process in high-availability computing systems is very difficult to model in a combinatorial fashion. In the face of these difficulties, Markov models are often used for reliability and availability modeling.

Two major concepts underlying the Markov models are the system state and state transition. In the case of reliability modeling, the state of a system represents a distinct combination of working and failed modules. As time passes, the system progresses through different states as modules fail and perhaps, are repaired. These changes in states are called state transitions.

1 Reliability Modeling of a TMR System

Assume we have a TMR system with three identical computers in a majority voting arrangement with a perfect voter. We can define the state of this system as S = (S 1 , S 2 , S 3 ) where Si = 1 if module i is fault free and Si = 0 if module i has failed. So, the TMR system has eight distinct states in which it can operate: (000), (001), (010), (011), (100), (101), (110), and (111). Each state represents a unique combination of faulty and fault-free modules in the system. For a TMR system, at leat two modules must operate correctly for the system to operate correctly. So, state (000), (001), (010), and (100) are failed states of the system.

The state diagram for the TMR system is shown in Fig. 1. It can be partitioned into three major cate-

Fig. 1: The Markov model of the TMR system, showing the various system states and state transitions.

Fig. 2: The reduced Markov model of the TMR system with the minimum number of states.

gories: the perfect state with three functioning modules (111), the one-failed states (110), (011), (101), and the system-failed states (001), (010), (100), (000). Each state transition has associated with it a transition probability describing the probability of that transition happening within a specified period of time ∆t. Assume that each module in the TMR system obeys the exponential failure law with a failure rate of λ. So, the probability that a module has failed in the time interval [t, t + ∆t] is 1 − e−λ∆t. The exponential can be written in a series expansion as

e−λ∆t^ = 1 + (−λ∆t) + (−λ∆t)^2 2!

Ignoring the higher-order terms, for a small ∆t, we obtain

e−λ∆t^ = 1 − λ∆t

The probability that a module will fail during time period ∆t is approximately

1 − e−λ∆t^ = 1 − (1 − λ∆t) = λ∆t

If the modules have the same failure probability, we can reduce the Markov model of the TMR system shown in Fig. 1to that shown in Fig. 2. The probability of the system being in one of the three states is given by

p 3 (t + ∆t) = (1 − 3 λ∆t)p 3 (t) p 2 (t + ∆t) = (3λ∆t)p 3 (t) + (1 − 2 λ∆t)p 2 (t) pF (t + ∆t) = (2λ∆t)p 2 (t) + pF (t)

The above equations can be rewritten as

p 3 (t + ∆t) − p 3 (t) ∆t

= − 3 λp 3 (t) p 2 (t + ∆t) − p 2 (t) ∆t = 3λp 3 (t) − 2 λp 2 (t) pF (t + ∆t) − pF (t) ∆t

= 2λp 2 (t)

Fig. 3: Markov model of a simplex or non-redundant system with repair.

2 Markov Models with Repair

Let us consider the Markov model of a simple system consisting of one computer and no redundancy. Assume that the computer has a constant failure rate of λ and a constant repair rate of μ. We can formulate the simple Markov model for this system as shown in Fig. 3.

The equations for the Markov model shown in Fig. 3 can be written as

pO (t + ∆t) = (1 − λ∆t)pO (t) + (μ∆t)pF (t) pF (t + ∆t) = (λ∆t)pO + (1 − μ∆t)pF (t)

and re-formulated as

pO (t + ∆t) − pO (t) ∆t

= −λpO (t) + μpF (t) pF (t + ∆t) − pF (t) ∆t

= λpO (t) − μpF (t)

Taking the limit as ∆t approaches zero, we obtain the following differential equations

dpO (t) dt

= −λpO (t) + μpF (t) dpF dt = λpO (t) − μpF (t)

Using Laplace transforms and assuming that the initial conditions are pO (0) = 1 and pF (0) = 0, we ob- tain

sPO (s) = 1 − λPO (s) + μPF (s) sPF (s) = λPO (s) − μPF (s)

Solving the simultaneous equations for PO (s) and PF (s), we obtain

PO (s) =

s + (λ + μ)

μ s(s + (λ + μ)))

PF (s) =

λ s(s + (λ + μ))

which can be rewritten using partial fractions as

PO (s) =

μ λ+μ s

λ λ+μ s + (λ + μ)

PF (s) =

λ λ+μ s

λ λ+μ s + (λ + μ)

Taking the inverse Laplace transform, we obtain

pO (t) = μ λ + μ

λ λ + μ

e−(λ+μ)t

pF (t) =

λ λ + μ

λ λ + μ

e−(λ+μ)t

As time approaches ∞, pO (t) approaches the constant value of (^) λ^1 μ +^ , or the steady-state availability, and

pF (t) approaches the constant value of μ^1 λ +^