Docsity

Fault Tolerance systems, Lecture notes of Computer Communication Systems

Toggle sidebar
bg1
Fault Tolerant System Design
What is Fault Tolerance ?
1
Why use Fault Tolerance?
It is Written:
“To err is human, but to really foul up takes a computer”
◆Computers are used where system failure would be
catastrophic in terms of money, human lives, or
ecosystem.
◆Applications: Process Control, Patient Monitoring
Systems, Missile guidance & Control, Air Traffic
Control, Fly-by-Wire Aircraft, Transaction Processing,
Stock Market
©2016 Page: 2 Fault-Tolerant Systems
Sequence 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Fault Tolerance systems and more Lecture notes Computer Communication Systems in PDF only on Docsity!

Fault Tolerant System Design

What is Fault Tolerance? 1

Why use Fault Tolerance?

It is Written:

“To err is human, but to really foul up takes a computer”

◆ Computers are used where system failure would be catastrophic in terms of money, human lives, or ecosystem. ◆ Applications: Process Control, Patient Monitoring Systems, Missile guidance & Control, Air Traffic Control, Fly-by-Wire Aircraft, Transaction Processing, Stock Market © 2016 Page: 2 Fault-Tolerant Systems Sequence 1

Fault-Tolerant System Design ◆ Different flavors, e.g.

  • General Fault Tolerance
  • Design for Testability
  • FT for safety critical applications
  • Hardware Fault Tolerance
  • Software Fault Tolerance
  • Related terms/concepts: » Survivability » Resilience » ... © 2016 Page: 3 Fault-Tolerant Systems Sequence 1 Introduction

◆ Designing Safety-Critical Computer Systems

  • the discussion below is directly drawn from the same-called article by William R. Dunn, IEEE Computer, Vol. 36 , Issue 11 (November 2003), Pages: 40 - 46.
  • to avoid visual clutter references, e.g., of figures etc. are omitted

◆ More and more computers are used to control safety-

critical applications

  • fly-by-wire, hospital life-support systems, manufacturing robots etc.
  • coming up: steer-by-wire automotive systems, automated air- and surface-traffic control, powered prosthetics, smart Grid, etc.

Introduction

◆ Defining “Safe”

  • We often think “safe” w.r.t. driving a car, flying etc. » e.g. “is it safe to drive?” » one thinks of a mishap
  • Mishap » MIL-STD-882D definition: “ An unplanned event or series of events resulting in death, injury, occupational illness, damage to or loss of equipment or property, or damage to the environment .”
  • Mishap Risk » MIL-STD-882D definition: “ An expression of the impact and possibility of a mishap in terms of potential mishap severity and probability of occurrence. ” » Example: airline crash vs. fender-bender: less likely, but higher impact » What is the important message here: ■ Systems are never absolutely safe => thus reduce risk... © 2016 Page: 7 Fault-Tolerant Systems Sequence 1 Introduction ◆ Acceptable Mishap Risk
  • public establishes acceptable risk for a given mishap
  • willingness to tolerate mishap as long as it occurs

infrequently

  • typical fail rates: 10 - 2 to 10 - 10 per hour
  • how do designers decide on what constitutes an

acceptable risk?

» they don’t! » they rely on standards such as ■ MIL-STD-882D ■ IEC 61508, Functional safety of electrical/electronic/ programmable electronic safety-related systems.

Introduction ◆ Computer System

  • Application » physical entity the system controls/monitors, e.g. plant, process
  • Sensor » converts application’s measured properties to appropriate computer input signals, e.g. accelerometer, transducer
  • Effector » converts electrical signal from computer’s output to a corresponding physical action that controls function, e.g. motor, valve, break, pump.
  • Operator » human(s) who monitor and activate the computer system in real- time, e.g. pilot, plant operator, medical technician
  • Computer » hardware and software that use sensors and effectors to control the application in real-time, e.g. single board controller, programmable logic controller, flight computers, systems on a chip. © 2016 Page: 9 Fault-Tolerant Systems Sequence 1 Introduction ◆ Hazard Analysis
  • Hazard » MIL-STD-882D definition: “ Any real or potential condition that can cause injury, illness, or death to personnel; damage to or loss of a system, equipment or property; or damage to the environment .”
  • examples: loss of flight control, nuclear core cooling,

presence of toxic materials or natural gas

© 2016 Page: 13 Fault-Tolerant Systems Sequence 1 Introduction: Example ◆ Example: computer system used for electrically heating water

  • Application » steel tank containing water
  • Effector » computer-controlled electric heating elements
  • Sensor » temperature sensor measures water temp and transmits to computer
  • Computer » software in the computer maintains water temp at 120F by controlling heating element ■ ON if water temperature is below target ■ OFF otherwise

Introduction Example

◆ Example cont.

  • Hazard » e.g. water could overheat
  • Mishap » e.g. overheated water could cause tank to explode » e.g. person opens faucet and gets scald by overheated water or steam
  • Failures that could create this hazard » temperature sensor malfunction signaling “low temperature” » heater unit may fail and remain on permanently » computer interface hardware might fail permanently signaling an “ON” state to the heater » computer software fault, possibly in unrelated routine, might change the set point to 320F » operator might program an incorrect set point © 2016 Page: 15 Fault-Tolerant Systems Sequence 1 Introduction
  • Failures that could create this hazard, (cont.)

» maintenance error, e.g. repair person installs wrong

temperature sensor.

» environmental condition, e.g. overly warm

application location causes chips to fail

» design failure that results in using the wrong sensor

for the selected operating temperature.

  • This water heating system (as it stands) has

unacceptable risk of mishap!

