Computer Networks More general queuing systems

Similar documents
ECE 3511: Communications Networks Theory and Analysis. Fall Quarter Instructor: Prof. A. Bruce McDonald. Lecture Topic

Intro to Queueing Theory

Link Models for Circuit Switching

M/G/1 and M/G/1/K systems

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Queuing Theory. Using the Math. Management Science

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Chapter 2 Queueing Theory and Simulation

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Performance Evaluation of Queuing Systems

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

Introduction to queuing theory

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

Queuing Networks: Burke s Theorem, Kleinrock s Approximation, and Jackson s Theorem. Wade Trappe

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

P (L d k = n). P (L(t) = n),

16:330:543 Communication Networks I Midterm Exam November 7, 2005

Queueing Theory and Simulation. Introduction

Chapter 5: Special Types of Queuing Models

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

QUEUING SYSTEM. Yetunde Folajimi, PhD

GI/M/1 and GI/M/m queuing systems

Data analysis and stochastic modeling

NATCOR: Stochastic Modelling

M/G/1 and Priority Queueing

Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

Kendall notation. PASTA theorem Basics of M/M/1 queue

Introduction to queuing theory

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

UNIVERSITY OF YORK. MSc Examinations 2004 MATHEMATICS Networks. Time Allowed: 3 hours.

CS418 Operating Systems

Simple queueing models

Systems Simulation Chapter 6: Queuing Models

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Introduction to Markov Chains, Queuing Theory, and Network Performance

Link Models for Packet Switching

Chapter 5. Elementary Performance Analysis

Multiaccess Communication

Part I Stochastic variables and Markov chains

Figure 10.1: Recording when the event E occurs

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

Solutions to COMP9334 Week 8 Sample Problems

Queueing Theory (Part 4)

Multiaccess Problem. How to let distributed users (efficiently) share a single broadcast channel? How to form a queue for distributed users?

Queueing Theory. VK Room: M Last updated: October 17, 2013.

requests/sec. The total channel load is requests/sec. Using slot as the time unit, the total channel load is 50 ( ) = 1

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Slides 9: Queuing Models

Computer Systems Modelling

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Introduction to Queuing Theory. Mathematical Modelling

Classification of Queuing Models

Lecture 20: Reversible Processes and Queues

Introduction to Queueing Theory

Analysis of A Single Queue

Pollaczek-Khinchin formula for the M/G/I queue in discrete time with vacations

Lesson 7: M/G/1 Queuing Systems Analysis

M/G/1 queues and Busy Cycle Analysis

Probability and Statistics Concepts

Answers to the problems from problem solving classes

Queues and Queueing Networks

Stationary remaining service time conditional on queue length

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines.

Markov Chain Model for ALOHA protocol

Non Markovian Queues (contd.)

4.7 Finite Population Source Model

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

λ λ λ In-class problems

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

A discrete-time priority queue with train arrivals

Stochastic Models of Manufacturing Systems

ISyE 6650 Test 2 Solutions

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Equivalent Models and Analysis for Multi-Stage Tree Networks of Deterministic Service Time Queues

Introduction to Queueing Theory

Richard C. Larson. March 5, Photo courtesy of Johnathan Boeke.

Introduction to Queuing Networks Solutions to Problem Sheet 3

THE ever-growing Internet traffic generated by emerging

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Classical Queueing Models.

Part II: continuous time Markov chain (CTMC)

Section 1.2: A Single Server Queue

Contents LIST OF TABLES... LIST OF FIGURES... xvii. LIST OF LISTINGS... xxi PREFACE. ...xxiii

ISyE 2030 Practice Test 2

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

2905 Queueing Theory and Simulation PART IV: SIMULATION

Continuous Time Processes

Basic Queueing Theory

Chapter 3 Balance equations, birth-death processes, continuous Markov Chains

A Vacation Queue with Additional Optional Service in Batches

Operations Research Letters. Instability of FIFO in a simple queueing system with arbitrarily low loads

1 IEOR 4701: Continuous-Time Markov Chains

Stochastic Models in Computer Science A Tutorial

Elementary queueing system

Single-Server Service-Station (G/G/1)

Transcription:

Computer Networks More general queuing systems Saad Mneimneh Computer Science Hunter College of CUNY New York M/G/ Introduction We now consider a queuing system where the customer service times have a general distribution - not necessarily exponential as in the M/M/ system. We denote such a system by M/G/. In M/G/, customers still arrive according to a Poisson process with rate λ. We assume that customers are served in the order they arrive (FIFO) and that X i is the service time of the i th customer. We assume further that X i are IID and independent of the interarrival times. Let X = E[X] = = Average service time µ X 2 = E[X 2 ] The goal is to derive the Pollaczek-Khinchin (P-K) formula: 2( ρ) where W is the expected waiting time in the queue (we assume here an infinite queue) and ρ = λ/µ = λx.

