Docsity

Wholistic Engineering for Software Reliability: A Tutorial by Y.K. Malaiya - Prof. Yashwan, Study notes of Computer Science

Toggle sidebar
bg1
1
10/13/00 1
ISSRE’00 Y.K. Malaiya
Wholistic Engineering for
Software Reliability
ISSRE 2000 Tutorial
Yashwant K. Malaiya
Colorado State University
• http://www.cs.colostate.edu/testing/
10/13/00 2
ISSRE’00 Y.K. Malaiya
Wholistic Engineering for Software Reliability
Outline
• Why it’s time…
• Demarcating, measuring, counting: definitions
• Science & engineering of reliability growth
• Those pesky residual defects
• Components & systems
• The toolbox
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

Partial preview of the text

Download Wholistic Engineering for Software Reliability: A Tutorial by Y.K. Malaiya - Prof. Yashwan and more Study notes Computer Science in PDF only on Docsity!

10/13/00 (^1) ISSRE’00 Y.K. Malaiya

Wholistic Engineering for

Software Reliability

ISSRE 2000 Tutorial

Yashwant K. Malaiya

Colorado State University

• [email protected]

• http://www.cs.colostate.edu/testing/

10/13/00 (^2) ISSRE’00 Y.K. Malaiya

Wholistic Engineering for Software Reliability

Outline

• Why it’s time…

• Demarcating, measuring, counting: definitions

• Science & engineering of reliability growth

• Those pesky residual defects

• Components & systems

• The toolbox

10/13/00 (^3) ISSRE’00 Y.K. Malaiya

Why It’s Time: Emergence of SRE

• Craft : incremental intuitive refinement

• Science : why it is so

  • Observe, hypothesize, assess accuracy

• Engineering : how to get what we want

  • Approximate, integrate, evaluate

• Are we ready to engineer software

reliability?

10/13/00 (^4) ISSRE’00 Y.K. Malaiya

Why it’s time ..

• We have data on different aspects of

reliability to have reasonable hypotheses.

• We know limitations of the hypotheses.

• We will always need more data and better

hypotheses …

• We have enough techniques & tools to start

engineering.

10/13/00 (^7) ISSRE’00 Y.K. Malaiya

Hardware Reliability: The Status (1)

  • Earliest tube computers: MTTF comparable

to some computation times!

  • 1956 RCA TR-1100: component failure rate

models

  • 1959: MIL-HDBK-217A: common failure

rate: 0.4x10-6^ for all ICs for all cases

  • Revised about every 7 years

10/13/00 (^8) ISSRE’00 Y.K. Malaiya

Hardware Reliability: The Status (2)

  • 1995 Final update: MIL-HDBK-217F, Notice 2.

Still widely used.

  • Failure rates predicted often higher by a factor of

2-4, occasionally by an order of magnitude.

  • Constant failure-rate, the bathtub curve, the

Arrhenius relationship have been questioned.

10/13/00 (^9) ISSRE’00 Y.K. Malaiya

Hardware Reliability: The Status (3)

• Why use hardware reliability prediction?

  • Feasibility Study: initial design
  • Compare Design Alternatives: Reliability

along with performance and cost

  • Find Likely Problem Spots- high contributors

to the product failure rate

  • Track Reliability Improvements

10/13/00 (^10) ISSRE’00 Y.K. Malaiya

Hardware vs Software Reliability

Software

Hardware

Early: past experience

with similar units

Later: from the same

unit

Past experience*

with similar units

Past experience with

similar units

Past experience

with similar units

Models Parameters

  • Also suggested: from the same unit

10/13/00 (^13) ISSRE’00 Y.K. Malaiya

Basic Definitions (2)

• Reliability

  • R(t)=p{no failures in time (0,t)}

• Transaction reliability: probability that a

single transaction will be executed

correctly.

• Time: may be measures in CPU time or

some measure of testing effort.

Limited use in SRE

10/13/00 (^14) ISSRE’00 Y.K. Malaiya

