AI Engineer · Published 2026-09-17

Homa: The End of TCP for AI Clusters — John Ousterhout, Stanford

Open on YouTube ↗

Summary

Overview

  • Speaker: John Ousterhout
  • Channel: AI Engineer
  • Main topic: Network transport protocols (TCP vs. Homa) for AI workloads, specifically addressing tail latency in small message exchanges.
  • Purpose: To explain why legacy network transport protocols fail AI workloads and introduce Homa as a superior alternative for reducing tail latency in data center networks. John Ousterhout, Professor Emeritus at Stanford University, discusses the networking challenges of modern AI workloads, arguing that legacy protocols like TCP and RoCE (RDMA over Converged Ethernet) are poorly suited for AI agentic and inference workloads because of high tail latency caused by incast congestion and byte-stream data models. He introduces Homa, a clean-slate network transport protocol developed at Stanford that achieves significantly lower tail latency for short messages under mixed workloads through message-based framing, receiver-driven congestion control, and priority queueing.

Topic Map

Introduction and Overview of AI Workloads

  • Explanation: Introduction of the speaker and the premise that AI workloads are evolving from massive throughput-heavy transfers (training) to more granular, small request-response exchanges (inference and agents) where latency is crucial.
  • Key claims:
    • AI workloads depend heavily on network performance.
    • AI workloads are shifting from being exclusively dominated by large transfers to including frequent small message exchanges where latency matters.
    • Legacy protocols like TCP and RDMA (RoCE) suffer from high tail latency.
  • Examples:
    • Weight gradients, model weights, KV cache entries, checkpoints.
  • Terminology:
    • Throughput
    • Tail latency
    • RDMA
    • RoCE
    • TCP
  • Why it matters: Sets up the core motivation for why new network protocols are needed as AI application paradigms shift toward latency-sensitive inference and agentic workflows.

Why TCP and RDMA Fail AI Workloads

  • Explanation: Detailed breakdown of the networking bottlenecks of TCP and RoCE in datacenter environments: incast congestion, sender-driven congestion control with control lag, and byte-stream data models leading to head-of-line blocking.
  • Key claims:
    • Legacy protocols were designed for large transfers and lack message boundaries.
    • Incast congestion causes switch queues to fill up, delaying short messages behind long ones.
    • Sender-driven congestion control introduces control lag and oscillatory behavior.
    • Byte-stream data models prevent prioritization of short messages.
  • Examples:
    • Multiple sending nodes transmitting large messages simultaneously to a single destination node, causing queue build-up and packet drops at the top-of-rack switch.
  • Terminology:
    • Incast congestion
    • ECN (Early Congestion Notification)
    • Head-of-line blocking
    • Byte stream
    • Control lag
  • Why it matters: Explains the underlying architectural deficiencies of current networking infrastructure when handling mixed AI workloads.

Homa: A Clean-Slate Network Transport Protocol

  • Explanation: Introduction of Homa, a clean-slate protocol designed specifically for datacenter workloads featuring message-based semantics, receiver-driven congestion control, and priority queueing.
  • Key claims:
    • Homa reduces tail latency by an order of magnitude or more.
    • Homa is message-based (built around Remote Procedure Calls) rather than byte-stream-based.
    • Congestion control is managed by the receiver, which has complete information about incoming messages.
    • Homa leverages modern switch priority queues to implement Shortest Remaining Processing Time (SRPT).
  • Examples:
    • Benchmarking results showing Homa achieving ~92 microsecond P99 tail latency for short messages compared to 1.2 milliseconds for TCP.
  • Terminology:
    • Homa
    • RPC (Remote Procedure Call)
    • SRPT (Shortest Remaining Processing Time)
    • Grant packets
    • Unscheduled packets
  • Why it matters: Provides a concrete technical solution that drastically improves AI application throughput and latency.

Key Points

AI workloads are becoming more granular

  • Explanation: Inference and agentic workloads rely on frequent small message exchanges (such as metadata checks, barrier synchronization, and KV cache lookups) rather than just massive training weight transfers.
  • Evidence: Observed shifts in AI architectures toward distributed inference and multi-agent coordination.
  • Practical implication: Network performance bottlenecks are shifting from raw throughput (gigabits per second) to tail latency (microseconds).

