# 分组交换

在分组交换这一数字传输技术中，一条消息被分成称为“分组”的小块；每个分组各自寻找穿越网络的路径，等这些小块到达目的地后再重新拼合。<sup>[1](https://technav.ieee.org/topic/packet-switching/)</sup> 在现代分组交换网络中，源主机把长消息分割成较小的分组并送入网络；接收方再把分组重新组装成原始消息。<sup>[2](https://www2.ic.uff.br/~michael/kr1999/1-introduction/1_040-network_core.htm)</sup> 这项技术由[唐纳德·戴维斯](https://www.edgepedia.org/zh/donald-davies)（Donald Davies）及其团队于1965年在英国国家物理实验室（NPL）开发，并支撑着互联网。<sup>[3](https://www.npl.co.uk/about-us/history/timeline)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 消息被拆分为分组，每个分组独立地通过网络路由，并在目的地重新组装<sup>[1](https://technav.ieee.org/topic/packet-switching/)</sup> |
| 起源 | 1965年由唐纳德·戴维斯在NPL提出构想；“packet”一词首次出现在他1966年6月的论文《数字通信网络提案》中<sup>[3](https://www.npl.co.uk/about-us/history/timeline)</sup><sup> • </sup><sup>[4](https://www.historyofcomputercommunications.info/interviews/Donald-Davies)</sup> |
| 首个运行网络 | NPL实验室网络，世界上第一个投入运行的分组交换网络；到20世纪70年代初，其局域网已服务约200名用户<sup>[4](https://www.historyofcomputercommunications.info/interviews/Donald-Davies)</sup><sup> • </sup><sup>[5](https://www.npl.co.uk/getattachment/about-us/History/npl-history.pdf?lang=en-GB)</sup> |
| 网络类型 | 分组交换网络要么是虚电路网络，要么是数据报网络<sup>[2](https://www2.ic.uff.br/~michael/kr1999/1-introduction/1_040-network_core.htm)</sup> |
| 阿帕网（ARPANET） | 1967年由劳伦斯·罗伯茨（Lawrence Roberts）规划，作为第一个分组交换广域计算机网络；1969年劳动节，第一台分组交换机在加州大学洛杉矶分校（UCLA）安装<sup>[6](https://else.fcim.utm.md/pluginfile.php/179315/mod_resource/content/1/computer-networking-a-top-down-approach-8th-edition.pdf)</sup><sup> • </sup><sup>[26](https://www.computinghistory.org.uk/det/5613/)</sup> |
| 效率 | 1976年的一项比较研究发现，分组交换实现在传输利用效率和整体网络成本方面相较电路交换实现具有明显优势<sup>[7](https://www.sciencedirect.com/science/article/pii/0376507576900283)</sup> |
| 标准接口 | ITU-T X.25规定了以分组模式运行的终端与公共分组交换数据网络之间的接口，接入速度和吞吐量最高可达2 Mbit/s<sup>[8](https://www.itu.int/itu-t/recommendations/rec.aspx?id=3694&lang=en)</sup> |

## 工作原理

在存储转发操作下，每个中间节点接收整个分组，将其暂存在缓冲区中一小段时间，一旦下一条链路可用便将其转发出去。<sup>[1](https://technav.ieee.org/topic/packet-switching/)</sup> 由于没有预先保留端到端路径，来自许多用户的分组共享同一批链路，从而使许多同时使用网络的用户能够高效共享网络带宽。<sup>[1](https://technav.ieee.org/topic/packet-switching/)</sup>

分组交换网络有两种形式。在数据报网络中，每个分组都携带完整的目的地址，并且可能走不同的路由。在虚电路网络中，先建立一条路径，分组携带电路标识符。<sup>[2](https://www2.ic.uff.br/~michael/kr1999/1-introduction/1_040-network_core.htm)</sup> [互联网协议](https://www.edgepedia.org/zh/internet-protocol)实现两个基本功能：寻址和分片；为传输选择路径称为路由选择；当需要穿过“小分组”网络传输时，IP还利用首部字段对数据报进行分片和重组。<sup>[9](https://www.rfc-editor.org/rfc/rfc791.html)</sup>

由于分组会争用共享链路，拥塞由端系统和路由器管理。TCP拥塞控制把丢包作为拥塞信号，采用慢启动和拥塞避免算法；并且可以按照RFC 3168的规定使用显式拥塞通知（ECN）。<sup>[10](https://datatracker.ietf.org/doc/rfc5681/)</sup> 在ECN机制下，路由器会在支持ECN的分组中设置“拥塞经历”（CE）码点，而不是将其丢弃；端系统对拥塞的反应至多每个数据窗口一次，也就是至多每个往返时间一次。<sup>[11](https://www.rfc-editor.org/info/rfc3168/)</sup>

## 独立起源：巴兰与戴维斯

这一思想在大西洋两岸各自独立产生。1964年，[兰德公司](https://www.edgepedia.org/zh/rand-corporation)（RAND Corporation）的科学家保罗·巴兰（Paul Baran）和莎拉·博姆（Sharla Boehm）提交了一份备忘录，提出利用“热土豆”交换的“分布式网络”，使任何单一节点都不会对系统运行至关重要；这是对军方担忧的回应：即使电话线幸存，主要交换中心也可能被摧毁。博姆和巴兰用Fortran编写的程序模拟了这一后来被称为分组交换的过程。<sup>[12](https://www.livescience.com/technology/communications/science-history-first-computer-to-computer-message-lays-the-foundation-for-the-internet-but-it-crashes-halfway-through-oct-29-1969)</sup>

在NPL，唐纳德·戴维斯在1965年11月10日的一份备忘录中记录了自己的想法，12月15日传阅了一篇更详尽的论文，并于1966年3月16日在NPL向100多人作了演讲。他1966年6月的论文《数字通信网络提案》首次使用了“packet”一词，把用户想要发送的消息与用于传输的较小单元区分开来，并引入了用户设备与分组网络之间的“接口计算机”概念。1966年8月，戴维斯被提升为主管，因而有权开展一项试点实验；实验成功后，NPL网络的建设工作启动，这是世界上第一个投入运行的分组交换网络。<sup>[4](https://www.historyofcomputercommunications.info/interviews/Donald-Davies)</sup> 到20世纪70年代初，NPL局域网已向约200名用户提供在线服务，这一示范为阿帕网的发展提供了指引。<sup>[5](https://www.npl.co.uk/getattachment/about-us/History/npl-history.pdf?lang=en-GB)</sup>

## 阿帕网与互联网的诞生

[劳伦斯·罗伯茨](https://www.edgepedia.org/zh/lawrence-roberts-computer-scientist)于1967年发表了阿帕网的总体计划；阿帕网是第一个分组交换广域计算机网络，也是当今公共互联网的直接祖先。<sup>[26](https://www.computinghistory.org.uk/det/5613/)</sup> 1969年劳动节，在[伦纳德·克莱因罗克](https://www.edgepedia.org/zh/leonard-kleinrock)（Leonard Kleinrock）的指导下，第一台分组交换机在加州大学洛杉矶分校安装；随后又在斯坦福研究所、加州大学圣巴巴拉分校和[犹他大学](https://www.edgepedia.org/zh/university-of-utah)安装了另外三台。<sup>[6](https://else.fcim.utm.md/pluginfile.php/179315/mod_resource/content/1/computer-networking-a-top-down-approach-8th-edition.pdf)</sup> 当几条工作线索汇合时，“packet”一词被采纳自戴维斯的用法，阿帕网拟议的线路速度也从2.4 Kbps提高到50 Kbps。<sup>[13](https://www.computerhistory.org/internethistory/1960s/)</sup>

第一次传输发生在1969年10月29日晚上10点30分左右，原本打算发送的是加州大学洛杉矶分校学生程序员查理·克莱恩（Charley Kline）键入的五个字符“LOGIN”；系统在输入两个字母后崩溃，因此跨过阿帕网——第一个分组交换广域计算机网络——的第一条消息是“LO”。<sup>[14](https://www.tomshardware.com/networking/this-week-in-1969-the-internet-was-born-and-immediately-glitched-only-two-of-the-five-letters-in-the-first-computer-to-computer-message-were-received)</sup><sup> • </sup><sup>[12](https://www.livescience.com/technology/communications/science-history-first-computer-to-computer-message-lays-the-foundation-for-the-internet-but-it-crashes-halfway-through-oct-29-1969)</sup><sup> • </sup><sup>[26](https://www.computinghistory.org.uk/det/5613/)</sup> 20世纪70年代早期至中期，又出现了更多分组交换网络，包括连接夏威夷群岛各大学的微波网络ALOHANet、美国国防高级研究计划局（DARPA）的分组卫星网络和分组无线电网络，以及BBN的商业分组交换服务Telenet。<sup>[6](https://else.fcim.utm.md/pluginfile.php/179315/mod_resource/content/1/computer-networking-a-top-down-approach-8th-edition.pdf)</sup> 第一个在国际范围运营的商业分组网络是国际分组交换服务（IPSS），它基于X.25建议书运行。<sup>[15](https://www.itu.int/itunews/manager/display.asp?ipage=standardization&issue=06&year=2006)</sup> 1983年1月1日，阿帕网在所有主机上从网络控制程序切换为TCP/IP；这一转变被视为现代互联网的诞生。<sup>[16](https://www.tomshardware.com/networking/arpanet-standardized-tcp-ip-on-this-day-in-1983-43-year-old-standard-set-the-foundations-for-todays-internet)</sup>

## 分组交换与电路交换

[电路交换](https://www.edgepedia.org/zh/circuit-switching)是电话网的技术，它为整个通话保留一条固定路径；而分组交换则根据当前的路由和交换决策，尽可能快地转发每个分组。<sup>[17](https://www.ituonline.com/tech-definitions/what-is-fast-packet-switching/)</sup> 这种比较已得到定量研究。1976年对一个大型共用数据网络的研究发现，在该研究的假设下，分组交换实现在传输利用效率和整体网络成本方面具有明显优势；该网络中约一半流量是需要极短传输时延的短消息，另一半是长消息。<sup>[7](https://www.sciencedirect.com/science/article/pii/0376507576900283)</sup> 1980年，电气与电子工程师协会（IEEE）对电路交换、报文（分组）交换和直通交换的分析发现，采用电路交换时，数据通信网络会因信道保留而迅速饱和；这些技术各自相对有效范围的边界取决于网络拓扑、消息长度和有效利用率。<sup>[18](https://doi.org/10.1109/TC.1980.1675510)</sup>

这种权衡并非只有一面。2003年一项针对以电路交换替代分组交换或在分组交换之外增加电路交换的互联网的研究得出结论：在网络核心，峰值流速受接入链路限制，两者之间几乎没有性能差异；而且由于可以造出运行速度远快于分组交换机的电路交换机，电路交换核心值得进一步研究。<sup>[19](https://opg.optica.org/jocn/abstract.cfm?uri=jon-2-4-83)</sup> 分组交换确实需要缓冲，而光交换机目前无法以合理的规模提供这种缓冲。<sup>[20](https://stanford.edu/~boyd/papers/net_opt.html)</sup>

## 分组网络上的语音与混合设计

电信业已从传统的公共交换电话网（PSTN）电路交换语音网络转向采用互联网协议技术的分组交换数据网络；国际电信联盟（ITU）将这一变化描述为根本性的范式转变。VoIP技术使用分组交换，在利用网络容量方面比电路交换技术更高效。<sup>[21](https://www.itu.int/osg/csd/wtpf/wtpf2001/sgreport/revisedversion9march/secgenreport_e.html)</sup><sup> • </sup><sup>[22](https://www.itu.int/ITU-D/treg/projects/itu-ec/Ghana/modules/FinalDocuments/Licensing.pdf)</sup> ITU-T G.800现在以一种与技术无关的方式描述统一功能架构，涵盖面向连接的电路交换（CO-CS）、面向连接的分组交换（CO-PS）和无连接分组交换（CL-PS）。<sup>[23](https://www.itu.int/itu-t/recommendations/rec.aspx?lang=en&rec=14897)</sup>

混合设计把两种模式结合起来。一种混合交换数据中心网络采用快得多的电路交换机（重新配置需要付出不小成本）和慢得多的分组交换机（重新配置无需成本），来互连服务器机架。<sup>[24](https://arxiv.org/abs/1712.06634)</sup> 最近一项对比较研究的综合发现，选择性混合交换——为时间关键型或长寿命流分配类电路资源，并对尽力而为流量使用分组交换——在延迟、吞吐量、能耗和服务质量方面优于单一范式。<sup>[25](https://www.sirenjournals.net/article-detail?id=288)</sup>

## References

1. [Packet switching, IEEE Technology Navigator](https://technav.ieee.org/topic/packet-switching/)
2. [The Network Core (Kurose, Computer Networking)](https://www2.ic.uff.br/~michael/kr1999/1-introduction/1_040-network_core.htm)
3. [NPL History timeline: Packet switching is developed by Donald Davies](https://www.npl.co.uk/about-us/history/timeline)
4. [Donald Davies, History of Computer Communications](https://www.historyofcomputercommunications.info/interviews/Donald-Davies)
5. [NPL History Highlights (PDF)](https://www.npl.co.uk/getattachment/about-us/History/npl-history.pdf?lang=en-GB)
6. [Computer Networking: A Top-Down Approach, 8th ed., section 1.7, History of Computer Networking and the Internet](https://else.fcim.utm.md/pluginfile.php/179315/mod_resource/content/1/computer-networking-a-top-down-approach-8th-edition.pdf)
7. [Circuit and packet switching: A cost and performance tradeoff study, Computer Networks (1976)](https://www.sciencedirect.com/science/article/pii/0376507576900283)
8. [ITU-T Recommendation X.25 (10/1996)](https://www.itu.int/itu-t/recommendations/rec.aspx?id=3694&lang=en)
9. [RFC 791: Internet Protocol](https://www.rfc-editor.org/rfc/rfc791.html)
10. [RFC 5681: TCP Congestion Control](https://datatracker.ietf.org/doc/rfc5681/)
11. [RFC 3168: The Addition of Explicit Congestion Notification (ECN) to IP](https://www.rfc-editor.org/info/rfc3168/)
12. [Science history: First computer-to-computer message, Live Science](https://www.livescience.com/technology/communications/science-history-first-computer-to-computer-message-lays-the-foundation-for-the-internet-but-it-crashes-halfway-through-oct-29-1969)
13. [Internet History, Computer History Museum](https://www.computerhistory.org/internethistory/1960s/)
14. [The internet was born this week in 1969, Tom's Hardware](https://www.tomshardware.com/networking/this-week-in-1969-the-internet-was-born-and-immediately-glitched-only-two-of-the-five-letters-in-the-first-computer-to-computer-message-were-received)
15. [ITU Standardization timeline](https://www.itu.int/itunews/manager/display.asp?ipage=standardization&issue=06&year=2006)
16. [ARPANET standardized TCP/IP on this day in 1983, Tom's Hardware](https://www.tomshardware.com/networking/arpanet-standardized-tcp-ip-on-this-day-in-1983-43-year-old-standard-set-the-foundations-for-todays-internet)
17. [What is fast packet switching?, ITU Online](https://www.ituonline.com/tech-definitions/what-is-fast-packet-switching/)
18. [A Tradeoff Study of Switching Systems in Computer Communication Networks, IEEE Transactions on Computers (1980)](https://doi.org/10.1109/TC.1980.1675510)
19. [Performance of circuit switching in the Internet, Journal of Optical Communications and Networking (2003)](https://opg.optica.org/jocn/abstract.cfm?uri=jon-2-4-83)
20. [Network Optimization for Unified Packet and Circuit Switched Networks, Stanford](https://stanford.edu/~boyd/papers/net_opt.html)
21. [Final Report of the SG on IP Telephony, ITU (2001)](https://www.itu.int/osg/csd/wtpf/wtpf2001/sgreport/revisedversion9march/secgenreport_e.html)
22. [ITU licensing module on VoIP and packet switching](https://www.itu.int/ITU-D/treg/projects/itu-ec/Ghana/modules/FinalDocuments/Licensing.pdf)
23. [ITU-T Recommendation G.800](https://www.itu.int/itu-t/recommendations/rec.aspx?lang=en&rec=14897)
24. [Better Algorithms for Hybrid Circuit and Packet Switching in Data Centers, arXiv](https://arxiv.org/abs/1712.06634)
25. [Systematic Comparative Study of Circuit Switching, Packet Switching, and Hybrid Switching, SirenJournals](https://www.sirenjournals.net/article-detail?id=288)
26. [ARPANET launches the world's first packet-switched wide area computer network - Event - Computing History](https://www.computinghistory.org.uk/det/5613/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: 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/packet-switching

English original: https://www.edgepedia.org/packet-switching
