Chapter 3 General Principles in Simulation



Similar documents
Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

1: B asic S imu lati on Modeling

Chapter 2. Simulation Examples 2.1. Prof. Dr. Mesut Güneş Ch. 2 Simulation Examples

Discrete-Event Simulation

Discrete-Event Simulation

2 Simulation Examples

TEACHING SIMULATION WITH SPREADSHEETS

Chapter 3 Simulation Software. Simulation Modeling and Analysis Chapter 3 Simulation Software Slide 1 of 13

Process simulation. Enn Õunapuu

Veri cation and Validation of Simulation Models

Pull versus Push Mechanism in Large Distributed Networks: Closed Form Results

Simulation Software 1

Chapter 8 Detailed Modeling

Arena 9.0 Basic Modules based on Arena Online Help

Real-Time Scheduling (Part 1) (Working Draft) Real-Time System Example

CALL CENTER PERFORMANCE EVALUATION USING QUEUEING NETWORK AND SIMULATION

Stochastic Processes and Queueing Theory used in Cloud Computer Performance Simulations

Arena Tutorial 1. Installation STUDENT 2. Overall Features of Arena

A Periodic Events - For the Non- Scheduling Server

Predictable response times in event-driven real-time systems

Final Project Report. Trading Platform Server

Waiting Times Chapter 7

Queuing Theory. Long Term Averages. Assumptions. Interesting Values. Queuing Model

A Comparison of System Dynamics (SD) and Discrete Event Simulation (DES) Al Sweetser Overview.

Basic Queuing Relationships

WILLIAM B. HURST, PH.D.321 Madison Pl

Real-Time Component Software. slide credits: H. Kopetz, P. Puschner

Quantitative Analysis of Cloud-based Streaming Services

Lecture Outline Overview of real-time scheduling algorithms Outline relative strengths, weaknesses

I/O Management. General Computer Architecture. Goals for I/O. Levels of I/O. Naming. I/O Management. COMP755 Advanced Operating Systems 1

Chapter 11 I/O Management and Disk Scheduling

Deployment of express checkout lines at supermarkets

Real-Time Scheduling 1 / 39

QUEUING THEORY. 1. Introduction

Overview of Presentation. (Greek to English dictionary) Different systems have different goals. What should CPU scheduling optimize?

Development Testing for Agile Environments

Operating Systems. III. Scheduling.

Systems Modelling and Simulation (Lab session 3)

Load Balancing and Switch Scheduling

IST 301. Class Exercise: Simulating Business Processes

Deadlock Detection and Recovery!

OPERATING SYSTEMS SCHEDULING

CPU Scheduling. Core Definitions

Operating Systems Concepts: Chapter 7: Scheduling Strategies

SIP Server Overload Control: Design and Evaluation

System Modeling and Simulation (SE 360) Course Details

Cloud Management: Knowing is Half The Battle

Deciding which process to run. (Deciding which thread to run) Deciding how long the chosen process can run

Fluid Approximation of a Priority Call Center With Time-Varying Arrivals

Modeling Stochastic Inventory Policy with Simulation

SIMULATION FOR COMPUTER SCIENCE MAJORS: A PRELIMINARY REPORT

RT Language Classes. Real-Time Programming Languages (ADA and Esterel as Examples) Implementation. Synchroneous Systems Synchronous Languages

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

Scheduling Aperiodic and Sporadic Jobs in Priority- Driven Systems

A two-level scheduler to dynamically schedule a stream of batch jobs in large-scale grids

Modelling the performance of computer mirroring with difference queues

CHAPTER 5 STAFFING LEVEL AND COST ANALYSES FOR SOFTWARE DEBUGGING ACTIVITIES THROUGH RATE- BASED SIMULATION APPROACHES

Automatic Queuing Model for Banking Applications

Road Map. Scheduling. Types of Scheduling. Scheduling. CPU Scheduling. Job Scheduling. Dickinson College Computer Science 354 Spring 2010.

