@Scale
Meta pushes transport intelligence to network edge devices to eliminate fabric congestion and achieve near-roofline RDMA performance under extreme packet loss.
AI-assisted summary of MetaRoCE: From Spec to NIC to Open Source | Balakrishnan Raman, AMD and Sandeep Nagaraj, Meta — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published by @Scale on YouTube on August 27, 2026, this presentation features Sandeep Nagaraj from Meta and Balakrishnan Raman from AMD. The talk covers MetaRoCE, a multipath, out-of-order, receiver-driven RDMA protocol designed to push intelligence to the NIC and handle lossy Ethernet fabrics in AI data centers.
## TL;DR The speakers trace MetaRoCE's evolution from a software reference implementation to deployment on silicon using AMD's P4-programmable NIC platform. They explain key architectural mechanisms including intelligent multipathing, Receiver-Driven Congestion Notification (RCN), and Selective Acknowledgment (SACK). Experimental results from multiplane FPF topologies show line-rate throughput and near-zero impact under 0.1% packet loss. Finally, Meta announces plans to open-source the specification, reference code, and compliance test suites via OCP.
## Atmosphere & style The presentation is crisp, highly technical, and engineering-focused, structured as a collaborative joint talk between Meta and AMD. The tone is practical and analytical, grounded in real-world performance metrics, hardware validation, and operational learnings rather than high-level pitch deck claims. It feels like an authoritative technical deep dive built for network architects and systems engineers.
## Key takeaways - [00:05](https://www.youtube.com/watch?v=cnAd8val8P8&t=5s) MetaRoCE pushes network transport intelligence directly into the NIC edge to optimize AI workloads without depending strictly on fabric-level network features. - [00:05](https://www.youtube.com/watch?v=cnAd8val8P8&t=5s) Meta established a socket-based software reference implementation to serve as the definitive, hardware-independent source of truth for MetaRoCE semantics. - [03:03](https://www.youtube.com/watch?v=cnAd8val8P8&t=183s) To bypass multi-year ASIC development cycles, Meta partnered with AMD to rapidly iterate protocol designs using P4-programmable NIC hardware. - [03:03](https://www.youtube.com/watch?v=cnAd8val8P8&t=183s) The AMD programmable adapter architecture relies on programmable parsers, P4 DMA pipelines, and flexible PCIe fetching to execute transport logic directly on the adapter. - [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) MetaRoCE replaces uncoordinated packet spraying with per-path congestion windows based on ECN feedback, balancing traffic across asymmetrical link speeds. - [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) To compensate for high round-trip latency in scale-across connections, MetaRoCE dynamically scales up parallel paths per Queue Pair to maintain line rate. - [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) Receiver-Driven Congestion Notification (RCN) sends rate hints from receivers back to senders to resolve target host buffer pressure and prevent incast congestion. - [12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) The protocol's Selective Acknowledgment (SACK) feature isolates out-of-order delivery from true packet loss, allowing AI collective operations to perform seamlessly even at 0.1% packet loss. - [12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) In multiplane Fabric-Port-First testing, MetaRoCE demonstrated full line-rate throughput, sub-second detection of remote failures, and fast recovery without impacting adjacent planes. - [15:39](https://www.youtube.com/watch?v=cnAd8val8P8&t=939s) Meta is open-sourcing the MetaRoCE specification, reference software, and compliance test suites through the Open Compute Project (OCP).
## Detailed walkthrough ### [00:05](https://www.youtube.com/watch?v=cnAd8val8P8&t=5s) MetaRoCE: Redefining RDMA Transport for AI Data Centers
Sandeep Nagaraj from Meta's infrastructure organization introduces the talk alongside Balakrishnan Raman from AMD. Their presentation traces the journey of MetaRoCE—Meta's custom RDMA transport protocol designed specifically for AI data centers—from an initial specification to a fully deployed product soon to be open-sourced. MetaRoCE optimizes transport at scale by pushing intelligence directly to the network edge, thereby achieving performance, resiliency, and operational capabilities without relying entirely on fabric-level network intelligence. While a companion presentation by Arvind Srinivasan delves into the detailed protocol mechanisms, this talk focuses on the co-design and implementation journey, backed by real-world experimental results from scale-out and scale-across deployments.
The development process relied on a tight feedback loop driven by experimentation and canonical modeling. Meta constructed a software reference implementation that serves as the definitive source of truth for MetaRoCE semantics. This software reference guided the hardware implementation on real silicon, allowing the engineering team to gather empirical performance data under high bandwidth, real compute collectives, and actual AI workloads.
- **Software Reference Implementation:** A socket-based user-space implementation running on commodity CPUs and generic NIC hardware, fully independent of kernel modules or proprietary software stacks. - **Verification Tools:** Developed alongside a comprehensive compliance test suite and performance measurement tools to iteratively refine protocol semantics. - **Protocol Scope:** Covers transmit and receive mechanisms integrated with standard RDMA verbs.
---
[03:03](https://www.youtube.com/watch?v=cnAd8val8P8&t=183s) Hardware Acceleration via AMD's Programmable NIC Architecture
Transitioning from a software reference to hardware required rapid prototyping capabilities. Traditional hardware development cycles for a new NIC ASIC can span months or years before yielding usable experimental results—a timeline Meta could not afford. To achieve rapid design iteration, Meta partnered with AMD to leverage their P4-programmable NIC platform, satisfying all key hardware hardware requirements for an evolving transport protocol.
Balakrishnan Raman outlines the core architectural components of the AMD programmable network adapter that enabled MetaRoCE's feature set:
- **Programmable Parser/Deparser:** On the transmit side, the deparser encapsulates packets with arbitrary custom headers and modifies header fields on the fly. On the receive side, the parser processes custom packet headers dynamically without fixed hardware limitations. - **P4 Packet Pipeline:** Handles packets arriving from the uplink or host DMA engines. It executes custom logic including security checks, inline encryption/decryption (such as PSP), and interface lookups. - **Packet Buffer:** Temporarily holds packet payloads while transport logic executes within the processing pipelines. Supports full Quality of Service (QoS) class structures and dynamic scheduling algorithms to guarantee end-to-end performance. - **P4 DMA Pipelines (Multi-core Memory Engines):** Executes the main MetaRoCE software pipeline across transmit and receive flows. Features like multipathing, congestion control, selective acknowledgments (SACK), and multiplane handling are written directly into software/P4 logic. - **Programmable PCIe Interface:** Enables direct fetching of arbitrary data structures from host memory to augment on-chip NIC state.
---
[08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) Intelligent Multipathing and Dynamic Congestion Control
MetaRoCE avoids "mindless" packet spraying across network links. Instead, it implements congestion-aware load balancing by maintaining per-path congestion windows based on incoming Explicit Congestion Notification (ECN) signals. For instance, if one path operates across a degraded 100 Gbps link while another operates across a pristine 400 Gbps link, MetaRoCE dynamically adjusts the outstanding packet limits per path (e.g., constraining one path to 100 Gbps worth of in-flight bytes while feeding 400 Gbps to the other). This ensures that underutilized paths are leveraged effectively without bottlenecking overall flow completion time (FCT).
``` ┌─────────────────────────────────────────────────────────────┐ │ MetaRoCE Sender Transport │ └──────────────┬──────────────────────────────┬───────────────┘ │ │ Path A (100 Gbps Link) Path B (400 Gbps Link) │ │ [ ECN Echo / Congestion ] [ Pristine Path Signal ] │ │ ▼ ▼ Per-Path Cwnd: Throttled Per-Path Cwnd: Expanded (Limits in-flight bytes) (Saturates full capacity) ```
Addressing simultaneous scale-out (intra-building) and scale-across (inter-building) connections presents distinct round-trip time (RTT) challenges: - **RTT Differential:** Scale-out connections typically exhibit RTTs between 5 to 15 microseconds, whereas scale-across connections can experience RTTs up to 50 times higher. - **Scaling Bandwidth-Delay Product (BDP):** Because maximum per-path congestion window sizes are capped (e.g., at 256 in current implementations), high-RTT scale-across flows cannot achieve line rate over a small number of paths. - **Dynamic Path Instantiation:** To fill the pipe, MetaRoCE dynamically instantiates significantly more parallel paths per Queue Pair (QP)—scaling up to 30 to 50 paths for inter-building connections—to maintain line-rate throughput across high-latency links.
To combat receiver-side "incast" congestion—where multiple senders simultaneously overwhelm a single target host—MetaRoCE implements Receiver-Driven Congestion Notification (RCN). The receiver continuously tracks its count of active QPs and available posted receive buffers. When buffer pressure builds, the receiver emits rate hints directly back to the senders at a per-QP path level, instructing them to shrink their congestion windows before buffer exhaustion occurs.
---
[12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) Selective Acknowledgment (SACK) and Multiplane FPF Results
Unlike standard RoCEv2 transport—which relies on Go-Back-N retransmissions and re-sends large sequences of already-received data upon encountering a single dropped packet—MetaRoCE features a tunable Selective Acknowledgment (SACK) architecture. Its heuristic engine distinguishes between out-of-order packet delivery (caused by dynamic packet-level load balancing or ECMP) and true packet drops, retransmitting only the missing frames.
- **Resiliency Under Loss:** In benchmark testing covering All-to-All and All-Reduce collective operations, a 1-in-1,000 packet loss rate (0.1%) showed performance metrics virtually identical to zero-loss baselines. - **Extreme Loss Convergence:** Even under severe 1-in-100 loss conditions (1%), MetaRoCE workloads continued to make forward progress and converged successfully, whereas RoCEv2 fabrics frequently stalled or failed altogether.
Sandeep Nagaraj returns to present empirical data gathered inside Meta's test laboratories using an 8x100G multiplane Fabric-Port-First (FPF) topology with disjoint planes:
- **Multiplane Line Rate:** The implementation achieved raw hardware line rate across disjoint network planes without encountering NIC-level arbitration bottlenecks or transport protocol overhead limits. - **Sub-Second Failure Detection:** Simulating a remote endpoint failure triggered in-band protocol detection mechanisms, gracefully degrading traffic in under one second. - **Fast Recovery:** Upon restoring the failed endpoint, full line-rate performance resumed in under 10 seconds, leaving traffic running on adjacent network planes completely unaffected.
Compared to legacy RoCEv2 deployments, MetaRoCE delivers near-roofline collective completion times during heavy incast workloads. By replacing Priority Flow Control (PFC) pause frames with receiver-driven traffic scheduling, MetaRoCE prevents switch bufferbloat and eliminates head-of-line blocking across mixed traffic classes.
---
[15:39](https://www.youtube.com/watch?v=cnAd8val8P8&t=939s) Open Source Release and OCP Community Engagement
To enable the broader NIC and networking ecosystem to build, extend, and validate MetaRoCE-compliant hardware, Meta announced its upcoming open-source roadmap:
- **OCP Specification:** The complete MetaRoCE protocol specification will be published via the Open Compute Project (OCP). - **Code & Test Suites:** Meta is open-sourcing its canonical software reference implementation alongside its internal hardware compliance and performance verification test suites. - **OCP Global Conference Engagement:** Meta and AMD invited engineers and industry partners to interact with the development team and view live hardware demonstrations at the OCP Global Conference in October.
## Notable quotes > [00:05](https://www.youtube.com/watch?v=cnAd8val8P8&t=5s) MetaRoCE: From Spec to NIC to Open Source — Sandeep Nagaraj
> [00:05](https://www.youtube.com/watch?v=cnAd8val8P8&t=5s) Software Reference Implementation: A socket-based user-space implementation running on commodity CPUs and generic NIC hardware, fully independent of kernel modules or proprietary software stacks.
> [03:03](https://www.youtube.com/watch?v=cnAd8val8P8&t=183s) Programmable Parser/Deparser: On the transmit side, the deparser encapsulates packets with arbitrary custom headers and modifies header fields on the fly. — Balakrishnan Raman
> [03:03](https://www.youtube.com/watch?v=cnAd8val8P8&t=183s) Programmable PCIe Interface: Enables direct fetching of arbitrary data structures from host memory to augment on-chip NIC state. — Balakrishnan Raman
> [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) Instead, it implements congestion-aware load balancing by maintaining per-path congestion windows based on incoming Explicit Congestion Notification (ECN) signals.
> [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) To fill the pipe, MetaRoCE dynamically instantiates significantly more parallel paths per Queue Pair (QP)—scaling up to 30 to 50 paths for inter-building connections—to maintain line-rate throughput across high-latency links.
> [08:06](https://www.youtube.com/watch?v=cnAd8val8P8&t=486s) When buffer pressure builds, the receiver emits rate hints directly back to the senders at a per-QP path level, instructing them to shrink their congestion windows before buffer exhaustion occurs.
> [12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) In benchmark testing covering All-to-All and All-Reduce collective operations, a 1-in-1,000 packet loss rate (0.1%) showed performance metrics virtually identical to zero-loss baselines.
> [12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) Even under severe 1-in-100 loss conditions (1%), MetaRoCE workloads continued to make forward progress and converged successfully, whereas RoCEv2 fabrics frequently stalled or failed altogether.
> [12:10](https://www.youtube.com/watch?v=cnAd8val8P8&t=730s) By replacing Priority Flow Control (PFC) pause frames with receiver-driven traffic scheduling, MetaRoCE prevents switch bufferbloat and eliminates head-of-line blocking across mixed traffic classes. — Sandeep Nagaraj
> [15:39](https://www.youtube.com/watch?v=cnAd8val8P8&t=939s) Meta is open-sourcing its canonical software reference implementation alongside its internal hardware compliance and performance verification test suites.
## Mentioned MetaRoCE, Balakrishnan Raman, AMD, Sandeep Nagaraj, Meta, Arvind Srinivasan, P4, PSP, PCIe, ECN, QP, RCN, RoCEv2, SACK, Fabric-Port-First, FPF, PFC, OCP, Open Compute Project, OCP Global Conference
[Source](https://www.youtube.com/watch?v=cnAd8val8P8)