← Articles
Computational studyTransport & infrastructure

Near-capacity delay in a single-server transport queue: exact means and simulation uncertainty

CivilSpectra Technical Collection

Illustrative study · No peer review · 2026CX-T0055 pages8 min read

Abstract

Waiting times can rise substantially as demand approaches service capacity, even while average demand remains below that capacity. This study compares an event-based simulation with the exact mean waiting time of an M/D/1 queue. The model has Poisson arrivals, a continuously available server, a constant service time of two seconds and utilisation between 0.30 and 0.95. At each utilisation, 30 independent replications retain 100,000 arrivals after a warm-up of 10,000 arrivals. Exact mean queueing waits increase from 0.429 s at utilisation 0.30 to 19.000 s at 0.95; the corresponding simulated means are 0.429 and 19.324 s. Exact means lie within the replication-based 95% intervals at all five tested utilisations. At 0.95, the average within-run ninety-fifth-percentile wait is 59.595 s, about three times the mean, and uncertainty in the simulated mean is much larger than at low utilisation. A separate warm-up comparison using 12 replications at 0.95 finds differences smaller than the observed sampling uncertainty. The results illustrate the importance of reporting simulation precision and upper-tail waiting times alongside mean delay. The model is limited to an isolated service process without signals, spillback, multiple lanes or time-varying demand.

Keywords transport operations; M/D/1 queue; utilisation; waiting time; independent replications; simulation verification

Notation and units
Symbols used in this paper
SymbolUnitMeaning
λ1/sArrival rate
ssDeterministic service duration
ρ-Utilisation, λs
AnsInterarrival interval
Wq, WnsQueueing wait excluding service
SEsStandard error across replication means

1. Introduction

Average demand below capacity does not necessarily imply short waiting times. Random clusters of arrivals can create a queue even when the server can meet demand on average. As utilisation increases, less spare capacity remains to clear these fluctuations. Delay and its variability therefore provide information that a demand-to-capacity ratio alone cannot convey.

The waiting-time recurrence used in single-server models follows Lindley (1952). For Poisson arrivals, classical M/G/1 theory gives the expected wait from the arrival rate and service-time moments; Bertsekas and Gallager (1992) present the deterministic-service case considered here. Kingman (1961) provides broader context for behaviour near capacity. These analytical results allow the simulation mean to be checked independently.

The analysis compares exact mean delay, uncertainty in the simulated mean and a summary of upper-tail waiting times under one specified arrival and service model. A possible transport interpretation is an isolated, continuously operating service point with sufficient upstream storage. The model assumptions and simulation procedure are set out before considering how the results might inform more detailed transport analysis.

2. Queue definition and exact reference

Arrivals form a stationary Poisson process with rate lambda. Interarrival times are independent exponential variables. Every customer requires exactly s = 2 s of service, the server is continuously available, service is first-in first-out and the waiting room is unlimited. There is no abandonment, blocking, overtaking or server interruption. Service capacity is therefore 1,800 arrivals per hour. Customers can represent vehicles only if these assumptions are reasonable for the intended abstraction.

Utilisation rho is lambda times s. The five values 0.30, 0.50, 0.70, 0.85 and 0.95 correspond to 540, 900, 1,260, 1,530 and 1,710 arrivals per hour. The exact M/D/1 expected queueing wait excludes the two-second service time. Total time in the system would add that service time. The distinction is maintained in every table and figure.

The exact mean follows from the Pollaczek-Khinchine expression using the second moment of a constant service time (Bertsekas and Gallager, 1992). Little's relation (Little, 1961) connects the stationary mean queue population with arrival rate and mean wait. It provides an interpretation of the delay here; a separate numerical check of that relation would require a time-averaged queue-population estimate.

The event recurrence advances directly from one arrival to the next. Waiting time is the positive part of the previous wait plus service duration minus the new interarrival interval. No time grid is introduced. This removes time-step bias from the experiment and focuses attention on stochastic sampling, initialisation and the validity of the queue assumptions.

\rho=\lambda s<1,\quad E[W_q]=\frac{\rho s}{2(1-\rho)}
(1)
W_{n+1}=\max\left(0,\ W_n+s-A_{n+1}\right)
(2)

