SlideShare a Scribd company logo
1 of 22
Download to read offline
Queueing Theory
- A primer
Harry Perros

Service Management - Harry Perros

1

• Queueing theory deals with the analysis of queues
(or waiting lines) where customers wait to receive
a service.
• Queues abound in everyday life!
–
–
–
–
–
–

Supermarket checkout
Traffic lights
Waiting for the elevator
Waiting at a gas station
Waiting at passport control
Waiting at a a doctor’s office
– Paperwork waiting at somebody’s office to be
processed
Service Management - Harry Perros

2

1
• There are also queues that we cannot see (unless
we use a software/hardware system), such as:
– Streaming a video: Video is delivered to the computer
in the form of packets, which go through a number of
routers. At each router they have to waiting to be
transmitted out
– Web services: A request issued by a user has to be
executed by various software components. At each
component there is a queue of such requests.
– On hold at a call center

Service Management - Harry Perros

3

Measures of interest
• Mean waiting time
• Percentile of the waiting time, i.e. what percent of
the waiting customers wait more than x amount of
time.
• Utilization of the server
• Throughput, i.e.number of customers served per
unit time.
• Average number of customers waiting
• Distribution of the number of waiting customers,
i.e. Probability [n customers wait], n=01,1,2,…
Service Management - Harry Perros

4

2
Reality vs perception
• Queueing theory deals with actual waiting
times.
• In certain cases, though, it’s more important
to deal with the perception of waiting.. For
this we need a psychological perspective !
(Famous example, that “minimized” waiting
time for elevators!!)
Service Management - Harry Perros

5

Notation - single queueing systems

Queue

Single Server

Queue
Multiple Servers

Multi-Queue

Single Server

Service Management - Harry Perros

Multi-Queue

Multiple Servers
6

3
Notation - Networks of queues

Tandem queues

Arbitrary topology of queues
Service Management - Harry Perros

7

The single server queue

Calling population:
finite or infinite

Service discipline:
FIFO

Queue: Finite or
infinite capacity

Service Management - Harry Perros

8

4
Queue formation
• A queue is formed when customers arrive faster
than they can get served.

• Examples:
– Service time = 10 minutes, a customer arrives every 15
minutes ---> No queue will ever be formed!
– Service time = 15 minutes, a customer arrives every 10
minutes ---> Queue will grow for ever (bad for
business!)
Service Management - Harry Perros

9

• Service times and inter-arrival times are rarely
constant.
• From real data we can construct a histogram of the
service time and the inter-arrival time.
Mean

Service times

Service Management - Harry Perros

Mean

Inter-arrival times

10

5
• If real data is not available, then we assume a
theoretical distribution.
• A commonly used theoretical distribution in
queueing theory is the exponential distribution.
Mean

Service Management - Harry Perros

11

Stability condition
• A queue is stable, when it does not grow to
become infinite over time.
• The single-server queue is stable if on the
average, the service time is less than the
inter-arrival time, i.e.
mean service time < mean inter-arrival time

Service Management - Harry Perros

12

6
Behavior of a stable queue
Mean service time < mean inter-arrival time

No. in
queue

<-- Busy period --> <- Idle ->
period

Time -->

When the queue is stable, we will observe busy and idle
periods continuously alternating
Service Management - Harry Perros

13

Behavior of an unstable queue
Mean service time > mean inter-arrival time

No. in
queue

Time -->

Queue continuously increases..
This is the case when a car accident occurs on the highway
Service Management - Harry Perros

14

7
Arrival and service rates: definitions
• Arrival rate is the mean number of arrivals per
unit time = 1/ (mean inter-arrival time)
– If the mean inter-arrival = 5 minutes, then the arrival
rate is 1/5 per minute, i.e. 0.2 per minute, or 12 per
hour.

• Service rate is the mean number of customers
served per unit time = 1/ (mean service time)
– If the mean service time = 10 minutes, then the service
rate is 1/10 per minute, i.e. 0.1 per minute, or 6 per
hour.
Service Management - Harry Perros

15

Throughput
• This is average number of completed jobs
per unit.
• Example:
– The throughput of a production system is the
average number of finished products per unit
time.

• Often, we use the maximum throughput as a
measure of performance of a system.
Service Management - Harry Perros

16

8
Throughput of a single server queue
• This is the average number of jobs that
depart from the queue per unit time (after
they have been serviced)
• Example: The mean service time =10 mins.
– What is the maximum throughput (per hour)?
– What is the throughput (per hour) if the mean
inter-arrival time is:
• 5 minutes ?
• 20 minutes ?
Service Management - Harry Perros

17

Throughput

Throughput vs the mean inter-arrival time.
Service rate = 6
Max. throughput

6

Arrival rate -->
6

Stable queue:
whatever comes in goes out!

Service Management - Harry Perros

Unstable queue:
More comes in than goes out!

18

9
Server Utilization=
Percent of time server is busy =
(arrival rate) x (mean service time)
• Example:
– Mean inter-arrival = 5 mins, or arrival rate is 1/5 = 0.2
per min. Mean service time is 2 minutes
– Server Utilization = Percent of time the server is busy:
0.2x2=0.4 or 40% of the time.
– Percent of time server is idle?
– Percent of time no one is in the system (either waiting
or being served)?
Service Management - Harry Perros

