Skip to content

Why HPC Networking Is Different · Part 5 of 6

Act 4 — Why TCP fails and what replaces it

Building the model…

Same scalable unit, same rail: the write crosses exactly one switch.

TCP was designed for reliability in the presence of packet loss — its congestion window backs off when it detects a drop, retransmits the lost packet, and resumes. This is exactly what you need for a file transfer or a web request. It is exactly the wrong behaviour for .

When TCP backs off, the waits. When the GPU waits, the barrier stalls. The retransmit latency — typically milliseconds — is enormous relative to the sub-microsecond timing that AI require.

The replacement is RDMA (Remote Direct Memory Access) with transport (RDMA over Converged version 2). RDMA bypasses the and kernel stack entirely: the reads directly from GPU memory and writes directly into the remote GPU's memory with no CPU involvement and no kernel copies. The latency is measured in microseconds, not milliseconds.

But RDMA is brittle in one important way: it has no loss recovery mechanism. A dropped packet does not trigger a retransmit — it triggers a error that requires application-level intervention to recover. This means RDMA requires the fabric beneath it to deliver every packet without loss. Which returns us to the same requirement: the fabric must be lossless.

Why bypassing the CPU matters so much. In the TCP world every byte that arrives is copied by the operating system from the NIC into kernel memory, then into the application's memory, with the CPU doing the copying and the interrupt handling. At 25 Gb/s a CPU can keep up. At 800 Gb/s per GPU, eight GPUs per server, the CPU would need to copy over six terabits per second, which no CPU can do. RDMA removes the CPU from the data path entirely: the NIC itself reads from one GPU's memory and writes into another's across the network. That is what makes 800 Gb/s per GPU possible, and it is also why there is no software in the loop to notice a lost packet and resend it.

The protocol stack for this chapter's context:

LayerEnterprise TCP stackAI training stack
ApplicationSocket APINCCL (AllReduce library)
TransportTCP (loss-tolerant, slow recovery)RDMA / RoCEv2 (lossless required)
NetworkIPIP + RoCEv2 header (UDP/4791)
Data linkEthernet (lossy)Ethernet + PFC (lossless)
CongestionTCP backoffECN + DCQCN
LayerApplication
Enterprise TCP stackSocket API
AI training stackNCCL (AllReduce library)
LayerTransport
Enterprise TCP stackTCP (loss-tolerant, slow recovery)
AI training stackRDMA / RoCEv2 (lossless required)
LayerNetwork
Enterprise TCP stackIP
AI training stackIP + RoCEv2 header (UDP/4791)
LayerData link
Enterprise TCP stackEthernet (lossy)
AI training stackEthernet + PFC (lossless)
LayerCongestion
Enterprise TCP stackTCP backoff
AI training stackECN + DCQCN
Illustration comparing TCP retransmit recovery with RDMA direct memory transfer over a lossless fabric.

Figure: TCP and RDMA solve different problems. TCP spends time recovering from drops through the host stack; RDMA keeps latency low by using NIC-driven direct memory movement, which is why the Ethernet fabric underneath must be engineered to avoid loss in the first place.

The right column is what this curriculum builds toward. You now know why each row is different. The how comes in subsequent chapters.


Read aloudPage 5