Assured Reconfiguration: An Architectural Core For System - - PowerPoint PPT Presentation

assured reconfiguration an architectural core for system
SMART_READER_LITE
LIVE PREVIEW

Assured Reconfiguration: An Architectural Core For System - - PowerPoint PPT Presentation

UVA Dependability Research Group Assured Reconfiguration: An Architectural Core For System Dependability ICSE 2005 Workshop on Architecting Dependable Systems John Knight University of Virginia Joint work with Elisabeth Strunk UVA


slide-1
SLIDE 1

UVA Dependability Research Group

Assured Reconfiguration: An Architectural Core For System Dependability

ICSE 2005 Workshop on Architecting Dependable Systems

John Knight University of Virginia

Joint work with Elisabeth Strunk

slide-2
SLIDE 2

Assured Reconfiguration 2 May 2005

UVA Dependability Research Group

The Challenge

Hardware Costs

Desired Functionality

System Hardware Volume System Software Volume Complexity

Safety-Critical Applications

slide-3
SLIDE 3

Assured Reconfiguration 3 May 2005

UVA Dependability Research Group

Implications Of The Challenge

System:

Distributed processing/Integrated Modular Avionics High data communications demand

Hardware:

Replication to meet MTBF demands

Software:

Increased volume, complexity, functionality

And it is bound to continue for the foreseeable

future…

slide-4
SLIDE 4

Assured Reconfiguration 4 May 2005

UVA Dependability Research Group

Meeting The Challenge?

All defects can have serious consequences in

typical systems but…

Hardware replication:

Expensive, bulky Increased weight, power, space, shielding

Software complexity:

Mostly outside the realm of assurance techniques

Trying to deal with this by restricting amount of

function in systems is naïve

Can we continue with “business as usual”?

slide-5
SLIDE 5

Assured Reconfiguration 5 May 2005

UVA Dependability Research Group

Business As Usual For Hardware?

Degradation Faults Design Faults MTBF

Hardware Is Much More Reliable Than It Used To Be

R E P L I C A T I O N

Time

Business as usual unnecessary

slide-6
SLIDE 6

Assured Reconfiguration 6 May 2005

UVA Dependability Research Group

Business As Usual For Software?

Why is software so difficult?

Fluid mechanics:

Continuous mathematics Navier-Stokes equation

Structural analysis:

Continuous mathematics Finite element method

Software:

Discrete mathematics ?

Business as usual unlikely to succeed

Development Based On Analysis

slide-7
SLIDE 7

Assured Reconfiguration 7 May 2005

UVA Dependability Research Group

Claim

Maintaining Complete Functionality With Ultra High Assurance Is Unnecessary Occasional Operation With Reduced But Safe Functionality Is Satisfactory Basing System Design On These Assumptions Reduces Complexity And Cost

ASSURED RECONFIGURATION

Hardware Degradation Faults Are Much Less Frequent Than In The Past

slide-8
SLIDE 8

Assured Reconfiguration 8 May 2005

UVA Dependability Research Group

What Is Assured Reconfiguration?

Explicit decision at specification level to

define a tradeoff between system dependability and function

Explicit decision by system stakeholders to

accept alternative functionality if errors do occur

Because:

Complete hardware masking is too expensive Adequate software fault avoidance/removal is

infeasible

Common Cases

slide-9
SLIDE 9

Assured Reconfiguration 9 May 2005

UVA Dependability Research Group

What Is Assured Reconfiguration?

Faults Faults

Reliability, Availability Assured Reconfiguration

x $

f() f() f() f() g() h() j()

Target Configuration Depends On Conditions

slide-10
SLIDE 10

Assured Reconfiguration 10 May 2005

UVA Dependability Research Group

Aircraft flight control software FAA software development standard:

Minor:

Anticipated to occur one or more times during the entire

  • perational life of each airplane

Major:

Not anticipated to occur during the entire operational life of a

single random airplane

Catastrophic:

Not anticipated to occur during the entire operational life of all

airplanes of one type

Failure rate of 10-9 per hour of operation

Example: Modern Avionics Systems

slide-11
SLIDE 11