19

The M/M/1 queue
• M implies the exponential distribution
(Markovian)
• The M/M/1 notation implies:
–
–
–
–
–

a single server queue
exponentially distributed inter-arrival times
exponentially distributed service times.
Infinite population of potential customers
FIFO service discipline

Service Management - Harry Perros

20

10
The exponential distribution

f(x)

x

• f(x) = λ e -λx, where λ is the arrival / service rate.
• Mean = 1/ λ
• Memoryless property - Not realistic, but makes
the math easier!
Service Management - Harry Perros

21

The Poisson distribution
• Describes the number of arrivals per unit time, if
the inter-arival time is exponential
• Probability that there n arrivals during a unit time:
Prob(n) = (λt)n e- λt
2

3

4

2

Time t -->
Exponentially distributed
inter-arrival times
with mean 1/ λ

Service Management - Harry Perros

22

11
Queue length distribution of an M/M/1 queue
µ

λ

• Probability that there are n customers in the
system (i.e., queueing and also is service):
Prob [n] = ρn (1-ρ), n=0,1,2,..
where ρ is known as the traffic intensity and
ρ = λ/µ
Service Management - Harry Perros

23

Performance measures
• Prob. system (queue and server) is empty:
Prob [n=0] = 1-ρ
• Percent of time server is idle = 1-ρ
• Server utilization = percent of time server is busy
=ρ
• Throughput = λ

Service Management - Harry Perros

24

12
Little’s Law

λ

L, W

Denote the mean number of customers in the
system as L and the mean waiting time in the
system as W. Then:
λW=L
Service Management - Harry Perros

25

Mean waiting time and
mean number of customers
• Mean number of customers in the system: L = λ /( µ−λ)
• Mean waiting time in the system (queueing and receiving
service) obtained using Little’s Law: W = 1 /( µ−λ)

W

λ −>
Service Management - Harry Perros

µ

26

13
•

Problem 1: Customers arrive at a theater ticket
counter in a Poisson fashion at the rate of 6 per
hour. The time to serve a customer is distributed
exponentially with mean 10 minutes.
•
•
•
•
•
•

Prob. a customer arrives to find the ticket counter
empty (i.e., it goes into service without queueing)
Prob. a customer has to wait before s/he gets served
Mean number of customers in the system (waiting
and being served)
Mean time in the system
Mean time in the queue
Server utilization

Service Management - Harry Perros

27

1. Problem 1 (Continued)
•

How many parking spaces we need to construct so
that 90% of the customers can find parking?
n
0
1
2
3
4

P(n)

Service Management - Harry Perros

P(k≤n)

28

14
• Problem 2: Design of a drive-in bank facility
People who are waiting in line may not realize how long
they have been waiting until at least 5 minutes have
passed. How many drive-in lanes we need to keep the
average waiting time less than 5 minutes?
- Service time: exponentially distributed with mean 3 mins
- Arrival rate: Poisson with a rate of 30 per hour
M/M/1

1/µ=3

...

λ=30/hr

M/M/1

1/µ=3

Service Management - Harry Perros

29

• Answer:
Mean waiting time in the system (queueing and receiving
service) : W = 1 /( µ−λ).
Mean waiting time in the queue (excluding service time) :
Wq = 1 /( µ−λ) − 1/µ = λ /µ( µ−λ)
Results
1 Teller -> M/M/1 queues -> Wq=
2 Tellers -> 2 M/M/1 queues -> Wq=
3 Tellers -> 3 M/M/1 queues -> Wq=
4 Tellers -> 4 M/M/1 queues -> Wq=

Service Management - Harry Perros

30

15
• Problem 3:
If both customers and servers are employees of the same
company, then the cost of employees waiting (lost
productivity) and the cost of the service is equally
important to the company.
Employees arrive at a service station at the rate of 8/hour.
The cost of providing the service is a function of the
service rate, i.e. Cs=f(service rate)=10µ per hour. The cost
to the company for an employee waiting in the system
(queue and also getting served) is Cw = $50/hour.
Assuming an M/M/1 queue what is the value of the mean
service time that minimizes the total cost ?
Service Management - Harry Perros

31

• Service cost Cs = 10µ
• Waiting cost Cw = 50 λ W = 400 [1/(m-8)]
• Total cost: Cs + Cw
10µ

µ

400/(µ-8)

Sum

10

200

300

11

110

133.333

243.333

12

120

100

220

13

130

80

210

14

140

66.6666

206.666

15

150

57.1428

207.142

16

160

50

210

17

170

44.4444

214.444

18

180

40

220

19

190

36.3636

226.363

20

200

33.3333

233.333

21

210

30.7692

240.769

22

Service Management - Harry Perros

100

220

28.5714

248.571

32

16
Networks of queues
• Typically, the flow of customers through a system may
involve a number of different service stations.
• Examples:
–
–
–
–

