CPSC 531: System Modeling and Simulation

Slides:



Advertisements
Similar presentations
Simulation - An Introduction Simulation:- The technique of imitating the behaviour of some situation or system (economic, military, mechanical, etc.) by.
Advertisements

Modeling and Simulation By Lecturer: Nada Ahmed. Introduction to simulation and Modeling.
Design of Experiments Lecture I
INTRODUCTION TO MODELING
Chapter 1 Introduction to Modeling DECISION MODELING WITH MICROSOFT EXCEL Copyright 2001 Prentice Hall.
Copyright © 2005 Department of Computer Science CPSC 641 Winter PERFORMANCE EVALUATION Often in Computer Science you need to: – demonstrate that.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
CSE 531: Performance Analysis of Systems Lecture 1: Intro and Logistics Anshul Gandhi 1307, CS building
FIN 685: Risk Management Topic 5: Simulation Larry Schrenk, Instructor.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
Performance Evaluation
1 PERFORMANCE EVALUATION H Often in Computer Science you need to: – demonstrate that a new concept, technique, or algorithm is feasible –demonstrate that.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Course outline and schedule Introduction (Sec )
Introduction to Simulation Modeling Jason R. W. Merrick.
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
SIMULATION. Simulation Definition of Simulation Simulation Methodology Proposing a New Experiment Considerations When Using Computer Models Types of Simulations.
Feedback Control Systems (FCS)
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
Modeling and Simulation
IE 594 : Research Methodology – Discrete Event Simulation David S. Kim Spring 2009.
Introduction to Discrete Event Simulation Customer population Service system Served customers Waiting line Priority rule Service facilities Figure C.1.
Chapter 1 Introduction to Simulation
 1  Outline  stages and topics in simulation  generation of random variates.
Verification & Validation
Modeling & Simulation: An Introduction Some slides in this presentation have been copyrighted to Dr. Amr Elmougy.
1 Performance Evaluation of Computer Systems and Networks Introduction, Outlines, Class Policy Instructor: A. Ghasemi Many thanks to Dr. Behzad Akbari.
Representation and Modelling CS4012. Module Info Lecturer: Michael English Contact Details: – –Tel: 061.
Introduction Fall 2001 Foundations of Computer Systems Prerequisite:91.166* or * Section A Instructor: Dr. David Hutchinson Office:
Chapter 10 Verification and Validation of Simulation Models
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Fall 2011 CSC 446/546 Part 1: Introduction to Simulation.
Operations Research The OR Process. What is OR? It is a Process It assists Decision Makers It has a set of Tools It is applicable in many Situations.
1 1 Slide Simulation Professor Ahmadi. 2 2 Slide Simulation Chapter Outline n Computer Simulation n Simulation Modeling n Random Variables and Pseudo-Random.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Advantages of simulation 1. New policies, operating procedures, information flows and son on can be explored without disrupting ongoing operation of the.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
Introduction It had its early roots in World War II and is flourishing in business and industry with the aid of computer.
Decision Analysis & Decision Support Systems: DADSS Lecture 1: Introduction to Modeling John Gasper.
Building Valid, Credible & Appropriately Detailed Simulation Models
NETW 707: Modeling & Simulation Course Instructor: Tallal Elshabrawy Instructor Office: C3.321 Instructor Teaching.
Introduction To Modeling and Simulation 1. A simulation: A simulation is the imitation of the operation of real-world process or system over time. A Representation.
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Traffic Simulation L2 – Introduction to simulation Ing. Ondřej Přibyl, Ph.D.
Prepared by John Swearingen
Computer Network Fundamentals CNT4007C
Chapter 12: Simulation and Modeling
Computer Simulation Henry C. Co Technology and Operations Management,
Probabilistic Analysis of Computer Systems
OPERATING SYSTEMS CS 3502 Fall 2017
CPSC 531: System Modeling and Simulation
Decision Support and Business Intelligence Systems
Prepared by Lloyd R. Jaisingh
Modeling and Simulation (An Introduction)
SIMULATION SIMULAND PURPOSE TECHNIQUE CREDIBILITY PROGRAMMATICS
Chapter 1 Introduction to Simulation Modeling
Objectives of the Course and Preliminaries
ADVANTAGES OF SIMULATION
Chapter 1.
Simulation Department of Industrial Engineering Anadolu University
Simulation - Introduction
Chapter 10 Verification and Validation of Simulation Models
Professor S K Dubey,VSM Amity School of Business
Computer Systems Performance Evaluation
Discrete-Event System Simulation
Computer Systems Performance Evaluation
CPSC 641: Performance Issues in High Speed Networks
MECH 3550 : Simulation & Visualization
SIMULATION IN THE FINANCE INDUSTRY BY HARESH JANI
MSE 606A Engineering Operations Research
CPSC 641: Performance Issues in High Speed Networks
Presentation transcript:

CPSC 531: System Modeling and Simulation Carey Williamson Department of Computer Science University of Calgary Fall 2017

Administrative Details Expectations Q&A Today’s Lecture Material: Agenda Welcome! Course Overview Learning Outcomes Administrative Details Expectations Q&A Today’s Lecture Material: Basics of Modeling Computer Systems Performance Evaluation Simulation Modeling Example

Course Overview The purpose of this course is to learn the basics of systems modeling, discrete-event simulation, and computer systems performance evaluation. Syllabus: Intro to modeling and simulation (1 week) Random numbers and Monte Carlo simulation (1 week) Probability models: discrete and continuous (2 weeks) Discrete-event simulation methods (2 weeks) Simulation output analysis (2 weeks) Simulation input analysis (2 weeks) Queueing theory and Markov chains (2 weeks)

