Single-Server Queue Model

Slides:



Advertisements
Similar presentations
+ Validation of Simulation Model. Important but neglected The question is How accurately does a simulation model (or, for that matter, any kind of model)
Advertisements

Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Chapter Queueing Notation
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
Performance Analysis and Monitoring Facilities in CPN Tools Tutorial CPN’05 October 25, 2005 Lisa Wells.
Simulation.
Queuing and Transportation
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
1 Validation and Verification of Simulation Models.
Simulation Waiting Line. 2 Introduction Definition (informal) A model is a simplified description of an entity (an object, a system of objects) such that.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
The Poisson process and exponentially distributed service time In real life customers don’t arrive at pre-ordained times as specified in the last tutorial…
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Lecture 4 Mathematical and Statistical Models in Simulation.
Cmpt-225 Simulation. Application: Simulation Simulation  A technique for modeling the behavior of both natural and human-made systems  Goal Generate.

Machine Shop Model. Lecture Two by: Lecturer/ Nada Ahmed.
Graduate Program in Engineering and Technology Management
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
Verification & Validation
1 Lesson 8: Basic Monte Carlo integration We begin the 2 nd phase of our course: Study of general mathematics of MC We begin the 2 nd phase of our course:
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
+ Simulation Design. + Types event-advance and unit-time advance. Both these designs are event-based but utilize different ways of advancing the time.
Chapter 2 – Fundamental Simulation ConceptsSlide 1 of 46 Chapter 2 Fundamental Simulation Concepts.
Modeling and Simulation Discrete-Event Simulation
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Chapter 3 System Performance and Models Introduction A system is the part of the real world under study. Composed of a set of entities interacting.
1 OUTPUT ANALYSIS FOR SIMULATIONS. 2 Introduction Analysis of One System Terminating vs. Steady-State Simulations Analysis of Terminating Simulations.
MODELING EXAMPLES Types of model Conceptual Containing components that have not been clearly Identified in terms of theoretic categories such as state,
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Discrete Event Simulation
Dr. Anis Koubâa CS433 Modeling and Simulation
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
CS 450 – Modeling and Simulation Dr. X. Topics System Analysis Arrival process The Queue The Server The simulation.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Simulation Examples And General Principles Part 2
Copyright © Cengage Learning. All rights reserved. 8 PROBABILITY DISTRIBUTIONS AND STATISTICS.
Copyright © Cengage Learning. All rights reserved. Hypothesis Testing 9.
Lesson 8: Basic Monte Carlo integration
OPERATING SYSTEMS CS 3502 Fall 2017
Virtual University of Pakistan
Modeling and Simulation CS 313
Single-Server Queue Model
Modeling and Simulation CS 313
Modeling and Simulation CS 313
7 INVERSE FUNCTIONS.
Chapter 10 Verification and Validation of Simulation Models
Chapter 5 Statistical Models in Simulation
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Chapter 6 Queuing Models.
Queuing models Basic definitions, assumptions, and identities
Queuing models Basic definitions, assumptions, and identities
Econometric Models The most basic econometric model consists of a relationship between two variables which is disturbed by a random error. We need to use.
DECISION MODELING WITH Prentice Hall Publishers and
2. Stratified Random Sampling.
Lecture 7 Poisson Processes (a reminder)
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Modeling and Simulation CS 313
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Queueing Theory Chapter 1
Modeling and Simulation CS 313
Verification and Validation of Simulation Models
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Single-Server Queue Model Modeling and Simulation CS 313

Specification model The following variables, illustrated in Figure 1.2.2, provide the basis for moving from a conceptual model to a specification model. At their arrival to the service node, jobs are indexed by i = 1, 2, 3, … For each job there are six associated time variables.

Specification model (Arrivals) Rather than specifying the arrival times a1, a2, … explicitly, in some discrete-event simulation applications it is preferable to specify the arrival times r1, r2, …, thereby defining the arrival times implicitly, as shown:

Algorithmic question Given a knowledge of the arrival times a1, a2, ... (or, equivalently, the interarrival times r1, r2, ...), the associated service times s1, s2, ..., and the queue discipline, how can the delay times d1, d2, ... be computed? For some queue disciplines this question is more difficult to answer than for others. If the queue discipline is FIFO, however, then the answer is particularly simple. If the queue discipline is FIFO, di is determined by when ai occurs relative to ci−1.

Algorithmic question There are two cases to consider:

Algorithm The key point in algorithm development is that if the queue discipline is FIFO, then the truth of the expression ai < ci-1 determines whether or not job i will experience a delay. An equation can be written for the delay that depends on the interarrival and service times only. That is: 1

Algorithm Algorithm 1.2.1 If the arrival times a1, a2,… and service times s1, s2,… are known, and if the server is initially idle, then this algorithm computes the delays d1, d2,… in a single-server FIFO service node with infinite capacity.

Algorithm Algorithm 1.2.1 The GetArrival and GetService procedures read the next arrival and service time from a file. Example: Algorithm 1.2.1 used to process n = 10 jobs

Example

Output statistics The purpose of simulation is insight gained by looking at statistics. The importance of various statistics varies on perspective: Job perspective: wait time is most important Manager perspective: utilization is critical Statistics are broken down into two categories: Job-averaged statistics Time-averaged statistics

Job-Averaged Statistics Job-averaged statistics: computed via typical arithmetic mean Average interarrival time: The reciprocal of the average interarrival time, , is the arrival rate; Average service time: The reciprocal of the average service time, , is the service rate.

Output statistics For the 10 jobs in the previous example: Average interarrival time is: The server is not quite able to process jobs at the rate they arrive on average.

Job-Averaged statistics The average delay and average wait are defined as: Recall wi = di + si for all i The point here is that it is sufficient to compute any two of the statistics . . The third statistic can then be computed from the other two, if appropriate.

Job-Averaged statistics From the data in the previous example: Therefore: Recall verification is one (difficult) step of model development Consistency check: used to verify that a simulation satisfies known equations:

Time-Averaged statistics Time-averaged statistics: defined by area under a curve (integration) For SSQ, need three additional functions: l (t): number of jobs in the service node at time t q(t): number of jobs in the queue at time t x(t): number of jobs in service at time t. By definition, l (t) = q(t) + x(t) l (t) = 0, 1, 2, . . . q(t) = 0, 1, 2, . . . x(t) = 0, 1

Time-averaged statistics All three functions are piece-wise constant Figures for q(·) and x(·) can be deduced q(t) = 0 and x(t) = 0 if and only if l(t) = 0

Time-Averaged statistics Over the time interval (0, T ): Since l(t) = q(t) + x(t) for all t > 0 Sufficient to calculate any two of

Time-Averaged statistics The average of numerous random observations (samples) of the number in the service node should be close to Same holds for Server utilization: time-averaged number in service also represents the probability the server is busy.