Flow of IP packets through a computer network
Flow of orders through a manufacturing system
Flow of requests/messages through a web service system
Flow of paperwork through an administration office

• Such systems can be depicted by a network of queues

Service Management - Harry Perros

33

Queues can be linked together to form a network
of queues which reflect the flow of customers
through a number of different service stations

p
1

p12

p23

4

p

34

p 12

External
arrivals

p20
p 24

12

2

3

p30
Queueing
node

Branching
probabilities

Service Management - Harry Perros

Departure to
outside

34

17
Traffic flows
λ2=5/hr

µ2=20/hr
0.70

2

0.30

0.3
1

λ1=10/hr

4

0.3

µ1=20/hr

3
λ3=15/hr

•
•
•
•
•

µ4=25/hr

0.5

0.4

0.5

µ3=30/hr

What is the total (effective) arrival rate to each node?
Is each queue stable?
What is the total departure rate from each node to the outside ?
What is the total arrival to the network?
What is the total departure from the network?

Service Management - Harry Perros

35

Traffic flows - with feedbacks
λ2=5/hr

µ2=20/hr
2

0.25
0.5

0.3
1

λ1=10/hr

0.25

4

0.3

µ1=20/hr

0.2
0.4

λ3=15/hr

•
•
•
•
•

3

0.3

µ4=25/hr

0.5

µ3=30/hr

What is the total (effective) arrival rate to each node?
Is each queue stable?
What is the total departure rate from each node to the outside ?
What is the total arrival to the network?
What is the total departure from the network?

Service Management - Harry Perros

36

18
Traffic equations
• M nodes; λi is the external arrival rate into node i, and pij
are the branching probabilities. Then the effective arrival
rates can be obtained as follows:
_

M _

"1 = "1 + # "i pi,1
i=1

...
_

M _

" M = "M + # "i pi,M
i=1

Service Management - Harry Perros

37

!

Solution
• Assumptions:
– Each external arrival stream is Poisson distributed.
– The service time at each node is exponentially
distributed.

• Each node can be analyzed separately as an
M/M/1 queue with an arrival rate equal to the
effective (total) arrival rate to the node and the
same original service rate

Service Management - Harry Perros

38

19
λ2= 12.42 /hr

4

µ2=20/hr

λ2=5/hr

µ2=20/hr
2

0.25
0.5

0.3

λ1=10/hr

1

0.25

4

0.3

µ1=20/hr

0.2
0.4

λ3=15/hr

3

µ4=50/hr

0.3
0.5

µ3=30/hr
λ4= 15/hr

λ1=10/hr

1

µ1=20/hr
λ3=22.10 /hr

4

µ4=25/hr

3

µ3=30/hr
Service Management - Harry Perros

39

• For the previous example calculate
–
–
–
–

Prob. each node is empty
Mean number of customers in each node
Mean waiting time in each node
Assume a customer arrives at node 1, then it
visits node 2, 3, and 4, and then it departs.
What is the total mean waiting time of the
customer in the network?
– What is the probability that at each node it will
not have to wait?

Service Management - Harry Perros

40

20
Problem: Having fun at Disneyland !
• A visit at Disney Land during the Christmas
Holidays involves queueing up to buy a
ticket, and then once in the park, you have
to queue up for every theme.
• Does one spends more time queueing up or
enjoying the themes? That depends on the
arrival rates of customers and service times
(i.e. the time to see a theme)
Service Management - Harry Perros

41

µi=30/hr
i=5,6,7,8
0.25

5

0.1

µi=30/hr
i=1,2,3,4

0.4

Haunted
house 0.5

1
0.25
0.25

2

0.25

λ1=100/hr
0.25

6 0.1
Thunder
0.4
mountain 0.5

3
4

0.25

Seven
dwarfs

Food
counter

0.50
0.50

0.1

0.5
0.4

Ticket
Counters
0.25

Service Management - Harry Perros

9
0.4

7

0.25

µ9=40/hr

8
Bugs
bunny

0.1

42

21
• Questions
– Are all the queues stable?
– What is the utilization of each ticket counter?
– What is the probability that a customer will get
served immediately upon arrival at the food
court?
– What is the mean waiting time at each theme?
– How long would it take on the average to visit
all themes once, and of that time how much one
spends standing in a queue?
– How long on the average a customer spends
waiting for
Service Management - Harry Perros

43

22

More Related Content

What's hot

First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)nikeAthena
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First ServeEdwin Makeu
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LEDTaha Malampatti
 
Simulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing SystemSimulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing SystemMaruf Rion
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor Vatsal N Shah
 
Modulo n counter
Modulo n counterModulo n counter
Modulo n counterManoj Guha
 
Simulation of Queueing Systems(Single-Channel Queue).
Simulation of Queueing Systems(Single-Channel Queue).Simulation of Queueing Systems(Single-Channel Queue).
Simulation of Queueing Systems(Single-Channel Queue).Badrul Alam
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examplesImran Ali Chaudhry
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architectureSubesh Kumar Yadav
 
