SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM

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

General Simulation Principles

Numerical approach estimate

Module 7:Application of stochastic processes in queueing theory Lecture 29:Application of stochastic processes in Queueing Theory

A Study of the Performance Tradeoffs of a Tape Archive

Queuing Systems. 1 Lecturer: Hawraa Sh. Modeling & Simulation- Lecture -4-21/10/2012

Introduction to Queueing Theory for Computer Scientists

Lecture 8: Using Mathematica to Simulate Markov Processes. Pasi Lassila Department of Communications and Networking

Section 5.2: Next Event Simulation Examples

Queuing Networks Modeling Virtual Laboratory

Modeling and Simulation (An Introduction)

Overall Plan of Simulation and Modeling I. Chapters

Lecture: Simulation. of Manufacturing Systems. Sivakumar AI. Simulation. SMA6304 M2 ---Factory Planning and scheduling. Simulation - A Predictive Tool

Introduction to Queuing Systems

What We ll Do... Random

Simulation Models for Manufacturing Systems

A Case Study. Objective

Discrete-event simulation

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

CHAPTER 5 NEXT-EVENT SIMULATION

Process- Concept &Process Scheduling OPERATING SYSTEMS

Probability Models.S4 Simulating Random Variables

CNCL: Contents. Extra material (1)

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Lecture 5: Performance Analysis I

UNIT 4: QUEUEING MODELS

Chair for Network Architectures and Services Prof. Carle Department of Computer Science TU München. Übungsblatt 2

Extend is a complete simulation environment that runs under Windows. It supports both continuous and discrete simulation.

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

Analysis of Simulation Results

Chapter 3 General Principles. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

CS551 Warm-up Project #2

EP2200 Queueing theory and teletraffic systems

A Rant on Queues. Van Jacobson. July 26, MIT Lincoln Labs Lexington, MA

Statistics Worksheet 1 - Solutions

Subject Name: System Modeling & Simulation. Prepared By : Ms. Pramela Devi( ASCP) Department : Computer Science & Engineering

Monte Carlo Hospital

Router s Queue Management

Congestion Control 3/16/09

Course Syllabus. Operating Systems

Stochastic Processing Networks: What, Why and How? Ruth J. Williams University of California, San Diego

Chapters 1, 2 & 3: A Brief Introduction. Barry L. Nelson Northwestern University July 2017

Student Name: University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science

EP2210 Scheduling. Lecture material:

Page Replacement Algorithms

Fundamentals of Queueing Models

1 More configuration model

Next-Event Simulation

Quality of Service (QoS)

Probability and Statistics for Final Year Engineering Students

>>> Assignment #4 for Simulation (CAP 4800) <<<

Teletraffic theory I: Queuing theory

Scheduling Jobs. Activating Bulk Provisioning Service CHAPTER

Virtual Memory. CSCI 315 Operating Systems Design Department of Computer Science

Multiple Access Communications. EEE 538, WEEK 11 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

CS370 Operating Systems

Game Traffic Analysis: An MMORPG Perspective

Scheduling. Scheduling algorithms. Scheduling. Output buffered architecture. QoS scheduling algorithms. QoS-capable router

SIGMA Tutorial. March, 2013 VMS Technology, Inc.

Credit-Based Fair Queueing (CBFQ) K. T. Chan, B. Bensaou and D.H.K. Tsang. Department of Electrical & Electronic Engineering

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

Announcements. Program #1. Reading. Due 2/15 at 5:00 pm. Finish scheduling Process Synchronization: Chapter 6 (8 th Ed) or Chapter 7 (6 th Ed)

Trace-Based Evaluation of Job Runtime and Queue Wait Time Predictions in Grids

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Introduction to Queueing Theory. Deriving Little s Law

Performance Evaluation

Uniprocessor Scheduling. Basic Concepts Scheduling Criteria Scheduling Algorithms. Three level scheduling

!! What is virtual memory and when is it useful? !! What is demand paging? !! When should pages in memory be replaced?

048866: Packet Switch Architectures

Comp 310 Computer Systems and Organization

Applied Algorithm Design Lecture 3

Chapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Event Scheduling Algorithm. Event Notice and Future Event List. Discrete Event Simulation. Event Scheduling Based on FEL

The War Between Mice and Elephants

CS551 Router Queue Management

Second Midterm Exam March 21, 2017 CS162 Operating Systems

BISS 2013: Simulation for Decision Support

