C-LIGHT telephone TEL:+86 132 6656 7067    
Language
C-LIGHT search
Industry News

East-West Traffic Distribution and Spine Layer Capacity Planning

By C-LIGHT Marketing 丨 Mar 31, 2025
Table of Contents

    East-West-Traffic-Distribution-and-Spine-Layer-Capacity-Planning.jpg

    AI cluster networks carry substantial east-west traffic between GPU servers, accelerator groups and storage systems. Distributed training operations such as AllReduce, AllGather, ReduceScatter and All-to-All can generate synchronized traffic bursts across multiple racks. In a Leaf-Spine architecture, the Spine layer provides the paths that connect separate Leaf domains, making its capacity a critical factor in cluster scalability. Effective planning requires more than counting uplink ports. Engineers must estimate cross-Leaf traffic, understand workload communication patterns, calculate oversubscription and bisection bandwidth, and reserve sufficient capacity for congestion control, failures and future expansion.

    1. Why East-West Traffic Matters in AI Clusters

    East-west traffic refers to communication between endpoints inside a data center or computing environment. In an AI cluster, these endpoints may include GPU servers, accelerator nodes, storage systems and other infrastructure components.

    Unlike traditional enterprise networks, where north-south traffic between users and external services may dominate, distributed AI workloads can generate large volumes of internal traffic. GPUs exchange gradients, activations, parameters, expert tokens and other intermediate data while coordinating computation across multiple servers.

    When communicating endpoints connect to different Leaf switches, their traffic generally needs to traverse the Spine layer. The volume and timing of this traffic directly influence Spine utilization.

    Spine capacity planning is therefore important for:

    • Distributed model training across multiple racks.

    • GPU-to-GPU communication between separate server groups.

    • Mixture-of-Experts workloads with distributed expert placement.

    • High-throughput storage access from compute nodes.

    • Large-scale inference deployments with distributed processing.

    • Cluster expansion without introducing excessive network congestion.

    2. East-West Traffic vs North-South Traffic

    East-west and north-south describe traffic direction relative to the data center architecture. They are useful planning categories, but actual network paths depend on the physical topology and routing design.

    Traffic typeTypical communicationCommon network roleCapacity consideration
    East-westGPU server to GPU serverCompute fabric and inter-rack connectivityCross-Leaf bandwidth, Spine capacity and congestion
    North-southCompute cluster to external servicesCustomer, application and upstream connectivityGateway, border and external uplink capacity
    Storage trafficGPU server to shared storageStorage fabric or converged networkStorage throughput, I/O concurrency and isolation
    Management trafficServers to management systemsIn-band and out-of-band managementAvailability, isolation and operational access

    These categories should not be treated as fixed physical paths. A network may use separate fabrics for compute, storage and management, or carry selected traffic classes over shared physical infrastructure with logical isolation.

    For AI training, the compute east-west fabric often receives the most demanding bandwidth and latency requirements. Storage and north-south traffic still need independent capacity planning to prevent them from competing unexpectedly with GPU communication.

    3. How Leaf-Spine Architecture Handles East-West Traffic

    A Leaf-Spine network uses two primary switching layers. Leaf switches connect servers and other endpoints, while Spine switches interconnect the Leaf layer.

    When two servers connect to the same Leaf switch, traffic may be forwarded locally without traversing the Spine layer. When the servers connect to different Leaf switches, traffic generally travels from the source Leaf to a Spine and then to the destination Leaf.

    This structure provides predictable network depth and supports horizontal expansion. Adding Leaf switches increases the number of endpoint connections, while adding Spine capacity provides more inter-Leaf connectivity.

    However, adding Leaf switches without increasing the available Spine capacity can increase the number of endpoints competing for the same interconnection bandwidth. The Spine layer must therefore scale with the traffic demand created by the expanding Leaf layer.

    4. Identifying Traffic That Must Cross the Spine Layer

    Not all server traffic reaches the Spine layer. The first step in capacity planning is to distinguish local Leaf traffic from traffic that must travel between different Leaf domains.

    Common cross-Leaf traffic patterns include:

    • GPU servers in different racks exchanging training data.

    • Distributed workers performing collective communication.

    • MoE inference workers exchanging tokens across expert groups.

    • Compute nodes accessing storage attached to separate Leaf switches.

    • Traffic between different scalable units or network groups.

    Traffic locality has a major influence on Spine demand. If most communicating endpoints are attached to the same Leaf or local network group, the Spine layer may carry less traffic than the aggregate server-facing capacity suggests. If communication is distributed evenly across many Leaf switches, the Spine layer may carry a much larger share.

    Engineers should therefore use actual workload placement and traffic matrices where possible rather than assuming that all server-facing traffic crosses the Spine.

    5. GPU Workloads and East-West Traffic Patterns

    Different AI workloads generate different communication patterns. Their effects on Spine utilization depend on message size, communication frequency, endpoint placement and the number of participating servers.

    Workload or operationCommunication patternSpine-layer consideration
    AllReduceData reduction and distribution across participating workersCan create synchronized traffic across multiple Leaf domains
    AllGatherData from multiple ranks is collected and distributedMay generate substantial cross-rack traffic as rank count increases
    ReduceScatterReduction results are distributed across ranksTraffic depends on collective algorithm and rank placement
    All-to-AllEach rank exchanges data with multiple other ranksCan create broad traffic fan-out and concentrated congestion
    Tensor parallelismFrequent communication between model partitionsLatency and path efficiency become important
    Expert parallelismTokens are routed to distributed experts and returnedTraffic can vary with expert placement and token distribution
    Distributed storage accessCompute nodes read and write shared dataConcurrent I/O may compete with compute traffic on shared resources

    The communication pattern matters as much as the total data volume. A workload with many simultaneous flows can create different congestion conditions from one dominated by a small number of large transfers.

    6. Traffic Locality and GPU Placement

    GPU placement determines which network paths carry communication traffic. Placing frequently communicating servers within the same Leaf domain or local network group can reduce the amount of traffic that must cross the Spine layer.

    However, placement cannot always be optimized independently of GPU availability, rack power, cooling, storage access and workload scheduling. Large training jobs may span many racks, making cross-Leaf traffic unavoidable.

    Useful placement considerations include:

    • Keep communication-intensive groups close where practical.

    • Understand which GPU ranks communicate most frequently.

    • Map server placement to Leaf switches and network rails.

    • Evaluate cross-rack traffic before expanding a training job.

    • Avoid concentrating too many high-bandwidth workloads behind one Leaf.

    • Consider storage locality when planning compute placement.

    Topology-aware workload placement can reduce unnecessary inter-rack traffic, but it should complement rather than replace sufficient Spine capacity.

    7. Measuring Cross-Leaf Traffic Demand

    A traffic matrix provides a useful basis for Spine capacity planning. It describes the traffic volume between network groups, racks, Leaf switches or individual endpoints.

    At a simplified level, let the traffic matrix entry \(T_{ij}\) represent the traffic sent from Leaf group \(i\) to Leaf group \(j\). The total cross-Leaf demand can be estimated by summing traffic between distinct Leaf groups.

    Cross-Leaf traffic = Σ Tij, for i ≠ j

    This is a conceptual model. A production analysis must define whether traffic is measured in one direction or both directions, whether multicast or replicated traffic is included, and whether the measurements represent average, peak or percentile demand.

    Useful traffic data includes:

    • Per-port ingress and egress throughput.

    • Per-Leaf uplink utilization.

    • Per-Spine port utilization.

    • Traffic distribution by rack or server group.

    • Flow counts and flow-size distribution.

    • Peak utilization during collective communication.

    • Queue occupancy, ECN marks and packet drops.

    Average utilization alone can hide short periods of severe congestion. AI training jobs often synchronize communication phases, so peak and time-correlated measurements are important.

    8. Spine Layer Capacity and Port Count

    Spine capacity is determined by the number of Leaf-facing connections, the speed of those connections and the number of Spine switches available to carry traffic.

    For a simplified fabric in which every Leaf has the same number of uplinks, the aggregate Leaf-to-Spine capacity can be expressed as:

    Aggregate uplink capacity = Number of Leaf switches × Uplinks per Leaf × Uplink speed

    If all Leaf uplinks are distributed evenly across the Spine switches, the number of Leaf-facing ports required on each Spine can be estimated from the total number of uplink connections divided by the number of Spine switches.

    Average Leaf-facing ports per Spine = (Leaf count × Uplinks per Leaf) ÷ Spine count

    These formulas describe nominal port capacity. They do not by themselves prove that the fabric is non-blocking. The actual topology must also account for port speed, forwarding architecture, oversubscription, traffic distribution and supported path behavior.

    9. Understanding Spine-to-Leaf Oversubscription

    Oversubscription describes the relationship between endpoint-facing bandwidth and the uplink bandwidth available to carry traffic toward the next network layer.

    For a Leaf switch, a common calculation is:

    Leaf oversubscription ratio = Aggregate downlink bandwidth ÷ Aggregate uplink bandwidth

    For example, a Leaf with 48 × 400G server-facing ports has 19.2 Tb/s of nominal downlink capacity. If it has 16 × 400G uplinks, its aggregate uplink capacity is 6.4 Tb/s.

    19.2 Tb/s ÷ 6.4 Tb/s = 3:1

    This is a 3:1 bandwidth oversubscription ratio when all ports operate at 400G. It means the nominal downlink capacity is three times the uplink capacity. It does not mean every workload will experience a fixed 3:1 bandwidth reduction.

    Actual performance depends on how much traffic crosses the Leaf boundary, how flows are distributed and whether the uplinks are simultaneously saturated.

    10. Example: A 400G Leaf-Spine Fabric

    Consider a simplified AI cluster network with eight Leaf switches and four Spine switches. Each Leaf connects to 48 GPU server-facing ports at 400G and uses 16 × 400G uplinks distributed evenly across the four Spine switches.

    ParameterConfiguration
    Leaf switches8
    Spine switches4
    Server-facing ports per Leaf48 × 400G
    Uplinks per Leaf16 × 400G
    Uplinks from each Leaf to each Spine4 × 400G
    Downlink capacity per Leaf19.2 Tb/s
    Uplink capacity per Leaf6.4 Tb/s
    Aggregate downlink capacity153.6 Tb/s
    Aggregate Leaf-to-Spine capacity51.2 Tb/s

    Each Spine receives four 400G connections from each of the eight Leaf switches. That gives each Spine 32 Leaf-facing ports and 12.8 Tb/s of nominal port capacity in this example.

    The total Leaf-to-Spine capacity is 51.2 Tb/s across the four Spine switches. This is a simplified arithmetic example, not a universal recommended topology. It assumes equal-speed links, even uplink distribution and sufficient supported switching capacity.

    11. Estimating the Required Spine Bandwidth

    Server-facing capacity is not the same as required Spine capacity. The Spine layer should be sized against the traffic that actually needs to cross Leaf boundaries.

    Using the example above, each Leaf has 19.2 Tb/s of nominal downlink capacity. If an assumed 20% of that capacity is offered as cross-Leaf traffic, the estimated cross-Leaf demand per Leaf is:

    19.2 Tb/s × 20% = 3.84 Tb/s

    The Leaf has 6.4 Tb/s of uplink capacity, so this illustrative demand is below its nominal uplink capacity.

    If the cross-Leaf demand rises to 40%:

    19.2 Tb/s × 40% = 7.68 Tb/s

    This exceeds the 6.4 Tb/s uplink capacity. Under the simplified assumptions, the Leaf cannot carry that offered cross-Leaf load at full rate through its uplinks.

    These percentages are planning assumptions, not measured AI workload characteristics. A real design should replace them with traffic measurements or workload-specific estimates, including the timing and direction of traffic.

    12. Spine Capacity Is Not the Same as Bisection Bandwidth

    Aggregate Spine port bandwidth and bisection bandwidth are related but different metrics.

    Spine port capacity describes the nominal bandwidth available across the Leaf-to-Spine connections. Bisection bandwidth describes the aggregate capacity available across a balanced cut that divides the network into two groups of comparable size.

    For a simplified network cut, the relevant capacity depends on the links crossing that cut, their direction and the topology. It cannot always be derived by simply adding every Spine port in the fabric.

    Engineers should clearly specify whether a bisection figure is one-way or bidirectional aggregate capacity. They should also identify the topology, traffic assumptions and links included in the calculation.

    A fabric with high aggregate port bandwidth may still have an imbalanced cut or a constrained path if the topology does not distribute capacity evenly.

    13. Traffic Distribution Across Multiple Spine Switches

    Multiple Spine switches provide parallel paths between Leaf switches. Traffic distribution across those paths is influenced by the network's routing and load-balancing mechanisms.

    Equal-cost multipath (ECMP) is commonly used in routed Leaf-Spine networks. It can distribute flows across multiple equal-cost paths, but the distribution is generally flow-based rather than a guarantee that every byte is perfectly balanced at every moment.

    Several factors can cause uneven Spine utilization:

    • A small number of large flows hashing to the same path.

    • Uneven traffic demand between Leaf pairs.

    • Different path availability after a link or switch failure.

    • Asymmetric traffic patterns between source and destination groups.

    • Hash polarization or insufficient path diversity.

    • Workload synchronization that concentrates traffic temporarily.

    Network operators should monitor per-Spine and per-uplink utilization instead of relying only on fabric-wide average bandwidth.

    14. AllReduce and Spine Layer Capacity

    AllReduce combines values from multiple workers and distributes the reduced result. It is a common operation in distributed training, where GPU servers exchange gradients or other intermediate data.

    Depending on the collective algorithm and topology, AllReduce traffic may travel through multiple network paths and involve repeated communication phases. Ring-based and tree-based approaches have different traffic patterns, hop counts and sensitivity to network topology.

    When participating workers are distributed across multiple Leaf switches, the collective operation can generate substantial Spine-layer traffic. Synchronized communication may also create short periods of high utilization.

    Capacity planning should therefore consider:

    • Number of participating GPU servers and ranks.

    • Size of the communicated tensors.

    • Collective algorithm and implementation.

    • Distribution of ranks across Leaf switches.

    • Number of concurrent training jobs.

    • Available bandwidth on each network rail.

    It is not accurate to assume that all AllReduce traffic crosses the Spine layer or that every AllReduce operation produces the same network load. The communication pattern depends on the topology and collective implementation.

    15. All-to-All Traffic and Spine Congestion

    All-to-All communication allows each participating rank to exchange data with multiple other ranks. It is particularly relevant to Mixture-of-Experts models, where tokens may be dispatched to different expert workers and the resulting outputs are returned.

    Compared with a communication pattern dominated by a few large flows, All-to-All can create a large number of concurrent exchanges. When endpoints are distributed across many Leaf switches, these exchanges can place significant demand on the Spine layer.

    Potential challenges include:

    • High fan-out across multiple Leaf domains.

    • Uneven traffic caused by token or expert distribution.

    • Bursty communication during dispatch and combine phases.

    • Contention among simultaneous collective operations.

    • Queue buildup and congestion on heavily used Spine paths.

    For MoE deployments, the total traffic depends on factors such as token count, hidden dimension, top-K routing, precision, expert placement and the proportion of local versus remote expert assignments. A single average bandwidth figure may not capture the peak Spine demand.

    16. Rail-Optimized Networks and Spine Traffic

    Rail-optimized architectures organize GPU connectivity into corresponding network paths. Each rail connects a particular set of interfaces across multiple servers, helping create predictable communication paths and support high aggregate bandwidth.

    In these architectures, traffic within a rail-aligned group may remain relatively close to the Leaf layer, while traffic between different rails or scalable units may need to traverse the Spine layer. The exact path depends on the implementation.

    Rail-aware capacity planning should examine:

    • Number of rails and NIC interfaces per server.

    • Leaf switch assignment for each rail.

    • Uplink capacity available to each rail.

    • Communication between servers in the same rail.

    • Communication between different rails or scalable units.

    • Whether separate physical fabrics are used for each traffic plane.

    Rail optimization can improve traffic locality and reduce unnecessary path traversal. It does not eliminate the need to size the Spine layer for cross-rail and cross-group communication.

    17. Spine Capacity Planning for 800G Networks

    As AI clusters move toward 800G interfaces, the amount of bandwidth carried by each physical connection increases. This can reduce the number of ports required for a given aggregate capacity, but it also raises the importance of port speed compatibility, breakout design and physical link planning.

    An 800G Leaf uplink can carry twice the nominal bandwidth of a 400G uplink, assuming both operate at their specified rates. However, higher-speed links do not automatically eliminate congestion if traffic demand grows at the same time.

    Planning factor400G fabric800G fabric
    Link capacity400 Gb/s per interface800 Gb/s per interface
    Spine port allocationBased on 400G uplink count and topologyBased on 800G port availability and topology
    Breakout requirementsDepends on endpoint interface and switch supportMay require supported 2×400G or other breakout arrangements
    Optical connectivityModule reach, fiber and connector compatibilityModule reach, lane architecture, fiber and connector compatibility
    Capacity planningEvaluate cross-Leaf demand and oversubscriptionRe-evaluate traffic growth, port density and aggregate fabric capacity

    Spine switches, Leaf switches, transceivers, fiber infrastructure and endpoint NICs must all support the intended link configuration. A network cannot achieve an 800G path simply by installing an 800G optical module at one end if the other components do not support that interface.

    18. Capacity Headroom and Peak Traffic

    Designing the Spine layer to operate continuously near its theoretical maximum leaves little room for bursts, traffic imbalance or failures. Capacity headroom provides additional bandwidth for temporary demand increases and changing workload conditions.

    Headroom requirements depend on the cluster's service objectives, workload mix, traffic burstiness and expected failure scenarios. There is no single utilization threshold that is appropriate for every AI fabric.

    Capacity planning should evaluate:

    • Normal traffic utilization over representative workloads.

    • Peak and high-percentile uplink utilization.

    • Short-duration bursts during collective operations.

    • Concurrent training and inference traffic.

    • Traffic redistribution after a link or Spine failure.

    • Expected growth in GPU count and per-GPU network bandwidth.

    When a network is expected to continue operating after losing a Spine switch, the remaining switches must have enough available capacity to carry the traffic that is redirected to them. This degraded operating condition should be calculated separately from normal operation.

    19. Spine Failure and Remaining Network Capacity

    A multi-Spine architecture can preserve connectivity when an individual Spine switch becomes unavailable, provided that the remaining topology and routing configuration support alternative paths.

    However, a surviving path does not necessarily preserve the original aggregate bandwidth. If four equal-capacity Spine switches share traffic evenly, losing one removes part of the nominal path capacity. The remaining network must carry redistributed traffic over fewer available paths.

    For a simplified example with four equally provisioned Spine switches, the nominal aggregate capacity is divided across four devices. Losing one reduces the available Spine-side capacity by 25%, assuming equal contribution and no additional constraints.

    This does not mean application throughput will always fall by exactly 25%. The observed impact depends on traffic distribution, available headroom, routing convergence, bottlenecks elsewhere and the workload's ability to use the remaining paths.

    Capacity planning should evaluate both normal operation and at least the single-Spine-failure condition when that level of resilience is required.

    20. Congestion Management in High-Bandwidth Fabrics

    Even a fabric with substantial aggregate bandwidth can experience congestion when multiple flows compete for the same output port or queue. Congestion is influenced by traffic timing, flow distribution, queue management and transport behavior.

    In Ethernet-based AI networks, congestion management may use mechanisms such as Explicit Congestion Notification (ECN), transport-level rate control and, in some RoCE deployments, Priority Flow Control (PFC).

    These mechanisms have different roles:

    • ECN: Marks packets to signal congestion without necessarily dropping them.

    • Transport congestion control: Adjusts sending behavior in response to congestion feedback.

    • PFC: Provides per-priority link-level pause behavior in supported lossless Ethernet designs.

    • Queue monitoring: Helps identify where traffic is accumulating.

    • Adaptive routing: Can help distribute traffic across alternative paths where supported.

    These mechanisms do not replace adequate Spine capacity. They help manage congestion when traffic demand is uneven or temporarily exceeds the available capacity on particular paths.

    21. Monitoring Spine Layer Utilization

    Operational monitoring should provide visibility into both aggregate fabric capacity and individual link behavior. A fabric-wide average may appear healthy even when one Spine switch or uplink is approaching saturation.

    MetricPurposeWhat to investigate
    Per-Spine port utilizationMeasures load on individual Spine-facing portsUneven traffic distribution or saturated paths
    Leaf uplink utilizationShows cross-Leaf demand leaving each LeafOversubscription and rack-level traffic concentration
    Queue occupancyShows traffic buildup inside switch queuesPersistent or burst-driven congestion
    ECN marking rateIndicates congestion signaling activityChanges in traffic pressure and transport response
    Packet dropsShows traffic discarded by network devicesBuffer exhaustion, queue policy or severe congestion
    FEC and interface errorsShows physical link quality indicatorsOptical or electrical link degradation
    Collective communication timeMeasures application-level communication performanceNetwork bottlenecks affecting distributed workloads

    Monitoring should correlate switch telemetry with GPU utilization and workload events. A sudden increase in Spine utilization during an All-to-All phase may be expected, while persistent queue buildup or growing packet drops may indicate insufficient capacity or poor traffic distribution.

    22. Common Spine Capacity Planning Mistakes

    Several design assumptions can lead to an undersized or inefficient Spine layer.

    • Using server port count as the only sizing input: Endpoint capacity does not reveal how much traffic must cross Leaf boundaries.

    • Relying only on average utilization: Short collective communication bursts may create congestion that averages conceal.

    • Ignoring traffic locality: GPU placement and rail assignments can materially change cross-Leaf demand.

    • Assuming equal-cost paths are perfectly balanced: Hash-based distribution can produce uneven utilization.

    • Confusing oversubscription with bisection bandwidth: They describe different aspects of network capacity.

    • Ignoring failure conditions: A fabric may meet normal traffic requirements but become overloaded after losing a Spine switch.

    • Combining compute and storage demand without analysis: Shared traffic can consume capacity intended for GPU communication.

    • Scaling Leaf switches without scaling the Spine layer: Additional endpoints can increase contention on existing uplinks.

    • Assuming higher port speeds solve every bottleneck: NICs, endpoints, routing, buffers and application behavior remain relevant.

    23. A Practical Spine Layer Capacity Planning Process

    A structured planning process helps connect workload requirements to switch port counts and physical optical connectivity.

    1. Define the network scope: Identify which fabrics carry GPU compute, storage, management and external traffic.

    2. Map endpoint connectivity: Record server NIC speeds, Leaf assignments, rails and rack locations.

    3. Build a traffic matrix: Estimate or measure traffic between Leaf groups and scalable units.

    4. Classify workload patterns: Account for AllReduce, AllGather, ReduceScatter, All-to-All and storage operations.

    5. Calculate Leaf uplink demand: Compare cross-Leaf traffic with available uplink bandwidth.

    6. Size Spine port capacity: Calculate the required number of Spine-facing ports and their aggregate bandwidth.

    7. Evaluate path distribution: Check whether routing can use the available Spine paths effectively.

    8. Validate bisection and oversubscription: State the assumptions and measurement direction clearly.

    9. Reserve capacity headroom: Account for bursts, concurrent jobs and expected growth.

    10. Test failure scenarios: Evaluate remaining capacity after losing a link or Spine switch.

    11. Validate physical connectivity: Confirm transceiver compatibility, fiber type, reach and port configuration.

    12. Benchmark real workloads: Compare network measurements with collective communication and application performance.

    24. Conclusion

    East-west traffic distribution is a primary factor in Spine layer capacity planning for AI clusters. The number of GPU servers and the aggregate server-facing bandwidth establish the potential scale of the network, but actual Spine demand depends on how workloads communicate across Leaf domains.

    AllReduce, All-to-All and other distributed communication patterns can create synchronized traffic bursts that place significant pressure on inter-rack links. Effective capacity planning therefore requires traffic matrices, workload-aware placement, oversubscription analysis, path distribution monitoring and failure-condition calculations.

    As AI clusters move toward 400G and 800G connectivity, Spine capacity must scale alongside Leaf port density and GPU communication requirements. Optical transceivers and fiber infrastructure provide the physical bandwidth between network layers, while topology, routing and congestion management determine how effectively that bandwidth is used.

    Planning high-bandwidth optical connectivity for AI data center fabrics?

    Evaluate optical transceiver and fiber connectivity options for 400G, 800G and scalable Leaf-Spine network deployments.

    Contact C-LIGHT

    For any questions, please contact us by email or WhatsApp.

    Email: sales@c-light.com

    WhatsApp: +86 132 6656 7067

    Related Articles

    Call
    Top