Sender-driven congestion control causes inevitable queue buildup

  • Explanation: In TCP and RoCE, congestion control relies on senders detecting network congestion via feedback (like ECN bits or dropped packets), leading to slow response times and control lag.
  • Evidence: Decades of research showing oscillation and high tail latency in sender-driven protocols.
  • Practical implication: Queue buildup at switches starves short messages, causing GPU stalls during synchronization phases.

Receiver-driven congestion control and priority queues solve incast congestion

  • Explanation: Homa places congestion control responsibility on the receiver, which uses message length awareness and modern switch priority queues to prioritize short messages.
  • Evidence: Benchmark data demonstrating a 10x+ reduction in tail latency under mixed workloads.
  • Practical implication: Significantly higher overall application throughput and reduced GPU idle time.

Frameworks, Models & Processes

Homa Network Transport Architecture

  • How it works: Replaces byte-stream transport with explicit message-based RPCs, shifts congestion control from senders to receivers using grant packets, and leverages switch priority queues for Shortest Remaining Processing Time (SRPT).
  • Components:
    • Message-based data model (RPCs)
    • Receiver-driven congestion control
    • Grant and scheduled packets
    • Switch priority queue utilization
  • When to use: Datacenter networks running mixed workloads with both large transfers and frequent latency-sensitive small message exchanges, such as AI clusters.

Examples & Case Studies

Multiple nodes simultaneously transmit large messages to a single destination node.

  • Illustrates: Incast congestion and queue buildup at the top-of-rack switch.
  • Lesson: Short messages get stuck behind large messages in switch queues, causing severe latency spikes and packet drops.

Actionable Takeaways

  • Immediate:
    • Evaluate whether high tail latency for short messages is impacting your AI application throughput.
    • Explore the open-source Linux kernel module for Homa available on GitHub.
  • Strategic:
    • Recognize that legacy networking protocols (TCP/RoCE) are misaligned with modern AI inference and agentic workloads.
    • Adopt message-based and receiver-driven transport mechanisms for high-performance AI clusters.
  • Questions to investigate:
    • How easily can Homa be integrated into existing datacenter hardware and software stacks?
    • What are the operational requirements for configuring switch priority queues for Homa?

Claims Worth Verifying

  • Homa reduces P99 tail latency for short messages by approximately 13x compared to TCP under mixed workloads. (Benchmark performance claim)
  • Homa's kernel module is open-source and under review for upstreaming into Linux. (Software availability claim)

Notable Quotes

"It's well known that AI workloads depend on really great networking performance in order to achieve their own performance." (at 1:42) "Every major design decision is different from TCP/RDMA." (at 18:51)

Compressed Summary

  • AI workloads are evolving toward more granular, small message exchanges where latency is critical.
  • TCP and RDMA suffer from high tail latency due to incast congestion, sender-driven congestion control, and byte-stream data models.
  • Homa is a clean-slate datacenter transport protocol built around RPCs, receiver-driven flow control, and priority queueing.
  • Homa achieves over 10x reduction in tail latency for short messages while maintaining high performance for large transfers.
  • Keywords: homa, tcp, rdma, latency, ai, networking
  • Core insight: Legacy network protocols like TCP and RDMA fail AI workloads because they use byte-streams and sender-driven congestion control; shifting to message-based, receiver-driven protocols like Homa dramatically reduces tail latency.

Core insights

6
Architecturehigh noveltystrong evidence

Move congestion control from the sender to the receiver, which is the only party with complete knowledge of incoming message sizes; the receiver then issues grant packets to admit traffic.

Why it matters

Sender-driven control (TCP/RoCE) reacts to congestion only after feedback arrives, producing control lag and oscillation; inverting the control point removes that lag and enables length-aware admission decisions at the exact place where queue state is known.

Generalization

For any shared resource where the consumer has richer demand information than the producers, putting admission/backpressure decisions at the consumer (receiver) outperforms producer-side reactive throttling.

