Skip to content
GabineteTools for thinking

No. 2354Diagnosing processes

Queueing theory (M/M/1 queue)

Agner Krarup Erlang (origin)… · 1909

Four wooden ramps with a brass wheel each; the rows of blue marbles grow abruptly to overflow in red.

The table / Model card · No. 2354 · Diagnosing processes

Queueing theory (M/M/1 queue)

Given an arrival rate and a service rate, compute how long people wait and how long the line gets.

The essentials

What it is

What it solves

How much service capacity do you need so that customers or jobs wait an acceptable time, given random arrivals?

When to use it

Use it for first-pass sizing of a service desk, checkout, repair bench, ticket queue or server, to see how much capacity buys in waiting time, and to explain why a resource with enough average capacity still has queues.

Where it comes from

Queueing theory has its origins in the research of Agner Krarup Erlang, who modelled the incoming calls at the Copenhagen Telephone Exchange Company. David Kendall's 1953 paper introduced the method of the embedded Markov chain and the A/S/c notation. The year of Erlang's original work is not given here.

Agner Krarup Erlang and David G. Kendall · 1909

How it works

In an M/M/1 queue, arrivals come at average rate lambda and one server completes jobs at rate mu. Utilisation is rho = lambda / mu, and the queue is stable only if rho < 1. In the steady state the chance of n jobs in the system is (1 - rho) x rho^n, giving an average of L = rho / (1 - rho) jobs in the system and an average time in the system of W = 1 / (mu - lambda). Because the formulas have (1 - rho) in the denominator, waiting time rises steeply near full load. Randomness, not average shortage of capacity, creates queues. Little's Law ties L and W together, and Kendall's notation A/S/c names the model type.

You need

Average arrival rate, average service rate, number of servers, and a check that arrivals are roughly random and the system is stable.

You get

Utilisation, average number in queue and system, average wait and time in the system, and the probability of waiting.

Case

Illustrative case

The Larkfield help desk receives 9 tickets an hour (lambda) and one agent resolves 10 an hour (mu). Utilisation is 0.9, so L = 0.9 / 0.1 = 9 tickets in the system, and W = 1 / (10 - 9) = 1 hour. Tickets wait on average 0.9 hours, or 54 minutes, before work starts. Management proposes a second agent but first tests a tooling fix that raises the service rate to 12 an hour. Then rho = 0.75, L = 3, and W = 1 / (12 - 9) = 20 minutes. A 20% faster service cuts average time in the system by two thirds, a result a simple capacity comparison would miss.

A fictional company used to explain the model.

Caution

When to avoid it

  • Do not use M/M/1 when arrivals come in bursts or on schedule, service times are not roughly exponential, there are several servers, or priorities and abandonment matter.
  • Use a better-matched model or simulation.
  • It also gives only long-run averages.

Common mistakes

  • Aiming for 100% utilisation.
  • Assuming Poisson arrivals without checking the data.
  • Using M/M/1 for queues with several servers.
  • Reading averages as guarantees for each customer.
  • Ignoring that service times with high variability make waits longer than the model predicts.

Known weaknesses

  • M/M/1 assumptions of random arrivals and exponential service rarely hold exactly.
  • Only describes steady-state averages, not a day with a surge.
  • A single server and an infinite queue are simplifications.
  • Results can mislead if data is not checked against the assumptions.

How to apply it in 6 steps

How to apply it

Queueing theory (M/M/1 queue)

6 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 6 steps
  1. Define the system

    Identify the customers, the server, and where the queue starts and ends.

  2. Estimate lambda and mu

    Measure the average arrival and service rates over a typical period.

  3. Check the assumptions

    Look at whether arrivals are roughly random and service times resemble an exponential spread.

  4. Compute the measures

    Use rho, L, W and queue wait from the M/M/1 formulas.

  5. Test scenarios

    Change the service rate or arrival rate and see the effect on wait.

  6. Move to a richer model if needed

    For several servers, priorities or non-random flow, use a different model or simulate.

Which decisions it helps with

Decision profile

A tool to choose between options on processes and operations.

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIdentity

Type of tool
Other formatDoes not fit neatly into the available categories
Decision stage
Choose between existing optionsalso: prepare for what might happen (35 %)
What it applies to
Processes and operations
Discipline
Lean, operations and quality

IIIResources required

  • TimeOne hour or less
  • PeopleOne person working alone
  • DataQuantitative analysis
  • ExpertiseAnyone who has read a page of instructions
  • Time horizonBetween “days or weeks” and “a few months”
  • ScopeA unit or department
  • FrequencyOccasionally
The team’s own knowledge is enough

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

  • Our projects keep running late or going over budget

Applicable traits

  • CriteriaUses one criterion or an overall impression
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Diagnosing processes

Identify where an operation loses value by examining waste, the value stream, statistical process control and service metrics.

Membership: 21 % · also “Anticipating risks and timelines” (19 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Verified sources

Use the arrow keys to move between sources.

Original work

  1. Erlang, A. K. (1909). The Theory of Probabilities and Telephone Conversations. Nyt Tidsskrift for Matematik B.Lists the 1909 paper as founding queueing theory.View source: The Theory of Probabilities and Telephone Conversations (opens in a new tab) ↗

Key development

  1. Kendall, D. G. (1953). Stochastic Processes Occurring in the Theory of Queues and their Analysis by the Method of the Imbedded Markov Chain. The Annals of Mathematical Statistics, vol. 24, pp. 338-354.Page opened (HTTP 200) and Crossref confirms title, author, volume 24 and pages 338-354. The source of Kendall's classification and embedded Markov chain method.View source: Stochastic Processes Occurring in the Theory of Queues and their Analysis by the Method of the Imbedded Markov Chain (opens in a new tab) ↗

Critique

  1. Byrd, J. (1978). The Value of Queueing Theory. Interfaces 8(3): 22-26.Objects that documented real implementations of queueing models with proven savings are "few if not nonexistent", and uses student case studies to show why textbook models rarely fit real systems.View source: The Value of Queueing Theory (opens in a new tab) ↗

Practical guide

  1. Thomas, M. U. (1976). Queueing Systems. Volume 1: Theory (Leonard Kleinrock) - review. SIAM Review, vol. 18, pp. 512-514.Crossref record confirms a SIAM Review review of Kleinrock's Queueing Systems, Volume 1: Theory, a standard text; used here as evidence that the book exists, not for its content.View source: Queueing Systems. Volume 1: Theory (Leonard Kleinrock) - review (opens in a new tab) ↗
  2. Gross, D., Shortle, J. F. and Thompson, J. M. (2008). Fundamentals of Queueing Theory. Wiley (Series in Probability and Statistics).Crossref record confirms the title, Gross, Shortle and Thompson as authors, Wiley, 2008, with chapters on simple Markovian queueing models.View source: Fundamentals of Queueing Theory (opens in a new tab) ↗

Wikipedia article (opens in a new tab) ↗