# 超立方体拓扑

超立方体拓扑是一种用于并行计算机的互连网络，其中 2^d 个处理节点中的每一个都与 d 个节点相连，这些节点的二进制地址与本节点恰有一位不同。该结构是 d 维立方体的图，也称为二进制 n-立方体，其正则性使其以节点度随系统规模增长为代价，换来了对数直径和高二分宽度。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup>

| 关键事实 | 详情 |
|---|---|
| 节点数 | d 维超立方体恰好有 2^d 个节点，因此 p 个处理器的超立方体维数为 d = log2 p。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup> |
| 度与直径 | 两者均等于 d = log2 p：每个节点有 log2 p 个邻居，任意两个节点之间最多相隔 log2 p 条链路。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup> |
| 二分宽度 | p/2（在 64 节点对比中为 32 条链路），因此数据可以在两半之间高度并行地流动。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup><sup> • </sup><sup>[2](https://cs.wmich.edu/gupta/teaching/cs5260/5260Sp15web/lectureNotes/parallel%20architectures%20and%20interconections%20networks%20chapter02.pdf)</sup> |
| 64 节点数据 | 二分带宽 32 条链路，最大/平均跳数 6/3，每交换机 7 个 I/O 端口，链路总数 256 条。<sup>[3](https://www.sciencedirect.com/science/article/pii/B9780323852777000130)</sup> |
| 首台有影响力的机器 | 加州理工学院宇宙立方体（1983 年），一台 64 节点的布尔 6-立方体，采用英特尔 8086-8087 处理器，造价 80,000 美元，功耗 700 瓦。<sup>[4](https://calteches.library.caltech.edu/589/)</sup> |
| 商业后代 | Intel iPSC 被描述为第一台商用高度并行计算机，是一台超立方体机器。<sup>[5](https://hypercubeusa.com/AboutUs/CompanyHistory/tabid/385/Default.aspx)</sup> |
| 当前状况 | 超立方体网络曾经流行，但目前已不再建造；现代系统使用 3 维、5 维或 6 维环面，或诸如 InfiniBand 之类的多级网络。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup> |

## 结构与路由

超立方体中的每个节点由一个 d 位二进制地址标识。其 d 个邻居通过翻转该地址的一位来找到，即将一个坐标 x_i 从 x_i 变为 1 − x_i。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup> 这种寻址方式使路由变得局部而简单：e-立方体或从左到右路由算法从左到右翻转各位，因此从节点 000 到节点 101 的消息经过节点 100，而在 p 节点超立方体中最大翻转次数为 log2 p。<sup>[6](https://homepages.math.uic.edu/~jan/mcs572/mcs572notes/lec02.html)</sup>

使该拓扑具有吸引力的特性正是源自这一结构。直径，即任意一对节点之间的最大距离，决定了需要所有节点对交换数据的算法的通信时间下界。<sup>[2](https://cs.wmich.edu/gupta/teaching/cs5260/5260Sp15web/lectureNotes/parallel%20architectures%20and%20interconections%20networks%20chapter02.pdf)</sup> 二分宽度，即必须删除以使节点分成相等两半的最少边数，限制了同一时间可以在两半之间传输的数据量；低值意味着瓶颈，如同四车道高速公路上的一座单车道桥梁，而高值则允许许多条路径同时传输数据。<sup>[2](https://cs.wmich.edu/gupta/teaching/cs5260/5260Sp15web/lectureNotes/parallel%20architectures%20and%20interconections%20networks%20chapter02.pdf)</sup> 超立方体将对数直径与 p/2 的二分宽度结合在一起，后者随机器规模线性增长。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup>

超立方体也可以视为均匀环面或网格网络的一个特例，其中每个坐标为 0 或 1；在这种情况下，网格与环面重合，而超立方体环面的边数不超过超立方体网格。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup>

## 与其他拓扑的比较

64 节点系统的并排比较显示了超立方体在常见选择中所处的位置。<sup>[3](https://www.sciencedirect.com/science/article/pii/B9780323852777000130)</sup>

| 属性 | 二维网格 | 二维环面 | 超立方体 | 胖树 | 全连接 |
|---|---|---|---|---|---|
| 二分带宽（链路） | 8 | 16 | 32 | 32 | 1,024 |
| 最大/平均跳数 | 14/7 | 8/4 | 6/3 | 11/9 | 1/1 |
| 每交换机 I/O 端口 | 5 | 5 | 7 | 4 | 64 |
| 交换机数量 | 64 | 64 | 64 | 192 | 64 |
| 链路总数 | 176 | 192 | 256 | 384 | 2,080 |

超立方体达到了与胖树相同的 32 条链路二分带宽，同时跳数远低于胖树的 11/9，但它每交换机需要 7 个端口，而胖树需要 4 个，网格或环面需要 5 个。<sup>[3](https://www.sciencedirect.com/science/article/pii/B9780323852777000130)</sup> 全连接网络仅通过使用 2,080 条链路才达到 1/1 的跳数，来源将其描述为过于庞大。<sup>[3](https://www.sciencedirect.com/science/article/pii/B9780323852777000130)</sup>

## 可扩展性限制

超立方体的弱点在于其节点度的增长。每个节点的通信链路数是总节点数的对数函数，因此由于集成电路技术和端口数量的限制，超立方体不适合作为可能包含数十万个节点的超大型并行计算机的候选方案。<sup>[7](https://www.ijcaonline.org/archives/volume127/number4/22721-2015906378/)</sup> 当节点数翻倍时，每个顶点的度增加一，而这种不断上升的度与物理节点的固定引脚数相冲突。<sup>[8](https://pages.cs.wisc.edu/~tvrdik/5/html/Section5.html)</sup><sup> • </sup><sup>[2](https://cs.wmich.edu/gupta/teaching/cs5260/5260Sp15web/lectureNotes/parallel%20architectures%20and%20interconections%20networks%20chapter02.pdf)</sup> 为解决这一问题，人们开发了超立方体的常数度、对数直径衍生结构，称为超立方网络。<sup>[8](https://pages.cs.wisc.edu/~tvrdik/5/html/Section5.html)</sup> 从可扩展性的角度来看，网格和环面——其度随机器增长保持不变——是更有趣的互连拓扑类别。<sup>[9](https://upcommons.upc.edu/bitstreams/ac99e1fe-f35a-4ce8-81a5-dffea83c9d5b/download)</sup>

## 历史：宇宙立方体与商用机器

加州理工学院的超立方体工作始于 1981 年 5 月，当时理论物理学教授杰弗里·福克斯（Geoffrey Fox）参加了[卡弗·米德](https://www.edgepedia.org/zh/carver-mead)（Carver Mead）关于 VLSI 及其对并发性影响的研讨会。福克斯意识到他可以将并行计算机用于其研究核心的格点规范计算，并在 1981 年夏天与学生们制定了一种并行算法，通过在 VAX 11/780 上模拟并行性进行测试。其问题的自然架构是三维网格，对应 64 个处理器。<sup>[10](https://www.netlib.org/utk/lsi/pcwLSI/text/node13.html)</sup>

计算机科学副教授[查尔斯·塞茨](https://www.edgepedia.org/zh/charles-l-seitz)（Charles Seitz）自 1978 年以来一直从事高性能 VLSI 架构研究。在他和研究生通过模拟发展出他们的想法后，他们于 1982 年建造了一台 4 节点前身；它成功运行了福克斯的程序，足以让塞茨和福克斯建造 64 节点版本，即宇宙立方体。<sup>[4](https://calteches.library.caltech.edu/589/)</sup> 该机器是一台布尔 6-立方体，由 64 个[英特尔 8086](https://www.edgepedia.org/zh/intel-8086)-8087 处理器组成，长约 5 英尺，功耗 700 瓦，计算能力约为克雷-1（Cray-1）的十分之一，成本约为其百分之一（80,000 美元对约 500 万美元）。每个节点仅与超立方体拓扑中的六个最近邻居通信，没有共享内存。<sup>[4](https://calteches.library.caltech.edu/589/)</sup> 加州理工学院关于该项目的报告将[宇宙立方](https://www.edgepedia.org/zh/cosmic-cube)体及其商业后代描述为亚微米系统架构项目的第一代消息传递多计算机。<sup>[11](https://authors.library.caltech.edu/records/4ezgd-qqg58)</sup>

该设计迅速进入工业界。一份并行架构综述指出，英特尔和 n-cube 的早期商用产品基于超立方体，而 CRAY T3D 使用三维环面，[Intel Paragon](https://www.edgepedia.org/zh/intel-paragon) 使用二维网格，Kendall Square 机器使用环形拓扑。<sup>[12](https://www.sciencedirect.com/science/article/pii/S0167819199000691)</sup> Hypercube, Inc. 于 1985 年 2 月在[安大略省滑铁卢](https://www.edgepedia.org/zh/waterloo-ontario)注册成立，曾与英特尔签订合同，参与开发 Intel iPSC 超立方体计算机，这也是该公司名称的由来。<sup>[5](https://hypercubeusa.com/AboutUs/CompanyHistory/tabid/385/Default.aspx)</sup>

## 算法与嵌入

超立方体通信拓扑经常出现在实际的并行应用中，包括 FFT 算法和某些类别的排序算法。当此类算法在超立方体多计算机上运行时，通信成本极小，因为可以安排进程位置，使得只需要邻居之间的通信。<sup>[9](https://upcommons.upc.edu/bitstreams/ac99e1fe-f35a-4ce8-81a5-dffea83c9d5b/download)</sup>

由于硬件转向网格和环面，研究人员研究了如何通过将超立方体图嵌入网格或环面图，在这些机器上运行超立方体结构的算法。标准嵌入对网格是最优的；对于任意维度的环面，安东尼奥·冈萨雷斯（Antonio González）、米格尔·瓦莱罗-加西亚（Miguel Valero-García）和路易斯·迪亚斯·德·塞里奥（Luis Díaz de Cerio）提出了异或嵌入，并证明它在任何环面上都优于标准嵌入，还证明了对于一维环面（环），它在包括 FFT 和某些排序算法的超立方体拓扑算法类别中使执行时间最小化。<sup>[9](https://upcommons.upc.edu/bitstreams/ac99e1fe-f35a-4ce8-81a5-dffea83c9d5b/download)</sup> 结合两种结构的乘积网络也被直接提出，例如环面嵌入超立方体，它结合了两种拓扑在并行计算中的优势。<sup>[13](https://arxiv.org/abs/0912.2298)</sup>

## 容错与后期变体

超立方体具有固有的结构优势和容错特性，大量文献涵盖了超立方体多计算机网络可靠性分析和容错路由。<sup>[14](https://www.sciencedirect.com/science/article/pii/S0020025513007585)</sup> 一种路由方法——故障避免路由——引入了神经网络方法在超立方体网络中进行路由，同时避开故障节点。<sup>[15](https://arxiv.org/abs/1905.03086)</sup> 变体包括扩展超立方体，这是一种超立方体的分层网络，其原始形式在节点故障时对链路故障容忍度差，因为它包含关节点；一种具有对称连接的变体被设计来改善这一点，并附有容错路由算法和模拟结果。<sup>[16](https://www.sciencedirect.com/science/article/pii/S1383762197000180)</sup> 混合设计在近期工作中持续存在：2023 年的提案将胖树与超立方体结合，将 2^k − 1 个交换机的 k-立方体连接到叶交换机，使立方体部分中的每个交换机服务 k 个计算节点，旨在降低硬件成本并改善路径多样性。<sup>[17](https://onlinelibrary.wiley.com/doi/10.1002/cpe.7587)</sup>

## 拓扑为何衰落

赋予超立方体低直径的对数度，也正是终结其在硬件中应用的原因。现代高性能系统改为构建为 3 维、5 维或 6 维的环面网络，或由小型全连接交换机构建的间接多级网络，[InfiniBand](https://www.edgepedia.org/zh/infiniband) 即为一例。<sup>[1](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)</sup> 超立方体的思想以间接方式存续：其算法仍然是环面和网格机器上被模拟的标准通信模式，其图仍然是衡量新拓扑——从交换超立方体到混合胖树设计——的基准。<sup>[9](https://upcommons.upc.edu/bitstreams/ac99e1fe-f35a-4ce8-81a5-dffea83c9d5b/download)</sup><sup> • </sup><sup>[17](https://onlinelibrary.wiley.com/doi/10.1002/cpe.7587)</sup>

## References

1. [Lectures on Parallel Computing, TU Wien / ResearchGate](https://www.researchgate.net/publication/382638922_Lectures_on_Parallel_Computing)
2. [Chapter 2. Parallel Architectures and Interconnection Networks, Stewart Weiss, CSci 493.65](https://cs.wmich.edu/gupta/teaching/cs5260/5260Sp15web/lectureNotes/parallel%20architectures%20and%20interconections%20networks%20chapter02.pdf)
3. [Dan C. Marinescu, Cloud Computing (Third Edition), 2023, Chapter 6, ScienceDirect](https://www.sciencedirect.com/science/article/pii/B9780323852777000130)
4. ["Cosmic Cubism," Engineering & Science, Volume 47:4, March 1984, Caltech](https://calteches.library.caltech.edu/589/)
5. [History of Hypercube, Inc.](https://hypercubeusa.com/AboutUs/CompanyHistory/tabid/385/Default.aspx)
6. [Classifications and Scalability, mcs572 lecture notes, UIC](https://homepages.math.uic.edu/~jan/mcs572/mcs572notes/lec02.html)
7. [A Comparative Study of Interconnection Network, International Journal of Computer Applications](https://www.ijcaonline.org/archives/volume127/number4/22721-2015906378/)
8. [Direct interconnection networks I+II, University of Wisconsin–Madison](https://pages.cs.wisc.edu/~tvrdik/5/html/Section5.html)
9. [Antonio González, Miguel Valero-García, Luis Díaz de Cerio (1995). Executing Algorithms with Hypercube Topology on Torus Multicomputers. IEEE Transactions on Parallel and Distributed Systems 6(8).](https://upcommons.upc.edu/bitstreams/ac99e1fe-f35a-4ce8-81a5-dffea83c9d5b/download)
10. [2.2.3 Birth of the Hypercube, netlib](https://www.netlib.org/utk/lsi/pcwLSI/text/node13.html)
11. [William C. Athas, Charles L. Seitz (1987). Multicomputers. Caltech Computer Science Technical Report 5244-tr-87.](https://authors.library.caltech.edu/records/4ezgd-qqg58)
12. [S. Lakshmivarahan, Sudarshan K. Dhall (1999). Ring, torus and hypercube architectures/algorithms for parallel computing. Parallel Computing 25(13–14).](https://www.sciencedirect.com/science/article/pii/S0167819199000691)
13. [N. Gopalakrishna Kini, M. Sathish Kumar, H. S. Mruthyunjaya (2009). Performance Metrics Analysis of Torus Embedded Hypercube Interconnection Network. arXiv.](https://arxiv.org/abs/0912.2298)
14. [Reliability analysis and fault tolerance for hypercube multi-computer networks, Information Sciences, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0020025513007585)
15. [Fault-Tolerant Routing in Hypercube Networks by Avoiding Faulty Nodes. arXiv.](https://arxiv.org/abs/1905.03086)
16. [Fault-tolerant message routing in the extended hypercube, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S1383762197000180)
17. [Wang, Y., Li, Y. (2023). Hybrid interconnection networks for reducing hardware cost and improving path diversity based on fat-trees and hypercubes. Concurrency and Computation: Practice and Experience.](https://onlinelibrary.wiley.com/doi/10.1002/cpe.7587)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Network topology and data-center networking › Switched fabric and interconnect topologies

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/hypercube-topology

English original: https://www.edgepedia.org/hypercube-topology