Wholistic Engineering for Software Reliability

Outline

• Why it’s time…

• Demarcating, measuring, counting: definitions

• Science & engineering of reliability growth

• Those pesky residual defects

• Components & systems

• The toolbox

10/13/00 (^15) ISSRE’00 Y.K. Malaiya

Static and Dynamic Modeling

  • Reliability at release depends on
    • Initial number of defects (parameter)
    • Effectiveness of defect removal process (parameter)
    • Operating environment
  • Static modeling: estimate parameters before testing begins
    • Use static data like software size etc.
  • Dynamic modeling: estimate parameters during testing
    • Record when defects are found etc.
    • Time or coverage based

10/13/00 (^16) ISSRE’00 Y.K. Malaiya

What factors control defect density?

  • Need to know for
    • static estimation of initial defect density
    • Find room for process improvement
  • Static defect density models :
    • Additive (ex: Takahashi-Kamayachi)
    • D=a 1 f 1 +a 2 f 2 +a 3 f 3 …
    • Multiplicative (ex. MIL-HDBK-217, COCOMO, RADC)
    • D=C.F 1 (f1).F 2 (f 2 ).F 3 (f 3 )…

10/13/00 (^19) ISSRE’00 Y.K. Malaiya

Submodel: Programming Team Factor F (^) pt

  • Based on Takahashi, Kamayachi. Decline by 14% per year up to seven years.

Low 2.

Average 1 (default)

High 0.

Team’s average skill level Multiplier

10/13/00 (^20) ISSRE’00 Y.K. Malaiya

Submodel: Process Maturity Factor Fm

  • Based on Jones, Keene, Motorola data.

Level 5 0.

Level 4 0.

Level 3 0.

Level 2 1 (default)

Level 1 1.

SEI CMM Level Multiplier

10/13/00 (^21) ISSRE’00 Y.K. Malaiya

Submodel: Structure Factor F (^) s

  • Assembly code fraction: assuming assembly has 40% more defects - Factor=1+0.4×fraction in assembly
  • Module size: research reported at ISSRE 2000!
  • Complexity: Complex modules are more fault prone, but there may be compensating factors.

10/13/00 (^22) ISSRE’00 Y.K. Malaiya

Submodel: Requirement volatility Factor F (^) ph

  • Degree of changes and when they occur
  • Most impact when changes occur near the end of

testing

  • Malaiya & Denton: ISSRE 99

10/13/00 (^25) ISSRE’00 Y.K. Malaiya

Test methodologies

  • Static (review, inspection) vs. dynamic (execution)
  • Test views •Black-box (functional): input/output description •White box (structural): implementation used •Combination: white after black
  • Test generation •Partitioning •Random/Antirandom/Deterministic
  • Input mix

10/13/00 (^26) ISSRE’00 Y.K. Malaiya

Input Mix: Operational Profile

  • Need to do
    • find bugs fast?
    • estimate operational failure intensity?
  • Best mix for efficient bug finding (Li & Malaiya)
    • Quick & limited testing: Use operational profile
    • High reliability: Probe input space evenly
      • Operational profile will not execute rare and special cases
    • In general: Use combination
  • For acceptance testing: Need Operational profile

10/13/00 (^27) ISSRE’00 Y.K. Malaiya

Operational Profile

  • Profile: set of disjoint actions, operations that a program may perform, and their probabilities of occurrence.
  • Operational profile : probabilities that occur in actual operation - Begin-to-end operations & their probabilities - Markov: states & transition probabilities
  • There may be multiple operational profiles.
  • Accurate operational profile determination may not be needed.

10/13/00 (^28) ISSRE’00 Y.K. Malaiya

Operational Profile Example

  • “Phone follower” call types (Musa)

Hardware failure 0. recovery

G

F Delete subscriber 0.

E Add subscriber 0.

D Data base audit 0.

C New number entry 0.

B FAX call 0.

A Voice call 0.