Chapter 3 principles of parallel algorithm design
Chapter 3   principles of parallel algorithm designChapter 3   principles of parallel algorithm design
Chapter 3 principles of parallel algorithm designDenisAkbar1
 
Pipes in Windows and Linux.
Pipes in Windows and Linux.Pipes in Windows and Linux.
Pipes in Windows and Linux.Junaid Lodhi
 
Simulation run statistics
Simulation run statisticsSimulation run statistics
Simulation run statisticschandan sharma
 
Queing theory and delay analysis
Queing theory and delay analysisQueing theory and delay analysis
Queing theory and delay analysisPriyanka Negi
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin schedulingRaghav S
 

What's hot (20)

Loop optimization
Loop optimizationLoop optimization
Loop optimization
 
First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)First-Come-First-Serve (FCFS)
First-Come-First-Serve (FCFS)
 
First Come First Serve
First Come First ServeFirst Come First Serve
First Come First Serve
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LED
 
Simulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing SystemSimulation & Modeling - Smilulation Queuing System
Simulation & Modeling - Smilulation Queuing System
 
Hash tables
Hash tablesHash tables
Hash tables
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor
 
Modulo n counter
Modulo n counterModulo n counter
Modulo n counter
 
Simulation of Queueing Systems(Single-Channel Queue).
Simulation of Queueing Systems(Single-Channel Queue).Simulation of Queueing Systems(Single-Channel Queue).
Simulation of Queueing Systems(Single-Channel Queue).
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examples
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
QUEUEING THEORY
QUEUEING THEORYQUEUEING THEORY
QUEUEING THEORY
 
Chapter 3 principles of parallel algorithm design
Chapter 3   principles of parallel algorithm designChapter 3   principles of parallel algorithm design
Chapter 3 principles of parallel algorithm design
 
Bankers algorithm
Bankers algorithmBankers algorithm
Bankers algorithm
 
Pipes in Windows and Linux.
Pipes in Windows and Linux.Pipes in Windows and Linux.
Pipes in Windows and Linux.
 
Simulation run statistics
Simulation run statisticsSimulation run statistics
Simulation run statistics
 
Best,worst,average case .17581556 045
Best,worst,average case .17581556 045Best,worst,average case .17581556 045
Best,worst,average case .17581556 045
 
Queing theory and delay analysis
Queing theory and delay analysisQueing theory and delay analysis
Queing theory and delay analysis
 
hardwired control unit ppt
hardwired control unit ppthardwired control unit ppt
hardwired control unit ppt
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin scheduling
 

Viewers also liked

Water Resource Reporting and Water Footprint from Marcellus Shale Development...
Water Resource Reporting and Water Footprint from Marcellus Shale Development...Water Resource Reporting and Water Footprint from Marcellus Shale Development...
Water Resource Reporting and Water Footprint from Marcellus Shale Development...Brian Rosa
 
Virtual Water Interactions in Transboundary Water
Virtual Water Interactions in Transboundary Water Virtual Water Interactions in Transboundary Water
Virtual Water Interactions in Transboundary Water Francesca Greco
 
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)Alfonso Langle
 
Water&energy politecnicomilano marzo 2014
Water&energy politecnicomilano marzo 2014Water&energy politecnicomilano marzo 2014
Water&energy politecnicomilano marzo 2014Francesca Greco
 
virtual water trade
virtual water tradevirtual water trade
virtual water tradeNagaraj S
 
Water Footprint Assignment
Water Footprint AssignmentWater Footprint Assignment
Water Footprint AssignmentStephen Leslie
 
Force water footprint & film screening g.k 1
Force water footprint & film screening g.k 1Force water footprint & film screening g.k 1
Force water footprint & film screening g.k 1JALRAKSHAK
 
The water footprint of Italy
The water footprint of ItalyThe water footprint of Italy
The water footprint of ItalyMarta Antonelli
 
Water footprint virtual water abstract booklet (a4) pegasys (final)
Water footprint virtual water abstract booklet (a4)   pegasys (final)Water footprint virtual water abstract booklet (a4)   pegasys (final)
Water footprint virtual water abstract booklet (a4) pegasys (final)Kate Laing
 
Virtual observatory water_final
Virtual observatory water_finalVirtual observatory water_final
Virtual observatory water_finalLuis Bermudez
 
linear programming
linear programminglinear programming
linear programmingJazz Bhatti
 
Queueing theory in software development - ALEBathtub 2011-06-30
Queueing theory in software development - ALEBathtub 2011-06-30Queueing theory in software development - ALEBathtub 2011-06-30
Queueing theory in software development - ALEBathtub 2011-06-30Håkan Forss
 
Lessons from Case Studies in Water Footprint for South African Companies
Lessons from Case Studies in Water Footprint for South African CompaniesLessons from Case Studies in Water Footprint for South African Companies
Lessons from Case Studies in Water Footprint for South African CompaniesKate Laing
 

Viewers also liked (20)

Cascao hh6 session2_chh_on_ground_nile
Cascao hh6 session2_chh_on_ground_nileCascao hh6 session2_chh_on_ground_nile
Cascao hh6 session2_chh_on_ground_nile
 