Congestion control is managed by the receiver, which has complete information about incoming messages.
Open source video
shifts congestion control from senders to receivers using grant packets
Open source video
Sender-driven congestion control introduces control lag and oscillatory behavior.
Open source video
Mechanismmedium noveltystrong evidence

Byte-stream transport has no message boundaries, so it cannot express message length to the network; this structurally prevents prioritization of short messages and creates head-of-line blocking.

Why it matters

Without message framing, the network cannot distinguish a 1 KB barrier-sync RPC from a multi-GB gradient transfer, so latency-critical work is structurally indistinguishable from bulk work at the queue.

Generalization

Protocol data models impose hard ceilings on what scheduling policies are even expressible; adding semantics at the framing layer (messages vs bytes) unlocks scheduling classes that no amount of tuning can recover.

Byte-stream data models prevent prioritization of short messages.
Open source video
Homa is message-based (built around Remote Procedure Calls) rather than byte-stream-based.
Open source video
Legacy protocols were designed for large transfers and lack message boundaries.
Open source video
Architecturehigh noveltystrong evidence

Map Shortest Remaining Processing Time (SRPT) onto commodity switch priority queues rather than requiring new hardware.

Why it matters

It means the scheduling-theory-optimal policy for mean latency can be implemented with existing datacenter switches, changing the cost/benefit of adoption from 'new hardware' to 'configuration'.

Generalization

The pragmatic path for deploying an optimal scheduling discipline is to compile it onto existing hardware primitives (priority queues) instead of designing new silicon.

Homa leverages modern switch priority queues to implement Shortest Remaining Processing Time (SRPT).
Open source video
Switch priority queue utilization
Open source video
What are the operational requirements for configuring switch priority queues for Homa?
Open source video
Empirical Resultmedium noveltystrong evidence

Measured P99 tail latency for short messages drops from ~1.2 ms (TCP) to ~92 microseconds under Homa — roughly an order-of-magnitude improvement on the metric that gates GPU synchronization.

Why it matters

Tail latency, not throughput, is what stalls distributed inference and agent coordination; a 13x P99 reduction directly converts into reduced GPU idle time during barrier and KV-cache synchronization.

Generalization

For synchronized distributed workloads, optimizing the 99th percentile of the smallest messages can dominate optimizing aggregate bandwidth.

Benchmarking results showing Homa achieving ~92 microsecond P99 tail latency for short messages compared to 1.2 milliseconds for TCP.
Open source video
Homa reduces tail latency by an order of magnitude or more.
Open source video
Benchmark data demonstrating a 10x+ reduction in tail latency under mixed workloads.
Open source video
Failure Modemedium noveltystrong evidence

Incast — many senders simultaneously targeting one receiver — fills switch queues so short messages are delayed behind large ones, starving the latency-critical traffic.

Why it matters

This is the concrete mechanism by which all-to-one synchronization patterns (collectives, fan-in to a coordinator) degrade; it explains GPU stalls as a queueing pathology, not a bandwidth shortage.

Generalization

Fan-in topologies invert the usual bottleneck: the constraint is queue occupancy ordering, not link capacity, so remedies must reorder the queue rather than add bandwidth.

Incast congestion causes switch queues to fill up, delaying short messages behind long ones.
Open source video
Short messages get stuck behind large messages in switch queues, causing severe latency spikes and packet drops.
Open source video
Multiple sending nodes transmitting large messages simultaneously to a single destination node, causing queue build-up and packet drops at the top-of-rack switch.
Open source video
Mental Modelmedium noveltymoderate evidence

The AI workload mix is shifting from bulk transfers to frequent small request-response exchanges (metadata checks, barrier sync, KV cache lookups), moving the bottleneck from Gbps to microseconds.

Why it matters

Infrastructure tuned for training throughput (RoCE bandwidth) is optimized for the wrong metric once agentic and inference traffic dominates.

Generalization

As a system's workload mix shifts from bulk to transactional, previously secondary latency metrics become the primary capacity constraint and invalidate prior transport choices.

