Docsity

A Software Development Simulation Model of a Spiral Process, Study Guides, Projects, Research of Software Development

Toggle sidebar
bg1
A Software Development Simulation Model of a Spiral
Process
ABSTRACT: There is a need for simulation models of software development processes
other than the waterfall because processes such as spiral development are becoming more
and more popular. The use of a spiral process can make the inherently difficult job of
cost and schedule estimation even more challenging due to its evolutionary nature, but
this allows for a more flexible process that can better meet customers' needs. This paper
will present a discrete event simulation model of spiral development that can be used to
analyze cost and schedule effects of using such a process in comparison to a waterfall
process.
About the Authors
Carolyn Mizell
is a NASA employee at the Kennedy Space Center where she has served as a project
manager for over 10 years. She is presently working on her PhD in Industrial Engineering at the University
of Central Florida.
Contact:
Carolyn A. Mizell, NASA EA-C, Kennedy Space Center, FL
32899;
phone:
321-867-8814;
Carol
y
n.A.Mizell @nasa.gov
Linda Malone
is a professor at the University of Central Florida. She is a Fellow of the American
Statistical Association.
Software simulation models based on the traditional waterfall process exist as
discrete event models and system dynamics models, but the literature points out the need
to develop simulation models of other lifecycle processes. Since the traditional waterfall
lifecycle development method has its drawbacks, other lifecycle approaches are gaining
popularity, especially for large and complex software development projects.
Of particular interest is the spiral development lifeycle which is gaining
popularity for use in large government and military projects. The goal of this work is to
pf3
pf4
pf5
pf8
pf9
pfa
pfe
pff

Partial preview of the text

Download A Software Development Simulation Model of a Spiral Process and more Study Guides, Projects, Research Software Development in PDF only on Docsity!

A Software Development Simulation Model of a Spiral

Process

ABSTRACT: There is a need for simulation models of software development processes other than the waterfall because processes such as spiral development are becoming more and more popular. The use of a spiral process can make the inherently difficult job of cost and schedule estimation even more challenging due to its evolutionary nature, but this allows for a more flexible process that can better meet customers' needs. This paper will present a discrete event simulation model of spiral development that can be used to analyze cost and schedule effects of using such a process in comparison to a waterfall process. About the Authors Carolyn Mizell is a NASA employee at the Kennedy Space Center where she has served as a project manager for over 10 years. She is presently working on her PhD in Industrial Engineering at the University of Central Florida. Contact: Carolyn A. Mizell, NASA EA-C, Kennedy Space Center, FL 32899; phone: 321-867-8814; Carolyn.A.Mizell @nasa.gov Linda Malone is a professor at the University of Central Florida. She is a Fellow of the American Statistical Association.

Software simulation models based on the traditional waterfall process exist as discrete event models and system dynamics models, but the literature points out the need to develop simulation models of other lifecycle processes. Since the traditional waterfall lifecycle development method has its drawbacks, other lifecycle approaches are gaining popularity, especially for large and complex software development projects. Of particular interest is the spiral development lifeycle which is gaining popularity for use in large government and military projects. The goal of this work is to

provide a new discrete event simulation model of a spiral development lifecyle and to use the new model to analyze the cost and schedule estimation effects of using such a development approach. This work is new because discrete event simulation models have not been used for comparison of cost and schedule estimation differences between the waterfall and the spiral development lifecycles. The benefits of performing such a comparison are important because experience with the waterfall process shows that only one-third of software development projects that follow a waterfall process are completed successfully within budget and schedule(Brooks 1998). Also, it is not realistic to assume that large and complex software development projects can follow a once-through sequential process like the waterfall process. Most large projects that attempt to follow a waterfall process end up being evolutionary and iterative in nature as requirements change and evolve, and this has a substantial impact on cost and schedule estimates. The spiral development model was developed by Barry Boehm and is based on experience with large government software projects (Boehm 1988). The goal was to provide a model with greater flexibility that could better serve these types of projects. Boehm describes the spiral development model as a risk-driven process model generator that consists of a cyclic approach to incrementally implementing a system while decreasing the degree of risk (Boehm 2000). The waterfall model is the traditional lifecycle development approach that was introduced by Winston Royce in 1970 (Royce 1970). This model consists of a sequential cycle of activities that include requirement analysis, design, coding, testing, and support. The spiral model can be thought of as a repeating waterfall model that emphasizes risk