Water Depletion/Affordability of Food
Water Depletion/Affordability of FoodWater Depletion/Affordability of Food
Water Depletion/Affordability of Food
 
Session7
Session7Session7
Session7
 
Water Resource Reporting and Water Footprint from Marcellus Shale Development...
Water Resource Reporting and Water Footprint from Marcellus Shale Development...Water Resource Reporting and Water Footprint from Marcellus Shale Development...
Water Resource Reporting and Water Footprint from Marcellus Shale Development...
 
Queueing
QueueingQueueing
Queueing
 
Tony Allan Ppt
Tony Allan PptTony Allan Ppt
Tony Allan Ppt
 
Virtual Water Interactions in Transboundary Water
Virtual Water Interactions in Transboundary Water Virtual Water Interactions in Transboundary Water
Virtual Water Interactions in Transboundary Water
 
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)
Water_Footprint_of_Mexico_WWF-AgroDer-SabMiller(1)
 
Water&energy politecnicomilano marzo 2014
Water&energy politecnicomilano marzo 2014Water&energy politecnicomilano marzo 2014
Water&energy politecnicomilano marzo 2014
 
virtual water trade
virtual water tradevirtual water trade
virtual water trade
 
Water Footprint Assignment
Water Footprint AssignmentWater Footprint Assignment
Water Footprint Assignment
 
Force water footprint & film screening g.k 1
Force water footprint & film screening g.k 1Force water footprint & film screening g.k 1
Force water footprint & film screening g.k 1
 
The water footprint of Italy
The water footprint of ItalyThe water footprint of Italy
The water footprint of Italy
 
Water footprint virtual water abstract booklet (a4) pegasys (final)
Water footprint virtual water abstract booklet (a4)   pegasys (final)Water footprint virtual water abstract booklet (a4)   pegasys (final)
Water footprint virtual water abstract booklet (a4) pegasys (final)
 
Virtual Water
Virtual WaterVirtual Water
Virtual Water
 
Virtual observatory water_final
Virtual observatory water_finalVirtual observatory water_final
Virtual observatory water_final
 
linear programming
linear programminglinear programming
linear programming
 
Probablity & queueing theory basic terminologies & applications
Probablity & queueing theory basic terminologies & applicationsProbablity & queueing theory basic terminologies & applications
Probablity & queueing theory basic terminologies & applications
 
Queueing theory in software development - ALEBathtub 2011-06-30
Queueing theory in software development - ALEBathtub 2011-06-30Queueing theory in software development - ALEBathtub 2011-06-30
Queueing theory in software development - ALEBathtub 2011-06-30
 
Lessons from Case Studies in Water Footprint for South African Companies
Lessons from Case Studies in Water Footprint for South African CompaniesLessons from Case Studies in Water Footprint for South African Companies
Lessons from Case Studies in Water Footprint for South African Companies
 

Similar to Ssme queueing theory (20)

Queuing theory and simulation (MSOR)
Queuing theory and simulation (MSOR)Queuing theory and simulation (MSOR)
Queuing theory and simulation (MSOR)
 
Queuing Theory
Queuing TheoryQueuing Theory
Queuing Theory
 
Queuing Theory by Dr. B. J. Mohite
Queuing Theory by Dr. B. J. MohiteQueuing Theory by Dr. B. J. Mohite
Queuing Theory by Dr. B. J. Mohite
 
Queuing model
Queuing model Queuing model
Queuing model
 
Operating characteristics ofqueuing system
Operating characteristics ofqueuing systemOperating characteristics ofqueuing system
Operating characteristics ofqueuing system
 
queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in banking
 
Unit V - Queuing Theory
Unit V - Queuing TheoryUnit V - Queuing Theory
Unit V - Queuing Theory
 
Queuing theory network
Queuing theory networkQueuing theory network
Queuing theory network
 
Q theory
Q theoryQ theory
Q theory
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Queueing Theory and its BusinessS Applications
Queueing Theory and its BusinessS ApplicationsQueueing Theory and its BusinessS Applications
Queueing Theory and its BusinessS Applications
 
Simulation and modeling
Simulation and modelingSimulation and modeling
Simulation and modeling
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 
QUEUING THEORY
QUEUING THEORY QUEUING THEORY
QUEUING THEORY
 
Ramniwas final
Ramniwas finalRamniwas final
Ramniwas final
 
ch06-Queuing & Simulation.ppt
ch06-Queuing & Simulation.pptch06-Queuing & Simulation.ppt
ch06-Queuing & Simulation.ppt
 
Lecture7-QuantitativeAnalysis2.pptx
Lecture7-QuantitativeAnalysis2.pptxLecture7-QuantitativeAnalysis2.pptx
Lecture7-QuantitativeAnalysis2.pptx
 
Decision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdfDecision Sciences_SBS_9.pdf
Decision Sciences_SBS_9.pdf
 
Queuing theory
Queuing theoryQueuing theory
Queuing theory
 

Recently uploaded

7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth MarketingShawn Pang
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMRavindra Nath Shukla
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdfOrient Homes
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewasmakika9823
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024christinemoorman
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Tina Ji
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in managementchhavia330
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...lizamodels9
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 

