ThisCalculator

Everyday

Rack Ethernet Changes in AI Data Center Design

Updated · Standard formula, shown below

Total rack bandwidth 3,200 Gbps
ToR switch ports needed
4 ports
Result
Number of GPUs per rack
8
You entered
Per-GPU bandwidth (Gbps)
400 Gbps
You entered

In AI data center network design, rack Ethernet shifts from a simple leaf-spine fabric to a high-radix, lossless, and GPU-centric architecture where the rack becomes the fundamental unit of compute, and the network must deliver predictable, low-latency, high-bandwidth connectivity at massive scale. This article explains what changes inside the rack—cabling, switch ports, power, cooling, and management—and how those changes ripple through the entire data center network.

Formula

Total rack bandwidth = (Number of GPUs per rack) × (Per-GPU bandwidth) × (Number of NICs per GPU).

ToR switch ports needed = ceil((Number of GPUs per rack × Number of NICs per GPU) / 2), assuming two links per GPU for redundancy.

Variables: t = GPUs per rack (unitless), d = bandwidth per GPU (Gbps), n = NICs per GPU (unitless).

Worked Example

Using the defaults: t = 8 GPUs, d = 400 Gbps, n = 1 NIC per GPU.

Total rack bandwidth = 8 × 400 × 1 = 3200 Gbps (3.2 Tbps).

ToR ports = ceil((8 × 1) / 2) = 4 ports.

So a rack with 8 GPUs, each with one 400 Gbps NIC, needs 3.2 Tbps of total rack bandwidth and at least 4 ToR ports (if using 2× redundancy).

Background: Why AI Changes the Rack

Traditional data centers host web servers, databases, and virtual machines. Traffic is east-west but bursty, and the network can tolerate occasional packet loss because TCP retransmits. AI training (e.g., large language models) is different: it requires synchronized, all-to-all communication among thousands of GPUs. A single lost packet can stall an entire training job, so the network must be lossless and provide consistent low latency. This shifts the design from “good enough” to “predictable and deterministic.”

Inside the Rack: What Actually Changes

In a traditional rack, servers have 1/10/25 Gbps NICs connected to a top-of-rack (ToR) switch with 48 ports. In an AI rack, each GPU server may have 8 GPUs, each with a 400 Gbps NIC, needing 3.2 Tbps per server. That requires:

  • Higher-speed NICs: 400 Gbps (or 800 Gbps) per GPU, not per server.
  • More ToR ports: ToR switches now need 64 or 128 ports of 400 Gbps, not 48 of 25 Gbps.
  • Copper vs. fiber: Within a rack, passive copper cables (DAC) work for short distances, but as speeds rise, active optical cables (AOC) or direct-attach copper with retimers become necessary.
  • Power and cooling: A single GPU server can draw 10-15 kW, so a rack may exceed 50 kW. This requires liquid cooling and higher power distribution, affecting rack layout and cable routing.

How the Network Topology Evolves

Traditional leaf-spine: each server connects to a leaf (ToR) switch, and leaves connect to spines. For AI, the scale and bandwidth requirements force a flatter, more connected topology. Common approaches:

  • Fat-tree (Clos): More spine switches and more parallel paths to provide full bisection bandwidth.
  • Dragonfly or Dragonfly+: High-radix switches reduce the number of hops, lowering latency.
  • Rail-optimized topology: Each GPU in a rack connects directly to a specific spine switch, so traffic from a given GPU always goes to the same spine, avoiding load-balancing issues.

Lossless Ethernet and Congestion Control

AI workloads need lossless transport. Ethernet achieves this with Priority Flow Control (PFC) and Enhanced Transmission Selection (ETS). PFC pauses traffic on a link when a buffer is full, preventing drops. However, PFC can cause head-of-line blocking and even deadlocks if not configured correctly. Newer approaches include:

  • RoCEv2 (RDMA over Converged Ethernet): Uses PFC and ECN (Explicit Congestion Notification) to provide lossless, low-latency transport.
  • DCQCN (Data Center Quantized Congestion Notification): A congestion control algorithm that uses ECN marks to adjust sending rates.
  • Load balancing: ECMP (Equal-Cost Multi-Path) is insufficient for AI traffic; instead, packet-spraying or flowlet-based load balancing is used to avoid hash collisions that cause congestion.

