Professional Documents
Culture Documents
Outline
Preview about the course. What is simulation? How to study a system? When to use simulation? Application areas of simulation Terminology system, state, events Model classification Types of simulation Steps in a sound simulation study Advantages, disadvantages, and pitfalls in a simulation study
The Hashemite University 2
Systems modeling requires understanding of: Basic probability, statistics, elementary calculus. We will also talk about analytically solved models.
The Hashemite University
What is simulation?
Simulation is imitation of the operation of a facility or process, usually using a computer
Facility being simulated is also called a system Assumptions/approximations, both logical and mathematical, which are called the system model, are made about how the system works
Models used in simulation have many applications and can answer questions such as:
Why does my Web performance suffer when my roommate starts using the WiFi connection? What will be the path of a hurricane? etc.
The Hashemite University 4
Why simulation?
The objectives of simulation most of the time include:
To understand how a system operates. To gain some insight( )into the relationship between the various components of a system. To predict( )the performance of the system under some new conditions. To check the validity of the design before the actual (physical) implementation.
The Hashemite University 5
Application Areas
Design and performance evaluation of computer systems
Determining hardware requirements or protocols for communications networks. Studying CPU Scheduling algorithms. Evaluation of Web caching policies. Operation of a production line
Evaluating military weapons systems or their logistics requirements Designing and operating transportation systems such as airports, freeways, ports, and subways Analyzing financial or economic systems.
The Hashemite University
Terminology
System: A collection of objects that act and interact together toward some logical end, Examples of systems:
Hospitals Telecommunications system Highways Computer Networks Airport check in and Boarding facilities. A Fast food restaurant
State of a system: Collection of variables and their values necessary to characterize a system at a particular time Event: Usually a change in system state
The Hashemite University
Example -- Bank
System: a bank is a system where its main objects or entities include customers and tellers. Behaviors include the required services such as deposit or withdraw money and there is a queue for waiting the required service. State of a system: the number of tellers, the number of customers waiting in the queue for service, the queueing delay for each customer, the service time for each teller, etc. Event: Customer arrival change the queue length, for example, and also customer departure.
The Hashemite University 10
11
System Model
A model is the set of assumptions, logical and mathematical relations that describe the system under study. Models classifications: can be classified among five different dimensions:
Continuous-event vs. discrete-event models Deterministic vs. probabilistic models Static vs. dynamic models Linear vs. non-linear models Open vs. closed models
The Hashemite University
12
13
More on Models
Static and dynamic models
Static models system state independent of time (time does not change the state of the system) Dynamic models - system state change with time Linear models output is a linear function of input parameters Applied for models that are described with mathematical relations.
15
And remember, a system may fall under more than one category from the specified earlier.
The Hashemite University
16
17
18
Types of Simulation I
Monte Carlo simulation
No time element (usually) Used for evaluating non-probabilistic expressions (e.g., an integral) using probabilistic methods, i.e. apply stochastic approaches to solve deterministic problems. Wide variety of mathematical problems
Simply use excel to implement the required simulation scenario where random variables needed to generate the inputs and output analysis tools (such as figures) are available. Many limitations: only simple problems, take longer execution time, data storage is limited.
The Hashemite University 19
Spreadsheet simulation
Types of Simulation II
Trace-driven simulation
Inputs values are determined in advance and during simulation are read from a trace file (which could be a text file). Most of the time, such traces are universal benchmarks which put the system under heavy load (i.e. study its behavior under the worst case conditions). Extensively used in computer systems performance evaluation; e.g., paging algorithms Advantages: credibility, easy validation, less randomness, accurate workload Disadvantages: complexity, only a snap-shot representation, single point of validation
20
21
Disadvantages
Pitfalls
Stochastic simulations produce only estimates with noise Simulation models can be expensive to develop Simulations usually produce large volumes of output need to summarize, statistically analyze appropriately Failure to identify objectives clearly up front In appropriate level of detail (both ways) Inadequate design and analysis of simulation experiments Inadequate education, training
The Hashemite University 22
Additional Notes
Check the Black Board to get your copy of the lecture. The lecture covers the following sections from the textbook:
Chapter 1: Sections 1.1, 1.2, 1.7, 1.8, and 1.9
23