Recently uploaded (20)

7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
Tech Startup Growth Hacking 101  - Basics on Growth MarketingTech Startup Growth Hacking 101  - Basics on Growth Marketing
Tech Startup Growth Hacking 101 - Basics on Growth Marketing
 
Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
Monte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSMMonte Carlo simulation : Simulation using MCSM
Monte Carlo simulation : Simulation using MCSM
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.Eni 2024 1Q Results - 24.04.24 business.
Eni 2024 1Q Results - 24.04.24 business.
 
Catalogue ONG NUOC PPR DE NHAT .pdf
Catalogue ONG NUOC PPR DE NHAT      .pdfCatalogue ONG NUOC PPR DE NHAT      .pdf
Catalogue ONG NUOC PPR DE NHAT .pdf
 
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service DewasVip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
Vip Dewas Call Girls #9907093804 Contact Number Escorts Service Dewas
 
The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024The CMO Survey - Highlights and Insights Report - Spring 2024
The CMO Survey - Highlights and Insights Report - Spring 2024
 
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
Russian Faridabad Call Girls(Badarpur) : ☎ 8168257667, @4999
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
GD Birla and his contribution in management
GD Birla and his contribution in managementGD Birla and his contribution in management
GD Birla and his contribution in management
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
Lowrate Call Girls In Laxmi Nagar Delhi ❤️8860477959 Escorts 100% Genuine Ser...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 

