Skip to main content

Understanding AI Ethernet: From Switch Buffers to Adaptive Routing and SuperNIC Intelligence

· 15 min read
Staff Network Engineer · RDMA & AI Fabric

AI Ethernet: switch buffers, adaptive routing, and SuperNIC intelligence

TL;DR: AI Ethernet performance depends on switches, congestion control, and SuperNICs working together—not simply bigger buffers or faster ports.

Key challengePractical mitigation
Packet reorderingTransport-aware reordering and recovery where supported
Incast congestionECN-based sender rate control and burst buffering
Limited routing visibilityCoordinated control loops and multipath path selection
Fail-slow linksEarly telemetry detection and rerouting away from degraded paths

Exploring packet forwarding, congestion control, out-of-order delivery, and network reliability in modern GPU fabrics.

A conversation that deepened my understanding of AI Ethernet​

I recently had the opportunity to speak with Gilad Shainer, Senior Vice President of Networking at NVIDIA, and Alex Shapiro, Senior Manager at NVIDIA, about the evolution of Ethernet for AI infrastructure.

It was a valuable learning experience. Gilad shared his insights and perspectives on how Ethernet networking is evolving to meet the demands of large-scale GPU infrastructure. Our discussion touched on switch buffering, adaptive routing, packet reordering, SuperNIC capabilities, and the importance of network performance in distributed AI workloads.

One important question stayed with me after our conversation:

What if the best way to handle congestion isn't simply to build larger buffers, but to make the network intelligent enough to avoid congestion in the first place?

As a network engineer, I've traditionally evaluated switches based on port speed, ASIC capacity, radix, forwarding performance, and buffer architecture. Our discussion helped me appreciate another important dimension of AI networking: how effectively the entire network, including the switches and endpoints, works together to keep thousands of GPUs communicating efficiently.

Inspired by the knowledge and perspectives shared during our conversation, I spent time studying NVIDIA's publicly documented Spectrum-X architecture and Multipath Reliable Connection (MRC) transport in greater depth.

This article brings together what I learned from our discussion, my independent technical research, and my understanding of how these technologies are shaping the future of AI Ethernet.

1. Four packets enter an AI network​

Imagine a GPU training cluster connected through a leaf-spine Ethernet fabric. A source GPU sends four packets to another GPU: P1 → P2 → P3 → P4. The leaf switch has four equal-cost paths through four spine switches.

In a conventional flow-based ECMP design, a hash of the packet headers decides which path a flow uses. Packets in the same flow follow the same path, which preserves ordering. That is an important and useful property.

Traditional ECMP hash collision: two large RDMA flows select the same spine while other paths have spare capacity

Now imagine two large RDMA flows hash onto the same spine. That path congests while the other three still have bandwidth to spare, and our packets wait in the congested egress queue. The fabric has capacity, but static ECMP gives these flows no way to use it.

AI training makes this worse than typical data center traffic. It produces a small number of very large, long-lived flows with little entropy for the hash to work with, so collisions are both more likely and more costly.

Can the fabric make better use of available paths without breaking the receiving transport's expectations?

2. Understanding switch buffers​

Switch buffers temporarily hold packets when incoming traffic exceeds an outgoing port's capacity.

For example, if 800 Gbps of traffic arrives toward a 400G egress port for 100 microseconds, approximately 5 MB of excess traffic needs to be buffered to avoid packet loss, assuming traffic is not reduced or redirected.

Deep vs. shallow buffers: what actually helps?​

Deep buffers absorb short bursts; they do not create bandwidth. If 800 Gbps arrives at a 400G egress port, the queue grows by 5 MB in 100 μs. More buffer space buys time for the burst to end or congestion control to react—but sustained overload eventually fills any buffer.

MechanismWhat it solvesWhat it cannot solve
Deep bufferingTemporarily absorbs incast and microburstsSustained oversubscription or poor ECMP path selection
Adaptive routingUses less-congested eligible paths when capacity exists elsewhereCongestion at a shared destination
ECN + endpoint rate controlSignals congestion so senders slow downAdds no physical bandwidth
PFC (when enabled)Pauses an upstream traffic priority to prevent buffer overflowCan spread congestion and cause head-of-line blocking

