28
Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability

TSW 10Anders P. Ravn

Aalborg UniversityNovember 2009

Page 2: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Characteristics of a RTS

• Timing Constraints• Dependability Requirements• Concurrent control of separate components • Facilities to interact with special purpose

hardware

Page 3: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - impediments

• Faults • Errors• Failures

BW Ch 2, ...

Fault Error Failure ...Fault

Page 4: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

System and Component

Page 5: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - attributes

• Availability• Reliability• Safety• Confidentiality• Integrity• Maintainability

BW Ch 2

Page 6: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - means

• Fault prevention • Fault tolerance• Error Removal• Failure Forecasting

BW Ch 2

Page 7: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Fault classification

• Origin

• Kind

• Property

• physical (internal/external)

• logical (design/interaction)

• omission

• value

• timing

byzantine

• duration (permanent, transient)

• consistency (determinate, nondeterminate)

• autonomy (spontaneous, event-dependent)

Page 8: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Error Classification

• (Fault Error)

• Effect

• Extent

• latent

• effective

• local

• distributed

Page 9: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Failure Classification

• (Fault Failure)

• Consequence • benign

• malign (a mishap)

BW (Failure modes) Ch 2

Page 10: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - means

• Fault prevention • Fault tolerance• Error Removal• Failure Forecasting

Page 11: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Fault Prevention

• Careful Design

• Conservative Design

• process (procedures)

• notations

• tools

• robust functionality

• testability

• tracability

Page 12: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - means

• Fault prevention • Fault tolerance• Error Removal• Failure Forecasting

Page 13: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Error Removal

• Verification (analysis of design)

• Test (analysis of implementation)

Page 14: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - means

• Fault prevention • Fault tolerance• Error Removal• Failure Forecasting

Page 15: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Failure Forecasting

• Calculation – analysis of design

• Simulation – measurement on design

• Test -- measurement on implementation

Page 16: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dependability - means

• Fault prevention • Fault tolerance• Error Removal• Failure Forecasting

BW Ch 2

Page 17: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Fault Tolerance

Means to isolate component faults

Prevents system failures

May increase system dependability

... And mask them

Page 18: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Fault Tolerance

Page 19: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

FT - levels

• Full tolerance

• Graceful Degradation

• Fail safeBW Ch 2

Page 20: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

FT basis: Redundancy

• Time

• Space

Try Retry Retry ...

TryTry

Try

...

BW Ch 2

Page 21: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

N-version programming

V1 V2 V3

Driver (comporator)

Comparison vectors (votes)

Comparison status indicators

BW Ch 2Comparison points

Page 22: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Fault classification (scope of N-VP)

• Origin

• Kind

• Property

• physical (internal/external)

• logical (design/interaction)

• omission

• value

• timing

byzantine

• duration (permanent, transient)

• consistency (determinate, nondeterminate)

• autonomy (spontaneous, event-dependent)

++

(+)++(+)

+ / (+)

+ / ++ / +

Page 23: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Dynamic Redundancy

1. Error detection

2. Damage confinement and assessment

3. Error recovery

4. Fault treatment and continued service

BW Ch 2

Page 24: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Error Detection

f: State x Input State x Output• Environment (exception)• Application

BW Ch 2

Assertion:• precondition (input)• postcondition (input, output)• invariant(state, state’)

Timing:• WCET(f, input) • Deadline (f,input)

D

Page 25: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Damage Confinement

• Static structure

• Dynamic structure

BW Ch 2

object

object

II

Page 26: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Error Recovery

• Forward • Backward

BW Ch 2

Repair the state – if you can !

• define recovery points• checkpoint state at r. p.• roll back• retry

Domino effect

Page 27: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

Recovery blocks

ENSURE acceptance_testBY { module_1 }ELSE BY { module_2 } ...ELSE BY { module_m }ELSE ERROR

BW Ch 2

Page 28: Dependability TSW 10 Anders P. Ravn Aalborg University November 2009

The ideal FT-component

Exception HandlerNormal mode

Request/response

Request/response

Interfaceexception

Interfaceexception

Failureexception

Failureexception

BW Ch 2