Tech●●●●●Difficulty 3 of 5

How did a Danish telephone engineer invent the mathematics of waiting in line?

To work out how many phone lines Copenhagen needed, Agner Erlang climbed into manholes. His maths now runs supermarkets, hospitals and the internet.

▶ Start the story

Agner Krarup Erlang invented the mathematics of waiting in line because his employer, the Copenhagen Telephone Exchange, needed to know how many lines and operators it needed. Calls arrive at random, and if too few lines are free, callers wait or get cut off. In 1909 Erlang published the first paper on what we now call queueing theory: the mathematical study of queues, which predicts how long lines get and how long people wait.

Black-and-white photograph of women operators working at a long wall-mounted telephone switchboard criss-crossed with cords.
Telephone operators at a switchboard around 1905. Calls needed free lines and operators: the kind of waiting problem Erlang set out to solve.Photo: Webster & Stevens · Public domain

Erlang was no armchair theorist. He took his own measurements and was willing to climb down into street manholes to get them. His formulas, which link the quality of a service to the number of servers available, are still used, and since 1946 the international unit of telephone traffic has been called the erlang.

Old portrait photograph of Agner Krarup Erlang, a bearded man in a dark suit and bow tie.
Agner Krarup Erlang, the Danish engineer who published the first paper on queueing theory in 1909.Photo: polytechphotos.dk · Public domain

The same maths fits any queue: a supermarket checkout, a hospital ward, a web server. One of its neatest results is Little's law: the average number of people in a system equals how fast they arrive times how long each stays. It holds whatever the arrival pattern or the order of service. A quick calculation with it: if a café has on average 10 customers inside and 2 arrive each minute, each spends about 5 minutes there.

Queueing theory also helped build the internet. In the early 1970s, Leonard Kleinrock's queueing work underpinned packet switching on the ARPANET, the internet's forerunner, where data waits its turn in queues inside routers.

Quiz me

0/3

  1. 1.What practical problem led Agner Erlang to create queueing theory?
  2. 2.A shop has on average 12 customers inside, and 3 arrive each minute. By Little's law, how long does each customer stay on average?
  3. 3.Why are the results of queueing theory given as probabilities and averages?

Recap

Little's law: average number in the system equals arrival rate times average time spent inside.

Surprising fact · The international unit of telephone traffic, the erlang, is named after the Danish engineer who founded the field in 1909.

Sources (4)

No source, no claim. Every fact in this lesson (20 claims) cites at least one of these.

  1. [1]Queueing theory · Wikipedia
  2. [2]Agner Krarup Erlang · Wikipedia
  3. [3]Erlang (unit) · Wikipedia
  4. [4]Little's law · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