Ssme queueing theory

  • 1. Queueing Theory - A primer Harry Perros Service Management - Harry Perros 1 • Queueing theory deals with the analysis of queues (or waiting lines) where customers wait to receive a service. • Queues abound in everyday life! – – – – – – Supermarket checkout Traffic lights Waiting for the elevator Waiting at a gas station Waiting at passport control Waiting at a a doctor’s office – Paperwork waiting at somebody’s office to be processed Service Management - Harry Perros 2 1
  • 2. • There are also queues that we cannot see (unless we use a software/hardware system), such as: – Streaming a video: Video is delivered to the computer in the form of packets, which go through a number of routers. At each router they have to waiting to be transmitted out – Web services: A request issued by a user has to be executed by various software components. At each component there is a queue of such requests. – On hold at a call center Service Management - Harry Perros 3 Measures of interest • Mean waiting time • Percentile of the waiting time, i.e. what percent of the waiting customers wait more than x amount of time. • Utilization of the server • Throughput, i.e.number of customers served per unit time. • Average number of customers waiting • Distribution of the number of waiting customers, i.e. Probability [n customers wait], n=01,1,2,… Service Management - Harry Perros 4 2
  • 3. Reality vs perception • Queueing theory deals with actual waiting times. • In certain cases, though, it’s more important to deal with the perception of waiting.. For this we need a psychological perspective ! (Famous example, that “minimized” waiting time for elevators!!) Service Management - Harry Perros 5 Notation - single queueing systems Queue Single Server Queue Multiple Servers Multi-Queue Single Server Service Management - Harry Perros Multi-Queue Multiple Servers 6 3
  • 4. Notation - Networks of queues Tandem queues Arbitrary topology of queues Service Management - Harry Perros 7 The single server queue Calling population: finite or infinite Service discipline: FIFO Queue: Finite or infinite capacity Service Management - Harry Perros 8 4
  • 5. Queue formation • A queue is formed when customers arrive faster than they can get served. • Examples: – Service time = 10 minutes, a customer arrives every 15 minutes ---> No queue will ever be formed! – Service time = 15 minutes, a customer arrives every 10 minutes ---> Queue will grow for ever (bad for business!) Service Management - Harry Perros 9 • Service times and inter-arrival times are rarely constant. • From real data we can construct a histogram of the service time and the inter-arrival time. Mean Service times Service Management - Harry Perros Mean Inter-arrival times 10 5
  • 6. • If real data is not available, then we assume a theoretical distribution. • A commonly used theoretical distribution in queueing theory is the exponential distribution. Mean Service Management - Harry Perros 11 Stability condition • A queue is stable, when it does not grow to become infinite over time. • The single-server queue is stable if on the average, the service time is less than the inter-arrival time, i.e. mean service time < mean inter-arrival time Service Management - Harry Perros 12 6
  • 7. Behavior of a stable queue Mean service time < mean inter-arrival time No. in queue <-- Busy period --> <- Idle -> period Time --> When the queue is stable, we will observe busy and idle periods continuously alternating Service Management - Harry Perros 13 Behavior of an unstable queue Mean service time > mean inter-arrival time No. in queue Time --> Queue continuously increases.. This is the case when a car accident occurs on the highway Service Management - Harry Perros 14 7
  • 8. Arrival and service rates: definitions • Arrival rate is the mean number of arrivals per unit time = 1/ (mean inter-arrival time) – If the mean inter-arrival = 5 minutes, then the arrival rate is 1/5 per minute, i.e. 0.2 per minute, or 12 per hour. • Service rate is the mean number of customers served per unit time = 1/ (mean service time) – If the mean service time = 10 minutes, then the service rate is 1/10 per minute, i.e. 0.1 per minute, or 6 per hour. Service Management - Harry Perros 15 Throughput • This is average number of completed jobs per unit. • Example: – The throughput of a production system is the average number of finished products per unit time. • Often, we use the maximum throughput as a measure of performance of a system. Service Management - Harry Perros 16 8
  • 9. Throughput of a single server queue • This is the average number of jobs that depart from the queue per unit time (after they have been serviced) • Example: The mean service time =10 mins. – What is the maximum throughput (per hour)? – What is the throughput (per hour) if the mean inter-arrival time is: • 5 minutes ? • 20 minutes ? Service Management - Harry Perros 17 Throughput Throughput vs the mean inter-arrival time. Service rate = 6 Max. throughput 6 Arrival rate --> 6 Stable queue: whatever comes in goes out! Service Management - Harry Perros Unstable queue: More comes in than goes out! 18 9
  • 10. Server Utilization= Percent of time server is busy = (arrival rate) x (mean service time) • Example: – Mean inter-arrival = 5 mins, or arrival rate is 1/5 = 0.2 per min. Mean service time is 2 minutes – Server Utilization = Percent of time the server is busy: 0.2x2=0.4 or 40% of the time. – Percent of time server is idle? – Percent of time no one is in the system (either waiting or being served)? Service Management - Harry Perros 19 The M/M/1 queue • M implies the exponential distribution (Markovian) • The M/M/1 notation implies: – – – – – a single server queue exponentially distributed inter-arrival times exponentially distributed service times. Infinite population of potential customers FIFO service discipline Service Management - Harry Perros 20 10
  • 11. The exponential distribution f(x) x • f(x) = λ e -λx, where λ is the arrival / service rate. • Mean = 1/ λ • Memoryless property - Not realistic, but makes the math easier! Service Management - Harry Perros 21 The Poisson distribution • Describes the number of arrivals per unit time, if the inter-arival time is exponential • Probability that there n arrivals during a unit time: Prob(n) = (λt)n e- λt 2 3 4 2 Time t --> Exponentially distributed inter-arrival times with mean 1/ λ Service Management - Harry Perros 22 11
  • 12. Queue length distribution of an M/M/1 queue µ λ • Probability that there are n customers in the system (i.e., queueing and also is service): Prob [n] = ρn (1-ρ), n=0,1,2,.. where ρ is known as the traffic intensity and ρ = λ/µ Service Management - Harry Perros 23 Performance measures • Prob. system (queue and server) is empty: Prob [n=0] = 1-ρ • Percent of time server is idle = 1-ρ • Server utilization = percent of time server is busy =ρ • Throughput = λ Service Management - Harry Perros 24 12
  • 13. Little’s Law λ L, W Denote the mean number of customers in the system as L and the mean waiting time in the system as W. Then: λW=L Service Management - Harry Perros 25 Mean waiting time and mean number of customers • Mean number of customers in the system: L = λ /( µ−λ) • Mean waiting time in the system (queueing and receiving service) obtained using Little’s Law: W = 1 /( µ−λ) W λ −> Service Management - Harry Perros µ 26 13
  • 14. • Problem 1: Customers arrive at a theater ticket counter in a Poisson fashion at the rate of 6 per hour. The time to serve a customer is distributed exponentially with mean 10 minutes. • • • • • • Prob. a customer arrives to find the ticket counter empty (i.e., it goes into service without queueing) Prob. a customer has to wait before s/he gets served Mean number of customers in the system (waiting and being served) Mean time in the system Mean time in the queue Server utilization Service Management - Harry Perros 27 1. Problem 1 (Continued) • How many parking spaces we need to construct so that 90% of the customers can find parking? n 0 1 2 3 4 P(n) Service Management - Harry Perros P(k≤n) 28 14
  • 15. • Problem 2: Design of a drive-in bank facility People who are waiting in line may not realize how long they have been waiting until at least 5 minutes have passed. How many drive-in lanes we need to keep the average waiting time less than 5 minutes? - Service time: exponentially distributed with mean 3 mins - Arrival rate: Poisson with a rate of 30 per hour M/M/1 1/µ=3 ... λ=30/hr M/M/1 1/µ=3 Service Management - Harry Perros 29 • Answer: Mean waiting time in the system (queueing and receiving service) : W = 1 /( µ−λ). Mean waiting time in the queue (excluding service time) : Wq = 1 /( µ−λ) − 1/µ = λ /µ( µ−λ) Results 1 Teller -> M/M/1 queues -> Wq= 2 Tellers -> 2 M/M/1 queues -> Wq= 3 Tellers -> 3 M/M/1 queues -> Wq= 4 Tellers -> 4 M/M/1 queues -> Wq= Service Management - Harry Perros 30 15
  • 16. • Problem 3: If both customers and servers are employees of the same company, then the cost of employees waiting (lost productivity) and the cost of the service is equally important to the company. Employees arrive at a service station at the rate of 8/hour. The cost of providing the service is a function of the service rate, i.e. Cs=f(service rate)=10µ per hour. The cost to the company for an employee waiting in the system (queue and also getting served) is Cw = $50/hour. Assuming an M/M/1 queue what is the value of the mean service time that minimizes the total cost ? Service Management - Harry Perros 31 • Service cost Cs = 10µ • Waiting cost Cw = 50 λ W = 400 [1/(m-8)] • Total cost: Cs + Cw 10µ µ 400/(µ-8) Sum 10 200 300 11 110 133.333 243.333 12 120 100 220 13 130 80 210 14 140 66.6666 206.666 15 150 57.1428 207.142 16 160 50 210 17 170 44.4444 214.444 18 180 40 220 19 190 36.3636 226.363 20 200 33.3333 233.333 21 210 30.7692 240.769 22 Service Management - Harry Perros 100 220 28.5714 248.571 32 16
  • 17. Networks of queues • Typically, the flow of customers through a system may involve a number of different service stations. • Examples: – – – – Flow of IP packets through a computer network Flow of orders through a manufacturing system Flow of requests/messages through a web service system Flow of paperwork through an administration office • Such systems can be depicted by a network of queues Service Management - Harry Perros 33 Queues can be linked together to form a network of queues which reflect the flow of customers through a number of different service stations p 1 p12 p23 4 p 34 p 12 External arrivals p20 p 24 12 2 3 p30 Queueing node Branching probabilities Service Management - Harry Perros Departure to outside 34 17
  • 18. Traffic flows λ2=5/hr µ2=20/hr 0.70 2 0.30 0.3 1 λ1=10/hr 4 0.3 µ1=20/hr 3 λ3=15/hr • • • • • µ4=25/hr 0.5 0.4 0.5 µ3=30/hr What is the total (effective) arrival rate to each node? Is each queue stable? What is the total departure rate from each node to the outside ? What is the total arrival to the network? What is the total departure from the network? Service Management - Harry Perros 35 Traffic flows - with feedbacks λ2=5/hr µ2=20/hr 2 0.25 0.5 0.3 1 λ1=10/hr 0.25 4 0.3 µ1=20/hr 0.2 0.4 λ3=15/hr • • • • • 3 0.3 µ4=25/hr 0.5 µ3=30/hr What is the total (effective) arrival rate to each node? Is each queue stable? What is the total departure rate from each node to the outside ? What is the total arrival to the network? What is the total departure from the network? Service Management - Harry Perros 36 18
  • 19. Traffic equations • M nodes; λi is the external arrival rate into node i, and pij are the branching probabilities. Then the effective arrival rates can be obtained as follows: _ M _ "1 = "1 + # "i pi,1 i=1 ... _ M _ " M = "M + # "i pi,M i=1 Service Management - Harry Perros 37 ! Solution • Assumptions: – Each external arrival stream is Poisson distributed. – The service time at each node is exponentially distributed. • Each node can be analyzed separately as an M/M/1 queue with an arrival rate equal to the effective (total) arrival rate to the node and the same original service rate Service Management - Harry Perros 38 19
  • 20. λ2= 12.42 /hr 4 µ2=20/hr λ2=5/hr µ2=20/hr 2 0.25 0.5 0.3 λ1=10/hr 1 0.25 4 0.3 µ1=20/hr 0.2 0.4 λ3=15/hr 3 µ4=50/hr 0.3 0.5 µ3=30/hr λ4= 15/hr λ1=10/hr 1 µ1=20/hr λ3=22.10 /hr 4 µ4=25/hr 3 µ3=30/hr Service Management - Harry Perros 39 • For the previous example calculate – – – – Prob. each node is empty Mean number of customers in each node Mean waiting time in each node Assume a customer arrives at node 1, then it visits node 2, 3, and 4, and then it departs. What is the total mean waiting time of the customer in the network? – What is the probability that at each node it will not have to wait? Service Management - Harry Perros 40 20
  • 21. Problem: Having fun at Disneyland ! • A visit at Disney Land during the Christmas Holidays involves queueing up to buy a ticket, and then once in the park, you have to queue up for every theme. • Does one spends more time queueing up or enjoying the themes? That depends on the arrival rates of customers and service times (i.e. the time to see a theme) Service Management - Harry Perros 41 µi=30/hr i=5,6,7,8 0.25 5 0.1 µi=30/hr i=1,2,3,4 0.4 Haunted house 0.5 1 0.25 0.25 2 0.25 λ1=100/hr 0.25 6 0.1 Thunder 0.4 mountain 0.5 3 4 0.25 Seven dwarfs Food counter 0.50 0.50 0.1 0.5 0.4 Ticket Counters 0.25 Service Management - Harry Perros 9 0.4 7 0.25 µ9=40/hr 8 Bugs bunny 0.1 42 21
  • 22. • Questions – Are all the queues stable? – What is the utilization of each ticket counter? – What is the probability that a customer will get served immediately upon arrival at the food court? – What is the mean waiting time at each theme? – How long would it take on the average to visit all themes once, and of that time how much one spends standing in a queue? – How long on the average a customer spends waiting for Service Management - Harry Perros 43 22