Assured Reconfiguration 11 May 2005

UVA Dependability Research Group

Example: Modern Avionics Systems

These requirements:

Cannot be assured with current approaches Are essentially impossible to demonstrate

But, some (most?) functionality:

Does not need to be reliable Needs to be fail-stop with ultra high

dependability

Assured reconfiguration is an option to

achieve system goals

slide-12
SLIDE 12

Assured Reconfiguration 12 May 2005

UVA Dependability Research Group

Prior Work on Reconfiguration

Survivability in critical information systems

Different requirements for embedded systems

Alternative functionalities (Shelton and

Koopman)

Provides a model of system utility

Graceful degradation

Maximum utility with working components

slide-13
SLIDE 13

Assured Reconfiguration 13 May 2005

UVA Dependability Research Group

Prior Work on Reconfiguration

Quality of service

Specific aspects of a system

Simplex architecture (Sha)

Assumes analytic redundancy

Current systems, e.g., Boeing 777

Ad-hoc Are built using facilities already provided by the

system

slide-14
SLIDE 14

Assured Reconfiguration 14 May 2005

UVA Dependability Research Group

Assured System Reconfiguration

Vision

Reconfiguration As Architectural Foundation

Fail-Stop Computer

Fail-Stop Software Component

Fail-Stop Computer Fail-Stop Computer

Fail-Stop Software Component Fail-Stop Software Component Fail-Stop Software Component

Fail-Stop Computer Assurance By Proof

slide-15
SLIDE 15

Assured Reconfiguration 15 May 2005

UVA Dependability Research Group

Proposed Approach

System architecture:

Fully distributed, arbitrary layout and number of parts Ultra-dependable data bus, e.g., TTP

Computing and storage hardware:

Allow computers to fail, but Use ultra-dependable fail-stop machines

Software:

Allow application software to fail, but Use ultra-dependable, fail-stop applications

Ultra-dependable reconfiguration mechanism

slide-16
SLIDE 16

Assured Reconfiguration 16 May 2005

UVA Dependability Research Group

Operating System General Purpose Computer Avionics Application

Proposed Approach

Operating System General Purpose Computer Operating System General Purpose Computer Avionics Application Avionics Application High Speed Data Bus Operating System General Purpose Computer Avionics Application High Speed Data Bus

Common Components Components Added As Needed

slide-17
SLIDE 17

Assured Reconfiguration 17 May 2005

UVA Dependability Research Group

Operating System General Purpose Computer Avionics Application

Proposed Approach

Operating System General Purpose Computer Operating System General Purpose Computer Avionics Application Avionics Application High Speed Data Bus

Fail Stop General Purpose Computer

Operating System General Purpose Computer Avionics Application High Speed Data Bus

slide-18
SLIDE 18

Assured Reconfiguration 18 May 2005

UVA Dependability Research Group

Operating System General Purpose Computer Avionics Application

Proposed Approach

Operating System General Purpose Computer Operating System General Purpose Computer Avionics Application Avionics Application High Speed Data Bus Operating System General Purpose Computer Avionics Application

Ultra Dependable, Reconfigurable High Speed Data Bus

slide-19
SLIDE 19

Assured Reconfiguration 19 May 2005

UVA Dependability Research Group

Operating System General Purpose Computer Avionics Application

Proposed Approach

Operating System General Purpose Computer Operating System General Purpose Computer Avionics Application Avionics Application High Speed Data Bus Operating System General Purpose Computer Avionics Application

Reconfigurable Fail-Stop Avionics Application

High Speed Data Bus

slide-20
SLIDE 20

Assured Reconfiguration 20 May 2005

UVA Dependability Research Group Fault Detection And Signaling System

Distributed Reconfigurable System Architecture

BIU Operating System General Purpose Computer BIU Operating System General Purpose Computer BIU Operating System General Purpose Computer BIU Special Purpose Device Avionics Application Avionics Application Avionics Application High Speed Data Bus Subsystem Control Reconfiguration Analysis & Management (SCRAM) Software

Crucial Software

slide-21
SLIDE 21

Assured Reconfiguration 21 May 2005