Deep versus shallow is a design trade-off, not a vendor ranking. Shallow-buffer fabrics depend more on timely congestion response; deep-buffer fabrics can absorb longer bursts but may add queueing delay. Both need sound traffic engineering.

The key question: If another path has spare capacity, why keep building a queue on the congested one?​

3. The packet-ordering challenge​

Suppose packets from the same RDMA flow take different spine paths instead of remaining on a single ECMP path.

Our source GPU sends P1 → P2 → P3 → P4, but differing queueing delays could make them arrive as P3 → P1 → P4 → P2.

All four packets arrived, but not in their original order. This is packet reordering, not packet loss.

Some reliable RDMA transports cannot efficiently handle arbitrary out-of-order delivery. Depending on the implementation, reordering may trigger unnecessary recovery, retransmissions, or other performance penalties.

How can a fabric use multiple paths for the same flow without compromising reliable RDMA communication? That is the challenge Spectrum-X addresses.

4. NVIDIA Spectrum-X: when the switch and SuperNIC cooperate​

NVIDIA Spectrum-X combines Spectrum Ethernet switches with NVIDIA networking endpoints, including supported BlueField and ConnectX SuperNIC generations. NVIDIA refers to its supported transport approach as Spectrum-X Ethernet Adaptive RDMA. These capabilities are designed to improve how AI workloads use the fabric.

Same RDMA flow: packets P1 through P4 are distributed across four spine paths toward the destination GPU

The central idea is straightforward: the switch selects the path, while the receiving SuperNIC handles packet reordering.

In supported Spectrum-X configurations, fine-grained adaptive routing can select among eligible spine-facing ports using local congestion information rather than keeping every packet of a flow on one fixed ECMP path. NVIDIA describes the selection mechanism as a hardware approximation of Join-Shortest-Queue: a less-congested eligible output can be preferred over one with a deeper queue.

Sending packets of the same flow across different paths can change their arrival order. The receiving SuperNIC's out-of-order handling allows data to be placed at the appropriate destination-memory offsets without treating reordering by itself as packet loss. This behavior depends on the supported hardware, transport mode, and configuration; it is not a property of every Ethernet or RoCE deployment.

Why this matters: With supported hardware and transport modes, Spectrum-X can distribute packets across eligible paths while the receiving SuperNIC handles out-of-order delivery. This coordination improves path utilization without requiring the application to manage reordering.

5. Why adaptive routing needs congestion control​

Now consider a different pattern. Four source GPUs each send 400 Gbps toward a receiver whose interface accepts only 400 Gbps. Offered load is 1.6 Tbps; receive capacity is 400 Gbps.

However many spine paths exist, all that traffic converges on the same final link. No path-selection algorithm can make a destination receive four times its physical capacity. This is incast congestion, and adaptive routing alone cannot solve it. The senders must slow down.

The role of congestion control​

This is why Spectrum-X pairs adaptive routing with congestion control. NVIDIA describes a telemetry-based approach: Spectrum switches feed in-band congestion information back toward the endpoints, and the sending SuperNICs combine it with signals such as ECN marks and RTT measurements to adjust their injection rate.

The distinction is worth stating plainly:

  • Adaptive routing asks: which eligible path should this packet take?
  • Congestion control asks: how fast should the sender inject packets into the network?

The two complement each other. Adaptive routing avoids localized hotspots through path choice. When no alternate path can relieve the bottleneck, sender rate reduction is the only fix. Buffers absorb the burst while that feedback takes effect, and depending on configuration, Ethernet flow control and transport recovery provide further protection.

The goal is not to eliminate congestion, which is impossible, but to manage it so workload performance stays predictable.

6. Three hardware control loops​

NVIDIA's published Spectrum-X material describes three hardware-accelerated control loops that operate at different scopes.

