techlist.io

Rdma

2 posts

OpenAI2026-05-044 min readCurated summary

Supercomputer networking to accelerate large scale AI training

# OpenAI's MRC: A Multipath Network Protocol for Large-Scale AI Training OpenAI, working with AMD, Broadcom, Intel, Microsoft, and NVIDIA, has released MRC (Multipath Reliable Connection), a network protocol designed to keep GPUs moving together during frontier model training. MRC spreads each transfer across hundreds of paths, routes around failures in microseconds, and removes most dynamic routing from the network. Together with a multi-plane topology, these changes let a cluster of over 100,000 GPUs run on only two switch tiers, with less power and fewer failure points, while training continues through link flaps and switch reboots. ## Why Networks Became a Bottleneck - A single training step can involve millions of data transfers, and one late transfer can leave GPUs idle across the whole job. - Congestion and link or device failures are the main sources of delay and jitter, and both get worse as clusters grow. - Before MRC, a single failure often crashed a synchronous training job, forcing a restart from a checkpoint, or stalled it for seconds while routes were recomputed. ## Multi-Plane Topologies - Each 800Gb/s network interface is split into multiple 100Gb/s links, one per parallel plane. For example, one interface can connect to eight switches across eight planes. - A switch with 64 ports at 800Gb/s becomes a switch with 512 ports at 100Gb/s, which allows about 131,000 GPUs to be fully connected with only two tiers. A conventional design would need three or four. - The result is lower cost, lower power draw, fewer components that can fail, and more path diversity, with more traffic staying local to Tier 0 switches. ## Spraying Packets Across Hundreds of Paths - Traditional RoCE assigns each transfer to a single path to preserve packet order. In a multi-plane network, this causes flows to collide on links and limits each flow to one plane. - MRC sprays packets from one transfer across hundreds of paths on all planes. Packets may arrive out of order, but each includes its final memory address, so the receiver can write them to memory immediately. - Each connection tracks state for its paths. If a path becomes congested, MRC swaps it for another. If a packet is lost, MRC stops using that path, retransmits the lost packets, and later sends probes to check whether the path has recovered. - Packet trimming handles congestion at the destination. Instead of dropping a packet, a switch strips the payload and forwards only the header, which prompts an explicit retransmission request. This avoids mistaking congestion for path failure. - Together, these mechanisms let MRC detect and avoid failures on a microsecond timescale, where a conventional fabric could take seconds or tens of seconds. ## Replacing Dynamic Routing with Static Source Routing - Conventional fabrics rely on dynamic routing protocols such as BGP, and the complex switch software behind them can fail in subtle ways that are hard to diagnose. - MRC uses IPv6 Segment Routing (SRv6), where the sender encodes the full switch path into each packet's destination address. Each switch checks whether its identifier is at the front, strips it, and forwards according to a static table set at configuration time. - Because the paths are deterministic, the sender can react to congestion or loss on its own. Switches never recompute routes. If a path fails, MRC simply stops using it. ## Production Results - Multiple link flaps per minute between Tier 0 and Tier 1 switches had no measurable effect on synchronous pretraining, so those links did not need urgent repair. - Four Tier 1 switches were rebooted during training of a recent frontier model without coordinating with the teams running jobs. Links can now also be repaired while in service: MRC uses a link while it performs well and avoids it otherwise. - When a GPU network interface loses one of its eight ports, MRC removes that plane from use and tells peers to stop sending inbound traffic on it. Most failed links recover within a minute, and then MRC restores the plane. Observed slowdowns have been much smaller than the lost capacity. - MRC is deployed across OpenAI's largest NVIDIA GB200 supercomputers, including the Oracle Cloud Infrastructure site in Abilene, Texas, and Microsoft's Fairwater supercomputers. It has been used to train multiple OpenAI models. ## Conclusion MRC is available as an Open Compute Project contribution, and OpenAI has co-authored a paper, "Resilient AI Supercomputer Networking using MRC and SRv6," describing its deployment. For teams building very large training clusters, the post makes a clear case that network design now determines how much of the available compute can be used, and that multi-plane topology combined with packet spraying and static source routing is a practical way to keep synchronous training running through failures and maintenance.

Cloudflare2026-04-163 min readCurated summary

Building the foundation for running extra-large language models

Cloudflare is building infrastructure for serving extra-large open-source language models efficiently, especially for agentic applications with long prompts and frequent tool calls. Its approach combines specialized hardware configurations, prefill/decode disaggregation, prompt caching, distributed KV-cache management, and speculative decoding. These optimizations substantially improve latency, throughput, and cost efficiency without requiring more GPUs. ## Hardware Configurations for Agent Workloads - Different applications stress models differently: - Content generation sends fewer input tokens but produces many output tokens. - Summarization sends very large inputs and generates relatively short outputs. - Agent workloads typically involve: - Large system prompts - Tool and MCP definitions - Accumulated conversation history - Generated code and previous interactions - Workers AI therefore prioritizes fast input processing and tool-calling performance. ## Prefill-Decode Disaggregation - LLM inference has two stages: - **Prefill:** Processes input tokens and populates the KV cache; generally compute-bound. - **Decode:** Generates output tokens; generally memory-bound. - Running both stages on one server can underutilize GPUs because they stress different resources. - Cloudflare separates them across dedicated inference servers: - A prefill server processes the request and stores its KV cache. - A decode server retrieves the cache and generates the response. - This enables independent tuning, scaling for input- or output-heavy traffic, and use of heterogeneous hardware. - The architecture requires a sophisticated load balancer that: - Transfers KV-cache metadata between stages. - Rewrites streaming SSE responses. - Handles different inference-server protocols. - Balances traffic based on estimated in-flight prefill and decode tokens. - After adopting this design, Cloudflare saw: - Lower p90 time to first token and reduced tail-latency variance. - Intertoken latency fall from roughly 100 ms to 20–30 ms. - About a threefold improvement while using the same number of GPUs. ## Prompt Caching and Session Affinity - Long agent conversations repeatedly reuse the same context, making prompt caching essential. - The `x-session-affinity` header routes requests toward regions containing previously computed input tensors. - Cloudflare added support for this header to agent harnesses such as OpenCode. - Cached prompts improve: - Overall throughput - Interactive response times - Pricing, with discounted cached tokens - GPU efficiency - Adoption by heavy internal users increased peak input-token cache hit rates from 60% to 80%. ## Distributed KV-Cache Optimization - Larger models span multiple GPUs, requiring KV caches to be shared across devices and nodes. - For Kimi, Cloudflare uses Moonshot AI’s: - **Mooncake Transfer Engine** for high-speed memory transfers using RDMA technologies such as NVLink and NVMe over Fabric. - **Mooncake Store** to extend cache storage beyond GPU VRAM onto NVMe. - Combined with LMCache or SGLang HiCache, the system can: - Reuse cached prompts from any node in a cluster. - Reduce reliance on session-aware routing. - Balance traffic more evenly. - Keep sessions cached longer. - Increase cache hit rates and supported throughput. ## Speculative Decoding - The post begins introducing speculative decoding as another optimization. - It describes the basic LLM process of predicting successive tokens, but the provided text ends before explaining the technique or its results. Cloudflare’s overall strategy is to match infrastructure to real usage patterns rather than rely on a single hardware configuration. Separating inference stages, maximizing cache reuse, and distributing KV caches are practical ways to make large-model hosting faster and more economical.