Introduction ◆ Additional Safety Devices © 2016 Page: 19 Fault-Tolerant Systems Sequence 1 Introduction ◆ Fail-Operate Systems

  • Fail-Safe System » after failure is detected, systems enters a safe state, by modifying effector outputs, e.g. shut system down.
  • Fail-Operate System » many computer systems cannot just be shut down » e.g. fly-by-wire aircraft control system » system must continue safe operation even after one or more components have failed » tolerating faults is the goal of fault-tolerant system design » strongly relies on the principle of redundancy

Introduction

  • Fail-Operate System » principle of redundancy is simple in concept, but hard to implement » all critical system components must be replicated ■ i.e. computers, sensors, effectors, operators, power source, interconnect. ■ ... not to mention the issue of homogeneous vs inhomogeneous redundancy (identical vs dissimilar) » redundancy management needs to be incorporated into hardware, software, operator components ■ detect failure ■ isolate failed component ■ reconfigure components ■ we will address reconfiguration and masking extensively later in the course » system cost and complexity increase fast © 2016 Page: 21 Fault-Tolerant Systems Sequence 1 Introduction

◆ Evaluating Safety-Critical Computer Systems

  • Failure Modes and Effects Analysis (FMEA) » for each component consider how it can fail, then determine the effects each failure has on the system » goal is to identify single point of failure
  • Fault-Tree Analysis (FTA) » identify mishap and identify all components that can cause a mishap and all the safety devices that can mitigate it.
  • Risk Analysis (RA) » quantitative measure yielding numerical probabilities of mishap » need failure probabilities of components

Top Five Challenges ◆ Ram Chillarege (1995) writes: The top 5 challenges, which ultimately drive the exploitation of fault-tolerant technology are:

  1. Shipping a product on schedule
  2. Reducing Unavailability
  3. Non-disruptive Change Management
  4. Human Fault Tolerance
  5. Distributed Systems Article source: Lecture Notes In Computer Science; Vol. 774, 1999
  • the points made in the article still hold © 2016 Page: 25 Fault-Tolerant Systems Sequence 1 Shipping Product on Schedule ◆ extreme pressure to reduce product cycle ◆ competitive market
    • introduce products faster ◆ FT adds cost in Hardware, Design, Verification
    • increase development cycle ◆ compressed schedule can result in greater # of errors
    • errors escape into field

Reducing Unavailability ◆ Outage and their Impacts:

  • software & procedural issues (operator errors)
  • hardware & environmental problems ◆ Years ago: Hardware problems dominant ◆ Improvements in manufacturing & technology ◆ Improvements in software not significant
  • software problems now dominate outages
  • Software Bugs: » total failure < 10% » partial failure 20% - 40% (requires some response) » rest: Annoyance, update later, update via maintenance © 2016 Page: 27 Fault-Tolerant Systems Sequence 1 Reducing Unavailability cont. Down-Time (largest outage part)
  • upgrades
  • maintenance
  • reconfiguration
  • act of technology/nature
  • commonly the target of FT design Some commercial applications
  • 24 x 7 operations
  • reduce outage from all sources planned outage unscheduled outage

Distributed Systems ◆ Now consider Distributed Systems ◆ We need to start “all over again” © 2016 Page: 31 Fault-Tolerant Systems Sequence 1 Fault-Tolerance & Ultra Reliable Systems ◆ Fly-by-Wire, Airbus 320

  • computer controls all actuators
  • no control rods, cables in the middle
  • 5 central flight control computers
  • different systems used (Thomson CSF=> 68010, SFENA=> 80186)
  • software for both hardware written by different software houses
  • all error checking & debugging performed separately
  • computer allows pilot to fly craft up to certain limits
  • beyond: computer takes over Airbus A320/A330/A340 Electrical flight Controls: A Family of Fault- Tolerant systems, D. Briere, and P. Traverse, FTCS-23, pp.616-623, 1993.

Fault-Tolerance & Ultra Reliable Systems

  • Many aircraft use active control F forward swept wing X- 29 could not fly without computers moving control surfaces
  • Burden of proof that fly-by-wire system is safe for civil flight has shifted to training environments and simulation. © 2016 Page: 33 Fault-Tolerant Systems Sequence 1 Fault-Tolerance & Ultra Reliable Systems ◆ Many aircraft use active control, e.g.,
  • e.g., F16, forward swept wing X- 29 could not fly without computers moving control surfaces ◆ Burden of proof that fly-by-wire system is safe for civil flight has shifted to training environments and simulation.
  • e.g., Boeing 777

Reliability - Unreliability

◆ time t can be very long, e.g. years in case of

space

◆ appNotationlications 0.9i = .99999999 i 9s

◆ This notation is often used for reliability

e.g. Q(t) = 10 - x R(t) = 0.9x = (1 - 10 - x) © 2016 Page: 3 Fault-Tolerant Systems Sequence 2

Safety S(t)

◆ S(t) is the probability that the system does not

fail in the interval [0,t] in such a manner as to

cause unacceptable damage or other

catastrophic effects.

◆ Safety is a measure of the fail-safe capability

of the system

  • system can be unreliable, yet safe
  • bias towards safe failure
  • e.g. duplex system (detector)
  • e.g. babbling driver (not safe)

Availability A(t)

◆ A( t ) is the probability that the system is up

and running correctly at time t

◆ This is different from reliability.

– Reliability considers the interval [0,t]

– Availability takes an instance of time

◆ examples: transaction processing systems,

e.g. reservation systems

© 2016 Page: 5 Fault-Tolerant Systems Sequence 2

Performability

◆ P(L,t) is the probability that the system

performance will be at or above some level L at

time t

◆ Measure of the likelihood that some subset of the

function is performed correctly

◆ This differs from reliability, which dictates that

all functions are performed correctly