Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

AI Networking: When the Fabric Limits Performance

· 5 min read · Home Networking

In this article
  1. Why the Network Matters in AI
  2. Key Fabric Metrics: Bandwidth, Latency, and Packet Loss
  3. How AI Fabrics Differ from Traditional Networks
  4. Signs Your Fabric Is the Bottleneck
  5. Choosing the Right Fabric for Your Workload
  6. Common Misconceptions and Pitfalls
  7. Frequently Asked Questions

Yes, the network fabric can absolutely limit AI performance, often becoming the bottleneck before GPUs reach their compute limits. In distributed training and inference, GPUs must exchange data—model weights, gradients, activations—and if the network can't keep up, GPUs sit idle waiting for data, tanking utilization and slowing time-to-train. This is why modern AI clusters are designed with high-bandwidth, low-latency fabrics like InfiniBand or RoCE (RDMA over Converged Ethernet) that match the GPUs' data-hungry workloads.

Why the Network Matters in AI

AI training is not a single GPU crunching numbers; it's thousands of GPUs working in parallel. During every training step, GPUs compute gradients from their local data batch, then share those gradients with peers to update the model. This all-reduce pattern generates massive, frequent data transfers. If the fabric's bandwidth is too low, or its latency too high, GPUs spend more time waiting for data than computing. For example, a model with 1 billion parameters, each a 4-byte float, requires 4 GB of data to be exchanged per step across all GPUs. With a 100 Gbps link, that's 0.32 seconds per step just for communication—often longer than the compute time itself. The result: GPU utilization drops from near 100% to 50% or less, directly increasing training time and cost.

Key Fabric Metrics: Bandwidth, Latency, and Packet Loss

Three metrics dominate AI network performance:

  • Bandwidth – The maximum data rate per link. Higher is better, but it's only useful if the entire path (NIC, switch, cable) supports it.
  • Latency – The time for a single packet to travel from GPU to GPU. In synchronous training, every step waits for the slowest GPU, so even microsecond delays add up.
  • Packet loss and congestion – Dropped packets trigger retransmissions, causing severe slowdowns. AI fabrics use lossless or near-lossless mechanisms (like Priority Flow Control) to avoid this.

For example, a 10G Ethernet link has 10x less bandwidth than a 100G InfiniBand link, but if the workload only needs 10G, the bottleneck shifts elsewhere. However, modern AI models often require 400G per GPU to scale efficiently.

How AI Fabrics Differ from Traditional Networks

Traditional data center networks are designed for many-to-many, bursty traffic with high tolerance for latency. AI fabrics are the opposite: they need predictable, low-latency, high-bandwidth flows between a fixed set of GPUs. Key differences:

  • Topology – AI clusters use fat-tree or torus topologies to provide full bisection bandwidth, meaning any GPU can talk to any other at full speed without oversubscription.
  • Protocols – InfiniBand and RoCEv2 are common because they support RDMA, letting GPUs read/write memory directly without CPU involvement, reducing latency and CPU overhead.
  • Congestion control – AI fabrics use explicit congestion notification (ECN) and dynamic routing to avoid hotspots, unlike TCP's slow-start.
  • Scale – A single AI cluster can have 10,000+ GPUs, requiring a fabric that scales without performance degradation.

For instance, NVIDIA's DGX systems use InfiniBand with NVLink bridging GPUs within a node, and InfiniBand between nodes, to maintain high throughput.

Signs Your Fabric Is the Bottleneck

If your AI training is slower than expected, check these symptoms:

  • GPU utilization is low (e.g., below 70%) while network utilization is near 100%.
  • Training time scales poorly with more GPUs—doubling GPUs doesn't halve training time.
  • Network counters show packet drops, retransmissions, or flow control pauses.
  • Profiling tools (like NVIDIA's Nsight) show high communication time relative to compute.

For example, if you add 8 GPUs and training time only drops by 30%, the fabric is likely saturating. Use tools like iperf or perftest to measure raw bandwidth between nodes and compare to theoretical peak.

Choosing the Right Fabric for Your Workload

There's no one-size-fits-all. Consider your model size, GPU count, and budget:

  • Small clusters (1-8 GPUs) – A single node with NVLink might suffice; network is not a bottleneck.
  • Mid-size (16-64 GPUs) – 100G or 200G Ethernet with RoCE can work if tuned properly, but InfiniBand offers simpler lossless operation.
  • Large (100+ GPUs) – 400G InfiniBand or RoCE is typical; topology design (fat-tree vs. torus) matters for bisection bandwidth.
  • Cloud vs. on-prem – Cloud providers offer GPU instances with pre-configured fabrics, but you pay a premium; on-prem gives control but requires expertise.

For example, training a 70B parameter LLM on 512 GPUs might require 400G InfiniBand to keep communication under 10% of step time. Using 100G Ethernet could double training time.

Common Misconceptions and Pitfalls

A frequent mistake is assuming higher link speed alone solves bottlenecks. The real issue is often the path—if your network has oversubscription (e.g., 1:4 ratio), some GPUs can't talk to others at full speed. Also, many assume TCP is fine for AI, but TCP's congestion control and CPU overhead add latency and reduce throughput. Another pitfall: enabling RDMA without proper flow control can cause packet loss and severe performance drops. Finally, don't ignore the software layer—NCCL (NVIDIA Collective Communications Library) needs to be configured with the right network interface and protocol to match your fabric.

Frequently Asked Questions

How do I know if my network is the bottleneck?

Monitor GPU utilization and network throughput during training. If GPU utilization is low while network is saturated, or if training time doesn't scale with more GPUs, the fabric is likely the limit. Use profiling tools to break down time spent in communication vs. compute.

What's better for AI: InfiniBand or Ethernet?

InfiniBand offers lower latency and simpler lossless operation, but is more expensive and proprietary. RoCE (Ethernet with RDMA) is cheaper and integrates with existing infrastructure, but requires careful tuning for lossless behavior. For large clusters, InfiniBand is often preferred; for smaller or budget-constrained, RoCE works.

Can I use regular Ethernet for AI training?

Yes, but performance may suffer. Standard TCP/IP Ethernet has higher latency and CPU overhead, and doesn't support RDMA. For small models or infrequent communication, it's fine. For large-scale training, you need RoCE or InfiniBand to avoid bottlenecks.

What is bisection bandwidth and why does it matter?

Bisection bandwidth is the minimum bandwidth between two equal halves of the network. If it's lower than the total bandwidth of all GPUs, some communication patterns will be slow. AI clusters aim for full bisection bandwidth, meaning any GPU can talk to any other at full speed.

Does the network affect inference too?

Yes, but less so. Inference is often single-GPU or small-batch, so network latency matters more than bandwidth. In distributed inference (e.g., model parallel), the fabric can still be a bottleneck if the model is split across GPUs and requires frequent communication.

How can I optimize my existing fabric?

Ensure you're using RDMA (RoCE or InfiniBand) with NCCL's recommended settings. Tune flow control, increase MTU, and use congestion control algorithms like DCQCN. Also, consider topology changes—like using a fat-tree—to reduce oversubscription.