A key difference between the waterfall and spiral models is that the waterfall model considers requirements to be fixed from the beginning of the project with fixed documents being produced as a result of each phase of the lifecycle. Therefore, this process is not flexible enough for some projects, especially when requirements are not known at the beginning of a project. Changes in requirements later in the process lead to major cost and schedule overruns, especially for very large projects. This approach can lead to other problems such as: delayed integration, late risk resolution, and focus on documents and review meetings as opposed to tangible increments of the product (Royce 1998). Therefore, more and more software development projects are following lifecycle models other than the waterfall model. The spiral model is designed to be flexible and to evolve into other types of models such as evolutionary or even waterfall based on the results of risk assessments and where key risks exist (Boehm and Belz 1990). It is also considered product driven rather than document driven like the waterfall process (Royce 1998). The government and military are using this process more often in order to overcome the limitations of the more traditional processes. The US Dept. of Defense has determined that the spiral development model is the preferred method/process for software-intensive development lifecycles (Surber 2004). Disadvantages of the spiral model include continual deferral of planned functionality in order to stay on schedule and within budget. The deferral of work can accumulate until an insurmountable amount of work is left for the end of project. This is known as the "Death Spiral " (Brown 2004). Projects that follow this type of

development process will most likely cost more and take longer but should better meet customers' needs and expectations. A discrete event process simulation model of the spiral development lifecycle process will allow for evaluating different scenarios in projects using this type of approach. A process model for spiral development can also enable analysis of the effects of using this type of approach versus the traditional approach in terms of effort and schedule. The waterfall approach assumes all requirements are known up front and yet this is often unrealistic. Changes to requirements will affect size and therefore, the cost and schedule of the project. In order to handle changes that occur as a project evolves, NASA's Manager's Handbook for Software Development recommends that a minimum of five re-estimates should be made after the initial estimate at key life cycle phase points (SEL 1990). This will allow for more accurate estimates to be developed as the project progresses and as more information becomes available. The handbook states that the uncertainty of an estimate will decrease from completely uncertain at the initial estimate to almost certain with the sixth estimate after system test. Cost estimation is an especially difficult area of software development project management. The impacts of uncertainty in key areas such as product size, productivity, and defect injection rates can dramatically affect a project's cost and schedule. The job of estimating becomes even more difficult when requirements are allowed to evolve throughout a project as is the case for a spiral lifecycle process. The same unknowns of size, productivity, and defect injection rates exist, but there is also the additional unknown of the number of spirals that will need to be completed before an incremental product is delivered. The evolutionary nature of the process allows requirements to

The user provides number of resources, % of overall effort that should be allocated to each process step, and the number of desired staff for each step. The model outputs the size, effort, rework effort, entire process duration, average duration, number of injected defects, detected defects, and corrected defects.

Model Development

The approach to developing the spiral model was to add steps to the existing PATF waterfall model and to repeatedly run through the steps to represent increments for the entire project. Figure 3 shows how PATT serves as the core of the spiral model.

Each Increment PATE Repeat for Each Spiral Add Risk Planning,Process AcceptanceSupport Learned Et (^) tem

jIntnite&Test

lnstlalion & (^) Add Lesns Implement ,Detailed Design, Code & Unit Test.

Figure 3: Use of PATT for Spiral Model

Mode! Inputs

The following information is input to either the IEEE 12207 PATI model or the spiral model: size of product (lines of code), number of resources, productivity (lines of

code/hour), defect injection rate (defects/ksloc), % of overall effort for each process step, and desired staff for each process step. Industry averages or theoretical probability distributions can be used for productivity and defect injection rate. The following table provides guidelines for percentage of effort by phase that is based on several literature sources (Boehm 1981; SEL 1993; Boehm, Abts et at. 2000; Hendrix and Schneider 2002). Table 1: Percentage of Effort by Phase for Waterfall and Spiral Processes Waterfall Activity % Effort(Boehm 2000)