2 The Pollaczek-Khinchin (P-K) formula We will derive the P-K formula using the concept of mean residual time. While this derivation obtains only the system averages, it is simpler and more insightful than other derivations that can give a probability distribution of the system occupancy. Denote the following: W i = waiting time in queue for customer i N i = number of customers in queue seen by customer i upon arrival i = residual service time seen by customer i, i.e. the remaining time until the departure of the customer already being served upon the arrival of customer i Then (FIFO), W i = i + i j=i N i X j Assuming that X i Ni,..., X i are independent of N i, E[W i ] = E[ i ] + E[N i ]E[X j N i ] = E[ i ] + E[N i ]E[X] = E[ i ] + XE[N i ] Let W,, and N Q be the corresponding limits as customer index i or time increases to infinity. We assume that these limits exist. Then, by the PASTA property of Poisson arrivals, these are also the averages seen by an outside observer: By Little s theorem, N Q = λw, so + µ N Q + ρw We now compute by a graphical argument. ρ (t) x x x 2 x m(t) Figure : esidual service time

Let (t) be the residual service time as a function of time, and let t be a time for which (t) = 0. As we can see from the above figure, t = t t 0 (τ)dτ = t m(t) i= 2 X2 i = m(t) m(t) i= 2 X2 i t m(t) Taking the limit as t, and applying the law of large numbers (we also implicitly assume that time averages can be replaced by ensemble averages): = 2 Therefore, 2( ρ) M/G/ (general): 2( ρ) M/M/ (memoryless): X 2 = 2/µ 2 M/D/ (deterministic): X 2 = /µ 2 ρ µ( ρ) ρ 2µ( ρ) Althoug we assumed FIFO, the P-K formula is valid for any order of sevice as long as the order is independent of the service times of individual customers (e.g. serving smaller jobs first or larger jobs first would make the order dependent on service times). 3 Example : M/G/ system What is the probability that the system is empty? By Little s theorem, the average number of customers in service is λx P (systemisempty) = λx What is the average time I (for idle) between busy periods? consider the end of a busy period, since arrivals are Poisson (memoryless), the next arrival is exponentially distributed (which signals the beginning of next busy period) I = /λ What is the average time B of a busy period? B B+I = λx B = X λx What is the average number of customers served during a busy period from above λx

4 Example 2: sliding window AQ Assume Go back n with one sided error probability of error is p ACKs always arrive timeout = n (for retransmissions) When packet i is successfully transmitted, packet i + is successfully transmitted + kn time units later with probability ( p)p k Transmitter s queue behaves like M/G/ P (X = + kn) = ( p)p k X = + np p, X2 = + 2np p + n2 (p+p 2 ) ( p) 2 A packet waits in window on average 2( λx) 5 M/G/ with vacations (after some calculation) Suppose that at the end of each busy period, the M/G/ server goes on vacation for some random interval of time. If the system is still idle at the completion of a vacation, a new vacation start immediately. This is useful for modeling slotted systems as we will see in the following section. Let V, V 2,..., V l(t) be the durations of vacations at up to time t. The following formula is still valid: ( ρ) where is now the residual time for completion of the service or vacation in process when the customer arrives. We can compute using a similar graphical argument as before. t = t 0 (τ)dτ = t m(t) i= t = m(t) m(t) i= 2 X2 i t m(t) 2 X2 i + t + l(t) t l(t) i= 2 V i 2 l(t) i= 2 V i 2 l(t) Taking the limit as t (assuming V i are IID and applying the law of large numbers): But = 2 + 2 V 2 l(t) lim t t t( ρ) lim = V (why?) t l(t)

Therefore, = 2 + ( ρ)v 2 2 V ρ = 2( ρ) + V 2 2V 6 Example 3: slotted FDM Consider m sessions, each a Poisson process with rate λ/m, frequency division multiplexed on a channel. The transmission time per packet is m time units on each subchannel. M/D/ λm λ/m 2( λ) (X = /µ = m, ρ = µ = λ). If the system is slotted, i.e. packets can only leave at times m, 2m, 3m, etc..., then we can view this as M/D/ with vacations. If no packet is waiting, server takes a vacation of m units, V = m, V 2 = m 2. M/D/ with vacations λm 2( λ) + m 2 = m 2( λ).