Voice call, pager, no answer 0. on page

A

Voice call, pager, answer on 0. page

A

Voice call, pager, voice 0. answer

A

Voice call, no pager, no 0. answer

A

A1 Voice call, no pager, answer 0.

10/13/00 (^31) ISSRE’00 Y.K. Malaiya

A Basic SRGM

  • Testing time t, CPU execution time, man-hours etc.
  • Total expected faults detected by time t: μ(t)
  • Failure intensity
  • Defects present at time t: N(t)

( ) ( t ) dt

λ t = d μ

− dNdt (^ t )= β 1 N ( t )

10/13/00 (^32) ISSRE’00 Y.K. Malaiya

A Basic SRGM (Cont.)

  • Parameter β 1 is given by:
  • S: source instructions,
  • Q: number of object instructions/r source

instruction,

  • r: object instruction execution rate of the computer
  • K: fault-exposure ratio , range 1x10-7^ to 10x10-7,

(when t is in CPU seconds)

(SQr )

= K (^1) 1

..

β

10/13/00 (^33) ISSRE’00 Y.K. Malaiya

A Basic SRGM (Cont.)

  • We get
  • Where βo=N(0), total faults that would be eventually detected
  • Assumes no new defects are generated during debugging.
  • “ Exponential model ”: Jelinski-Muranda ‘71, Shooman ‘71, Goel-Okumoto ‘79 and Musa ‘75-’80.

N(t) =N( 0 ) e-^^ β^1 t

μ (t) = β o (1-e-^ β^1 t ) λ (t)^ = β o β 1 e-^ β^1 t

10/13/00 (^34) ISSRE’00 Y.K. Malaiya

SRGMs (Log Poisson)

  • Many SRGMs have been used.
  • Logarithmic model, by Musa-Okumoto, found to have a good predictive capability
  • applicable as long as m(t) < N(0). In practice almost always satisfied.
  • parameters βo and β 1 don’t have a simple interpretation. A useful interpretation by Malaiya and Denton.

μ (t) = β o ln (1 + β 1 t)

1 + t

(t)=

1

o 1

10/13/00 (^37) ISSRE’00 Y.K. Malaiya

SRGM: Preliminary Planning (cont.)

  • From exponential model

β o =N( 0 )=25x10= 250 defects,

sec

..^1

=11.2x 10 per

70 x 10

10,000x2.5x

= 4.0x^10

r

(SQ^1

= K

- 4

6

-

10/13/00 (^38) ISSRE’00 Y.K. Malaiya

SRGM: Preliminary Planning (cont.)

  • Reliability at release depends on

N(N(O) (^) t 1 )=2.5 25 xx 1010 = exp( − 11. 2 x 10 − (^4). (^) t 1 )

ln (^) = 2056 sec.( CPUtime ) 11.2x 10

t (^1) - 4

=0.028failures/ sec

( t 1 )= 250 x11.2x 10 -4e-11.2x^10 t^1

answer

10/13/00 (^39) ISSRE’00 Y.K. Malaiya

SRGM: Preliminary Planning (cont.)

  • For the same environment, β 1 .S is constant.
    • Prior 5 KLOC project β 1 was 2x10-3^ per sec.
    • New 15 KLOC project, β 1 can be estimated as 2x10-3/ = 0.66x10-3^ per sec.
  • Value of fault exposure ratio (K) may depend on

initial defect density and testing strategy (Li,

Malaiya ’93).

10/13/00 (^40) ISSRE’00 Y.K. Malaiya

SRGM: During Testing

  • Collect and pre-process data:
    • To extract the long-term trend, data needs to be smoothed
    • Grouped data: test duration intervals, average failure intensity in each interval.
  • Select a model and determine parameters:
    • past experience with projects using same process
    • exponential and logarithmic models often good choices
    • model that fits early data well, may not have best predictive capability
    • parameters estimated using least square or maximum likelihood
    • parameter values used when stable and reasonable