Learning Outcomes Classify/describe different types of simulations. Solve simple problems using Monte Carlo methods. Develop discrete-event simulation models. Generate random variates using inverse transforms. Understand differences between transient and steady-state behaviour of a system. Compute confidence intervals from simulation data. Conduct goodness of fit tests for input data models. Use basic queueing theory for simple system models.

Administrative Details Course Web Site: http://www.cpsc.ucalgary.ca/~carey/CPSC531 D2L Site: site exists, with actual content coming soon! Lectures: Tue/Thur 9:30am-10:45am MS 211 Instructor: Carey Williamson Tutorials: Tue/Thur 1:00pm-1:50pm SS 006 TA: Jonathan Hudson (tutorials start week of Sept 18) Textbook: Discrete-Event Simulation: A First Course Grading: Assignments (40%) - four programming assignments Midterm Exam (20%) - in-class on Thursday, October 26 Final Exam (40%) - two-hour closed book exam Grading Scheme: threshold-based step-function

Instructor Professor: Carey Williamson Department: Computer Science Office: ICT 736 Office Hours: Mondays (1:00pm-3:00pm) or by appt Phone: (403) 220-6780 Email: carey@cpsc.ucalgary.ca (any time!) Web Site: http://www.cpsc.ucalgary.ca/~carey Research Interests: Computer networks, Computer systems performance evaluation, Network simulation Hobbies: Golf, curling, hiking, travel, cooking, family

Administrative Details Expectations Q&A Today’s Lecture Material: Agenda Welcome! Course Overview Learning Outcomes Administrative Details Expectations Q&A Today’s Lecture Material: Basics of Modeling Computer Systems Performance Evaluation Simulation Modeling Example

Note that modeling is both an ‘art’ and a ‘science’ Basics of Modeling What is a model? An abstract representation of a (real) system that captures the essential characteristics or properties of the system Often requires making simplifying assumptions about how the system actually works Examples: Model airplane; molecular model; performance model Modeling is an essential tool in computer system performance evaluation (as we will see shortly) Note that modeling is both an ‘art’ and a ‘science’

Modeling: A Reality Check A famous quote: Models are useful when they provide critical insights into the system behaviour (e.g., its performance) Models are especially valuable when they are simple, elegant, and computationally fast “All models are wrong; some models are useful.” - George Box, 1976

Computer Systems Performance Evaluation Performance is a key consideration in the design, procurement, and use of computer systems. The typical goal is to get the highest possible performance for a given cost (e.g., dollars, energy) Performance evaluation is a well-defined sub-domain of computer science that has been around for 40 yrs Need basic knowledge of the tools and techniques of computer systems performance evaluation What are the performance requirements? How to compare different system alternatives?

Objectives of Performance Evaluation Establish a quantitative understanding of system behaviour This understanding should be sufficient for: Evaluating alternative system designs/configurations e.g., should our Web site run on one server or two servers? e.g., should Web server software be Apache, IIS, or nginx? Predicting system performance for a given set of inputs e.g., predict the mean response time of a Web server when the number of users is increased Performance debugging and system tuning e.g., identify/remove bottlenecks, optimize configuration e.g., why is D2L so slow? is it the server, or the network?

Approaches to Performance Evaluation Three main approaches: Experimental Obtain measurement data by observing the events and activities on an existing system; evaluate new algorithms or designs by implementing and comparing them in a real system Simulation modeling Develop a computer program that implements an abstracted model of the physical system; manipulate the model and/or its inputs to estimate the system performance (e.g., randomization) Analytical modeling Represent the system by an abstract mathematical model of the physical system (e.g., formula); manipulate parameters of the model to obtain information about system performance

High Level Overview Performance Evaluation Performance Measurement Performance Modeling Analytic Modeling Simulation

Performance Measurement Measure the performance directly on a system Need to characterize the workload placed on the system during measurement Generally provides the most valid results Nevertheless, not very flexible May be difficult (or even impossible) to vary some workload parameters

Reasons for using models Performance Modeling Construct a model An abstracted representation of a system obtained by making assumptions about how the system works Captures the most salient characteristics of the system Reasons for using models Experimenting with the real system may be too costly too risky, or too disruptive to system operation System may not even exist yet (e.g., planning stage)

Analytic Modeling Mathematical methods are used to obtain solutions to the performance measures of interest Examples: queueing models for computer systems or computer communication networks Numerical results are easy to compute if a simple analytic solution is available Useful approach when one only needs rough estimates of performance measures Solutions to complex models may be difficult to obtain

Simulation Modeling Develop a simulation program that implements the model Run the simulation program and use the data collected to estimate the performance measures of interest (typically using randomization) A system can be studied at an arbitrary level of detail It may be costly to develop and run the simulation program

Advantages of Simulation New policies and procedures can be explored without disrupting the ongoing operation of the real system New designs can be tested without committing resources for their acquisition Time can be compressed or expanded to allow for a speed-up or slow-down of the phenomenon under study Insight can be obtained about the interactions of variables, and which ones have the most impact on system performance Can obtain answers to “What if…” questions

Areas of Application for Simulation Manufacturing applications Financial markets Military applications Logistics and supply chain management Transportation modes and traffic Business process simulation Health care optimization Facility placement problems Communication networks And many more!

Simulation Example Hair salon (e.g., Witchcraft) Two stylists (one fast, one slow) Limited size waiting room (N chairs) Customers arrive at random times (no appts) Customers are impatient (don’t like waiting long) Question: How many customers do you lose by not having enough chairs in the waiting room?

Administrative Details Expectations Q&A Today’s Lecture Material: Agenda Welcome! Course Overview Learning Outcomes Administrative Details Expectations Q&A Today’s Lecture Material: Basics of Modeling Computer Systems Performance Evaluation Simulation Modeling Example