Inference and agentic workloads rely on frequent small message exchanges (such as metadata checks, barrier synchronization, and KV cache lookups) rather than just massive training weight transfers.
Open source video
Network performance bottlenecks are shifting from raw throughput (gigabits per second) to tail latency (microseconds).
Open source video

Deep dives

5

Receiver-driven congestion control as a general design pattern

Research question

For which shared-resource systems does consumer-side admission control outperform producer-side throttling, and what information asymmetry is required to make it work?

Why

If the pattern generalizes beyond networking, it changes how we design backpressure in inference servers, GPU work queues, and agent coordination layers.

Congestion control is managed by the receiver, which has complete information about incoming messages.
Open source video
shifts congestion control from senders to receivers using grant packets
Open source video
Sender-driven congestion control introduces control lag and oscillatory behavior.
Open source video
Source video

Compiling SRPT onto commodity switch priority queues

Research question

How closely does a finite number of switch priority levels approximate true SRPT, and what is the tail-latency penalty as queues are reduced?

Why

It determines whether the optimal scheduling policy for mean latency is a deployment configuration or a hardware upgrade.

Homa leverages modern switch priority queues to implement Shortest Remaining Processing Time (SRPT).
Open source video
Switch priority queue utilization
Open source video
What are the operational requirements for configuring switch priority queues for Homa?
Open source video
Source video

Tail latency vs throughput as the gating metric for AI clusters

Research question

What fraction of production AI cluster traffic is small-message request-response vs bulk transfer, and at what point does P99 latency dominate GPU idle time over aggregate bandwidth?

Why

Infrastructure tuned for training throughput may be optimizing the wrong metric once agentic and inference traffic dominates.

Benchmarking results showing Homa achieving ~92 microsecond P99 tail latency for short messages compared to 1.2 milliseconds for TCP.
Open source video
Homa reduces tail latency by an order of magnitude or more.
Open source video
Benchmark data demonstrating a 10x+ reduction in tail latency under mixed workloads.
Open source video
Source video

Incast as a queue-ordering pathology

Research question

In fan-in topologies, how much of the tail-latency degradation is attributable to queue occupancy ordering vs raw link capacity, and what reordering mechanisms are most effective?

Why

It reframes fan-in synchronization stalls as a schedulable queue problem rather than a bandwidth shortage, pointing to priority-based remedies.

Incast congestion causes switch queues to fill up, delaying short messages behind large ones.
Open source video
Short messages get stuck behind large messages in switch queues, causing severe latency spikes and packet drops.
Open source video
Multiple sending nodes transmitting large messages simultaneously to a single destination node, causing queue build-up and packet drops at the top-of-rack switch.
Open source video
Source video

Message boundaries as a prerequisite for scheduling classes

Research question

Can application-level framing over a byte-stream transport approximate the prioritization benefits of message-based framing, or is transport-level framing necessary?

Why

If application-level framing suffices, the migration cost from TCP to a new transport drops dramatically; if not, it confirms a hard architectural ceiling.

Byte-stream data models prevent prioritization of short messages.
Open source video
Homa is message-based (built around Remote Procedure Calls) rather than byte-stream-based.
Open source video
Legacy protocols were designed for large transfers and lack message boundaries.
Open source video
Source video

Article ideas

4

The Receiver Knows Best: Inverting Congestion Control for AI Clusters

Sender-driven congestion control is fundamentally unsuited to fan-in AI workloads; moving admission decisions to the receiver eliminates control lag and is the highest-leverage change for tail latency.

Angle

Argue that the control point, not the algorithm, is the core architectural flaw in TCP/RoCE for AI.

Source video

Your Switch Queues Are Already an SRPT Scheduler

The optimal scheduling policy for mean latency (SRPT) can be deployed on commodity datacenter switches via priority queues, making adoption a configuration problem, not a hardware problem.

Angle

Show how scheduling theory maps onto existing switch features, and what operational caveats arise.

Source video

P99 or Bust: Why AI Infrastructure Must Stop Optimizing Gbps

