




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































logo
TBD
University of South-Eastern Norway-NISE Hasbergsvei 36 P.O. Box 235, NO-3603 Kongsberg Norway [email protected]
This book provides a practical approach to model systems. This approach is based on the modeling of many system and context aspects in small and simple models. These small models have to be used together to support the creation process of systems. It extends the notion of threads of reasoning and build on methods such as key driver graphs. A fast iteration over top-down models and bottom-up models is promoted.
Distribution This article or presentation is written as part of the Gaudí project. The Gaudí project philosophy is to improve by obtaining frequent feedback. Frequent feedback is pursued by an open creation process. This document is published as intermediate or nearly mature version to get feedback. Further distribution is allowed as long as the document remains complete and unchanged.
All Gaudí documents are available at: http://www.gaudisite.nl/
version: 0.1 status: planned March 27, 2021
10.2 From Chaos to Order........................ 98 10.3 Approach to Reason with Multiple Models............. 100 10.4 Balancing Chaos and Order..................... 110 10.5 Life Cycle of Models........................ 112 10.6 Summary.............................. 114 10.7 Acknowledgements......................... 115
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 0.
University of South-Eastern Norway-NISE page: iv
This book provides a practical approach to model systems. This approach is based on the modeling of many system and context aspects in small and simple models. These small models have to be used together to support the creation process of systems. The book follows the structure of the course Modeling and Analysis. Each course module is a Part with a number of Chapters:
part 1 Overview
part 2 Fundamentals of Technology
part 3 System Model
part 4 Application and Life Cycle Model
part 5 Integration and Reasoning
part 6 Analysis
At this moment the book is in its early infancy. Only one running case is used at the moment, a web shop. Most articles are updated based on feedback from readers and students. The most up to date version of the articles can always be found at [4]. The same information can be found here in presentation format. Chapters can be read as autonomous units.
integration and reasoning diagnosticquality throughputimagequality IQ spectypicalcase CPUbudget processingpixeldepthlibrary BoM (^) commonconsoleMoore'slaw memorylimit U"U' (^) CoOTUpurchasepriceB Srenderengine P' M'PM profit marginstandard workstation memory budget
life cycle context
enterprise &usage context system users requirementsblack box viewdesignrealizationtechnology creationlife cyclebusiness
collect inputdata model and analyserelevant issues for different stakeholders&concerns
facts measurements from research assumptions
modeling analysisresults^
decisionmaking^ decisions project man.businessspecificationdesign
1.1 Introduction
At the beginning of the creation of a new product the problem is often ill-defined and only some ideas exist about potential solutions. The architecting effort must change this situation in the course of the project into a well articulated and struc- tured understanding of both the problem and its potential solutions. Figure 1. shows that basic methods and an architecting method enable this architecting effort. We will zoom on modeling and analysis as support for the architecting effort. Modeling and analysis supports the architecting in several ways during the project life cycle, see Figure 1.2. Early modeling and analysis efforts help to understand the problem and solution space. When the project gets more tangible the purpose of modeling shifts to exploration of specification and design alterna- tives. For some problems it is rewarding to optimize the solution by means of models. When the realization gets up and running, then model and realization can be compared for verification purposes. The insight that the goal of modeling changes during the project life cycle implicates that the type of model depends on project phase. We should realize that every model that we create has a goal. These goals evolve and hence models evolve. The model itself will not achieve the goal. We have to actively pursue the goal, for instance by applying techniques, to reach this goal.
facts from research measurements assumptions uncertainties unknowns errors
modeling
analysis
results
project
accuracy working range credibility
risk customer satisfaction time, cost, effort profit margin
specification
verification
decisions
Figure 1.3: Purpose of Modeling
All these inputs have their uncertainties, may contain unknowns or may even be erroneous.
1.2 Overview of Modeling and Analysis Approach
The approach uses a simple model of the system and its context as shown in Figure 1.4. The system is modeled as black box, often called system requirements. Both functional or behavioral models can be used. However, we will focus mostly on the so-called non-functional requirements in the black box view. The internals of the system are also modeled: the design, the realization, and technology choices and consequences.
life cycle context
usage context system enterprise & users
requirements black box view
design realization technology
business : profit, etc. operational costs stakeholder benefits workload risks
key performance : throughput, response reliability availability scalability ...
(emerging?) properties : resource utilization load latency, throughput quality, accuracy ... and their mutual relations
creation life cycle business
business : profit, etc. operational costs stakeholder benefits workload risks
Figure 1.4: What to Model?
The purpose of modeling is to support the project in its architecting effort. The
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 1.
HSN-NISE page: 4
project purpose is always to realize a system in its context. A good system is a system that fits in its context and that is appropriate for its purpose. Figure 1. shows that we will model the usage context and the life cycle context. The usage context is often an enterprise with business processes and human users. The life cycle context starts with the creation or project life cycle, but it continues for the entire operational life of the system. Often a service provider is the stakeholder taking care of the system life cycle, from infrastructure to maintenance services and possibly even support for higher level application services. Many models can be made for the system and its context, see Figure 1.4 for some examples. However, to achieve the modeling goal we are often interested in the mutual relations between black box view and design, system and context, et cetera. We stress again, modeling is a means to support the process.
day 1
day 2
day 3
Figure 1.5: Program of Modeling and Analysis Course
The structure of the course and the supporting book follows the six modules shown in Figure 1.5.
overall approach providing an introduction and an overview of the overall approach to modeling and analysis.
input facts, data, uncertainties where and how to get quantified input data? We discuss measurements and the basis for dealing with uncertainties and errors. We also provide figures of merit for computer technology.
system modeling via a number of examples we show how the system and design
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 1.
HSN-NISE page: 5
life cycle context
usage context system enterprise & users
requirements black box view
design realization technology
creation life cycle business
intention
constraint awareness
objective driven context understanding
oppor- tunities
know how based
Figure 1.7: Iteration over viewpoints
thinking and bottom-up fact finding are continuously alternated. Top-down provides context understanding, intentions and objectives. Bottom-up provides know-how, constraints and opportunities.
1.3 Acknowledgements
Dinesh Verma initiated the development of a Modeling and Analysis course. Russ Taylor kept asking for structure and why, and provided feedback.
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 1.
HSN-NISE page: 7
Sample application code: for x = 1 to 3 { for y = 1 to 3 { retrieve_image(x,y) } }
alternative application code: event 33 -> show screen 3 <screen 3*3> <row 1><col 1><image 1,1></col 1>
application need: at event 33 show 33 imagesinstanteneous design design
or
Figure 2.1: Image Retrieval Performance
Figure 2.2, where the retrieve_image function is part of a user interface process. This process reads image data directly form the hard disk based store and renders the image directly to the screen. Based on these assumptions we can estimate the performance. This estimation will be based on the disk transfer rate and the rendering rate.
UI process screen
Sample application code: for x = 1 to 3 {for y = 1 to 3 { } retrieve_image(x,y) }
What If....
store
Figure 2.2: Straight Forward Read and Display
However, the system might be slightly more complex, as shown in Figure 2.3. Instead of one process we now have multiple processes involved: database, user interface process and screen server. Process communication becomes an additional contribution to the time needed for the image retrieval. If the process communi- cation is image based (every call to retrieve_image triggers a database access and a transfer to the screen server) then 2 · 9 process communications takes place. Every process communication costs time due to overhead as well as due to copying image data from one process context to another process context. Also the database access will contribute to the total time. Database queries cost a significant amount of time. The actual performance might be further negatively impacted by the overhead costs of the meta-information. Meta-information is the describing information of the image, typically tens to hundreds of attributes. The amount of data of meta- information, measured in bytes, is normally orders of magnitude smaller than the
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 0.
University of South-Eastern Norway-NISE page: 10
Sample application code: for x = 1 to 3 { for y = 1 to 3 { retrieve_image(x,y) } }
screen server 9 * retrieve
9 * update UI process
database
screen
Figure 2.3: More Process Communication
amount of pixel data. The initial estimation ignores the cost of meta-information, because the of amount of data is insignificant. However, the chosen implemen- tation does have a significant impact on the cost of meta-information handling. Figure 2.4 shows an example where the attributes of the meta-information are inter- nally mapped on COM objects. The implementation causes a complete “factory” construction for every attribute that is retrieved. The cost of such a construction is 80 μsec. With 100 attributes per image we get a total construction overhead of 9 · 100 cdot 80 μs = 72ms. This cost is significant, because it is in the same order of magnitude as image transfer and rendering operations.
Sample application code: for x = 1 to 3 { for y = 1 to 3 { retrieve_image(x,y) } }
What If.... Meta ------
Image data
Attribute = 1 COM object 100 attributes / image 9 images = 900 COM objects 1 COM object = 80μs 9 images = 72 ms
Attributes
screenserver 9 *retrieve
update9 * UI process
database
screen
Figure 2.4: Meta Information Realization Overhead
Figure 2.5 shows I/O overhead as a last example of potential hidden costs. If the granularity of I/O transfers is rather fine, for instance based on image lines, then the I/O overhead becomes very significant. If we assume that images are 5122 , and if we assume tI/O = 1ms, then the total overhead becomes 9 · 512 · 1 ms ≈ 4. 5 s!
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 0.
University of South-Eastern Norway-NISE page: 11
usage context
HW HW HW
OS OS OS
MW MW MW MW
F & S
F & S
F & S
F & S
F & S
F & S
F & S
F & S
Functions & Services
Middleware Operating systems Hardware
performance and behavior of a function depend on realizations of used layers, functions in the same context, and the usage context
Figure 2.7: Function in System Context
HW HW HW
OS OS OS
MW MW MW MW
F & S
F & S
F & S
F & S
F & S
F & S
F & S
F & S
Functions & Services Middleware Operating systems Hardware Performance = Function (F&S, other F&S, MW, OS, HW) MW, OS, HW >> 100 Manyear : very complex Challenge: How to understand MW, OS, HW with only a few parameters
Figure 2.8: Challenge
2.4 Summary
We have worked through a simple example of a new application level function. The performance of this function cannot be predicted by looking at the code of the function itself. The underlying platform, neighboring applications and user context all have impact on the performance of this new function. The underlying platform, neighboring applications and user context are often large and very complex. We propose to use models to cope with this complexity.
2.5 Acknowledgements
The diagrams are a joined effort of Roland Mathijssen, Teun Hendriks and Gerrit Muller. Most of the material is based on material from the EXARCH course created by Ton Kostelijk and Gerrit Muller.
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 0.
University of South-Eastern Norway-NISE page: 13
Summary of Introduction to Problem Resulting System Characteristics cannot be deduced from local code. Underlying platform, neighboring applications and user context: have a big impact on system characteristics are big and complex Models require decomposition, relations and representations to analyse.
Figure 2.9: Summary of Problem Introduction
Gerrit Muller System Modeling and Analysis: a Practical Approach March 27, 2021 version: 0.
University of South-Eastern Norway-NISE page: 14