REAL TIME OPERATING SYSTEMS. Lesson-18:

Chapter 5 Process Scheduling

Waiting Lines and Queuing Theory Models

Simulation of Call Center With.

White Paper Business Process Modeling and Simulation

Understanding ACD and SMDR

Process Scheduling CS 241. February 24, Copyright University of Illinois CS 241 Staff

Call Center Metrics: Glossary of Terms

Chapter 3. Operating Systems

point to point and point to multi point calls over IP

Keywords: Architecture, Interoperability, Simulation Time, Synchronization

Effects of Interrupt Coalescence on Network Measurements

MTAT Business Process Management (BPM) Lecture 6 Quantitative Process Analysis (Queuing & Simulation)

Windows Server Performance Monitoring

The new frontier of the DATA acquisition using 1 and 10 Gb/s Ethernet links. Filippo Costa on behalf of the ALICE DAQ group

1. Computer System Structure and Components

SYSTEM ecos Embedded Configurable Operating System

Lezione 10 Introduzione a OPNET

Network Design Performance Evaluation, and Simulation #6

ANALYSIS OF THE QUALITY OF SERVICES FOR CHECKOUT OPERATION IN ICA SUPERMARKET USING QUEUING THEORY. Azmat Nafees Liwen Liang. M. Sc.

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

Ready Time Observations

IP Marking, Metering, and Management

SIMULATION OF LOAD BALANCING ALGORITHMS: A Comparative Study

CHAPTER 3 LOAD BALANCING MECHANISM USING MOBILE AGENTS

Parallel Scalable Algorithms- Performance Parameters

Project and Production Management Prof. Arun Kanda Department of Mechanical Engineering Indian Institute of Technology, Delhi

Call Center Statistics Web Monitor. Call Center Statistics Web Monitor

Operating Systems Lecture #6: Process Management

WHITEPAPER SDH. Fibre Ducts ATM CAPACITAS SONET MPLS. Voice. The Challenges of Capacity Planning Multiple Services over a Single Infrastructure

Network Protocol Design and Evaluation

DYNAMIC RADIO RESOURCE MANAGEMENT IN GSM/GPRS USING SCALABLE RESOURCE ALLOCATION TECHNIQUE

LECTURE - 1 INTRODUCTION TO QUEUING SYSTEM

IMPLEMENTATION OF BACKEND SYNTHESIS AND STATIC TIMING ANALYSIS OF PROCESSOR LOCAL BUS(PLB) PERFORMANCE MONITOR

Performance Modeling and Analysis of a Database Server with Write-Heavy Workload

User Manual. Call Center - Supervisor Application

Operating Systems. Virtual Memory

TAYLOR II MANUFACTURING SIMULATION SOFTWARE

Design and Implementation of Distributed Process Execution Environment

Interactive Dynamic Modeling for the Passenger Flow Bottleneck and Security Checkpoint Management at an Airport

Process Mapping Guidelines

Transcription:

Chapter 3 General Principles in Simulation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation Concepts In Discrete-Event Simulation System A collection of entities (people and machines..) that interact together over time for one or more goals Model An abstract representation of a system, usually containing structural, logical or mathematical relationship that describe a system in term of state, entities and their attributes, sets, processes, System state A collection of variables in any time that describe the system Entity Any object or component in system that require explicit representation (server, customer,...) Attributes The properties of a given customer List A collection of associated entities, ordered in some logical fashion (FIFO, priority,) ٢

Concepts In Discrete-Event Simulation (cont.) Event An instantaneous occurrence that changes the state of a system Event Notice A record of a event to occur at the current or future time (type and time) Event List FEL (future event list) Activity (unconditional wait) A duration time of specified length (service time or interarrival time, ) Deterministic, Statistical and functional Delay (conditional wait) A duration of time of unspecified indefinite length, which is not known until it ends (customer delay in waiting line) Clock A variable representing simulated time ٣ Able-Baker Call center System state LQ(t): the number of callers waiting to serve LA(t): or indicate Able is idle or busy LB(t): or indicate Baker is idle or busy Entities Caller Events Arrival event, service completion by Able or Baker Activities Service time by Able/Baker and Inter-arrival time Delay A caller wait in queue until Able or Baker becomes free ٤