3. Replication design and diagnostic checks

For each utilisation, 30 independent runs use separate fixed random-generator seeds. Each run discards 10,000 initial arrivals and retains the next 100,000 waits. Although this gives three million retained observations per utilisation, waits within a run are serially dependent. Uncertainty in the estimated mean is therefore assessed from the independent run means.

The 95% interval is calculated as the average of the 30 run means plus or minus 2.04523 times their sample standard deviation divided by the square root of 30. This follows the Student-t construction described in the NIST/SEMATECH handbook. Its coverage is approximate because the distribution of replication means may depart from normality, particularly when runs are short or utilisation is high.

An executable check compares each aggregate mean with the analytical value, using a tolerance of five replication standard errors plus 0.01 s to identify large discrepancies. The tighter 95% intervals are reported separately so that agreement can be assessed without relying solely on this tolerance. For the fixed seeds used here, all five analytical means lie within those intervals.

Warm-up sensitivity is examined separately at rho = 0.95 using 12 seeds and discarded lengths of 0, 10,000 and 30,000 arrivals. Each setting retains 100,000 subsequent observations. Matching seeds helps control variation between settings, although the retained windows differ. The comparison tests whether a warm-up effect is apparent relative to sampling variation in these runs.

To describe the upper tail, each run calculates its ninety-fifth percentile by linear interpolation, and the 30 values are averaged. This average within-run percentile characterises individual waits. It is distinct from the confidence interval for the estimated mean, and its own sampling uncertainty is not quantified here.

Table 1. Warm-up sensitivity at utilisation 0.95. The standard error is computed across twelve replications.
Warm-up arrivalsRunsMean wait (s)Mean SE (s)
01218.96340.56773
10,0001218.72340.585609
30,0001218.66450.623229
Replication means at utilisation 0.95 and the exact 19 s reference. Variation among runs is substantial near capacity.
Figure 1. Replication means at utilisation 0.95 and the exact 19 s reference. Variation among runs is substantial near capacity.

4. Results

The exact mean queueing waits are 0.428571, 1.000000, 2.333333, 5.666667 and 19.000000 s across the five utilisations. The simulated means are 0.429154, 1.002628, 2.327574, 5.684475 and 19.324017 s. At the highest utilisation, the difference of 0.324 s is approximately 1.19 replication standard errors, consistent with the greater sampling variation in that case.

At rho = 0.95, the replication-based 95% interval is 18.767-19.881 s. At rho = 0.30 it is 0.427844-0.430463 s. The increase in interval width reflects stronger variability and dependence as the queue becomes harder to clear. The same retained sample count therefore gives very different numerical precision across utilisation cases. A simulation budget should be assessed against the required precision, rather than chosen solely by the number of generated arrivals.

The average within-run ninety-fifth-percentile wait rises from 2.143 s at utilisation 0.30 to 59.595 s at 0.95. At the latter point it is about three times the mean. A mean alone consequently gives an incomplete picture of the constructed service experience. These quantiles concern individual waiting times, whereas the reported confidence intervals concern the estimated mean; they answer different questions.

For warm-up lengths of 0, 10,000 and 30,000 arrivals, the diagnostic at rho = 0.95 gives mean waits of 18.963, 18.723 and 18.665 s, with standard errors of 0.568, 0.586 and 0.623 s. The changes in mean are smaller than these standard errors, so the runs do not resolve a clear warm-up effect. Longer or differently structured simulations could behave differently.

The analytical expression also shows how rapidly delay increases near capacity. Raising utilisation from 0.85 to 0.95 increases the exact mean from 5.667 to 19 s, a factor of 3.353, while the arrival rate rises by 11.76%. This response follows from the stationary M/D/1 assumptions. At or above utilisation one, the model has no finite stationary mean wait.