% Effort (SEL)


Spiral Activity


% Effort _______________________Plan/Requirements 8% 12% Risk Assessment _______________________ 5%

__________________________^ Product Design ____________^ 18% ____________8% Planning/RequirementsAnalysis 5% Detailed DesignCoding/Unit Test 25%26% (^) 40% 15% (^) Product DesignDetailed Design _________________________20%17%

______________________Integration/Testing^ ______________________31%^ 25%^ Coding/Unit TestIntegration/Testing^ 26%22% _______________________ _______________________ Lessons Learned 5% Note that the % effort for a waterfall process based on data found in Estimating with COCOMO II totals to 108%. This is due to the assumption that all plans and requirements for a waterfall approach will be completed prior to the beginning of a project. Data in the second % Effort column for waterfall is based on Software Engineering Laboratory data and totals to 100%. Data from Table 1 will serve as the % of overall effort input for the models. Industry averages from the literature suggest an average productivity of 3. LOC/Hr (Jones 2000) and defect injection rates of 60 defects per thousand lines of code (CeBASE 2004). For this work, data from the NASA environment was used to populate the model for analysis. Productivity and defect injection rates tend to be lower for the NASA environment with an average productivity of about 3.2 LOG/Hr (SEL 1993) and

incremental development process that consisted of 10 increments and allowed requirements to evolve during the project. Of interest is the question of how does a waterfall approach compare with a spiral approach, especially when developing early estimates. First, the IEEE 12207 process model and the spiral model will be run with the same input data so that the output effort and duration data from each can be compared. For this first analysis, the assumption will be that the size estimate is accurate (which would be highly unlikely at the beginning of a project and thus favors the waterfall model), so a total size of 3425 KSLOC will be input to the IEEE 12207 model. Table 3 provides size for each increment of the spiral model: Table 3: Size Estimate Per Increment Increment Number Size 1 100 2 250 3 675 4 700 5 650 6 200 7 325 8 300 9 175 10 50

The spiral development approach assumes that there will often be more than one pass through the development phases. Therefore, the discrete event spiral simulation

model will include an additional probability distribution for the number of spirals that must be completed within each increment. This will be set to a Uniform [1, 3] distribution for this analysis. Table 4 provides the output data from each type of model: Table 4: Comparison of Outputs for Waterfall and Spiral Models Output Waterfall Spiral

Mean Duration 5.9 years (^) 8.27 years Mean Effort 1391 labor years (^) 1520 labor years

This data shows that a budget of 1400 labor years and a schedule of five years are very risky for this project, even if a waterfall process is followed. This data also shows that a spiral process will take longer than a waterfall process and this should be expected, although it may not be considered when preparing a budget. The spiral process should take longer and cost more because the process is repeated and has additional process steps. The analysis of the spiral process may actually lead to a more realistic estimate since software projects historically have evolving requirements and phases of development. This makes a one time estimate done at the beginning of a project very impractical. A rough estimate can be developed, but detailed phased funding should be considered so that more accurate estimates can be developed based on an incremental basis rather than for the entire project. The intended benefit of spending more time and money on such a process is that the user will get a better product and will get incremental functionality with each delivery. Size growth due to requirements changes and unknowns can be extensive. The literature points out that very early size estimates are likely to be much lower than the

size distribution of Uniform [3425,^ 6850] and the % of effort in Table 2 that totals to

100% to represent a more realistic waterfall where requirements analysis is done as part of the project.

Table 6: Comparison of Spiral Model to Waterfall Model with Uncertain Requirements Waterfall Spiral Mean Duration 9.89 years 14.67 years Mean Effort 2356 labor years^ 2414.6 labor years

