Docsity

Introduction to Queueing Theory, Lecture notes of Probability and Statistics

Partial preview of the text

Download Introduction to Queueing Theory and more Lecture notes Probability and Statistics in PDF only on Docsity!

Queueing Theory

Chapter 17

Why Study Queueing Theory

  • Queues (waiting lines) are a part of everyday life.
    • Buying a movie ticket, airport security, grocery check out, mail a package, get a cup of coffee etc.
    • It is estimated that Americans wait 37,000,000,000 hours per year waiting in queues!!!
  • More generally, great inefficiencies occur because of other types of waiting
    • Machines waiting to be repaired leads to loss of production
    • Vehicles waiting to load or unload delays subsequent shipments
    • Airplanes waiting to take off or land
    • Delays in telecommunication transmissio.
  • Queueing theory uses queueing models to represent various types of systems that involve waiting in lines. The models investigate how the system will perform under a variety of conditions. Decision Analysis-

Examples and Applications

  • Call centers (“help” desks, ordering goods)
  • Manufacturing
  • Banks
  • Telecommunication networks
  • Internet service
  • Transportation
  • Hospitals
  • Restaurants
  • Other examples….

Labeling Convention (Kendall-Lee)

Interarrival time distribution Number of servers Queueing discipline System capacity Calling population size Service time distribution M Markovian (exponential interarrival times, Poisson number of arrivals) D Deterministic Ek Erlang with shape parameter k G General FCFS first come, first served LCFS last come, first served SIRO service in random order GD general discipline Priority queues Round robin Finite Capacity K Infinite Capacity +∞ Finite Population N Infinite Population +∞

Terminology and Notation

  • State of the system Number of customers in the queueing system (includes customers in service)
  • Queue length Number of customers waiting for service = State of the system - number of customers being served
  • N(t) = State of the system at time t, t ≥ 0
  • P n (t) = Probability that exactly n customers are in the queueing system at time t
  • L = Expected number of customers in the system
  • Lq = Expected number of customers in the queue

Terminology and Notation

  • λ n = Mean arrival rate (expected # arrivals per unit time) of new customers when n customers are in the system
  • s = Number of servers (parallel service channels)
  • μ n = Mean service rate for overall system (expected # customers completing service per unit time) when n customers are in the system Note: μn represents the combined rate at which all busy servers (those serving customers) achieve service completion.

Example

  • Arrival rate depends on the number n of customers in the system λ 0 : 6 customers/hour λ 1 : 5 customers/hour λ 2 : 4 customers/hour
  • Service rate is the same for all n μ 1 : 2 customers/hour μ 2 : 2 customers/hour μ 3 : 2 customers/hour

λ 0 λ 1 λ 2 μ 1 μ 2 μ 3 …

Terminology and Notation

When arrival and service rates are constant for all n , λ = mean arrival rate (expected # arrivals per unit time) μ = mean service rate for a busy server 1/ λ = expected interarrival time 1/ μ = expected service time ρ = λ/sμ = utilization factor for the service facility = expected fraction of time the system’s service capacity (sμ) is being utilized by arriving customers (λ)

Terminology and Notation

Steady State When the system is in steady state , then Pn = probability that exactly n customers are in the queueing system L = expected number of customers in queueing system = Lq = expected queue length (excludes customers being served) = ! " n = 0 nP n ! " =

n s ( n s ) P n

λ 0 λ 1 λ 2 μ 2 μ 3 … μ 1

Example: Utilization

  • Suppose λ = 6 customers/hour and μ = 2 customers/hour
  • Utilization is ρ= λ/(sμ)
  • If one server, s=1, ρ= λ/μ = 6/2 = 3, utilization > 1, so steady state will never be reached, queue length will increase to infinity in the long run
  • If three servers, s=3, ρ= λ/(3μ) = 1 utilization = 1, queue is unstable and may never reach steady state
  • If four servers, s=4, ρ= λ/(4μ) = 3/ utilization < 1, the queue will reach steady state and L is finite

Queueing Theory-

Little’s Formula

  • Assume λn=λ and μn=μ (arrival and service rates constant for all n )
  • In a steady-state queue, Expected number in system = (Arrival rate) x (Expected time in system) Expected time in system = (Expected time in queue) + (Expected time in service)

L = " W

L

q

= " W

q Demonstrates the relationships between L, W, Lq, and Wq Intuitive Explanation:

    • C C C C Server I have just arrived, and because the system is in steady state, I expect to wait W until I leave
  1. C C C C Server * As I leave, the number of customers in the system is the number that arrived while I was in the system. Because the system is in steady state, I expect this number to be L. But, if I expect to wait W, and the average arrival rate is λ, then I expect to see λW arrivals while I am in the system, so L= λW! me me

W = W

q

Little’s Formula (continued)

  • This relationship also holds true for λ ( expected arrival rate) when λn are not equal.

Recall, Pn is the steady state probability of having n customers in the system

L = " W

Lq = " Wq

where " = "

n

P

n n = 0

$

λ 0 λ 1 λ 2 μ 1 μ 2 μ 3 …

Queueing Theory-

Exponential Distribution Reviewed

If T ~ exponential(α), then

&%

t

e t

f t

t T ! F T ( t ) = P ( T " t ) = # e $ # u du u = 0 t % =^1 $^ e $ # t P ( T > t )= 1 $ 1 $ e $ # t ( ) =^ e $ # t E[T] = Var(T) =

2

α e ! 2! 1 ! 1 fT(t) 1 ! 1 FT(t) 1-e-

Property 1

Strictly Decreasing

The pdf of exponential, f

T

(t), is a strictly decreasing function

  • A picture of the pdf: P ( 0 " T "! t )> P ( t " T " t +! t ) α e ! 2! 1 ! 1 fT(t) t ! Area = P T < 1 2 "

$ % & ' ( =^ 0. ! Area = P 1 2 " < T < 1 "

$ % & ' ( =^ 0. ! Area = P T > 1 "

$ % & ' ( =^ 0.