Introduction to Queueing Theory. Motivation  First developed to analyze statistical behavior of phone switches.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Introduction to Queuing Theory
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Chapter Queueing Notation
1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
Probability, Statistics, and Traffic Theories
TCOM 501: Networking Theory & Fundamentals
Lecture 13 – Continuous-Time Markov Chains
Queuing Models Basic Concepts
Queueing Theory (2). Home Work 12-9 and Due Day: October 31 (Monday) 2005.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory: Part I
Queueing Theory Chapter 17.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Lecture 14 – Queuing Systems
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Introduction to Queuing Theory
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Generalized Semi-Markov Processes (GSMP)
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Stochastic Processes A stochastic process is a model that evolves in time or space subject to probabilistic laws. The simplest example is the one-dimensional.
Introduction to Operations Research
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Introduction to Queueing Theory
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
TexPoint fonts used in EMF.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Modeling and Analysis of Computer Networks
Spreadsheet Models for Managers: Session 12 12/1 Copyright © Richard Brenner Spreadsheet Models for Managers Session 12 Service Systems Single-Server.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
CS433 Modeling and Simulation Lecture 07 – Part 01 Continuous Markov Chains Dr. Anis Koubâa 14 Dec 2008 Al-Imam.
CS352 - Introduction to Queuing Theory Rutgers University.
Chapter 2 Probability, Statistics and Traffic Theories
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
Chap 2 Network Analysis and Queueing Theory 1. Two approaches to network design 1- “Build first, worry later” approach - More ad hoc, less systematic.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Queuing Theory Simulation & Modeling.
Managerial Decision Making Chapter 13 Queuing Models.
Introduction to Queueing Theory
Lecture 14 – Queuing Networks
Models of Traffic Flow 1.
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
System Performance: Queuing
TexPoint fonts used in EMF.
Introduction to Queueing Theory
Stochastic Processes A stochastic process is a model that evolves in time or space subject to probabilistic laws. The simplest example is the one-dimensional.
Presentation transcript:

Introduction to Queueing Theory

Motivation  First developed to analyze statistical behavior of phone switches.

Queueing Systems  model processes in which customers arrive.  wait their turn for service.  are serviced and then leave.

Examples  supermarket checkouts stands.  world series ticket booths.  doctors waiting rooms etc..

Five components of a Queueing system:  1. Interarrival-time probability density function (pdf)  2. service-time pdf  3. Number of servers  4. queueing discipline  5. size of queue.

ASSUME  an infinite number of customers (i.e. long queue does not reduce customer number).

Assumption is bad in :  a time-sharing model.  with finite number of customers.  if half wait for response, input rate will be reduced.

Interarrival-time pdf  record elapsed time since previous arrival.  list the histogram of inter- arrival times (i.e sec, sec...).  This is a pdf character.

Service time  how long in the server?  i.e. one customer has a shopping cart full the other a box of cookies.  Need a PDF to analyze this.

Number of servers  banks have multiserver queueing systems.  food stores have a collection of independent single-server queues.

Queueing discipline  order of customer process- ing.  i.e. supermarkets are first- come-first served.  Hospital emergency rooms use sickest first.

Finite Length Queues  Some queues have finite length: when full customers are rejected.

ASSUME  infinite-buffer.  single-server system with first-come.  first-served queues.

A/B/m notation  A=interarrival-time pdf  B=service-time pdf  m=number of servers.

A,B are chosen from the set:  M=exponential pdf (M stands for Markov)  D= all customers have the same value (D is for deterministic)  G=general (i.e. arbitrary pdf)

Analysibility  M/M/1 is known.  G/G/m is not.

M/M/1 system  For M/M/1 the probability of exactly n customers arriving during an interval of length t is given by the Poisson law.

Poisson’s Law P n (t)  ( t) n n! e  t (1)

Poisson’s Law in Physics  radio active decay – P[k alpha particles in t seconds] – = avg # of prtcls per second

Poisson’s Law in Operations Research  planning switchboard sizes – P[k calls in t seconds] – =avg number of calls per sec

Poisson’s Law in Biology  water pollution monitoring – P[k coliform bacteria in 1000 CCs] – =avg # of coliform bacteria per cc

Poisson’s Law in Transportation  planning size of highway tolls – P[k autos in t minutes] – =avg# of autos per minute

Poisson’s Law in Optics  in designing an optical recvr – P[k photons per sec over the surface of area A] – =avg# of photons per second per unit area

Poisson’s Law in Communications  in designing a fiber optic xmit-rcvr link – P[k photoelectrons generated at the rcvr in one second] – =avg # of photoelectrons per sec.

- Rate parameter  =event per unit interval (time distance volume...)

