
Origins
Queuing Theory: The Mathematics of Waiting
Copenhagen's busy telephone lines inspired mathematics that explains why waiting grows when shared systems approach full capacity.

Origins
Copenhagen's busy telephone lines inspired mathematics that explains why waiting grows when shared systems approach full capacity.
Welcome to Origins. In this program we explore the technological and scientific roots of the modern world. Let's begin.
At a telephone exchange in Copenhagen around 1908, a conversation begins with a small mechanical performance. A subscriber turns a handle or lifts a receiver. An operator answers, finds the requested connection, and plugs a cord into a socket.
But suppose the call needs to travel to another exchange, and every connecting line is occupied.
The caller has encountered a peculiar shortage. The system may have plenty of capacity over the course of the day. At this particular moment, none is available.
Installing enough equipment for average demand will leave callers stranded during busy periods. Installing enough for every imaginable rush will leave expensive wires idle most of the time.
How much spare capacity is enough?
That question helped create queuing theory, the mathematics of waiting, congestion, and service. Its foundations were laid by a former schoolteacher named Agner Krarup Erlang.
Born in western Denmark in 1878, Erlang studied mathematics in Copenhagen and spent years teaching. In 1908, he joined the Copenhagen Telephone Company, where practical engineering presented a problem that ordinary arithmetic could not settle.
Telephone traffic arrived in clumps.
Even without a holiday, emergency, or special event, several subscribers might decide to call within the same minute. Others might remain silent for a while. Conversations also differed in length. A brief request and a leisurely family discussion occupied the same equipment for very different periods.
The company needed a way to describe this irregularity without predicting individual people.
There was a mathematical precedent. During the nineteenth century, the French mathematician Siméon Denis Poisson had developed a probability distribution that could describe counts of events under particular conditions. Telephone calls offered a new setting for such ideas.
Imagine watching a line for a very short interval. There is a small chance that a call arrives. If callers act approximately independently, and the underlying calling rate stays steady, a model can assign probabilities to different numbers of arrivals.
It cannot say who will call next. It can estimate how often several calls will crowd together.
That distinction matters. Unpredictable individuals can produce measurable patterns in large numbers.
In 1909, Erlang published a paper on probability and telephone conversations. He continued developing methods that connected random demand to the amount of equipment a network required.
To follow the central idea, consider a group of telephone lines linking two exchanges.
If calls arrive at a rate of sixty per hour, and each conversation lasts an average of three minutes, the offered traffic amounts to three hours of conversation for every hour of clock time.
Spread smoothly, that would keep three lines occupied continuously.
But calls do not arrive smoothly. Sometimes one line would suffice. Sometimes five or six people would want connections at once.
Three lines therefore cannot reliably carry this traffic simply because three is the average requirement.
Telephone engineers eventually named this measure of traffic intensity the erlang. One erlang corresponds to enough traffic to occupy one resource continuously, on average.
Erlang's important 1917 work supplied a formula for calculating the probability that every line in a group would be busy. Given the offered traffic and the number of lines, engineers could estimate the proportion of calls that would be blocked, within the model's assumptions.
They could then ask a concrete economic question. How many additional lines would reduce blocking to an acceptable level?
There is a small surprise here. One of the foundational models of queuing theory contains no queue.
A caller who finds every line occupied is turned away. The system loses the attempt rather than holding it for later.
Other systems let arrivals wait. Later models, including another associated with Erlang, addressed that situation. The distinction still separates a full parking lot from a checkout line, or a rejected internet request from a print job waiting for a printer.
Now consider what happens when a service approaches full capacity.
A clerk can finish, on average, one transaction every minute. Customers arrive, on average, every seventy-five seconds. There is room to recover after a cluster of arrivals or an unusually complicated transaction.
Increase the arrival rate until a customer appears almost every minute. The recovery periods shrink. A short burst can create a backlog that persists through many subsequent customers.
Under common random-arrival models, average waiting time rises sharply as utilization approaches one hundred percent.
The clerk has barely become busier, yet the customers may wait much longer.
This explains why empty capacity cannot automatically be classified as waste. Some of it allows a system to absorb variation. A hospital, railway, or computer network scheduled to use every available resource continuously has little room to recover when events depart from the schedule.
Queuing theory expanded through twentieth-century telecommunications, manufacturing, and computing. Researchers studied priorities, equipment failures, customers who abandon a line, and networks in which finishing one stage merely delivers a job to the next.
In 1961, the American researcher John Little published a proof of an especially broad relationship.
For a stable system, the average number of items inside equals their average arrival rate multiplied by the average time they spend there.
Suppose a café serves twenty customers an hour, and each spends half an hour inside. Its average customer population is ten.
The relationship applies to people, unfinished products, or data requests. It does not require every arrival or service time to follow one particular probability distribution. The boundaries and averages do need to be defined consistently.
Little's law gives managers a check on promises. If a factory holds more unfinished orders while completing them at the same rate, those orders must, on average, remain inside longer.
Modern software has made waiting less visible. A spinning symbol replaces a physical line. Behind it, requests compete for processors, memory, database access, and network connections.
The underlying problem remains recognizable from Copenhagen's telephone exchanges. Humans build a shared service, depend on it, and then discover that their combined behavior creates congestion no individual intended.
Erlang's contribution was to make that congestion calculable. Waiting could be studied before another wire was installed, another counter opened, or another machine purchased.
And a moment of apparent idleness could be understood as part of what keeps a busy system moving.
This has been Origins.
Your Daily Knowledge Companion
Get the app
Get the app