Docsity

Critical Systems Specification - Software Engineering - Slides | CEN 3031, Exams of Software Engineering

Partial preview of the text

Download Critical Systems Specification - Software Engineering - Slides | CEN 3031 and more Exams Software Engineering in PDF only on Docsity!

Critical Systems Specification

Objectives

● To explain how dependability requirements

may be identified by analysing the risks

faced by critical systems

● To explain how safety requirements are

generated from the system risk analysis

● To explain the derivation of security

requirements

● To describe metrics used for reliability

specification

Dependability requirements

● Functional requirements to define error

checking and recovery facilities and

protection against system failures.

● Non-functional requirements defining the

required reliability and availability of the

system.

● Excluding requirements that define states

and conditions that must not arise.

Risk-driven specification

● Critical systems specification should be risk-

driven.

● This approach has been widely used in

safety and security-critical systems.

● The aim of the specification process should

be to understand the risks (safety, security,

etc.) faced by the system and to define

requirements that reduce these risks.

Risk-driven specification

Risk identification

● Identify the risks faced by the critical system.

● In safety-critical systems, the risks are the hazards

that can lead to accidents.

● In security-critical systems, the risks are the

potential attacks on the system.

● In risk identification, you should identify risk classes

and position risks in these classes

• Service failure;

• Electrical risks;

Risk analysis and classification

● The process is concerned with

understanding the likelihood that a risk will

arise and the potential consequences if an

accident or incident should occur.

● Risks may be categorised as:

• Intolerable. Must never arise or result in an accident

• As low as reasonably practical(ALARP). Must minimise

the possibility of risk given cost and schedule constraints

• Acceptable. The consequences of the risk are acceptable

and no extra costs should be incurred to reduce hazard

probability

Levels of risk

Risk assessment

● Estimate the risk probability and the risk

severity.

● It is not normally possible to do this precisely

so relative values are used such as ‘unlikely’,

‘rare’, ‘very high’, etc.

● The aim must be to exclude risks that are

likely to arise or that have high severity.

Risk assessment - insulin pump

Identified hazard Hazard

probability

Hazard

severity

Estimated

risk

Acceptability

1. Insulin overdose Medium High High Intolerable

2. Insulin underdose Medium Low Low Acceptable

3. Power failure High Low Low Acceptable

4. Machine incorrectly fitted High High High Intolerable

5. Machine breaks in patient Low High Medium ALARP

6. Machine causes infection Medium Medium Medium ALARP

7. Electrical interference Low High Medium ALARP

8. Allergic reaction Low Low Low Acceptable

Fault-tree analysis

● A deductive top-down technique.

● Put the risk or hazard at the root of the tree

and identify the system states that could lead

to that hazard.

● Where appropriate, link these with ‘and’ or

‘or’ conditions.

● A goal should be to minimise the number of

single causes of system failure.

Insulin pump fault tree

Strategy use

● Normally, in critical systems, a mix of risk

reduction strategies are used.

● In a chemical plant control system, the

system will include sensors to detect and

correct excess pressure in the reactor.

● However, it will also include an independent

protection system that opens a relief valve if

dangerously high pressure is detected.

Insulin pump - software risks

● Arithmetic error

• A computation causes the value of a variable to

overflow or underflow;

• Maybe include an exception handler for each

type of arithmetic error.

● Algorithmic error

• Compare dose to be delivered with previous

dose or safe maximum doses. Reduce dose if

too high.