Fundamental Trade-offs in Aggregate Packet Scheduling

EP2200 Queueing theory and teletraffic systems

ADIKAVI NANNAYA UNIVERSITY:: RAJAMAHENDRAVARAM II BTech (CSE) I Semester BTCSE301 DIGITAL LOGIC DESIGN MODEL QUESTION PAPER

Subject Name: OPERATING SYSTEMS. Subject Code: 10EC65. Prepared By: Kala H S and Remya R. Department: ECE. Date:

Principles of Product Development Flow. Part 3: Managing Queues

CSE 373 Sample Midterm #2 (closed book, closed notes, calculators o.k.)

RTP/RTCP protocols. Introduction: What are RTP and RTCP?

Aperiodic Task Scheduling

Chapter 6: CPU Scheduling. Operating System Concepts 9 th Edition

Dynamic traffic models

Stop-and-Go Service Using Hierarchical Round Robin

Time-Step Network Simulation

Simulation. Event scheduling approach. A more complicated example. The problem. Events needed. State description. What is needed: A state description

>>> SOLUTIONS <<< Answer the following question regarding the basics of systems and performance modeling.

Advanced Internet Technologies

ENGR Socolofsky

Scheduling Jobs. Activating Bulk Provisioning Service CHAPTER

Use of Extreme Value Statistics in Modeling Biometric Systems

Unit 2 Packet Switching Networks - II

Read Chapter 4 of Kurose-Ross

ECE SPRING NOTE; This project has two parts which have different due dates.

Multi-threaded, discrete event simulation of distributed computing systems

Foundations of Artificial Intelligence

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

Transcription:

SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM Will show how to simulate a specific version of the single-server queuing system Though simple, it contains many features found in all simulation models

1- Problem Statement Recall single-server queuing model Assume interarrival times are independent and identically distributed (IID) random variables Assume service times are IID, and are independent of interarrival times Queue discipline is FIFO Start empty and idle at time 0 First customer arrives after an interarrival time, not at time 0 Stopping rule: When nth customer has completed delay in queue (i.e., enters service) n will be specified as input

1- Problem Statement (cont d.) Quantities to be estimated Expected average delay in queue (excluding service time) of the n customers completing their delays Why expected? Expected average number of customers in queue (excluding any in service) A continuous-time average Area under Q(t) = queue length at time t, divided by T(n) = time simulation ends see book for justification and details Expected utilization (proportion of time busy) of the server Another continuous-time average Area under B(t) = server-busy function (1 if busy, 0 if idle at time t), divided by T(n) justification and details in book Many others are possible (maxima, minima, time or number in system, proportions, quantiles, variances )

2- Intuitive Explanation Given (for now) interarrival times (all times are in minutes): Given service times: n = 6 delays in queue desired Hand simulation: Display system, state variables, clock, event list, statistical counters all after execution of each event Use above lists of interarrival, service times to drive simulation Stop when number of delays hits n = 6, compute output performance measures

Status shown is after all changes have been made in each case

Final output performance measures: Average delay in queue = 5.7/6 = 0.95 min./cust. Time-average number in queue = 9.9/8.6 = 1.15 custs. Server utilization = 7.7/8.6 = 0.90 (dimensionless)

3- Program Organization and Logic C program to do this model (FORTRAN as well is in book) Event types: 1 for arrival, 2 for departure Modularize for initialization, timing, events, library, report, main Changes from hand simulation: Stopping rule: n = 1000 (rather than 6) Interarrival and service times drawn from an exponential distribution (mean b = 1 for interarrivals, 0.5 for service times) Density function Cumulative distribution function

3- Program Organization and Logic (cont d.) How to draw (or generate) an observation (variate) from an exponential distribution? Proposal: Assume a perfect random-number generator that generates IID variates from a continuous uniform distribution on [0, 1] Algorithm: 1. Generate a random number U 2. Return X = b ln U Proof that algorithm is correct:

ALTERNATIVE APPROACHES TO MODELING AND CODING SIMULATIONS Parallel and distributed simulation Various kinds of parallel and distributed architectures Break up a simulation model in some way, run the different parts simultaneously on different parallel processors Different ways to break up model By support functions random-number generation, variate generation, event-list management, event routines, etc. Decompose the model itself; assign different parts of model to different processors message-passing to maintain synchronization, or forget synchronization and do rollbacks if necessary virtual time Web-based simulation Central simulation engine, submit jobs over the web Wide-scope parallel/distributed simulation