Table 2. Exact means and simulation estimates. Waiting excludes service; the percentile column is the average of within-run percentiles.
UtilisationExact mean (s)MC mean (s)95% low (s)95% high (s)Avg. 95th pct. (s)
0.30.4285710.4291540.4278440.4304632.14263
0.511.002630.9985751.006684.1102
0.72.333332.327572.313782.341378.1903
0.855.666675.684485.618445.7505118.3471
0.951919.32418.767119.880959.5946
Mean waiting time increases nonlinearly near capacity. Error bars show replication-based 95% intervals for the estimated mean.
Figure 2. Mean waiting time increases nonlinearly near capacity. Error bars show replication-based 95% intervals for the estimated mean.

5. Interpretation and limits of transport use

The model provides an analytical reference for an isolated service process, but additional mechanisms are needed for many transport applications. Traffic signals introduce periods when service is unavailable, finite storage permits spillback, and vehicle or driver differences affect service times. These features would need to be represented before interpreting the calculated waits as intersection or network delay.

Even within single-server theory, service-time variability matters. The M/G/1 expression includes the second service-time moment, so holding mean capacity fixed does not hold mean delay fixed. The deterministic service used here is a restrictive case. Correlated arrivals and time-varying demand can further alter both transient peaks and stationary assumptions. Kingman's heavy-traffic work provides broader theoretical context, but no approximation for those additional cases is tested here.

The reported confidence intervals describe Monte Carlo precision for the specified model. Uncertainty in measured demand, service times and the choice of model would need to be assessed separately. Field comparison would require sufficiently detailed arrival and service records, an assessment of stationarity, and a documented treatment of missing or censored observations.

Agreement with the analytical mean across five utilisations provides the main verification of the recurrence. The simulation was not compared with an independent event-list implementation, and no exact quantile was used to check its upper-tail estimates. Further verification and observations from the intended operating setting would be needed before using those estimates for a capacity decision.

Mean waits and average within-run ninety-fifth percentiles describe different aspects of the queue. Neither curve is a confidence bound on the other.
Figure 3. Mean waits and average within-run ninety-fifth percentiles describe different aspects of the queue. Neither curve is a confidence bound on the other.

6. Reproducibility and conclusions

Every replication seed, mean and within-run percentile is exported. NumPy generates the exponential arrivals (Harris et al., 2020); the waiting-time recurrence is explicitly included in the source. Independent replication records make the uncertainty calculation inspectable and support reuse (Wilkinson et al., 2016). Reproduction requires only Python and NumPy, with no traffic simulator or external demand file.

Mean waiting time rises sharply as utilisation approaches capacity, and the precision achieved by a fixed simulation length deteriorates at the same time. Upper-tail waits also increase substantially: at utilisation 0.95, the average within-run ninety-fifth percentile is about three times the simulated mean. Independent replication and comparison with an analytical mean help establish numerical reliability, while warm-up behaviour and tail accuracy require their own checks. These considerations remain relevant when extending the model to more detailed service or transport systems.

Declarations

Data and code availability

The calculations use specified numerical scenarios. No field or laboratory measurements were used. The accompanying files provide the calculation code, input values, result tables and software environment.

Funding and competing interests

This study was prepared for the CivilSpectra technical collection. No external research funding or sponsorship is claimed.

Editorial status

This article forms part of the journal’s illustrative technical collection and has not undergone peer review.

References

  1. Lindley, D.V. (1952). The theory of queues with a single server. Proceedings of the Cambridge Philosophical Society, 48(2), 277-289. Source ↗
  2. Bertsekas, D. and Gallager, R. (1992). Data Networks. Second edition. Prentice-Hall. Chapter 3: Delay models in data networks. Source ↗
  3. Little, J.D.C. (1961). A proof for the queuing formula: L = lambda W. Operations Research, 9(3), 383-387. Source ↗
  4. Kingman, J.F.C. (1961). The single server queue in heavy traffic. Proceedings of the Cambridge Philosophical Society, 57(4), 902-904. Source ↗
  5. NIST/SEMATECH (n.d.). e-Handbook of Statistical Methods, Section 1.3.5.2: Confidence limits for the mean. Accessed 7 November 2026. Source ↗
  6. Harris, C.R., Millman, K.J., van der Walt, S.J., et al. (2020). Array programming with NumPy. Nature, 585, 357-362. Source ↗
  7. Wilkinson, M.D., Dumontier, M., Aalbersberg, I.J., et al. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data, 3, 160018. Source ↗