# 环面互连

环面互连是一种用于并行计算机的直接网络拓扑，其中节点排列在规则的多维网格中，每个节点与其最近邻节点相连，网格的边缘环绕连接，使每一维都形成一个闭合的环。形式上，环面是一个*k*元*n*立方体：它将 N = k<sup>n</sup> 个节点装入 *n* 个维度，每维 *k* 个节点，从简单的环（*n* = 1）到二元超立方体（*k* = 2）。<sup>[1](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)</sup> 环面网络一直是多台旗舰级超级计算机的通信骨干，包括 IBM 的蓝色基因系列、Cray 的 XT 和 XE 系列，以及富士通的 K 计算机和富岳。

| 关键事实 | 详情 |
|---|---|
| 拓扑 | *k*元*n*立方体：N = k<sup>n</sup> 个节点分布在 *n* 维网格中，带环绕链路；二维环面使每个节点的度数固定为 4<sup>[1](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)</sup><sup> • </sup><sup>[2](https://jastoolbox.sandia.gov/topic/joint-architecture-standard-overview/network-topologies/2-d-meshes-and-2-d-toroids/)</sup> |
| 蓝色基因/L | 65,536 个节点组成 32 × 32 × 64 三维环面，每个计算 ASIC 有六个 1.4 Gbit/s 双向环面端口<sup>[3](https://arxiv.org/abs/hep-lat/0212030)</sup> |
| 蓝色基因/P | 三维环面，每链路方向 425 MBps，每节点双向 5.1 GBps，72 机柜系统上 73,728 个计算节点<sup>[4](https://www.redbooks.ibm.com/redbooks/pdfs/sg247287.pdf)</sup> |
| 蓝色基因/Q | 五维环面，网络中嵌入 ALU 以硬件加速归约操作<sup>[5](https://www.redbooks.ibm.com/redbooks/pdfs/sg247948.pdf)</sup> |
| Tofu（K 计算机） | 六维网格/环面互连 88,128 个节点，每链路方向 5 GB/s；专用 ICC 芯片中集成 10 端口路由器<sup>[6](https://www.researchgate.net/publication/265227674_Tofu_Interconnect_for_the_K_computer)</sup> |
| Tofu Interconnect D（富岳） | 每节点通过六个网络接口实现 40.8 GB/s 注入带宽；8 字节消息延迟 0.49–0.54 微秒<sup>[7](https://www.r-ccs.riken.jp/fugaku/system/index.html)</sup> |
| Cray Gemini（泰坦） | 三维环面，每个 ASIC 在 X+、X−、Y+、Y−、Z+ 和 Z− 方向上连接六个最近邻<sup>[8](https://www.osti.gov/servlets/purl/1777710)</sup> |

## 拓扑与特性

环面的决定性特征是环绕链路。二维网格只将每个节点与其东、西、南、北邻居相连，边缘和角落节点的连接数较少；将左边缘节点连接到右边缘节点、上边缘节点连接到下边缘节点，网格就变成了环体，使每个节点具有相同的固定度数 4，并消除了网格中心形成的拥塞瓶颈。<sup>[2](https://jastoolbox.sandia.gov/topic/joint-architecture-standard-overview/network-topologies/2-d-meshes-and-2-d-toroids/)</sup> 与相同维度的网格相比，环面的直径和平均距离降至近一半，连通度和二分宽度翻倍。<sup>[9](https://pages.cs.wisc.edu/~tvrdik/5/html/Section5.html)</sup>

**设计者为何选择环面。** 规则的物理排列与封装约束很好地匹配。在低维度下，环面具有均匀的短导线，无需中继器即可高速运行，逻辑上的最小路径几乎总是物理上的最小路径，因此网络利用了通信节点之间的物理局部性；对于局部通信模式，延迟远低于随机流量，吞吐量远高于随机流量。<sup>[1](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)</sup> 环面还具有良好的路径多样性，即使在置换流量下也能保持负载均衡，并且由于所有通道都是双向的，可以使用双向信号传输来高效利用引脚和导线。<sup>[1](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)</sup>

**代价。** 环面的跳数比胖树等对数网络更大，导致延迟略高、引脚成本更高。<sup>[1](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)</sup> [二分带宽](https://www.edgepedia.org/zh/bisection-bandwidth)不随系统规模扩展，对于一般通信模式，网络争用限制了性能。<sup>[10](https://wgropp.cs.illinois.edu/courses/cs598-s16/lectures/lecture20.pdf)</sup> 更大的 *k* 提高二分带宽，其缩放比例为 n<sup>(k−1)/k</sup>，这是五维环面网络在后期系统中更受欢迎的原因之一。<sup>[11](https://solomon2.web.engr.illinois.edu/teaching/cs598_fall2016/lectures/lec29.pdf)</sup> 环面网络还容易发生死锁，因此路由算法必须提供无死锁保证，同时在良性流量上仍保持良好性能。<sup>[12](https://www.researchgate.net/publication/228569336_The_Cray_XT4_and_Seastar_3-D_Torus_Interconnect)</sup>

可靠性在实践中是一大优势。二维环体由于具有丰富的环路和替代路径，可以承受大量随机链路或节点故障；在最坏情况下，四条链路故障或四个节点故障就能隔离一个正常工作的节点。<sup>[2](https://jastoolbox.sandia.gov/topic/joint-architecture-standard-overview/network-topologies/2-d-meshes-and-2-d-toroids/)</sup>

## 路由

数据包沿坐标轴按维序路由传输。蓝色基因/P 在其三维环面上使用虚拟直通硬件路由。<sup>[4](https://www.redbooks.ibm.com/redbooks/pdfs/sg247287.pdf)</sup> 蓝色基因/Q 提供两种点对点模式：确定性路由，即从发送方到接收方的数据包始终走相同路径，无需额外逻辑即可保持数据包顺序，但路由交叉时会产生热点；以及自适应路由，即从同一发送方到同一接收方的数据包可以根据运行时当前负载选择不同路径，以延迟代价换取网络均衡。<sup>[5](https://www.redbooks.ibm.com/redbooks/pdfs/sg247948.pdf)</sup> Tofu 互连使用扩展的维序路由，按 B、C、A、X、Y、Z、A、C、B 的顺序遍历各轴。<sup>[6](https://www.researchgate.net/publication/265227674_Tofu_Interconnect_for_the_K_computer)</sup>

## 基于环面网络构建的系统

**IBM 蓝色基因。** 蓝色基因/L 计算 ASIC 集成了两个 700 MHz PowerPC 440 核心、两个浮点单元和六个用于三维环面的 1.4 Gbit/s 双向端口；65,536 个这样的节点以 32 × 32 × 64 的几何结构连接。<sup>[3](https://arxiv.org/abs/hep-lat/0212030)</sup> 蓝色基因/P 将同样的三维环面思想扩展到 72 机柜系统上的 73,728 个计算节点，每个 ASIC 拥有六个最近邻连接，其中一些需要经过较长的电缆。<sup>[4](https://www.redbooks.ibm.com/redbooks/pdfs/sg247287.pdf)</sup> 蓝色基因/Q 转向五维环面，并在网络中嵌入算术逻辑单元，使归约操作可以在硬件中计算求和及最小值或最大值。<sup>[5](https://www.redbooks.ibm.com/redbooks/pdfs/sg247948.pdf)</sup>

**Cray。** 最初的 SeaStar 路由器以及 T3D 和 T3E 中的路由器实现了三维环面；后来的 Gemini 互连延续了这一拓扑，每个 Gemini 芯片如同三维环面的两个节点，使 XT5 和 XT6 机器可以在现场升级。<sup>[13](https://www.nextplatform.com/compute/2016/01/08/cray-cto-connects-the-dots-on-future-interconnects/1650856)</sup> 橡树岭的泰坦超级计算机使用 Gemini 互连构成三维环面，每个 ASIC 连接六个最近邻；Cray 采用折叠环面布局，在 X 和 Y 方向上每隔一个机柜用回环电缆直接连接，以最小化最大电缆长度。<sup>[8](https://www.osti.gov/servlets/purl/1777710)</sup>

**富士通 Tofu。** Tofu 是环面融合（torus fusion）的缩写，为 K 计算机开发，该计算机互连 88,128 个节点，可扩展性目标超过 100,000 个节点。其拓扑是由大小为 2 × 3 × 2 的 ABC 组通过 XYZ 网格/环面连接而成的六维网格/环面；每个方向的链路吞吐量为 5 GB/s，专用互连控制器芯片提供 10 端口路由器、四个网络接口、一个屏障单元和 [PCI Express](https://www.edgepedia.org/zh/pci-express)。<sup>[6](https://www.researchgate.net/publication/265227674_Tofu_Interconnect_for_the_K_computer)</sup> 由于网络是无外部交换机的直接网络，每节点的平均硬件仅为 ICC 芯片和约 2.2 根电缆，添加节点只需连接电缆即可。<sup>[6](https://www.researchgate.net/publication/265227674_Tofu_Interconnect_for_the_K_computer)</sup>

富岳是 K 计算机的继任者，使用 Tofu Interconnect D，集成在富士通 A64FX Arm 处理器中。每个节点有六个 Tofu 网络接口，每个 6.8 GB/s，注入带宽达 40.8 GB/s，配有 28 Gbps 通道的 10 端口路由器；实测 8 字节消息延迟为 0.49 至 0.54 微秒，1 MiB 消息吞吐量为 6.35 GB/s。<sup>[7](https://www.r-ccs.riken.jp/fugaku/system/index.html)</sup> 系统包含 158,796 个节点。<sup>[14](https://link.springer.com/article/10.1007/s11227-024-06201-x)</sup> 六维网格/环面可以在任何组边界处进行比三维环面更细粒度的分区，虚拟三维环面功能沿哈密顿回路分配三维坐标，使程序可以像在三维环面上运行一样进行优化；包含单个故障节点的分区保证仍然可用。<sup>[15](https://www.fujitsu.com/global/documents/about/resources/publications/technicalreview/topics/article005.pdf)</sup>

## 环面与胖树及蜻蜓的对比

对多达 730,000 个端点的原型系统进行的模拟研究发现，不同拓扑在不同场景下各有优势，没有单一最佳拓扑；并行工作负载的特性决定了最优选择。<sup>[16](https://doi.org/10.1109/sc.2016.13)</sup> 在同一研究中，胖树机器在二分压力测试 TRANSPOSE 基准上比环面机器快最多 40%，这符合其更大的二分带宽预期，但对于能力型工作负载，环面机器始终取得最佳聚合性能，在随机作业放置下，其最坏情况链路负载分别比胖树和蜻蜓网络低 30% 和 50%。<sup>[17](https://charm.cs.illinois.edu/newPapers/16-11/network_comparison_tracer.pdf)</sup> 对于主要与最近邻通信的模板计算，另一项研究发现，在测试的胖树、蜻蜓和环面选项中，基于环面的架构最有前景。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0167739X19326433)</sup>

这种权衡反映了环面的结构：恒定的节点度数和线性扩展成本使网络可扩展且扩展成本低廉，而有限的二分带宽则会降低横跨机器两半的流量模式的性能。<sup>[19](https://www.sciencedirect.com/science/article/abs/pii/S0743731519302266)</sup> 近期大型系统已转向其他拓扑；例如，阿贡的北极星系统使用 HPE Slingshot 11，采用蜻蜓拓扑和自适应路由。<sup>[20](https://www.alcf.anl.gov/polaris)</sup> 理化学研究所的富岳NEXT基本设计将横向扩展网络列为尚未确定的事项，当前设计阶段假设采用基于胖树的配置，而非富岳所使用的环面。<sup>[21](https://www.r-ccs.riken.jp/fugaku-next/fugakunext_basicdesign-technicalreport_en.pdf)</sup>

## References

1. [Dally and Towles, Principles and Practices of Interconnection Networks, Chapter 5: Torus Networks](https://www.maltsystem.com/images/book/Principles_and_Practices_of_Interconnection_Networks.pdf)
2. [2-D Meshes and 2-D Toroids, Joint Architecture Standard (JAS) Toolbox, Sandia National Laboratories](https://jastoolbox.sandia.gov/topic/joint-architecture-standard-overview/network-topologies/2-d-meshes-and-2-d-toroids/)
3. [The BlueGene/L Supercomputer, arXiv:hep-lat/0212030](https://arxiv.org/abs/hep-lat/0212030)
4. [IBM Blue Gene/P Application Development, IBM Redbooks SG24-7287](https://www.redbooks.ibm.com/redbooks/pdfs/sg247287.pdf)
5. [IBM System Blue Gene Solution: Blue Gene/Q Application Development, IBM Redbooks SG24-7948](https://www.redbooks.ibm.com/redbooks/pdfs/sg247948.pdf)
6. [Ajima et al., Tofu: Interconnect for the K computer, Fujitsu Scientific & Technical Journal 48(3), 2012](https://www.researchgate.net/publication/265227674_Tofu_Interconnect_for_the_K_computer)
7. [RIKEN Center for Computational Science, Fugaku system specifications (Tofu Interconnect D)](https://www.r-ccs.riken.jp/fugaku/system/index.html)
8. [Titan Network Architecture, OSTI](https://www.osti.gov/servlets/purl/1777710)
9. [Direct Interconnection Networks, University of Wisconsin–Madison course notes](https://pages.cs.wisc.edu/~tvrdik/5/html/Section5.html)
10. [Lecture 20: Distributed Memory Machines, CS 598, University of Illinois](https://wgropp.cs.illinois.edu/courses/cs598-s16/lectures/lecture20.pdf)
11. [Lecture 29: Network Interconnect Topologies, CS 598, University of Illinois](https://solomon2.web.engr.illinois.edu/teaching/cs598_fall2016/lectures/lec29.pdf)
12. [The Cray XT4 and Seastar 3-D Torus Interconnect](https://www.researchgate.net/publication/228569336_The_Cray_XT4_and_Seastar_3-D_Torus_Interconnect)
13. [Cray CTO Connects The Dots On Future Interconnects, The Next Platform](https://www.nextplatform.com/compute/2016/01/08/cray-cto-connects-the-dots-on-future-interconnects/1650856)
14. [Watanabe et al., Design and performance evaluation of UCX for the Tofu Interconnect D on Fugaku, The Journal of Supercomputing 80, 2024](https://link.springer.com/article/10.1007/s11227-024-06201-x)
15. [High-dimensional Interconnect Technology for the K Computer and the Supercomputer Fugaku, Fujitsu Technical Review](https://www.fujitsu.com/global/documents/about/resources/publications/technicalreview/topics/article005.pdf)
16. [Jain et al., Evaluating HPC networks via simulation of parallel workloads (2016)](https://doi.org/10.1109/sc.2016.13)
17. [Evaluating HPC Networks via Simulation of Parallel Workloads, full paper, University of Illinois](https://charm.cs.illinois.edu/newPapers/16-11/network_comparison_tracer.pdf)
18. [Energy and performance improvements in stencil computations on multi-node HPC systems, Future Generation Computer Systems](https://www.sciencedirect.com/science/article/abs/pii/S0167739X19326433)
19. [Energy efficient torus networks with on/off links, Journal of Parallel and Distributed Computing](https://www.sciencedirect.com/science/article/abs/pii/S0743731519302266)
20. [Polaris system specifications, Argonne Leadership Computing Facility](https://www.alcf.anl.gov/polaris)
21. [Basic Design Technical Report for the New Flagship System FugakuNEXT, RIKEN](https://www.r-ccs.riken.jp/fugaku-next/fugakunext_basicdesign-technicalreport_en.pdf)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Servers, supercomputers & data centers › Interconnects and networking

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/torus-interconnect

English original: https://www.edgepedia.org/torus-interconnect