Poisson’s Law and Binomial Law  The Poisson law results from asymptotic behavior of the binomial law in the limit as: – the prob[event]->0 – # of trials -> infinity – the number of events is small compared with the number of trials

Example: let  interarrival rate  10 cust. per min n  the number of customers 100 t  interval of finite length 

We have: P 10 (t),  10 P 0 (t)  e  t  t  0 P 1 (  t)  te  t a(t)  t  e  t  te  t

a(t)dt t  0    1 proof: e ax dx   e a e  t dt   e  t   e  t  e    e  0  1 ax

a(t)dt  e  t dt a(t)  t prob. V that an interarrival interval is between t and t +  t:

Analysis  Depend on the condition:  we should get 100 custs in 10 minutes (max prob).

In maple: P 10 (t),  10

To obtain numbers with a Poisson pdf, you can write a program:

total=length of sequence lambda = avg arrival rate exit x() = array holding numbers with Poisson pdf local num= Poisson value r9 = uniform random number t9= while loop limit k9 = loop index, pointer to x()

for k9=1 to total num=0 r9=rnd t9=exp(-lambda) while r9 > t9 num = num + 1 r9 = r9 * rnd wend x(k9)=num next k9 (returns a discrete Poisson pdf in x())

Prove:  Poisson arrivals gene- rate an exponential interarrival pdf.

Prove: – prob. that an interarrival interval is between t and t + – This is the prob. of 0 arrivals for time t times the prob. of 1 arrival in Dt: a(t)  t  t

Subst into :  Poisson’s Law: (1)

Now you get:

We already knew:  In the limit as the exponential factor in: approaches 1.

So by subset: = and (2) with a(t)dt t  0    1

e ax dx   e ax a e  t dt   e  t   e  t  e   e  0  1 a(t)dt t  0    1

We have made several assumptions:  exponential interarrival pdf.  exponential service times (i.e. long service times become less likely)

The M/M/1 queue in equilibrium

State of the system:  There are 4 people in the system.  3 in the queue.  1 in the server.

Memory of M/M/1:  The amount of time the person in the server has already spent being served is independent of the probability of the remaining service time.

Memoryless  M/M/1 queues are memoryless (a popular item with queueing theorists, and a feature unique to exponential pdfs). P k  equilibrium prob. that there are k in system

Birth-death system  In a birth-death system once serviced a customer moves to the next state.  This is like a nondeterminis-tic finite- state machine.

State-transition Diagram  The following state-transition diagram is called a Markov chain model.  Directed branches represent transitions between the states.  Exponential pdf parameters appear on the branch label.

Single-server queueing system

Symbles: P 0  mean number of transitions/ sec from state 0 to 1  P 1  mean number of transitions/ sec from state 1 to 0

States  State 0 = system empty  State 1 = cust. in server  State 2 = cust in server, 1 cust in queue etc...

Probalility of Given State  Prob. of a given state is invariant wrt time if system is in equilibrium.  The prob. of k cust’s in system is constant.

Similar to AC  This is like AC current entering a node  is called detailed balancing  the number leaving a node must equal the number entering

Derivation 3 3a 4 4a

by 3a = 4 since 5

then: 6 where = traffic intensity < 1

since all prob. sum to one 6a Note: the sum of a geometric series is 7

 Suppose that it is right, cross multiply and simplify:  k k  0    1 1  So Q.E.D.

subst 7 into 6a P 0  k k  0    1 6a 7aand =prob server is empty 7b

subst into 6 yields: 8

Mean value:  let N=mean number of cust’s in the system  To compute the average (mean) value use: 8a

Subst (8) into (8a) 8 8a 8b we obtain

differentiate (7) wrt k 7 we get 8c

multiply both sides of (8c) by  8d 9

Relationship of, N  as r approaches 1, N grows quickly.

T and  T=mean interval between cust. arrival and departure, including service.

Little’s result:  In 1961 D.C. Little gave us Little’s result: 10

For example:  A public bird bath has a mean arrival rate of 3 birds/min in Poisson distribution.  Bath-time is exponentially distributed, the mean bath time being 10 sec/bird.

Compute how long a bird waits in the Queue (on average): = mean arrival rate = mean service rate

Result:  So the mean service-time is 10 seconds/bird =(1/ service rate) sec for wait + service

Mean Queueing Time  The mean queueing time is the waiting time in the system minus the time being served, 20-10=10 seconds.

M/G/1 Queueing System  Tannenbaum says that the mean number of customers in the system for an M/G/1 queueing system is: 11 This is known as the Pollaczek-Khinchine equation.

What is C b of the service time.

Note:  M/G/1 means that it is valid for any service-time distribution.  For identical service time means, the large standard deviation will give a longer service time.

Introduction to Queueing Theory