Docsity

Reliability: Errors in Computer Systems and their Impacts | CS 305, Study notes of Computer Science

Toggle sidebar
bg1
1
CS305 W'09, J. Li Reliability 1
CS305 Topic – Reliability
Errors in Computer Systems
Impacts of Computer Errors
Lessons Learned
How to Improve?
Sources: Baase: A Gift of Fire and Quinn: Ethics for the Information Age
CS305 W'09, J. Li Reliability 2
Errors in Computer Systems
Data-entry or data-retrieval errors
Software errors
System failures
Effects of Computer Errors:
Inconvenience
Bad business decisions
Fatalities
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Reliability: Errors in Computer Systems and their Impacts | CS 305 and more Study notes Computer Science in PDF only on Docsity!

CS305 W'09, J. Li Reliability 1

CS305 Topic – Reliability

 Errors in Computer Systems  Impacts of Computer Errors  Lessons Learned  How to Improve?

Sources: Baase: A Gift of Fire and Quinn: Ethics for the Information Age

CS305 W'09, J. Li Reliability 2

Errors in Computer Systems

 Data-entry or data-retrieval errors  Software errors  System failures

Effects of Computer Errors:

 Inconvenience  Bad business decisions  Fatalities

CS305 W'09, J. Li Reliability 3

Data-Related Errors

 Erroneous information in databases  Misinterpretation of database information Examples:  Disfranchised Voters  False Arrests  Accuracy of NCIC Records

CS305 W'09, J. Li Reliability 4

Disfranchised Voters

November 2000 general election, Florida disqualified thousands of voters  Reason: People identified as felons  Cause: Incorrect records in voter database  Consequence: May have affected election’s outcome

CS305 W'09, J. Li Reliability 7

Justice Dept’s Position

 Impractical for FBI to be responsible for data’s accuracy  Much information provided by other law enforcement and intelligence agencies  Agents should be able to use discretion  If provisions of Privacy Act strictly followed, much less information would be in NCIC Result: Fewer arrests

CS305 W'09, J. Li Reliability 8

Privacy Advocates’ Position

 Number of records is increasing  More erroneous records will cause more false arrests Conclusion: Accuracy of NCIC records is more important than ever

CS305 W'09, J. Li Reliability 9

Software and Billing Errors

Examples:  U.S. Postal Service returns 50,000 mail addressed to Patent and Trademark Office (1996)  Qwest sends incorrect bills to 14,000 cell phone customers (2001)  Amazon.com in Britain offered iPaq for £7 instead of £275; Amazon.com shut down site, refused to deliver unless customers paid true price (2003)

Question: Was Amazon.com wrong to refuse to fill the orders?

CS305 W'09, J. Li Reliability 10

Amazon Case Analysis

Utilitarian Analysis: Proposed Rule: A company must always honor the advertised price. Consequences:  Companies would spend more time proofreading ads, and may take out insurance policies  Higher costs → higher prices for all consumers  Only few customers would benefit from errors Conclusion:  Rule has more harms than benefits  Amazon.com did the right thing

CS305 W'09, J. Li Reliability 13

Patriot Missile

 Used in Gulf War to intercept Scud missiles  One battery failed to shoot at Scud that killed 28 soldiers Cause:  Designed to operate only a few hours at a time  Kept in operation > 100 hours  Tiny truncation errors added up  Clock error of 0.3433 seconds → tracking error of 687 meters

CS305 W'09, J. Li Reliability 14

Ariane 5

 Satellite launch vehicle  40 seconds into maiden flight, rocket self- destructed, $500 million of satellites lost Cause:  Statement assigning floating-point value to integer raised exception  Exception not caught and computer crashed  Code reused from Ariane 4  Slower rocket, smaller values being manipulated

CS305 W'09, J. Li Reliability 15

AT&T Long-Distance Network

 About half of routing switches crashed  70 million calls not put through  60,000 people lost all service  AT&T lost revenue and credibility Cause:  Single-line error in error-recovery procedure  Most switches running same software  Crashes propagated through the network

CS305 W'09, J. Li Reliability 16

Robot Missions to Mars

 Climate Orbiter disintegrated in Martian atmosphere Cause:  Lockheed Martin design used English units  Jet Propulsion Lab design used metric units  Polar Lander crashed into Martian surface Cause:  Engines shut off too soon  False signal from landing gear

