Home / Learn / AI Networking / What Is Transport Offload?

On this pageWhat a transport protocol doesWhy offload itDegrees of offloadWhy full TCP offload struggledRDMA: offload that succeededWhat the hardware must doBenefitsCosts and challengesWhere the offload runsTransport offload in AI clustersNew transports raise the barOffload and programmabilityFor chip designersCommon questionsRelated guides

What Is Transport Offload?

Transport offload moves the work of a network transport protocol from the server’s CPU into dedicated hardware. A transport protocol makes communication reliable: it tracks what has been sent, detects loss, resends data and controls the sending rate. Doing this in software consumes processor time and adds delay. Doing it in the network interface frees the processor and handles traffic faster and more consistently. For AI clusters running at hundreds of gigabits per second, it is essential.

What a transport protocol does

The network layer delivers individual packets and makes no promises. The transport layer turns that into something applications can depend on.

  • Segmentation. Splitting data into packets and reassembling it.
  • Reliability. Acknowledging what arrives and resending what does not.
  • Ordering, or placing data in the right position.
  • Flow control. Not overwhelming the receiver.
  • Congestion control. Not overwhelming the network.
  • Multiplexing. Managing many conversations.

TCP is the familiar example. RDMA transports serve the same role for cluster and storage traffic.

Why offload it

Every one of those functions involves work for each packet. At 100 gigabits per second, a link can carry millions of packets each second.

  • CPU consumption. Software transport processing at these rates can occupy many processor cores.
  • Memory copies. Data is copied between buffers along the software path.
  • Interrupts and context switches between the application and the operating system.
  • Variable delay. Software is subject to scheduling and other activity on the processor.

Processor speed has not risen as fast as network speed. The gap can only be closed by moving the work elsewhere.

Degrees of offload

Offload ranges from small assists to the complete protocol.

LevelWhat moves to hardwareNotes
Checksum offloadCalculating and verifying checksumsUniversal
Segmentation offloadSplitting large blocks into packets on sendUniversal
Receive coalescingCombining incoming packets before passing them upCommon
Receive steeringDistributing flows across processor coresCommon
Encryption offloadEncrypting and decrypting inlineIncreasingly common
Full TCP offloadThe whole TCP state machineHistorically limited adoption
RDMAThe complete transport, with direct data placementStandard for cluster and storage networks

The first few are stateless: the hardware does not need to remember anything about each connection. They are simple and are present in essentially every network card.

Full offload is stateful. The hardware keeps track of each connection’s sequence numbers, acknowledgements, timers and congestion state.

Why full TCP offload struggled

Complete offload of TCP was tried for many years and saw limited adoption in general-purpose servers.

  • TCP has a great many options and corner cases.
  • Operating system network stacks evolve constantly, and hardware could not keep up.
  • Bugs and security fixes in hardware are harder to deliver.
  • Integration with operating system features such as firewalls and monitoring was awkward.
  • The benefit for many workloads was modest.

Stateless offloads delivered most of the gain with far less trouble. Full TCP offload survives in specific uses, such as storage.

RDMA: offload that succeeded

RDMA took a different route. It was designed from the beginning to be implemented in hardware, with an interface built for the purpose.

The network adapter runs the entire transport. It takes data directly from the application’s memory, delivers it across the network and places it directly into the receiving application‘s memory. The operating system is not involved in the data path at all.

This is the form of transport offload that AI and high-performance computing rely on.

What the hardware must do

A network interface with a fully offloaded transport performs a substantial list of functions.

  • Keep state for every connection or peer.
  • Build and parse headers for each packet.
  • Track sequence numbers and acknowledgements.
  • Detect loss and retransmit.
  • Run congestion control, reacting to feedback within microseconds.
  • Look up memory regions and check access rights.
  • Move data to and from host or accelerator memory through a DMA engine.
  • Manage timers.
  • Encrypt and authenticate, where security is enabled.
  • Report completions and errors to software.

All of this happens at line rate, for many peers at once.

Benefits

  • Processor capacity returned to applications.
  • Lower latency, in microseconds.
  • More consistent latency, since no software scheduling is involved.
  • Higher throughput, using the link’s full capacity.
  • Lower energy per unit of data moved.
  • Zero-copy data paths.

Costs and challenges

  • Hardware complexity. A full transport is a large and intricate design.
  • Memory for state. Tracking many connections needs memory in the device.
  • Flexibility. Hardware is harder to change than software. Programmable devices mitigate this.
  • Correctness. Protocol errors in hardware are costly. Verification is extensive.
  • Interoperability with other vendors’ implementations.
  • Visibility. Traffic that bypasses the operating system also bypasses its monitoring and filtering tools.
  • Security. The offload path must enforce isolation itself.

Where the offload runs

  • RDMA network cards.
  • SmartNICs and DPUs, which add programmable processing.
  • Accelerators with integrated networking, where the transport is built into the AI chip or a companion die.
  • Storage controllers.

Transport offload in AI clusters

An AI cluster’s back-end network exists to move data between accelerators as fast as possible.

  • The CPU cannot be in the path. At these rates, and with accelerators that must be kept continuously supplied, software processing is not an option.
  • Data goes directly to accelerator memory, bypassing host memory.
  • Synchronized bursts require microsecond-level congestion response.
  • Loss recovery must be immediate.
  • CPUs are scarce in AI servers and needed for other tasks.

New transports raise the bar

The transports being introduced for AI are more demanding to offload than their predecessors.

Ultra Ethernet‘s transport, for example, selects a path for each packet, accepts packets in any order and places their data directly, tracks which have arrived, handles trimmed packets, runs congestion control across multiple paths and includes encryption.

Hardware for it needs more per-packet logic and more state than a traditional RDMA adapter. In exchange, it removes the need for a lossless network and uses network capacity more fully.

Offload and programmability

There is tension between efficiency and adaptability. A fixed hardware implementation is the most efficient and cannot follow a protocol that is still evolving.

Designs deal with this in several ways.

  • A hardware fast path with a software slow path. Common cases are handled in hardware. Exceptions go to processor cores on the device.
  • Configurable pipelines whose behavior can be adjusted.
  • Programmable congestion control, since algorithms continue to change.
  • Firmware-updatable logic.

For chip designers

A transport offload engine is one of the more complex blocks in a networking or AI chip. Considerations include:

  • Which transports to support, often more than one.
  • Scale. How many peers or connections.
  • Integration with the DMA path and with accelerator memory.
  • Congestion control flexibility.
  • Security, including inline encryption.
  • Interoperability and compliance testing.
  • Software. Drivers and integration with communication libraries.

Given the complexity and the need to interoperate, many teams license this technology.

Common questions

What is transport offload?

Moving the processing of a network transport protocol, such as reliability, ordering and congestion control, from software on the host CPU into dedicated hardware, usually in the network interface.

Is RDMA a form of transport offload?

Yes. In RDMA, the network adapter runs the whole transport and transfers data directly between application memory, with no operating system involvement in the data path.

Why does AI need transport offload?

AI clusters move data at rates that software cannot handle without consuming the processors, and they need very low, consistent latency. Only hardware can deliver both.

Related guides