# 东西向流量

**东西向流量**是指在数据中心或其他网络环境内部，服务器、应用或服务之间传输的网络流量，与之相对的是**南北向流量**——后者跨越数据中心与外部世界之间的边界。这两个名称源自网络拓扑图的绘制惯例：图中通常将局域网流量水平绘制，即从东到西；而客户端到服务器的流量则垂直绘制，即从北到南。<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> 在微服务语境下，同样的区分适用于应用层：客户端与应用服务之间的流量为南北向，而一个微服务与另一个微服务之间的流量则为东西向。<sup>[2](https://www.govinfo.gov/content/pkg/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261/pdf/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 数据中心内部服务器到服务器的流量；南北向流量则是数据中心与外部位置之间客户端到服务器的流量<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> |
| 数据中心流量构成 | 思科全球云指数显示，数据中心流量中76%为东西向，17%为南北向，7%为数据中心间流量；园区网络则主要以南北向为主（90%以上）<sup>[3](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)</sup> |
| 主要驱动力 | 服务器虚拟化、融合基础设施，以及分布式应用中大量微服务的存在<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup><sup> • </sup><sup>[2](https://www.govinfo.gov/content/pkg/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261/pdf/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261.pdf)</sup> |
| 架构应对 | 从三层设计迁移至叶脊架构，后者更适合较高的东西向流量；大数据服务器间流量倾向于更扁平、类胖树的拓扑结构<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup><sup> • </sup><sup>[4](https://www.cse.wustl.edu/~jain/cse570-23/ftp/m_03dcty.pdf)</sup> |
| AI工作负载 | AI集群产生海量东西向并行流量，因为数千块GPU实时同步模型参数；东西向连接数随节点数量呈二次方增长<sup>[5](https://www.techradar.com/pro/why-fiber-is-the-real-secret-to-scaling-intelligence-in-artificial-intelligence-factories)</sup> |
| 安全关切 | 东西向流量包含攻击者突破边界后使用的横向移动路径，因此网络分段与微分段是标准控制手段<sup>[6](https://www.cisa.gov/news-events/alerts/2022/01/11/understanding-and-mitigating-russian-state-sponsored-cyber-threats-us-critical-infrastructure)</sup> |

## 定义与范围

东西向流量指同一环境内设备之间的网络流——例如服务器到服务器的通信、数据复制，以及数据中心或公司内部网络中各服务之间的流量。<sup>[7](https://incidentsecure.org/glossary/east-west-traffic)</sup> 相比之下，南北向流量由进出数据中心的流量构成，一般包括查询、命令以及正在检索或存储的数据。第三类——数据中心间流量——涵盖分散的数据中心之间以及数据中心与公有云或私有云之间的资源优化和灾难恢复流量。<sup>[3](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)</sup>

这一边界是逻辑上的，而非严格的物理边界。在[圣路易斯华盛顿大学](https://www.edgepedia.org/zh/washington-university-in-st-louis)的一次课程讨论中，该校计算机科学与工程教授拉吉·贾因（Raj Jain）提到了同一公司两台服务器位于不同城市的情形：如果所有数据中心都位于同一个以太网上，服务器到服务器的流量仍在一个虚拟数据中心内部，因此无论物理位置如何，都属于东西向流量。<sup>[4](https://www.cse.wustl.edu/~jain/cse570-23/ftp/m_03dcty.pdf)</sup>

## 东西向流量为何增长

历史上，大多数数据中心流量是南北向的，即数据中心内的服务器与外部客户端之间的流量；但趋势已转向服务器之间的大数据分析流量。<sup>[4](https://www.cse.wustl.edu/~jain/cse570-23/ftp/m_03dcty.pdf)</sup> 思科全球云指数量化了由此形成的构成：东西向流量占数据中心总量的76%，南北向占17%，数据中心间流量占7%且逐步增长，而园区网络仍以南北向为主，占比超过90%。<sup>[3](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)</sup> 东西向流量主要是托管于物理机和[虚拟机](https://www.edgepedia.org/zh/virtual-machine)上的应用之间的通信，以及数据中心内虚拟机与虚拟机之间的交互。<sup>[3](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)</sup>

**虚拟化**是核心驱动力。网络控制器和虚拟机执行曾经专属于物理硬件的功能和服务，这些组件之间相互转发数据，增加了网络流量，有时还会在接入层与汇聚层之间的上行链路上造成延迟。<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> 虚拟机迁移随着虚拟化和云计算的普及日益常见，是被明确认定为推动东西向流量大幅增长的应用场景之一。<sup>[8](https://www.networkworld.com/article/692624/lan-wan-the-growth-in-east-west-traffic.html)</sup>

**微服务**在应用层成倍放大了这一效应。由于基于微服务的应用所含组件远多于单体应用，东西向流量之大，以至于需要轻量级通信中间件（如[服务网格](https://www.edgepedia.org/zh/service-mesh)）才能在生产环境中提供可接受的性能。<sup>[2](https://www.govinfo.gov/content/pkg/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261/pdf/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261.pdf)</sup> 服务网格系统（如由谷歌联合Lyft和IBM发起的开源项目Istio）通过代理管理这种服务到服务（东西向）的流量，而另一个面向用户的独立代理则处理进入应用的南北向流量。<sup>[9](https://services.google.com/fh/files/blogs/anthos_white_paper.pdf)</sup>

## 网络架构的应对

采用接入层、汇聚层和核心层的三层设计会将服务器间流量集中在共享上行链路上。许多组织已从传统的三层架构迁移至叶脊架构，其中叶交换机汇聚用户流量并连接至脊交换机；这种设计的简洁性适合更高的东西向流量。<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> 在两层脊叶Clos架构中，每台叶交换机以全互联方式连接至所有脊交换机，两层之间的三层IP链路支持等价多路径（ECMP）转发，使得服务器之间东西向的流量以及服务器到用户南北向的流量均可被路由。<sup>[10](https://www.cisco.com/c/en/us/products/collateral/switches/nexus-9000-series-switches/white-paper-c11-743245.html)</sup> 大数据服务器间流量同样需要更扁平、类胖树的拓扑结构。<sup>[4](https://www.cse.wustl.edu/~jain/cse570-23/ftp/m_03dcty.pdf)</sup>

[软件定义网络](https://www.edgepedia.org/zh/software-defined-networking)（SDN）增加了一个控制层：SDN控制器管理每个端口的边缘策略，这些策略可随工作负载移动，使东西向流量管理更加灵活。<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> 对于跨站点的工作负载，数据中心互联设计将东西向模型扩展至设施之间，通常采用EVPN配合VXLAN封装，使工作负载与位置无关。<sup>[11](https://docs.nvidia.com/networking-ethernet-software/guides/Data-Center-Interconnect-Reference-Design-Guide/)</sup>

## 测量东西向流量

量化东西向流量依赖于流量矩阵，即记录服务器或柜顶（ToR）交换机等源-目的对之间流量大小的表格。在这一粒度上直接测量成本高昂，因此围绕估算方法已发展出大量研究文献。微软研究院的斯里坎特·坎杜拉（Srikanth Kandula）、苏迪普塔·森古普塔（Sudipta Sengupta）、阿尔伯特·格林伯格（Albert Greenberg）、帕尔文·帕特尔（Parveen Patel）和罗尼·柴肯（Ronnie Chaiken）在一个1500台服务器的运行集群中对服务器进行了插桩，以可忽略的性能影响收集套接字级日志，在两个月内积累了约1拍字节的测量数据，并研究了能否改用粗粒度计数器数据，通过层析推断获取流量矩阵。<sup>[12](https://www.microsoft.com/en-us/research/publication/the-nature-of-data-center-traffic-measurements-and-analysis/)</sup> 西奥菲勒斯·本森（Theophilus Benson）、阿迪蒂亚·阿凯拉（Aditya Akella）和戴夫·马尔茨（Dave Maltz）对属于大学、企业和云组织的10个数据中心的网络流量进行了补充性实证研究，使用了SNMP统计数据、拓扑数据和数据包级跟踪。<sup>[13](https://www.microsoft.com/en-us/research/?p=160161)</sup>

后续工作减轻了插桩负担。胡志明（Zhiming Hu）、乔岩（Yan Qiao）和罗骏（Jun Luo）提出通过将网络拓扑分解为簇，从轻量级SNMP数据估算数据中心流量矩阵，他们认为数据中心的流量比ISP网络中的流量更不规则、更易波动，现有的ISP层析方法不能直接适用。<sup>[14](https://www.sciencedirect.com/science/article/abs/pii/S0140366414000693)</sup> 基于SDN的方法从历史流量矩阵中识别大流，而非监控每一条流，因为SDN交换机中用于测量的TCAM资源有限。<sup>[15](https://research.polyu.edu.hk/en/publications/sdn-based-traffic-matrix-estimation-in-data-center-networks-throu/)</sup>

测量得到的特征因数据中心类型而异。一项针对服务超过百万用户的企业数据中心（EDC）的研究发现，EDC倾向于产生稀疏的流量矩阵，这与云数据中心（CDC）不同——后者常呈现全互联模式，这一差异被归因于应用类型和虚拟化；EDC流量中超过98%为TCP。<sup>[16](https://www.researchgate.net/publication/261040521_Traffic_measurement_and_analysis_in_an_organic_enterprise_data_center)</sup> 在阿里云的数据中心内，停留在单个ToR内的流量占比在2%至10%之间，在10毫秒时间粒度下，单个ToR端口曾出现高达96 Gb/s的瞬时带宽，而100 Gb/s链路的典型利用率约为0.2。<sup>[17](https://research.tue.nl/en/publications/network-traffic-characteristics-of-hyperscale-data-centers-in-the/)</sup>

## 安全影响

由于东西向流量从不离开数据中心，以边界为中心的安全工具无法看到它，但它恰恰承载着攻击者进入内部后所使用的横向移动路径。美国网络安全和基础设施安全局（CISA）、联邦调查局（FBI）和国家安全局（NSA）建议按角色和功能划分网段进行网络分段，定义各区域之间可接受的通信通道，并部署控制措施过滤和监控区域间流量，以此作为应对国家支持的威胁的长期措施；终端检测与响应工具可用于检测横向连接。<sup>[6](https://www.cisa.gov/news-events/alerts/2022/01/11/understanding-and-mitigating-russian-state-sponsored-cyber-threats-us-critical-infrastructure)</sup> 微分段将数据中心划分为逻辑单元，并为每个单元制定量身定制的策略，从而减少恶意活动可利用的面，并限制攻击对东西向流量的影响。<sup>[1](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)</sup> 美国国防部零信任参考架构同样将微分段与微边界相结合，以最小化或阻止横向移动。<sup>[18](https://dodcio.defense.gov/Portals/0/Documents/Library/%28U%29ZT_RA_v2.0%28U%29_Sep22.pdf)</sup>

传统的替代方案是将内部流量重新路由出数据中心，在边缘网关进行检查后再送回，这种做法称为发夹弯（hair-pinning），会增加架构复杂性、延迟、不必要的带宽消耗以及使检查复杂化的非对称状况。<sup>[3](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)</sup>

## AI数据中心中的东西向流量

AI训练已成为要求最高的东西向工作负载。传统云工作负载通过接入层、汇聚层和核心层分层处理任务，数据主要在外部用户与服务器之间流动。而AI工厂运行的是迭代式、计算密集型的过程，数千块GPU作为一个逻辑实体协同工作，不断同步模型参数并交换大量中间数据。这种东西向流量占AI数据中心内数据移动的大部分，且东西向连接数随节点数量呈二次方增长，这推动了密集的光纤部署；任何链路错误或丢包都可能导致整个训练批次重新开始。<sup>[5](https://www.techradar.com/pro/why-fiber-is-the-real-secret-to-scaling-intelligence-in-artificial-intelligence-factories)</sup>

厂商已以专用网络架构予以回应。英伟达（NVIDIA）的企业参考架构将GPU计算（东西向）网络与CPU融合（南北向）网络分离，前者构建为基于融合以太网RDMA（RoCE）的全非阻塞胖树，后者用于存储和管理，从而使内部AI传输不与外部通信竞争。<sup>[19](https://docs.nvidia.com/enterprise-reference-architectures/nvl72-ai-factory/latest/networking-physical-topologies.html)</sup> 基于RDMA的无损网络支持直接的内存到内存传输，自适应路由对现代工作负载特有的大容量、高方差流（包括大象流）进行负载均衡。<sup>[20](https://developer.nvidia.com/blog/modernizing-the-data-center-with-accelerated-networking/)</sup>

## References

1. [What is east-west traffic? TechTarget](https://www.techtarget.com/it-infrastructure/definition/What-is-east-west-traffic)
2. [Building Secure Microservices-based Applications Using Service-Mesh Architecture, NIST SP 800-204A](https://www.govinfo.gov/content/pkg/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261/pdf/GOVPUB-C13-347aa3d296f853e901ff6bbbb16de261.pdf)
3. [Trends in Data Center Security: Part 1 – Traffic Trends, Cisco Blogs](https://blogs.cisco.com/security/trends-in-data-center-security-part-1-traffic-trends)
4. [Data Center Network Topologies, Raj Jain, Washington University in St. Louis](https://www.cse.wustl.edu/~jain/cse570-23/ftp/m_03dcty.pdf)
5. [Why fiber is the real secret to scaling intelligence in artificial intelligence factories, TechRadar Pro](https://www.techradar.com/pro/why-fiber-is-the-real-secret-to-scaling-intelligence-in-artificial-intelligence-factories)
6. [Understanding and Mitigating Russian State-Sponsored Cyber Threats to U.S. Critical Infrastructure, CISA](https://www.cisa.gov/news-events/alerts/2022/01/11/understanding-and-mitigating-russian-state-sponsored-cyber-threats-us-critical-infrastructure)
7. [East-West Traffic, Incident Security Authority glossary](https://incidentsecure.org/glossary/east-west-traffic)
8. [The growth in east-west traffic, Network World](https://www.networkworld.com/article/692624/lan-wan-the-growth-in-east-west-traffic.html)
9. [Microservices and Lifecycle Management with Istio, Google](https://services.google.com/fh/files/blogs/anthos_white_paper.pdf)
10. [Cisco Massively Scalable Data Center Network Fabric Design and Operation White Paper](https://www.cisco.com/c/en/us/products/collateral/switches/nexus-9000-series-switches/white-paper-c11-743245.html)
11. [Data Center Interconnect Reference Design Guide, NVIDIA](https://docs.nvidia.com/networking-ethernet-software/guides/Data-Center-Interconnect-Reference-Design-Guide/)
12. [The Nature of Data Center Traffic: Measurements and Analysis, Microsoft Research](https://www.microsoft.com/en-us/research/publication/the-nature-of-data-center-traffic-measurements-and-analysis/)
13. [Network Traffic Characteristics of Data Centers in the Wild, Microsoft Research](https://www.microsoft.com/en-us/research/?p=160161)
14. [Coarse-grained traffic matrix estimation for data center networks, Computer Communications](https://www.sciencedirect.com/science/article/abs/pii/S0140366414000693)
15. [SDN-Based Traffic Matrix Estimation in Data Center Networks through Large Size Flow Identification, PolyU Scholars Hub](https://research.polyu.edu.hk/en/publications/sdn-based-traffic-matrix-estimation-in-data-center-networks-throu/)
16. [Traffic measurement and analysis in an organic enterprise data center, ResearchGate](https://www.researchgate.net/publication/261040521_Traffic_measurement_and_analysis_in_an_organic_enterprise_data_center)
17. [Network traffic characteristics of hyperscale data centers in the era of cloud applications, TU Eindhoven Research Portal](https://research.tue.nl/en/publications/network-traffic-characteristics-of-hyperscale-data-centers-in-the/)
18. [Department of Defense Zero Trust Reference Architecture v2.0](https://dodcio.defense.gov/Portals/0/Documents/Library/%28U%29ZT_RA_v2.0%28U%29_Sep22.pdf)
19. [Networking Physical Topologies, NVIDIA NVL72 AI Factory](https://docs.nvidia.com/enterprise-reference-architectures/nvl72-ai-factory/latest/networking-physical-topologies.html)
20. [Modernizing the Data Center with Accelerated Networking, NVIDIA Technical Blog](https://developer.nvidia.com/blog/modernizing-the-data-center-with-accelerated-networking/)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/east-west-traffic

English original: https://www.edgepedia.org/east-west-traffic