UVA Dependability Research Group

Crucial Software Development

SCRAM Software (Common) State Machine Specification (System Specific)

Analysis & Synthesis Reconfiguration Specification Reconfiguration Definition Equivalence Proof

One Many

slide-22
SLIDE 22

Assured Reconfiguration 22 May 2005

UVA Dependability Research Group

Application Programming

slide-23
SLIDE 23

Assured Reconfiguration 23 May 2005

UVA Dependability Research Group

Fail-Stop Processors

Introduced by Schlichting and Schneider Building block for critical systems Fail-stop processor:

Processing units Volatile storage Stable storage

Stable storage preserved on failure

slide-24
SLIDE 24

Assured Reconfiguration 24 May 2005

UVA Dependability Research Group

Reconfigurable FTAs

Fault-tolerant actions (FTAs) In S&S work, recovery must complete

  • riginal action

In our work, recovery could be

reconfiguration

Complete some different function

Ac tio n Ac tio n Re c o ve ry Ac tio n Ac tio n Re c o ve ry: Re c o nfiguratio n

slide-25
SLIDE 25

Assured Reconfiguration 25 May 2005

UVA Dependability Research Group

Reconfigurable Fail-Stop Systems

Software building block is a reconfigurable

application

Reconfigurable application has:

A predetermined set of specifications A predetermined set of FTAs for each specification

Application function exists in system context:

Recovery must be appropriate to system Failure in one application could cause failure in

another

Not a problem in S&S work since failures were

masked, sufficient resources assumed

slide-26
SLIDE 26

Assured Reconfiguration 26 May 2005

UVA Dependability Research Group

Application and System FTAs

Application FTAs

Execution of a single application

System FTAs

Composed of a set of AFTAs

Affected applications’ actions and recovery protocols Standard AFTAs for the other applications

Coordinates stages of AFTAs Stages have time bounds S & S can guarantee liveness Safe configuration enables real-time guarantees

slide-27
SLIDE 27

Assured Reconfiguration 27 May 2005

UVA Dependability Research Group

Reconfiguration Software Architecture

Specifications Si,1: desired functionality Si,2: intermediate functionality … Si,m: crucial functionality System calls Subsystem Control Reconfiguration Analysis & Management Software System calls Reconfiguration Signals Reconfiguration Signals Hardware fault signals Software fault signals Operating System Computing Platform – Processing Units, Communications Facilities, Network Support, Sensors, Etc. Application 1 Application N S1,2 S1,1 SN,1 S1,k SN,2 SN,l

slide-28
SLIDE 28

Assured Reconfiguration 28 May 2005

UVA Dependability Research Group

Reconfiguration Assurance

slide-29
SLIDE 29

Assured Reconfiguration 29 May 2005

UVA Dependability Research Group

Reconfiguration Properties

Reconfiguration:

Begins with a signal generated by some application Ends either with a second signal, or when all

applications have finished initialization

The new configuration is appropriate for the

circumstances

All reconfigurations complete within their

required time bound

The system invariant holds during

reconfiguration

Additional restriction on sequences of

reconfiguration signals

slide-30
SLIDE 30

Assured Reconfiguration 30 May 2005

UVA Dependability Research Group

Assurance Technology

Based on PVS specification notation and PVS

theorem-proving system

PVS:

Language is a higher-order logic based on type theory Subtypes are defined by adding a predicate to a

supertype

Predicate must hold over any instance of subtype Type properties can be used in proofs In some cases, type properties are undecidable Produces type-correctness conditions (TCCs), a kind of

proof obligation

PVS system mechanically checks proofs

slide-31
SLIDE 31

Assured Reconfiguration 31 May 2005

UVA Dependability Research Group

Proof Structure

Re c o nfiguratio n Pro pe rtie s I nte rac tio n Spe c ific atio n (State Se que nc e s) Applic atio n Abstrac t Spe c ific atio n Re usable PVS Pro o f U sing T ype Co nstraints Syste m-spe c ific Pro o f by T ype Syste m Applic atio n Spe c ific atio n I nstanc e s Abstrac t Re c o nfiguratio n Spe c ific atio n Re c o nfiguratio n Spe c ific atio n I nstanc e System- Specific Configuration, Environment, Transition Information Used In