As AI workloads shift from bulk training to agentic and inference request-response, tail latency of small messages, not throughput, becomes the primary capacity constraint; infrastructure built for RoCE bandwidth is misoptimized.

Angle

Use the Homa benchmark numbers to argue for a metric shift in AI cluster design.

Source video

Incast Is a Queue-Ordering Problem, Not a Bandwidth Problem

Fan-in synchronization pathologies are caused by queue occupancy ordering, so remedies must reorder queues (prioritization) rather than add link capacity.

Angle

Trace the mechanism from incast to head-of-line blocking and derive design rules for fan-in topologies.

Source video

Project ideas

4

Homa Migration Cost Analyzer

new

Migrating a mixed AI workload from RoCE to Homa reduces P99 short-message latency by ≥10x while maintaining bulk-training throughput within 5%.

Proof of concept

Deploy the open-source Linux kernel module for Homa on a small GPU cluster; replay a trace of barrier sync, KV cache lookups, and gradient transfers alongside a TCP/RoCE baseline.

Measurement

P99 latency for small messages, aggregate throughput for bulk transfers, and GPU idle time during barrier synchronization.

Source video

Priority Queue Sensitivity Benchmark

new

Reducing available switch priority queues from 8 to 2 degrades Homa's P99 advantage over TCP by more than 50% for small messages.

Proof of concept

Emulate a datacenter switch with configurable priority queue counts; run Homa and TCP under a mixed short/long message workload.

Measurement

P99 latency for short messages as a function of the number of priority queues, and the crossover point where Homa loses its advantage.

Source video

Receiver State Stress Tester

new

Under extreme fan-in (e.g., 1000 simultaneous senders), Homa's grant-based admission control exhibits receiver state exhaustion causing tail-latency spikes worse than TCP.

Proof of concept

Build a synthetic incast generator that varies the number of concurrent senders to a single Homa receiver; monitor receiver memory and grant packet allocation.

Measurement

Receiver state usage, grant packet loss rate, and P99 latency for short messages under increasing fan-in.

Source video

App-Level Framing over TCP

new

Application-level message framing with priority tagging on TCP can recover at least 50% of Homa's P99 advantage for small messages without transport changes.

Proof of concept

Implement an RPC layer over TCP that tags messages with length and priority; configure switch priority queues and compare against Homa and vanilla TCP.

Measurement

P99 latency for small messages under mixed workload for three configurations: vanilla TCP, app-framed TCP, and Homa.

Source video

Architectural implications

3

Congestion control responsibility is relocated from the sender to the receiver.

Before

Senders infer congestion from ECN bits or packet drops and throttle reactively, introducing control lag and oscillation.

After

Receivers observe all incoming message lengths and issue grant packets, admitting traffic with full and immediate information.

Consequence

Removes feedback-loop lag and gives the network the information needed to preempt bulk traffic in favor of short RPCs.

Source video

The transport data model changes from a byte stream to discrete messages.

Before

Byte-stream framing erases message boundaries, so switches cannot distinguish short RPCs from large transfers.

After

Explicit message-based RPC framing exposes length as a schedulable property.

Consequence

Enables priority classes and length-aware scheduling that are simply not expressible over a byte stream.

Source video

Scheduling policy moves into switch priority queues.

Before

Congestion was managed by end-host transport behavior with switches as passive FIFO buffers.

After

Homa drives SRPT behavior through switch priority queues.

Consequence

Latency policy becomes a deployment/configuration concern tied to switch capabilities, making hardware configuration a correctness-relevant part of the stack.

Source video

Tradeoffs and failure modes

3

Receiver-driven control with SRPT-style prioritization via switch priority queues

Benefit

Order-of-magnitude tail-latency reduction and higher overall application throughput with less GPU idle time.

Cost or risk

The protocol's performance is coupled to switch priority-queue configuration, adding operational requirements and integration burden on existing datacenter hardware and software stacks.

What are the operational requirements for configuring switch priority queues for Homa?
Open source video
Source video

Prioritizing short messages (SRPT)

Benefit

Short, latency-critical messages are no longer starved behind large transfers.