CS305 W'09, J. Li Reliability 19

Therac-

 AECL and CGR built Therac-6 and Therac-  Therac-25 built by AECL  PDP-11 an integral part of system  Hardware safety features replaced with software  Reused code from Therac-6 and Therac-  First Therac-25 shipped in 1983  Between 1985-1987, six patients were given massive overdoses of radiation (100x); three died

CS305 W'09, J. Li Reliability 20

Therac-25: Chronology

 1st – Marietta, Georgia (June 1985)  2nd – Hamilton, Ontario (July 1985)  First AECL investigation (July-Sept. 1985)  3rd – Yakima, Washington (December 1985)  4th – Tyler, Texas (March 1986)  Second AECL investigation (March 1986)  5th – Tyler, Texas (April 1986)  6th – Yakima, Washington (January 1987)  FDA declares Therac-25 defective (February 1987)

CS305 W'09, J. Li Reliability 21

Therac-25: Design Flaws

 Re-used software from older systems, unaware of bugs in previous software  The software was not independently reviewed or tested – in fact, the software was mostly developed and tested by one single person  System not designed to be fail-safe  No devices to report overdoses  No way for patient to communicate with operator during procedure  Weaknesses in design of operator interface

CS305 W'09, J. Li Reliability 22

Therac-25: Bugs in Software

 Allowed beam to deploy when table not in proper position  Ignored changes and corrections operators made at console  Race conditions

CS305 W'09, J. Li Reliability 25

Software Warranties

 Many are “shrink-wrapped”  Some say you accept software “as is”  Some offer 90-day replacement or money- back guarantee on the media  None accept liability for harm caused by use of software! Can software manufacturers get away with disclaiming any warranties they choose to have on their products?

CS305 W'09, J. Li Reliability 26

Consumer Protection Laws

 Article 2 (“Sales”) of Uniform Commercial Code (enacted in 1960s, updated in 2003)  Magnuson-Moss Warranty Act (enacted in

Goals:  Prevent manufacturers from putting unfair warranties on products  Make it economically feasible for consumers to bring warranty suits

CS305 W'09, J. Li Reliability 27

Notable Court Cases

 Step-Saver v. Wyse Tech. & The Software Link  Step-Saver purchased 142 copies of an OS from Wyse and TSL that did not work  Court ruled in favor of Step-Saver  ProCD, Inc. v. Zeidenberg  Zeidenberg purchased a ProCD software CD; made copies and resold the copies, claiming he did not see the license  Court Rule: “ Shrink-wrap licenses are enforceable”  Mortensen v. Timberline Software  Mortensen purchased buggy Timberline software that caused financial lost  Court Rule: “Disclaims in warranties are enforceable”

CS305 W'09, J. Li Reliability 28

UCITA

A proposed law to create a uniform set of rules to govern transactions in computer information (e.g. software licensing and online access). Under UCITA, software manufacturers can  License software  Prevent software transfer  Disclaim liability  Remote disable licensed software  Collect information about how software is used

CS305 W'09, J. Li Reliability 31

Software Complexity

Examples:  Linux kernel 2.6.0 – 6 million lines of code  Redhat Linux 7.1 – 30 million lines of code  Windows XP – 40 million lines of code In comparison:  Boeing 747 – 3.5 million parts  Space shuttle – 10 million parts The point: Formal methodology is needed for software development

CS305 W'09, J. Li Reliability 32

Software is Only a Part

Computer simulations replace physical experiments in many fields:  Experiment too expensive/time-consuming  Experiment unethical  Experiment impossible  Can model past, current, and predict the future However, accuracy and reliability is only as good as the weakest link:  Does the model accurately represent the real system?  Does program correctly implement the model?

CS305 W'09, J. Li Reliability 33

Software Engineering Principles

The Waterfall Model :

_1. Requirements

  1. Design
  2. Implementation
  3. Verification
  4. Maintenance_

Key Idea: Have a fixed comprehensive requirement specification and stick with it to the end.

CS305 W'09, J. Li Reliability 34

Software Quality Is Improving

 Standish Group tracks IT projects  Situation in 1994  1/3 projects cancelled before completion  1/2 projects had time and/or cost overruns  1/6 projects completed on time / on budget  Situation in 2002  1/6 projects cancelled  1/2 projects had time and/or cost overruns  1/3 projects completed on time / on budget