Choosing the Right Rack Ethernet for AI

When designing an AI data center rack, consider these factors:

  • Bandwidth per GPU: 200 Gbps, 400 Gbps, or 800 Gbps—higher is better but costs more.
  • Switch port count and speed: ToR switches must have enough high-speed ports to connect all GPUs in the rack plus uplinks.
  • Distance: Within a rack, copper DAC up to 3 meters; across racks, fiber optic.
  • Redundancy: Use dual NICs per GPU and dual ToR switches for failover.
  • Manageability: Support for telemetry, PFC/ECN configuration, and automated provisioning.

Common Problems and Misconceptions

Misconception: “Just add more bandwidth.” Bandwidth alone doesn’t fix latency or congestion. You need proper topology and congestion control.

Problem: PFC storms. If PFC is misconfigured, it can cause a pause storm that halts traffic. Use PFC only on RoCEv2 queues and monitor buffer occupancy.

Problem: Cable length limits. At 400 Gbps, copper cables are limited to a few meters; longer runs require fiber, which adds cost and power.

Problem: Over-subscription. In traditional racks, oversubscription (e.g., 3:1) is acceptable. In AI, oversubscription causes training slowdowns; aim for 1:1 (no oversubscription) for the GPU traffic.

Costs and Trade-offs

AI rack Ethernet is significantly more expensive than traditional rack Ethernet. A 400 Gbps NIC costs several times more than a 25 Gbps NIC. ToR switches with 64 ports of 400 Gbps are premium hardware. Fiber cabling and optics add cost. However, the cost is justified by the value of GPU time: a stalled training job wastes thousands of dollars per hour. Therefore, investing in a lossless, high-bandwidth network is often cheaper than the cost of idle GPUs.

Safety and Reliability Considerations

High-power racks require proper electrical safety: use appropriate circuit breakers and follow local electrical codes. Liquid cooling introduces leak risks; ensure proper containment and leak detection. For network reliability, use redundant power supplies, redundant ToR switches, and link aggregation. Always follow manufacturer guidelines for cable bend radius and power limits.

Frequently Asked Questions

Q: Do I need to replace my existing Ethernet switches for AI?
A: Likely yes. Existing switches typically lack the port density, speed, and lossless features needed for AI. You may need new ToR switches with 400 Gbps ports and support for RoCEv2.

Q: Is InfiniBand better than Ethernet for AI?
A: InfiniBand has been the traditional choice for HPC and AI because of its native lossless and RDMA features. However, Ethernet with RoCEv2 is closing the gap and offers better interoperability and lower cost. The choice depends on your specific workload and budget.

Q: What is a “rail-optimized” topology?
A: In a rail-optimized design, each GPU in a server connects to a different ToR switch, and each ToR switch connects to a specific spine. This ensures that traffic from a given GPU always takes the same path, avoiding load-balancing issues and reducing latency variability.

Q: How many GPUs can I put in a rack?
A: It depends on power and cooling. A typical rack can handle 8-16 GPU servers, each with 4-8 GPUs, so 32-128 GPUs per rack. But power density may limit you to fewer.

Q: Can I use Wi-Fi for AI racks?
A: No. Wi-Fi has too much latency and jitter, and cannot provide the bandwidth or lossless guarantees required for AI training.

Q: What is the difference between DAC and AOC cables?
A: DAC (Direct Attach Copper) is cheaper and uses less power, but is limited to short distances (up to 3-5 meters). AOC (Active Optical Cable) uses fiber and can reach longer distances, but costs more and uses more power.

Related

Formula used
in t | Number of GPUs per rack | - | 8 | 1
in d | Per-GPU bandwidth (Gbps) | Gbps | 400 | 1
in n | Number of NICs per GPU | - | 1 | 1
out total | Total rack bandwidth | Gbps | t * d * n | 0
out tor | ToR switch ports needed | ports | ceil(t * n / 2) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.