# M/M/1排队

M/M/1排队是一种单服务台排队模型，其中顾客按照泊松过程到达，服务时间服从指数分布，只有一个服务台，且等待室容量无限。在肯德尔记号中，第一个M代表马尔可夫（指数）到达过程，第二个M代表指数服务时间，1代表单服务台；完整的记号M/M/1/∞明确表示队列容量无限。<sup>[1](https://archive.nptel.ac.in/content/storage2/courses/117103017/module3/lec1/4.html)</sup><sup> • </sup><sup>[2](https://homepages.ecs.vuw.ac.nz/~schukova/SCIE201/Lectures/Lecture9_10_final.html)</sup> 它是最著名的排队系统，也是排队论中标准的第一个模型。<sup>[3](https://arxiv.org/abs/2103.10999)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 到达率为\( \lambda \)的泊松到达，服务率为\( \mu \)的指数服务，单服务台，无限队列，先到先服务<sup>[1](https://archive.nptel.ac.in/content/storage2/courses/117103017/module3/lec1/4.html)</sup> |
| 稳定性条件 | 仅当\( \rho = \lambda/\mu < 1 \)时存在稳态；否则队列无限增长<sup>[2](https://homepages.ecs.vuw.ac.nz/~schukova/SCIE201/Lectures/Lecture9_10_final.html)</sup> |
| 平稳分布 | 几何分布：系统中顾客数为\( i \)的概率为\( p_i = (1-\rho)\rho^i \)<sup>[4](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Discrete_Stochastic_Processes_%28Gallager%29/06%3A_Markov_processes_with_countable_state_spaces/6.05%3A_Birth-Death_Processes)</sup> |
| 系统内平均顾客数 | \( L = \rho/(1-\rho) \)<sup>[2](https://homepages.ecs.vuw.ac.nz/~schukova/SCIE201/Lectures/Lecture9_10_final.html)</sup> |
| 系统内平均时间 | \( W = 1/(\mu-\lambda) \)，由利特尔定律\( L = \lambda W \)<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup> |
| 队列中平均等待时间 | \( W_q = \rho\,E(s)/(1-\rho) \)，其中\( E(s) = 1/\mu \)<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup> |
| 延迟-吞吐量曲线 | 归一化延迟\( L/S = 1/(1-x) \)；在吞吐量分数为0.25、0.50、0.75和0.90时，延迟分别为服务时间的1.33、2.00、4.00和10.00倍<sup>[6](https://www.sigarch.org/three-other-models-of-computer-system-performance-part-2/)</sup> |

## 模型

顾客逐个到达，形成到达率为\( \lambda \)的泊松过程，因此到达间隔时间服从均值为\( 1/\lambda \)的指数分布。每位顾客所需的服务时间服从服务率为\( \mu \)、均值为\( 1/\mu \)的指数分布。服务台一次接待一位顾客，服务台忙碌时到达的顾客在容量无界的队列中等待，按先到先服务原则接受服务。<sup>[1](https://archive.nptel.ac.in/content/storage2/courses/117103017/module3/lec1/4.html)</sup><sup> • </sup><sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup> 该模型是一个开放系统：到达率不受已有多少任务在等待的影响。<sup>[6](https://www.sigarch.org/three-other-models-of-computer-system-performance-part-2/)</sup>

由于到达分布和服务分布都是无记忆的，系统的状态——即当前顾客数——构成一个连续时间马尔可夫链。状态转移只发生在相邻状态之间：从状态\( i \)到\( i+1 \)的转移率为\( \lambda \)（一次到达，即一次出生），从\( i+1 \)到\( i \)的转移率为\( \mu \)（一次服务完成，即一次死亡）。这类系统称为生灭过程。<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup><sup> • </sup><sup>[4](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Discrete_Stochastic_Processes_%28Gallager%29/06%3A_Markov_processes_with_countable_state_spaces/6.05%3A_Birth-Death_Processes)</sup>

## 稳态分析

平衡方程直接给出平稳分布。在稳态下，从状态\( i \)到\( i+1 \)的期望转移率\( \lambda p_i \)必须等于从\( i+1 \)到\( i \)的期望转移率\( \mu p_{i+1} \)。迭代可得\( p_i = \rho^i p_0 \)，对所有状态的概率归一化后得到\( p_0 = 1-\rho \)。因此\( p_i = (1-\rho)\rho^i \)，这是一个几何分布。<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup><sup> • </sup><sup>[4](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Discrete_Stochastic_Processes_%28Gallager%29/06%3A_Markov_processes_with_countable_state_spaces/6.05%3A_Birth-Death_Processes)</sup>

到达的顾客必须等待的概率，即服务台忙碌的概率，为\( 1 - p_0 = \rho \)。<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup> 系统内的平均顾客数可由几何级数求得：

\[ L = \sum_{i=0}^{\infty} i\,p_i = \frac{\rho}{1-\rho}. \]

再由利特尔定律\( L = \lambda W \)，可得系统内平均时间\( W = 1/(\mu-\lambda) \)，减去平均服务时间即得平均排队时间\( W_q = \rho/(\mu-\lambda) \)。<sup>[4](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Discrete_Stochastic_Processes_%28Gallager%29/06%3A_Markov_processes_with_countable_state_spaces/6.05%3A_Birth-Death_Processes)</sup><sup> • </sup><sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup> 排队时间的第90百分位数为\( \pi(90) = E(s)\ln(10\rho)/(1-\rho) \)。<sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup>

讲义中的一个计算示例：设\( \lambda = 0.8 \)次到达/分钟，\( \mu = 1.0 \)次服务/分钟，则\( \rho = 0.8 \)，平均有\( L = 0.8/0.2 = 4 \)位顾客在系统中，\( W = 1/0.2 = 5 \)分钟；验证\( L = \lambda W = 0.8 \times 5 = 4 \)成立。<sup>[7](https://uomus.edu.iq/uploads/lectures/45/2457d14baeea4c7d9cb01e2f3eea3a54.pdf)</sup>

## 延迟-吞吐量权衡

M/M/1排队的一个关键性质是延迟随利用率上升而变化的方式。记\( x = R \cdot S \)为达到的最大吞吐量分数，其中\( R \)为到达率，\( S \)为平均服务时间，则按服务时间归一化的平均总延迟为

\[ \frac{L}{S} = \frac{1}{1 - x}. \]

在吞吐量分数为0.25、0.50、0.75和0.90时，归一化延迟分别为1.33、2.00、4.00和10.00。当该分数趋近于1时，延迟急剧趋向无穷大，因此满吞吐量不可行；接近满吞吐量时，很难从到达突发留下的积压中恢复。<sup>[6](https://www.sigarch.org/three-other-models-of-computer-system-performance-part-2/)</sup> 同一条曲线也解释了为什么看似保守的设计实际上是必要的：一台计算机以\( R = 10 \)包/秒的速率接收非调度数据包，总延迟目标为100毫秒，则不能为每个数据包花费100毫秒进行服务。在M/M/1模型下，它必须平均以\( S = 50 \)毫秒服务每个数据包，接受50毫秒的排队延迟，并以最大吞吐量的50%运行。<sup>[6](https://www.sigarch.org/three-other-models-of-computer-system-performance-part-2/)</sup>

与确定性到达的对比十分鲜明。若顾客规律到达，且恒定服务时间等于到达间隔时间的90%，就不会产生排队延迟；而在相同平均速率下，泊松到达和指数服务时间的平均响应时间是平均服务时间的10倍。<sup>[8](https://www.site.uottawa.ca/~bochmann/ELG7187C/CourseNotes/PerformanceModeling/Queuing%20models/index.html)</sup>

## 扩展与相关模型

**一般服务时间。** 当服务时间不是指数分布时，模型变为M/G/1。该模型的波拉切克-欣钦公式表明，期望任务数取决于服务时间的方差，\( \mathbb{E}[N] = \rho + (\rho^2 + \lambda^2\,\mathbb{V}[S])/(2(1-\rho)) \)，而M/M/1的值\( \rho/(1-\rho) \)仅取决于\( \rho \)。服务时间越可预测，拥塞越小。<sup>[9](https://appliedprobability.blog/2026/07/10/a-server-with-general-service-the-m-g-1-queue/)</sup> 实践者指出，当实际工作负载为重尾分布时，指数服务假设可能严重低估等待时间。<sup>[10](https://quantmemo.com/concepts/the-mg1-queue-and-the-pollaczek-khinchine-formula)</sup>

**调度规则。** M/M/1排队是调度策略的标准测试平台。一项对M/M/1排队中带有顾客拒绝机制的后进先出和先进先出规则的分析发现，调度规则对过载性能有显著影响，其结果可应用于分布式系统中的过载控制。<sup>[11](https://doi.org/10.1109/TCOM.1986.1096578)</sup> 在受M/M/1式分析启发的Web服务器研究中，最短剩余处理时间（SRPT）调度在高负载下使平均响应时间缩短至公平分时下的约十分之一，并且由于实际Web文件大小是重尾分布而非指数分布，即使对最大文件的请求也没有受到显著惩罚。<sup>[12](https://www.cs.cmu.edu/~bianca/project_pages/project_sync.html)</sup>

**控制与环境。** 变体模型增加了阈值、休假、灾难和切换环境。在T策略阈值控制下，低于阈值时服务率低，高于阈值时服务率高；性能度量的单调性和凸性支持使用这种状态依赖服务来平衡计算服务器的能耗和服务质量。<sup>[13](https://ideas.repec.org/a/eee/apmaco/v261y2015icp284-301.html)</sup> 一个在两个交替环境中运行的M/M/1排队，其速率由两状态马尔可夫链控制，可模拟在正常运行与异常或修复阶段之间交替的系统；其稳态分布是两个几何分布的广义混合。<sup>[3](https://arxiv.org/abs/2103.10999)</sup>

**瞬态行为。** 平衡公式仅在稳态下适用。对于周期性排空并重新启动的队列，佩格登和罗森夏因于1982年获得了一个闭式解，仅涉及有限和，给出了在区间起点系统空闲的条件下，长度为\( t \)的区间内恰好发生\( i \)次到达和\( j \)次服务的概率。<sup>[14](https://pubsonline.informs.org/doi/10.1287/mnsc.28.7.821)</sup>

## 历史

阿格纳·埃尔朗于1909年发表了《概率论与电话通话》，证明了随机到达的电话呼叫服从泊松定律，其1917年的工作包含了损失公式和等待时间公式，其中包括至今仍用于呼叫中心人员配置的埃尔朗-C公式。<sup>[15](https://mathshistory.st-andrews.ac.uk/SH/erlang_sh.pdf)</sup> 戴维·G·肯德尔1953年在《数学统计年鉴》上发表的论文《排队论中出现的随机过程及其用嵌入马尔可夫链方法的分析》确立了单服务台队列的嵌入马尔可夫链方法，并给出了泊松输入和等间隔输入下一、二、三个服务台的详细结果；用于命名M/M/1排队的肯德尔记号A/B/c正来自按到达间隔分布、服务分布和服务台数量对队列进行分类的这一传统。<sup>[16](https://doi.org/10.1214/aoms/1177728975)</sup><sup> • </sup><sup>[5](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)</sup>

## References

1. [Module 3, Lecture 1: Kendall's Notation, Little's Result, PASTA, M/M/1/∞ Queue, NPTEL](https://archive.nptel.ac.in/content/storage2/courses/117103017/module3/lec1/4.html)
2. [Queueing Systems: The M/M/1 system, Iñaki Ucar and Stefanka Chukova, Victoria University of Wellington](https://homepages.ecs.vuw.ac.nz/~schukova/SCIE201/Lectures/Lecture9_10_final.html)
3. [Di Crescenzo, Giorno, Kumar, Nobile (2021). M/M/1 queue in two alternating environments and its heavy traffic approximation. arXiv.](https://arxiv.org/abs/2103.10999)
4. [6.5: Birth-Death Processes, Discrete Stochastic Processes (Gallager), Engineering LibreTexts](https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Signal_Processing_and_Modeling/Discrete_Stochastic_Processes_%28Gallager%29/06%3A_Markov_processes_with_countable_state_spaces/6.05%3A_Birth-Death_Processes)
5. [Elementary Queuing Theory Notes, Richard E. Newman, University of Florida](https://www.cise.ufl.edu/~nemo/cop5615/queuing.html)
6. [Mark D. Hill (2019). Three Other Models of Computer System Performance: Part 2, SIGARCH](https://www.sigarch.org/three-other-models-of-computer-system-performance-part-2/)
7. [Single-server Queue (M/M/1) lecture notes, Al-Mustaqbal University](https://uomus.edu.iq/uploads/lectures/45/2457d14baeea4c7d9cb01e2f3eea3a54.pdf)
8. [Queuing models, Performance Modeling course notes, University of Ottawa](https://www.site.uottawa.ca/~bochmann/ELG7187C/CourseNotes/PerformanceModeling/Queuing%20models/index.html)
9. [A Server with General Service: The M/G/1 Queue, Applied Probability Notes](https://appliedprobability.blog/2026/07/10/a-server-with-general-service-the-m-g-1-queue/)
10. [The M/G/1 Queue and the Pollaczek-Khinchine Formula, Explained, Quant Memo](https://quantmemo.com/concepts/the-mg1-queue-and-the-pollaczek-khinchine-formula)
11. [Overload Performance of Several Processor Queueing Disciplines for the M/M/1 Queue, IEEE Transactions on Communications 34(6), 1986](https://doi.org/10.1109/TCOM.1986.1096578)
12. [Scheduling in web servers: the SYNC project, Bianca Schroeder and Mor Harchol-Balter, Carnegie Mellon University](https://www.cs.cmu.edu/~bianca/project_pages/project_sync.html)
13. [Zhang, Wang, Do (2015). Threshold properties of the M/M/1 queue under T-policy with applications. Applied Mathematics and Computation 261:284-301.](https://ideas.repec.org/a/eee/apmaco/v261y2015icp284-301.html)
14. [Pegden, C. D., Rosenshine, M. (1982). Some New Results for the M/M/1 Queue. Management Science 28(7):821-828.](https://pubsonline.informs.org/doi/10.1287/mnsc.28.7.821)
15. [Agner Erlang and the mathematics of telephone traffic, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/SH/erlang_sh.pdf)
16. [Kendall, D. G. (1953). Stochastic Processes Occurring in the Theory of Queues and their Analysis by the Method of the Imbedded Markov Chain. Ann. Math. Statist. 24(3):338-354.](https://doi.org/10.1214/aoms/1177728975)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Stochastic processes › Markov chains and processes › Continuous-time Markov processes › Birth–death processes

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/m-m-1-queue

English original: https://www.edgepedia.org/m-m-1-queue