This data also shows that the spiral process should cost more and take longer than a waterfall approach. This is expected since a waterfall process theoretically proceeds sequentially through each phase one time with no substantial changes in requirements. The spiral process, however, is more representative of the typical iterative nature that most software development projects actually follow. Therefore, the process of developing cost and schedule estimates that consider uncertainty in a development process that is iterative in nature should lead to a more realistic estimate. The analysis also shows the significant impact size uncertainty has on a project's cost and schedule for either lifecycle approach. A benefit of following a spiral process that consists of multiple spirals per increment is that particular risk areas can be resolved by expending only a portion of the increment's budget. The spirals serve as a risk resolution plan that should enable deliverable functionality for each increment. The fact that this type of process will provide benefits but may take longer and cost more must be considered when developing estimates for a project that will follow this approach.

Summary This work has developed a new software development process model that enables assessment of an incremental or spiral lifecycle approach. This provides a new insight into the effects of developing cost and schedule estimates for an iterative development process that is a more realistic representation of most large software development projects. The waterfall process provides for a structured sequential process, but this is often not realistic since requirements tend to evolve and phases of the lifecycle may need to be repeated. This article presents a unique approach to developing initial estimates and has demonstrated some of the differences in estimating between a waterfall approach and a spiral approach. Because software development can be very complex and uncertain, the iterative spiral lifecycles are gaining popularity and provide a more realistic estimate that has not been developed using existing estimating tools and techniques that are based on the waterfall process.. Using estimation data from the NASA environment, this work has analyzed a project's early cost and schedule estimate using both a waterfall and spiral approach. The results show that the cost and schedule estimates for a spiral process may be higher than for a waterfall process and this is in agreement with military experiences (Brown 2004). This type of process should provide a quality product that better meets users' needs by allowing evolution of requirements and by providing functionality with each increment. This process emphasizes risk management and is designed to be flexible. This should lead to more realistic budgetary planning since it is obvious that requirements will change and cost and schedule will be affected throughout the project. This work also shows that uncertainty in areas such as size, productivity, and defects should be accounted for when developing an estimate, no matter which lifecycle is

References

Boehm, B. (2000). Spiral Development: Experience, Principles and Refinements, Spiral Development Workskhop SEI Report. W. J. Hansen. Pittsburgh, Carnegie-Mellon University, Software Engineering Institute: 49. Boehm, B. and F. Belz (1990). "Experiences with the spiral model as a process model generator." IEEE: 43-45. Boehm, B. W. (1981). Software Engineering Economics. Englewood Cliffs, Prentice Hall. Boehm, B. W. (1988). "A spiral model of software development and enhancement." IEEE Computer 21(5): 61-72. Boehm, B. W., C. Abts, et al. (2000). Software Cost Estimation with COCOMO II.Upper Saddle River, Prentice Hall PTR. Brooks, A. (1998). "Estimating cost with project management software can boost efficiency." Computing Canada 24: 34. Brown, D. (2004). Evolutionary Acquisition and Spiral Development, Defense Acquisition University: 34. CeBASE. (2004). "eWorkshop on Software Inspections and Pair Programming." fromwww.cebase.org. CeBASE. (2005). "Software Engineering Laboratory Data." from www.cebase.org. Hendrix, D. T. and M. Schneider, P. (2002). "NASA's TReK Project: A Case Study in Using the Spiral Model of Software Development." Communications of the ACM 45: 152-159. Jones, C. (2000). Software Assessments, Benchmarks, and Best Practices. Boston, Addison-Wesley. Raffo, D. and W. Wakeland (2003). Assessing IV&V Benefits Using Simulation. 28th Annual NASA Goddard Software Engineering Workshop. Royce, W. (1970). Managing the Development of Large Software S ystems: Concepts and Techniques. Wescon. Royce, W. (1998). Software Project Management: A Unified Framework, Addison- Wesley.

SEL (1990). Manager's Handbook for Software Development. Software Engineering Laboratory Series. Greenbelt. SEL (1993). Cost and Schedule Estimation Study Report. Software Engineering Laboratory Series. Greenbelt: 3-3. SEL (1994). An Overview of the Software Engineering Laboratory, Software Engineering Laboratory: 55. Surber, D. C. (2004). Spiral Evolution Applied to Legacy Avionics Systems. IEEE A&E S ystems Magazine.^ 19:^ 3-9.