LoopWhere it runsWhat it decidesProblem it addresses
1. In-switch adaptive routingSpectrum switchWhich eligible egress port each packet takes, by local queue depthHash collisions and local hotspots
2. Targeted congestion controlSending SuperNIC, fed by switch telemetryHow fast the sender injects trafficSustained bottlenecks such as synchronized incast
3. SuperNIC plane load balancingSending SuperNICWhich independent network plane carries the trafficImbalance across planes in multiplane fabrics

The switch manages local path selection, congestion control manages the sending rate, and in supported multiplane designs the SuperNIC spreads traffic across independent planes using local queue state and end-to-end congestion information. Each loop handles what the others cannot, which is the real value of coordinating network and endpoint behavior.

7. What about buffer-to-buffer credits?​

NVIDIA InfiniBand uses link-level, credit-based flow control. The sender tracks how much buffer space the next hop has free and transmits only within those credits, so the link is lossless by construction.

Spectrum-X Ethernet takes a different approach. It does not implement InfiniBand-style credits as its standard mechanism. Instead, it combines adaptive routing, telemetry- and ECN-driven congestion control, standard Ethernet flow control where configured, and transport recovery. MRC, covered in Section 10, takes yet another approach and is designed to operate without PFC or a lossless fabric.

These mechanisms solve different problems:

MechanismPrimary purpose
Switch bufferingTemporarily absorb traffic bursts
Credit-based flow controlRegulate transmission by downstream buffer availability
Adaptive routingSelect less-congested eligible paths
Telemetry/ECN-based congestion controlSignal congestion so senders adjust their rates
PFCPause selected Ethernet priorities hop by hop
Out-of-order handlingProcess packets that arrive in a different order
RetransmissionRecover missing data

This is why AI Ethernet performance depends on far more than buffer capacity alone.

Imagine a training job running across thousands of GPUs. Everything has been normal, then NCCL bandwidth starts dropping. You check the network: interfaces are UP, BGP sessions are established, and there is no obvious outage. Yet communication phases keep taking longer.

One likely culprit is a fail-slow condition. An optical link can degrade at the physical layer without ever going DOWN.

The failure usually unfolds in stages. Forward error correction (FEC) first corrects rising bit errors silently, so the pre-FEC bit error rate climbs while traffic looks healthy. Once errors exceed what FEC can correct, frames fail their CRC and are dropped. The transport then retransmits, and effective throughput falls. Watching pre-FEC BER trends gives operators an early warning before the job ever notices.

This is where telemetry becomes essential. NVIDIA provides telemetry across Spectrum switches, SuperNICs, and its networking software, letting operators correlate physical errors, congestion, retransmissions, and communication performance.

Network availability and network performance are not the same thing. A link being UP does not guarantee the workload is getting the bandwidth it needs.

9. Connecting network telemetry to NCCL performance​

NCCL collectives such as AllReduce, AllGather, and ReduceScatter coordinate data movement among GPUs. If a single rank or host suffers network degradation, the whole collective slows down with it. That makes workload-level observability essential, and tools such as NVIDIA's NCCL Inspector help engineers see communication behavior from the application side.

When troubleshooting a slow collective, these are the questions I would want answered:

  • Is the slowdown affecting every rank, or only a subset?
  • Did RoCE retransmissions increase?
  • Are any links reporting rising pre-FEC BER or post-FEC errors?
  • Is one network plane more congested than the others?
  • Are ECN marks, CNPs, or PFC pauses increasing?
  • Did the degradation line up with a maintenance event?

These signals connect the application's symptoms to the underlying network condition. Detection and remediation are separate capabilities, though. Finding a degraded path does not guarantee transparent recovery; that depends on the transport, the fabric configuration, and the nature of the failure.

10. An important evolution: Multipath Reliable Connection (MRC)​

Multipath Reliable Connection (MRC) is an emerging RDMA transport approach designed to let a single reliable connection use multiple network paths, improving how large AI clusters balance traffic and handle congestion or failures.

MRC is designed to let a single reliable RDMA connection use multiple network paths. Its documented capabilities include:

  • Multipath load balancing within a single connection, steering around congested paths during a running job
  • Multiplane support, splitting one high-speed NIC's bandwidth across several independent Ethernet planes
  • Selective retransmission, resending only what was actually lost
  • Fast failure bypass, rerouting around failed paths in supported hardware
  • No dependency on PFC or lossless Ethernet behavior