slide-32
SLIDE 32

Assured Reconfiguration 32 May 2005

UVA Dependability Research Group

Reconfiguration Specification

System applications Operating environment System configurations System transitions Valid system implementation generates a

valid sequence of system states

slide-33
SLIDE 33

Assured Reconfiguration 33 May 2005

UVA Dependability Research Group

Proof Sample

Proofs are scripts that can be mechanically

checked using the PVS system

assured_reconfig.CP5: proved - complete [shostak](13048.43 s) ("" (skosimp) (split) (("1" (lemma "reconf_length") (inst -1 "s!1" "r!1") (typepred "r!1") (typepred "s!1`tr") (expand "get_reconfigs") (hide -2 -3 -4) (flatten) (case "r!1`end_c - r!1`start_c = 1") (("1" (lemma "reconf_halt") (expand "reconfig_end?") (split -6) (("1" (expand "reconfig_start?") (skosimp) (inst -1 "app!1") (inst -2 "s!1" "r!1" "app!1") (hide -4 -5 -6 -7 -8) (grind)) ("2" (propax)))) ("2"

slide-34
SLIDE 34

Assured Reconfiguration 34 May 2005

UVA Dependability Research Group

Reconfiguration Example

slide-35
SLIDE 35

Assured Reconfiguration 35 May 2005

UVA Dependability Research Group

Example

UAV system Four applications:

Sensors, flight control system Autopilot, pilot interface

Complete reconfiguration interface,

multiple functionalities

Three reconfiguration triggers:

Electrical power Rudder Autopilot

slide-36
SLIDE 36

Assured Reconfiguration 36 May 2005

UVA Dependability Research Group

Example Configurations

adjusting for rudder disabled hard-over left/right battery Rudder Hard-Over L/R, Flight Control Only adjusting for rudder nonfunctional hard-over left/right alternator Rudder Hard-Over L/R, Flight Control Only adjusting for rudder altitude hold

  • nly

hard-over left/right alternator Rudder Hard-Over L/R, Altitude Hold Only adjusting for rudder normal hard-over left/right alternator Rudder Hard-Over L/R normal disabled working battery Flight Control Only normal nonfunctional working alternator Flight Control Only normal altitude hold

  • nly

working alternator Altitude Hold Only normal normal working alternator Full Service FCS Autopilot Rudder Power Configuration

slide-37
SLIDE 37

Assured Reconfiguration 37 May 2005

UVA Dependability Research Group

Example SFTA

In Full Service configuration when the rudder becomes stuck hard-over to the left

All apps: invariant All apps: normal execution 4 (end) FCS: transition condition All other apps: invariant FCS: prepare to adjust for rudder All other apps: normal execution 3 App postconditions Apps anticipate possible reconfiguration 2 Sensors: invariant All other apps: invariant Sensors: signal generated All other apps: normal execution 1 (start) Predicate Action Frame

slide-38
SLIDE 38

Assured Reconfiguration 38 May 2005

UVA Dependability Research Group

Example Status

Specified in PVS Type-checked against the abstract specification 75 TCCs generated

Most resulted from specific PVS approach Most others trivial to prove Nontrivial proofs could be generated using state-

space search

Proofs could be more difficult for larger systems

Proof obligations discharged

Reconfiguration properties hold

slide-39
SLIDE 39

Assured Reconfiguration 39 May 2005

UVA Dependability Research Group

Conclusion

Exploit potential of fully distributed target Hardware MTBFs:

Much higher Less replication needed, accept rare failures

Software Volume:

Increasing and assurance remains difficult Fail-stop software less difficult to develop

Base architecture on assured reconfiguration Assurance via comprehensive formal proof

slide-40
SLIDE 40

Assured Reconfiguration 40 May 2005

UVA Dependability Research Group

Contact Information

John Knight – knight@cs.virginia.edu Elisabeth Strunk – strunk@cs.virginia.edu Papers available at: http://www.cs.virginia.edu/~jck/recentpapers.htm