# 网络演算

网络演算是为分组交换通信网络计算最坏情况性能保证（如端到端时延与积压上界）的数学框架。它以到达曲线对流量建模、以服务曲线对网络元素建模，并在最小加代数中通过代数推导得出保证——该双半环中，加法为取最小值运算，乘法为加法运算。<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup><sup> • </sup><sup>[2](https://mediatum.ub.tum.de/doc/1328613/375837.pdf)</sup>

| 关键事实 | 内容 |
|---|---|
| 设定 | 最小加（min, +）双半环；加法为取最小，乘法为加法<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup> |
| 标准到达曲线 | 漏桶 \( \gamma_{r,b}(t) = r \cdot t + b \)：突发容限 \( b \)，长期速率 \( r \)<sup>[3](http://www.cs.cuhk.hk/~cslui/STUDY_GROUP/network_calculus_1.pdf)</sup> |
| 标准服务曲线 | 速率-延迟 \( \beta_{R,T}(t) = \max\{0, R \cdot (t - T)\} \)<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup> |
| 积压/时延上界 | \( \sup_{s \ge 0}\{\alpha(s) - \beta(s)\} \) 与 \( h(\alpha, \beta) \)，即水平距离<sup>[3](http://www.cs.cuhk.hk/~cslui/STUDY_GROUP/network_calculus_1.pdf)</sup><sup> • </sup><sup>[5](https://inria.hal.science/tel-01107384/document)</sup> |
| 速率-延迟下的时延/积压 | \( b/R + T \) 与 \( b + r \cdot T \)<sup>[6](https://disco.ethz.ch/courses/hs14/des/lectures/des_chapter6.pdf)</sup> |
| 两大分支 | 确定性（DNC）与随机性（SNC）<sup>[7](https://link.springer.com/book/10.1007/978-1-84800-127-5)</sup> |
| 旗舰应用 | 空客A380的AFDX骨干网络认证<sup>[8](https://disco.cs.rptu.de/downloads/publicationfiles/BS16-1.pdf)</sup> |

## 工作原理

流是一个累积函数 \( R(t) \)，即到时刻 \( t \) 为止所出现的数据量。宽义递增函数 \( \alpha \) 是 \( R \) 的到达曲线，当且仅当 \( \forall\, s \le t: R(t) - R(s) \le \alpha(t - s) \)；流的规范（最紧）到达曲线为 \( \alpha = R \oslash R \)。<sup>[2](https://mediatum.ub.tum.de/doc/1328613/375837.pdf)</sup> 当系统对输入 \( x \) 的输出满足 \( y(t) \ge (\beta \otimes x)(t) \) 时，称该系统提供了一条服务曲线 \( \beta \)。<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup>

核心算子是最小加卷积 \[ (f \otimes g)(t) = \inf_{0 \le s \le t}\{f(s) + g(t - s)\}, \] 它具有交换律与结合律。<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup><sup> • </sup><sup>[9](https://hal.science/hal-04513292v1/document)</sup> 非线性系统 \( y(t) = \Pi(x)(t) \) 被替换为线性下界系统 \( y_{\mathrm{lin}}(t) = (\beta \otimes x)(t) \le y(t) \)；正是这一替换决定了最小加代数（而非经典代数）才是正确的框架。<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup> 对于无丢失系统，时刻 \( t \) 的积压为 \( R(t) - R^{*}(t) \)，虚拟时延为 \[ d(t) = \inf\{\tau \ge 0: R(t) \le R^{*}(t + \tau)\}. \]<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup>

由到达曲线 \( \alpha \) 与服务曲线 \( \beta \) 可得主要定理：积压上界 \( \sup_{s \ge 0}\{\alpha(s) - \beta(s)\} \)（最大垂直距离）、时延上界 \( h(\alpha, \beta) \)（最大水平距离），以及输出上界 \( \alpha'(t) = \alpha \oslash \beta = \sup_{s \ge 0}\{\alpha(t + s) - \beta(s)\} \)。<sup>[3](http://www.cs.cuhk.hk/~cslui/STUDY_GROUP/network_calculus_1.pdf)</sup><sup> • </sup><sup>[5](https://inria.hal.science/tel-01107384/document)</sup><sup> • </sup><sup>[10](https://www.thinkmind.org/download.php?articleid=icn_2015_2_30_30047)</sup> 将服务曲线分别为 \( \beta_1 \) 与 \( \beta_2 \) 的两个系统串联，得到单一服务曲线 \( \beta_1 \otimes \beta_2 \)。<sup>[3](http://www.cs.cuhk.hk/~cslui/STUDY_GROUP/network_calculus_1.pdf)</sup>

## 实施方法

实践者以令牌桶到达曲线对每条流建模：当 \( d = 0 \) 时 \( \gamma_{r,b}(d) = 0 \)，否则为 \( b + r \cdot d \)，其中 \( r \) 为最大到达速率、\( b \) 为最大突发度；并以速率-延迟服务曲线对每个节点建模：\( \beta_{R,T}(d) = \max\{0, R \cdot (d - T)\} \)，其中 \( R \) 为最小服务速率、\( T \) 为最大延迟。<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup> 沿路径将各服务曲线通过卷积串联；交叉流量则通过剩余服务曲线 \[ (\beta \ominus \alpha)(d) = \sup_{0 \le u \le d}(\beta - \alpha)(u) \] 予以扣除。分析方法根据复用结构在TFA、SFA、PMOO与LUDB之间选取。<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup> 软件支持包括面向分段线性曲线的开源Java DISCO工具箱<sup>[11](https://dl.acm.org/doi/10.1145/1190095.1190105)</sup>以及DiscoDNC v2工具。<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup>

## 起源

R. L. Cruz（克鲁兹）在1995年发表于《IEEE通信选题杂志》的虚拟电路交换网络服务质量保证论文中，引入了带有突发度约束的开创性时延演算。<sup>[12](https://doi.org/10.1109/49.400660)</sup> 张正尚（Cheng-Shang Chang）在1998年发表于《IEEE信息论汇刊》的论文<sup>[13](https://doi.org/10.1109/18.669173)</sup>及其2000年专著《通信网络中的性能保证》<sup>[14](https://doi.org/10.1007/978-1-4471-0459-9)</sup>中，发展了基于滤波的确定性流量调节与服务保证方法。最小加系统理论的形式化则见于让-伊夫·勒布德克（Jean-Yves Le Boudec）与帕特里克·蒂朗（Patrick Thiran）2001年的专著《网络演算：互联网确定性排队系统理论》，其全文可免费获取。<sup>[1](https://leboudec.github.io/netcal/latex/netCalBook.pdf)</sup>

## 变体

自20世纪90年代初以来，该理论沿确定性与随机性两条路线发展；两者均以一条给出累积到达量上界（或许是在概率意义上）的曲线对到达建模，以一条给出累积服务量下界的曲线对服务建模。<sup>[7](https://link.springer.com/book/10.1007/978-1-84800-127-5)</sup> 随机分支通过概率服务曲线方法分析网络。<sup>[15](https://doi.org/10.1145/1071690.1064251)</sup> 包括“突发只付一次”与“复用只计一次”现象在内的确定性高级成果，近来已被纳入随机网络演算。<sup>[16](https://drops.dagstuhl.de/storage/04dagstuhl-reports/volume14/issue04/24141/DagRep.14.4.1/DagRep.14.4.1.pdf)</sup> 最大加与最小加两支的对偶性见于约尔格·利贝赫尔（Jörg Liebeherr）2017年的专著。<sup>[17](https://doi.org/10.1561/1300000059)</sup>

**突发只付一次（PBOO）** 由串联性质推出：对于两个速率-延迟节点，端到端时延上界 \( D \le b/R + T_1 + T_2 \) 严格小于逐节点求和 \( D_1 + D_2 \le (2b + r \cdot T_1)/R + T_1 + T_2 \)，因为突发只在整条路径上支付一次，而非在每一跳都支付。<sup>[18](https://leboudec.github.io/netcal/resources/NetCalAv31.pdf)</sup> **复用只计一次（PMOO）** 针对分离流分析（SFA）的一个弱点：当交叉流共享子路径时，SFA会将复用重复计算多次；PMOO则在扣除交叉流量之前，尽可能对被分析的服务器子串联进行卷积。<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup> PMOO与SFA给出的上界均显著紧于TFA，<sup>[19](https://ieeexplore.ieee.org/ielaam/6287639/8948470/9293318-aam.pdf)</sup> 但二者孰优尚无定论：一份综述报告称在任意复用下PMOO通常最紧，<sup>[19](https://ieeexplore.ieee.org/ielaam/6287639/8948470/9293318-aam.pdf)</sup> 而邦多夫（Bondorf）与施密特（Schmitt）证明SFA可以在任意程度上优于PMOO串联分析，因此两者互为补充。<sup>[8](https://disco.cs.rptu.de/downloads/publicationfiles/BS16-1.pdf)</sup>

## 应用

网络演算已应用于航空电子领域：[空客A380](https://www.edgepedia.org/zh/airbus-a380)的骨干AFDX网络即采用网络演算完成认证，工具支持包括开源与商业工具，以及[罗克韦尔柯林斯](https://www.edgepedia.org/zh/rockwell-collins)（Rockwell Collins）、赫斯曼（Hirschmann）与西门子（SIEMENS）的产品。<sup>[8](https://disco.cs.rptu.de/downloads/publicationfiles/BS16-1.pdf)</sup> 它被应用于工厂自动化、航空航天机载网络与汽车车载网络中的IEEE时间敏感网络、IETF确定性网络与5G URLLC。<sup>[16](https://drops.dagstuhl.de/storage/04dagstuhl-reports/volume14/issue04/24141/DagRep.14.4.1/DagRep.14.4.1.pdf)</sup> 针对TSN，已有对IEEE 802.1Qbv时间感知调度的最坏情况时延分析。<sup>[20](https://doi.org/10.1109/access.2018.2858767)</sup>

## 局限与替代方法

对于单队列，若 \( \alpha \) 次可加且 \( \beta(0) = 0 \)，则垂直距离与水平距离上界是紧的。<sup>[5](https://inria.hal.science/tel-01107384/document)</sup> 在网络中，最小加卷积所得上界的悲观程度随网络规模增长，而通过线性规划求精确最坏情况上界是NP难的。<sup>[5](https://inria.hal.science/tel-01107384/document)</sup> 一种2017年的代数算法所产生的时延上界平均仅偏离基于优化的结果1.142%，同时将计算时间缩短数个数量级。<sup>[4](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)</sup>

随机上界相较确定性上界，在流数 \( N \) 上可改进 \( \Omega(\sqrt{N}) \) 倍，体现了统计复用增益。<sup>[21](https://www.dcs.warwick.ac.uk/~florin/lib/sigcomm12.pdf)</sup> 相关结果通常针对逐比特系统推导，不能直接适用于基于分组的系统，而这一转换步骤常被忽视。<sup>[2](https://mediatum.ub.tum.de/doc/1328613/375837.pdf)</sup> 该方法还要求静态流路径，且在缺乏额外方法时要求前馈网络。<sup>[19](https://ieeexplore.ieee.org/ielaam/6287639/8948470/9293318-aam.pdf)</sup>

与其他方法相比：排队论从概率分布计算平均值而非最坏情况保证，<sup>[2](https://mediatum.ub.tum.de/doc/1328613/375837.pdf)</sup> 并且与仿真或启发式方法不同，网络演算即使悲观也能给出可靠、可复现的上限证据。<sup>[22](https://arxiv.org/abs/2508.18855)</sup> 确定性网络演算无法说明最坏情况有多罕见：它无法区分千分之一概率的10毫秒时延与所有情形均为10毫秒时延。<sup>[16](https://drops.dagstuhl.de/storage/04dagstuhl-reports/volume14/issue04/24141/DagRep.14.4.1/DagRep.14.4.1.pdf)</sup>

## References

1. [Network Calculus: A Theory of Deterministic Queuing Systems for the Internet (Le Boudec & Thiran, Springer LNCS 2050, full text)](https://leboudec.github.io/netcal/latex/netCalBook.pdf)
2. [Network Calculus: A Comprehensive Guide (Bouillard, Boyer, Le Corronc companion guide)](https://mediatum.ub.tum.de/doc/1328613/375837.pdf)
3. [A Short Tutorial on Network Calculus I: Fundamental Bounds in Communication Networks (Le Boudec, Thiran, Giordano, ISCAS 2000)](http://www.cs.cuhk.hk/~cslui/STUDY_GROUP/network_calculus_1.pdf)
4. [Quality and Cost of Deterministic Network Calculus – Design and Evaluation of an Accurate and Fast Analysis (Bondorf, Nikolaus, Schmitt, POMACS 2017)](https://disco.cs.rptu.de/downloads/publicationfiles/BNS17-1.pdf)
5. [Algorithms and efficiency of Network Calculus (A. Bouillard HDR thesis)](https://inria.hal.science/tel-01107384/document)
6. [ETH Zurich lecture notes, Chapter 6: Network Calculus (Wattenhofer)](https://disco.ethz.ch/courses/hs14/des/lectures/des_chapter6.pdf)
7. [Stochastic Network Calculus (Liu & Jiang, Springer 2008)](https://link.springer.com/book/10.1007/978-1-84800-127-5)
8. [Should Network Calculus Relocate? An Assessment of Current Algebraic and Optimization-based Analyses (Bondorf & Schmitt, 2016)](https://disco.cs.rptu.de/downloads/publicationfiles/BS16-1.pdf)
9. [Network Calculus (HAL deposit, modern formalization with historical recap)](https://hal.science/hal-04513292v1/document)
10. [Worst case modeling of aggregate scheduling in Network Calculus (ICN 2015)](https://www.thinkmind.org/download.php?articleid=icn_2015_2_30_30047)
11. [The DISCO Network Calculator: a toolbox for worst case analysis (Schmitt et al., 2006)](https://dl.acm.org/doi/10.1145/1190095.1190105)
12. [R.L. Cruz (1995). Quality of service guarantees in virtual circuit switched networks. IEEE Journal on Selected Areas in Communications.](https://doi.org/10.1109/49.400660)
13. [Cheng-Shang Chang (1998). On deterministic traffic regulation and service guarantees: a systematic approach by filtering. IEEE Transactions on Information Theory.](https://doi.org/10.1109/18.669173)
14. [Cheng-Shang Chang (2000). Performance Guarantees in Communication Networks. Telecommunication networks and computer systems.](https://doi.org/10.1007/978-1-4471-0459-9)
15. [Florin Ciucu, Almut Burchard, Jörg Liebeherr (2005). A network service curve approach for the stochastic analysis of networks. ACM SIGMETRICS Performance Evaluation Review.](https://doi.org/10.1145/1071690.1064251)
16. [Dagstuhl Seminar 24141 report: Network Calculus (2024)](https://drops.dagstuhl.de/storage/04dagstuhl-reports/volume14/issue04/24141/DagRep.14.4.1/DagRep.14.4.1.pdf)
17. [Jörg Liebeherr (2017). Duality of the Max-Plus and Min-Plus Network Calculus. Foundations and Trends® in Networking.](https://doi.org/10.1561/1300000059)
18. [Network Calculus lecture slides (Le Boudec)](https://leboudec.github.io/netcal/resources/NetCalAv31.pdf)
19. [A Survey on Network Calculus Tools for Network Analysis (IEEE)](https://ieeexplore.ieee.org/ielaam/6287639/8948470/9293318-aam.pdf)
20. [Luxi Zhao, Paul Pop, Silviu S. Craciunas (2018). Worst-Case Latency Analysis for IEEE 802.1Qbv Time Sensitive Networks Using Network Calculus. IEEE Access.](https://doi.org/10.1109/access.2018.2858767)
21. [Perspectives on Network Calculus (Ciucu & Schmitt, ACM SIGCOMM CCR 2012)](https://www.dcs.warwick.ac.uk/~florin/lib/sigcomm12.pdf)
22. [Network Calculus Results for TSN: An Introduction (2025)](https://arxiv.org/abs/2508.18855)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Networking fundamentals overview

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/network-calculus

English original: https://www.edgepedia.org/network-calculus