Cost or risk

Byte-stream transports were at least order-preserving; message-based scheduling requires the receiver to track and grant many in-flight messages, and the summary leaves unresolved how this integrates with existing stacks.

Byte-stream data models prevent prioritization of short messages.
Open source video
Source video

Improving P99 for small messages

Benefit

Direct reduction in synchronization stalls for distributed inference and agents.

Cost or risk

Tail-latency gains are reported for mixed workloads; the summary provides no evidence about behavior under pure bulk-transfer (training) workloads.

Benchmark data demonstrating a 10x+ reduction in tail latency under mixed workloads.
Open source video
Source video

Open questions

4

How easily can Homa be integrated into existing datacenter hardware and software stacks?

Why unresolved

The summary raises the question of integration difficulty without describing the compatibility or migration path from TCP/RoCE deployments.

Research direction

Prototype a migration path using the open-source Linux kernel module for Homa and measure integration cost against an existing RoCE cluster.

Source video

What are the operational requirements for configuring switch priority queues for Homa?

Why unresolved

The summary states Homa leverages switch priority queues but does not specify the configuration surface, queue counts, or failure behavior when they are unavailable.

Research direction

Enumerate required switch features and quantify tail-latency degradation when priority queues are limited or misconfigured.

Source video

Does the tail-latency advantage of receiver-driven control hold for bulk training traffic, or only for mixed short-message workloads?

Why unresolved

All cited benchmark evidence concerns short messages under mixed workloads; the training-throughput regime is not addressed.

Research direction

Benchmark Homa vs TCP/RoCE on pure large-transfer collective workloads to check for regressions in throughput.

Source video

How does receiver-driven admission control behave under adversarial or pathological in-flight message counts?

Why unresolved

Grant-based admission implies receiver-side state per message; the summary does not discuss state limits or overload behavior.

Research direction

Stress-test grant packet allocation and receiver state under extreme fan-in to identify failure modes.

Source video

Key claims

7
comparativeVerification needed

Homa reduces tail latency by an order of magnitude or more relative to TCP.

Evidence

Homa reduces tail latency by an order of magnitude or more.

Question

Under what workload mix, message-size distribution, and topology was the order-of-magnitude tail-latency reduction measured?

Source video
factualVerification needed

Homa achieved ~92 microsecond P99 tail latency for short messages versus 1.2 milliseconds for TCP.

Evidence

Benchmarking results showing Homa achieving ~92 microsecond P99 tail latency for short messages compared to 1.2 milliseconds for TCP.

Question

What cluster size, link speed, and switch configuration produced these P99 numbers?

Source video
causalVerification needed

Homa's congestion control is managed by the receiver, which has complete information about incoming messages.

Evidence

Congestion control is managed by the receiver, which has complete information about incoming messages.

Question

Does receiver-side information actually eliminate control lag in wide-area or multi-hop topologies, or only in single-hop datacenter fabrics?

Source video
causalVerification needed

Sender-driven congestion control introduces control lag and oscillatory behavior.

Evidence

Sender-driven congestion control introduces control lag and oscillatory behavior.

Question

What magnitude of control lag is observed in ECN-based RoCE at modern line rates and shallow switch buffers?

Source video
causalVerification needed

Byte-stream data models prevent prioritization of short messages.

Evidence

Byte-stream data models prevent prioritization of short messages.

Question

Can application-level framing on top of TCP approximate the same prioritization benefit without a new transport?

Source video
predictionVerification needed

The bottleneck in AI workloads is shifting from raw throughput to tail latency of small messages.

Evidence

Network performance bottlenecks are shifting from raw throughput (gigabits per second) to tail latency (microseconds).

Question

What fraction of production AI cluster traffic is now small-message request-response versus bulk transfer?

Source video
factualVerification needed

Homa leverages switch priority queues to implement Shortest Remaining Processing Time.

Evidence

Homa leverages modern switch priority queues to implement Shortest Remaining Processing Time (SRPT).

Question

How many priority levels are required, and how closely does a finite-level approximation match true SRPT?

Source video

Connections

5