This is a different layer of the problem from Section 4. Switch-level adaptive routing decides where eligible packets are forwarded. Transport-level reliability ensures missing data is recovered correctly. MRC moves multipath intelligence and path control into the transport itself, governed largely by the host.

It should not be confused with switch-level Spectrum-X adaptive routing; the technologies operate at different layers.

That MRC is being publicly discussed by major AI infrastructure operators is itself a signal. Ethernet for AI is evolving across the whole communication stack, and NVIDIA has publicly described MRC deployments alongside Spectrum-X.

11. What would I validate in a real AI fabric?​

Understanding the architecture is only the beginning. The next step is validating how it behaves under realistic traffic. These are the scenarios I would prioritize:

ScenarioHow to test itWhat to measure
Path imbalanceLarge RDMA flows contending for one path while alternates have spare capacityThroughput, per-port queue occupancy
Packet reorderingExercise fine-grained adaptive routing toward a supported SuperNICData integrity, out-of-order counters, retransmissions
Synchronized incastSimultaneous senders toward one constrained receiverCongestion feedback, rate adjustment, queue growth
MicroburstsShort high-rate burstsBuffer behavior, tail latency
Fail-slow opticsControlled physical-layer impairment in a labPre-FEC BER, telemetry alerts, retransmissions, effective bandwidth
NCCL communicationRepresentative AllReduce and AllGather workloadsCollective bandwidth correlated with network counters
Path and plane failuresTake part of the fabric down mid-jobTraffic redistribution, recovery time, workload impact
Transport comparisonSame workloads under Adaptive RDMA and MRC, where both are supportedThroughput, tail latency, failure recovery

All of these answer one question: does the network keep GPU communication predictable when traffic gets hard or infrastructure starts to degrade?

Final thoughts: AI Ethernet is a systems problem​

My biggest takeaway from the discussion with Gilad and Alex was the importance of seeing the complete communication system. Switch buffers matter. So do forwarding algorithms, SuperNIC capabilities, congestion control, packet ordering, telemetry, and transport recovery. Each addresses a different part of the problem, and their interactions determine how the fabric behaves.

What makes Spectrum-X interesting to study is how its switches and SuperNICs coordinate these capabilities. The evolution of transport technologies such as MRC further illustrates this systems-level approach.

High-performance AI networking is not about a single feature or specification. It is about how the complete system manages traffic, congestion, reliability, and application performance together.

That's the perspective I hope to carry into future AI fabric design and validation work.

Acknowledgment​

I would like to express my sincere appreciation to Gilad Shainer, Senior Vice President of Networking at NVIDIA, and Alex Shapiro, Senior Manager at NVIDIA, for taking the time to share their insights and perspectives on the evolution of Ethernet for AI infrastructure.

A special thank you to Alex for discovering LosslessNetwork.com and reaching out, which led to this valuable conversation.

It was a pleasure discussing AI networking, adaptive routing, and SuperNIC technologies with both of you. Thank you so much for your time, thoughtful insights, and engaging discussion. I truly appreciate the opportunity to learn from your perspectives.

References and further reading​

  1. NVIDIA — Giga-Scale AI and the Ethernet Evolution
  2. NVIDIA — Turbocharging AI Workloads with Spectrum-X
  3. NVIDIA — Next-Generation AI Factory Telemetry
  4. NVIDIA — Spectrum-X Ethernet and MRC
  5. HPCwire — NVIDIA Highlights OpenAI, Microsoft Deployments of Spectrum-X Ethernet with MRC
  6. SiliconANGLE — Nvidia's MRC: When 'just Ethernet' isn't enough for gigascale AI
  7. Converge Digest — MRC Redesigns Ethernet for GPU AI Clusters
  8. HPCwire — Networking in the AI Age: Gilad Shainer Interview
  9. AI Factory Networking Discussion Featuring Gilad Shainer