Docsity

Reliability Engineering: A Comprehensive Overview - Prof. Nav, Lecture notes of Introduction to Software Engineering

Partial preview of the text

Download Reliability Engineering: A Comprehensive Overview - Prof. Nav and more Lecture notes Introduction to Software Engineering in PDF only on Docsity!

Chapter 11 – Reliability Engineering

Topics covered  (^) Availability and reliability  (^) Reliability requirements  (^) Fault-tolerant architectures  (^) Programming for reliability  (^) Reliability measurement

Faults, errors and failures Term Description Human error or mistake Human behavior that results in the introduction of faults into a system. For example, in the wilderness weather system, a programmer might decide that the way to compute the time for the next transmission is to add 1 hour to the current time. This works except when the transmission time is between 23.00 and midnight (midnight is 00.00 in the 24-hour clock). System fault A characteristic of a software system that can lead to a system error. The fault is the inclusion of the code to add 1 hour to the time of the last transmission, without a check if the time is greater than or equal to 23.00. System error An erroneous system state that can lead to system behavior that is unexpected by system users. The value of transmission time is set incorrectly (to 24.XX rather than 00.XX) when the faulty code is executed. System failure An event that occurs at some point in time when the system does not deliver a service as expected by its users. No weather data is transmitted because the time is invalid.

Faults and failures  (^) Failures are usually a result of system errors that are derived from faults in the system  (^) However, faults do not necessarily result in system errors  (^) The erroneous system state resulting from the fault may be transient and ‘corrected’ before an error arises.  (^) The faulty code may never be executed.  (^) Errors do not necessarily lead to system failures  (^) The error can be corrected by built-in error detection and recovery  (^) The failure can be protected against by built-in protection facilities. These may, for example, protect system resources from system errors

Reliability achievement  (^) Fault avoidance  (^) Development techniques are used that either minimise the possibility of mistakes or trap mistakes before they result in the introduction of system faults.  (^) Fault detection and removal  (^) Verification and validation techniques are used that increase the probability of detecting and correcting errors before the system goes into service are used.  (^) Fault tolerance  (^) Run-time techniques are used to ensure that system faults do not result in system errors and/or that system errors do not lead to system failures.

The increasing costs of residual fault removal

Availability and reliability  (^) Reliability  (^) The probability of failure-free system operation over a specified time in a given environment for a given purpose  (^) Availability  (^) The probability that a system, at a point in time, will be operational and able to deliver the requested services  (^) Both of these attributes can be expressed quantitatively e.g. availability of 0.999 means that the system is up and running for 99.9% of the time.

Reliability and specifications  (^) Reliability can only be defined formally with respect to a system specification i.e. a failure is a deviation from a specification.  (^) However, many specifications are incomplete or incorrect – hence, a system that conforms to its specification may ‘fail’ from the perspective of system users.  (^) Furthermore, users don’t read specifications so don’t know how the system is supposed to behave.  (^) Therefore perceived reliability is more important in practice.

A system as an input/output mapping

Availability perception  (^) Availability is usually expressed as a percentage of the time that the system is available to deliver services e.g. 99.95%.  (^) However, this does not take into account two factors:  (^) The number of users affected by the service outage. Loss of service in the middle of the night is less important for many systems than loss of service during peak usage periods.  (^) The length of the outage. The longer the outage, the more the disruption. Several short outages are less likely to be disruptive than 1 long outage. Long repair times are a particular problem.

Reliability in use  (^) Removing X% of the faults in a system will not necessarily improve the reliability by X%.  (^) Program defects may be in rarely executed sections of the code so may never be encountered by users. Removing these does not affect the perceived reliability.  (^) Users adapt their behaviour to avoid system features that may fail for them.  (^) A program with known faults may therefore still be perceived as reliable by its users.

Reliability requirements

Reliability metrics  (^) Reliability metrics are units of measurement of system reliability.  (^) System reliability is measured by counting the number of operational failures and, where appropriate, relating these to the demands made on the system and the time that the system has been operational.  (^) A long-term measurement programme is required to assess the reliability of critical systems.  (^) Metrics  (^) Probability of failure on demand  (^) Rate of occurrence of failures/Mean time to failure  (^) Availability

Probability of failure on demand (POFOD)  (^) This is the probability that the system will fail when a service request is made. Useful when demands for service are intermittent and relatively infrequent.  (^) Appropriate for protection systems where services are demanded occasionally and where there are serious consequence if the service is not delivered.  (^) Relevant for many safety-critical systems with exception management components  (^) Emergency shutdown system in a chemical plant.