Intra- & Inter-GPU Communication: How Data Flows, Why Training ≠ Inference, and the Future of Optical-Switch Fabrics

Abstract accelerator modules connected through a packet and optical switching fabric

NVIDIA’s NCCL is the most visible collective-communication library in production AI today, but the underlying problem is broader: distributed training and inference need a way to move tensors efficiently across an accelerator domain.

The communication problem is bigger than one GPU vendor

The software layer expresses operations such as:

  • all-reduce
  • reduce-scatter
  • all-gather
  • all-to-all
  • point-to-point send and receive

The hardware layer decides how those operations actually travel: on-package links, PCIe, proprietary scale-up fabrics, Ethernet, InfiniBand, or optical circuit switches.

NCCL is NVIDIA’s implementation of this model. It is topology-aware and supports collectives as well as point-to-point communication across PCIe, NVLink, InfiniBand verbs, and IP sockets.[1] But the same architectural ideas appear elsewhere:

  • RCCL for AMD GPU environments
  • oneCCL for Intel accelerator and CPU environments
  • MPI / UCX in HPC and heterogeneous clusters
  • Framework-level backends such as PyTorch Distributed, which can select the transport beneath the training code

The application should describe what collective it needs, while the communication stack chooses how to execute it on the available topology.


Training and inference create different traffic patterns

It is tempting to describe training as “more traffic” and inference as “less traffic.” That is directionally true, but incomplete.

Training: repeated synchronization

Data-parallel training typically performs an all-reduce or a reduce-scatter on gradients after backward propagation. The gradient payload is approximately proportional to the model’s parameter size—not the activation size.

At large scale, training may combine several patterns:

  • Data parallelism → gradient all-reduce
  • Tensor parallelism → activation all-gather and reduce-scatter
  • Pipeline parallelism → activation and gradient transfers between stages
  • Expert parallelism / MoE → all-to-all token exchange
  • Sharded optimizer states → parameter all-gather and gradient reduce-scatter

This is why a training cluster can be compute-rich but still communication-bound. A fast GPU does not help if every layer is waiting for the collective beneath it.

Inference: lower volume does not mean simpler

Inference does not usually synchronize gradients, but modern model serving has its own difficult communication patterns:

  • Tensor-parallel decode performs frequent small collectives.
  • Mixture-of-Experts inference can require all-to-all token routing.
  • Prefill moves large KV-cache and activation payloads.
  • Decode is latency-sensitive: even a small communication stall is repeated once per generated token.

So the distinction is not simply training needs bandwidth, inference needs latency. Both need both. The difference is the mix:

  • Training is dominated by sustained, synchronized bulk movement.
  • Inference is often dominated by tail latency, synchronization frequency, and uneven request routing.

NCCL: algorithms first, transports second

NCCL exposes familiar collectives—AllReduce, AllGather, ReduceScatter, Broadcast, and AlltoAll—then maps them to the topology it discovers.[1]

The collective is the intent. The algorithm is the schedule. The fabric is the constraint.

For example, an all-reduce may use:

  • a ring when every participant should contribute equal bandwidth;
  • a tree when latency matters more;
  • a hierarchical algorithm when communication is fast inside a node but slower between nodes.

That model applies whether the local domain uses NVLink/NVSwitch, AMD Infinity Fabric, PCIe, or a future Ethernet scale-up fabric.

LL, LL128, and Simple

These are NCCL protocol variants, selected by NCCL depending on message size, topology, and the desired latency/bandwidth trade-off:

  • LL (Low Latency) — optimized for very small messages and fast synchronization.
  • LL128 — packs data and synchronization more efficiently, often providing a strong middle ground for latency-sensitive collectives.
  • Simple — prioritizes throughput for larger transfers, where link utilization matters more than per-message startup cost.

They should not be presented as “128-byte control-plane messages.” They are internal collective-transfer protocols that change how NCCL pipelines data and synchronization across channels.


Open scale-up fabrics: where OCP ESUN fits

OCP ESUN — Ethernet for Scale-Up Networking — is not a switch product. It is an emerging open specification for the network side of a scale-up domain: how switches forward traffic, manage congestion, preserve losslessness, and recover from link errors across one-hop and multi-hop accelerator fabrics.[2]

OCP separates the problem into two layers:

  • SUE-T: endpoint / XPU transport behavior—how accelerators express and transport scale-up operations.
  • ESUN: switched-network behavior—framing, forwarding, congestion handling, and reliability between those endpoints.[2]

ESUN 1.0 is important because it defines the requirements that future multi-vendor Ethernet scale-up switches and endpoints can implement. Its focus includes:

  • compact L2/L3 framing;
  • a smaller ESUN Header for better payload efficiency;
  • congestion feedback and traffic class handling;
  • link-level retry;
  • lossless forwarding;
  • single-hop and multi-hop scale-up topologies.[2][3]

The practical implication is significant: rather than binding a large accelerator domain to one proprietary scale-up fabric, operators could deploy Ethernet-based switching silicon designed explicitly for tightly synchronized AI traffic.

But this is still an evolving ecosystem. A specification is not interoperability by itself. Endpoint support, NIC behavior, switch ASIC support, congestion-control tuning, validation tooling, and framework integration must all mature together.


Optical circuit switches: powerful, but not magic

OCS adds another option: instead of forwarding packets through a fixed electrical fabric, an optical circuit switch can create a direct optical path between ports.

That is attractive for AI because it can make the physical topology more adaptable:

  • connect heavily communicating accelerator groups directly;
  • reconfigure bandwidth around changing training phases;
  • reduce the number of electrical switching stages;
  • create high-bandwidth paths between arbitrary port pairs.

The important nuance: “any port can connect to any port” is not the same as “every port can talk to every other port at full bandwidth simultaneously.”

An OCS establishes circuits. Its control plane must decide:

  • which pairs deserve a circuit;
  • when to reconfigure;
  • how to avoid starving other collective flows;
  • how the communication library learns the current topology;
  • whether the workload’s communication phase lasts long enough to repay the reconfiguration cost.

For stable, predictable collective phases, OCS can be compelling. For highly dynamic or fine-grained traffic, a packet-switched fabric may still be easier to utilize efficiently.


Conclusion

The future scale-up domain will not be defined by one library or one interconnect.

NCCL remains a crucial reference implementation for CUDA systems. But the broader direction is clear: collective-aware software above, multiple competing accelerator fabrics below, and increasingly open switching layers—such as OCP SUE-T and ESUN—connecting the two.

The engineering question is not “NVLink, Ethernet, or optics?”

It is:

Which fabric gives this workload the right combination of collective efficiency, latency predictability, fault recovery, openness, and operational control?

Sources

  1. NVIDIA NCCL overview
  2. OCP ESUN workstream
  3. OCP ESUN 1.0 network-operator requirements