Event scheduling How does each event affect system state, attributes? How activities are defined (deterministic, probabilistic,)? Which events trigger the beginning of each delay? What is system state at time? ٥ Event scheduling (cont.) Clock System state Attributes Future Event List (FEL) Cumulative statistics and counters t (x,y,z,) (3,t) (,t) (4,tn) T<t<T<n FEL is ordered by event time ٦

Event scheduling/time-advance algorithm Clock System state Future Event List (FEL) t (5,,6) (3,t) (,t) (5,t3) t<t*<t3 (4,tn) Clock System state Future Event List (FEL) Cloc k System state Future Event List (FEL) t (5,,5) (,t) (5,t3) t (5,,5) (,t) (4,t*) (5,t3) (4,tn) (4,tn) ٧ Generation Arrival Stream by Bootstrapping ٨

The stop time of simulation AT time the simulation stop time is specified,t E Run length TE is determined by the simulation itself. The time of occurrence of some specified events ٩ World views of Model for simulation (Three Types) Polling And Interrupt Event-scheduling world view We concentrate on events and their effects on system Process-interaction world view (like processes in OS) We define the model in terms of entities or objects and their life cycle of an entity It has intuitive appeal and allow to describe the process flow in terms of high level block or network constructs Event scheduling is hidden Both use a variable time advance (clock is advanced to next imminent event) Activity scanning world view Use fixed time increment and rule based approach to decide which activity can begin At each clock advance the conditions for each activity are checked and if they are true then corresponding activity begins It is suitable for small system It is very fast ١٠

Activity scanning example (Gate simulation) us 3us us us ١١ Two customer processes interaction in single server queue ١٢

Event Scheduling example (Grocery Center) System State LQ(t),LS(t) Entities The server and customer are not explicitly modeled Events Arrival (A), Departure (D), Stopping event (E=6) Event notices (A,t), (D,t), (E,6) Activities Inter-arrival time, service time Delay Customer time spent in waiting time ١٣ Execution of the arrival event ١٤

Execution of the departure event ١٥ Simulation Table clock System state LQ(t) LS(t) Future Event List Comment Cumulativ e Statistics B MQ (A,)(D,4)(E,6) First A occures (a*=) schedule next A (s*=4) schedule first D (A,)(D,4)(E,6) Second A occures:(a,) (a*=) schedule next A (Customer delayed) (D,4) (A,8)(E,6) Third A occures:(a,) (a*=6) schedule next A (Two customer delayed) 4 (D,6) (A,8)(E,6) First D occures:(d,4) (s*=) schedule next D (Customer delayed) 4 6 6 ١٦

Computing Mean Response Time (cont.) Entities (Ci,t), representing customer Ci who arrive at time t Event notices (A,t,Ci), the arrival of customer Ci at future time t (D,t,Cj), the departure of customer Cj at future time t Set CHECKOUT LINE the set of all customers currently at the checkout counter, ordered by time of arrival Response time CLOCK TIME-attribute time of arrival S:sum of customer response time N D : all number of customers that currently are departure F:Total number of customers that spend more than 5 minutes in system ١٧ Simulation Table clock System state LQ(t) LS(t) CHECKOUT LINE Future Event List S Cumulative Statistics N D F (C,) (A,,C)(D,4,C)(E,6) (C,)(C,) (A,,C3)(D,4,C)(E,6) (C,)(C,) (C3,) (D,4,C) (A,8,C4)(E,6) 4 (C,) (C3,) (D,6,C) (A,8,C4)(E,6) 4 6 9 ١٨

List Processing List processing is base of event management in event and process orientation systems. ١٩ Structure of a simulation system ٢٠

Event Scheduling Example ٢١