Bifrost: Alibaba's Next-Generation VPC Network with High-Performance Multipath Reliable Transport

Zihao Fan (Shanghai Jiao Tong University and Alibaba Cloud), Xing Li (Zhejiang University and Alibaba Cloud), Ye Yang (Alibaba Cloud), Bo Jiang (Shanghai Jiao Tong University), Bowen Yang (Alibaba Cloud), Yilong Lv (Alibaba Cloud), Yuke Hong (Alibaba Cloud), Yinian Zhou (Alibaba Cloud), Junnan Cai (Alibaba Cloud), Jiayue Xu (Alibaba Cloud), Yunrui Hu (Alibaba Cloud), Zhao Gao (Alibaba Cloud), Ke Sun (Alibaba Cloud), Yimin Liu (Alibaba Cloud), Xiangdong Zhang (Alibaba Cloud), Enge Song (Alibaba Cloud), Jianyuan Lu (Alibaba Cloud), Xiaoqing Sun (Alibaba Cloud), Shize Zhang (Alibaba Cloud), Haonan Li (Alibaba Cloud), Mingxin Li (Alibaba Cloud), Changgang Zheng (Alibaba Cloud), Yang Song (Alibaba Cloud), Jun Liang (Alibaba Cloud), Biao Lyu (Alibaba Cloud), Rong Wen (Fudan University and Alibaba Cloud), Zhigang Zong (Alibaba Cloud), Shunmin Zhu (Alibaba Cloud)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Clouds with Benefits

Overview

Modern cloud computing environments rely heavily on VPC (Virtual Private Cloud) networks to isolate tenant traffic and establish secure virtual network spaces. However, the fundamental transport layer protocols managing reliability—such as TCP running inside guest operating systems—often struggle with the inherent jitter, scale, and loss characteristics of large-scale physical cloud fabrics. In this talk, Alibaba Cloud researchers present Bifrost, a next-generation VPC network architecture that shifts reliable transport out of guest virtual machines and implements it directly at the VPC layer.

Watch on YouTube · Slides

Visual summary for Bifrost: Alibaba's Next-Generation VPC Network with High-Performance Multipath Reliable Transport by Zihao Fan, Xing Li, Ye Yang, Bo Jiang, Bowen Yang, Yilong Lv, Yuke Hong, Yinian Zhou, Junnan Cai, Jiayue Xu, Yunrui Hu, Zhao Gao, Ke Sun, Yimin Liu, Xiangdong Zhang, Enge Song, Jianyuan Lu, Xiaoqing Sun, Shize Zhang, Haonan Li, Mingxin Li, Changgang Zheng, Yang Song, Jun Liang, Biao Lyu, Rong Wen, Zhigang Zong, Shunmin Zhu
Visual summary for Bifrost: Alibaba's Next-Generation VPC Network with High-Performance Multipath Reliable Transport by Zihao Fan, Xing Li, Ye Yang, Bo Jiang, Bowen Yang, Yilong Lv, Yuke Hong, Yinian Zhou, Junnan Cai, Jiayue Xu, Yunrui Hu, Zhao Gao, Ke Sun, Yimin Liu, Xiangdong Zhang, Enge Song, Jianyuan Lu, Xiaoqing Sun, Shize Zhang, Haonan Li, Mingxin Li, Changgang Zheng, Yang Song, Jun Liang, Biao Lyu, Rong Wen, Zhigang Zong, Shunmin Zhu

Key moments

  1. 0:00 Introduction to Alibaba Cloud VPC network platform and VXLAN
  2. 2:05 Motivation for Bifrost: Unreliable cloud networks and tail latency
  3. 5:50 Design principles and transparency goals for Bifrost architecture
  4. 7:12 Bifrost system design and packet encapsulation overview
  5. 8:51 RTT-aware multipath packet spraying and dynamic path switching
  6. 10:30 In-place guest reordering mechanism using descriptors
  7. 13:40 Memory optimization, connection aggregation, and performance evaluation
  8. 15:20 Conclusion, future work, and hiring announcement

Bifrost: Alibaba's Next-Generation VPC Network with High-Performance Multipath Reliable Transport

Speakers: Zihao Fan (Shanghai Jiao Tong University and Alibaba Cloud); Xing Li (Zhejiang University and Alibaba Cloud); Ye Yang (Alibaba Cloud); Bo Jiang (Shanghai Jiao Tong University); Bowen Yang (Alibaba Cloud); Yilong Lv (Alibaba Cloud); Yuke Hong (Alibaba Cloud); Yinian Zhou (Alibaba Cloud); Junnan Cai (Alibaba Cloud); Jiayue Xu (Alibaba Cloud); Yunrui Hu (Alibaba Cloud); Zhao Gao (Alibaba Cloud); Ke Sun (Alibaba Cloud); Yimin Liu (Alibaba Cloud); Xiangdong Zhang (Alibaba Cloud); Enge Song (Alibaba Cloud); Jianyuan Lu (Alibaba Cloud); Xiaoqing Sun (Alibaba Cloud); Shize Zhang (Alibaba Cloud); Haonan Li (Alibaba Cloud); Mingxin Li (Alibaba Cloud); Changgang Zheng (Alibaba Cloud); Yang Song (Alibaba Cloud); Jun Liang (Alibaba Cloud); Biao Lyu (Alibaba Cloud); Rong Wen (Fudan University and Alibaba Cloud); Zhigang Zong (Alibaba Cloud); Shunmin Zhu (Alibaba Cloud)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=L5GYcMK18mI

Overview

Modern cloud computing environments rely heavily on VPC (Virtual Private Cloud) networks to isolate tenant traffic and establish secure virtual network spaces. However, the fundamental transport layer protocols managing reliability—such as TCP running inside guest operating systems—often struggle with the inherent jitter, scale, and loss characteristics of large-scale physical cloud fabrics. In this talk, Alibaba Cloud researchers present Bifrost, a next-generation VPC network architecture that shifts reliable transport out of guest virtual machines and implements it directly at the VPC layer.

The motivation behind Bifrost stems from a stark operational reality: while over 80% of cloud workloads demand reliable transport and 60% are acutely sensitive to tail latency, cloud networks experience intermittent failures and losses that can result in up to four incidents per month and tail recovery windows lasting up to 700 minutes under guest-kernel implementations. Bifrost addresses this by introducing a hardware-accelerated Reliable Transport (RT) Engine deployed alongside AVS (Apsara vSwitch) on custom SoC (System-on-Chip) CPUs. By providing RTT-aware multipath packet spraying, in-place guest reordering, and delayed ACK bitmap aggregations, Bifrost achieves transparent end-to-end reliability without requiring any modifications to tenant guest kernels.

This work matters significantly for systems engineers and cloud infrastructure architects because it redefines the boundary between cloud provider infrastructure and tenant guest domains. By decoupling transport-layer reliability from the guest OS, Bifrost slashes tail latencies by orders of magnitude for popular workloads like Redis and Nginx while freeing up precious guest CPU cycles for application logic.

Background

▶ Watch: Introduction to Alibaba Cloud VPC network platform and VXLAN (0:00)

In public cloud architectures, VPC networks isolate tenant network spaces using encapsulation protocols like VXLAN (Virtual Extensible LAN). Alibaba Cloud previously introduced Oculus at SIGCOMM 2023, a VPC network platform that centered on optimizing and offloading Apsara vSwitching (AVS) components onto smart network interface cards (SmartNICs) to boost packet processing rates and session densities. While Oculus successfully scaled the underlying data plane connectivity, it maintained the traditional paradigm where end-to-end reliability (via TCP or similar protocols) was managed entirely within the tenant's guest OS network stack.

Relying on the guest kernel for packet loss detection and recovery introduces severe performance penalties in large-scale cloud environments. Standard guest-kernel Retransmission Timeouts (RTOs) typically default to hundreds of milliseconds, which is catastrophically slow for sub-millisecond cloud applications. Furthermore, the physical network fabric is subject to continuous background jitter, intermittent physical link-state flaps, and bandwidth contention driven by elephant flows that starve concurrent microflows on shared host and NIC resources.

Previous attempts to solve reliability at the infrastructure level faced major systems challenges. Offloading connection states to host hardware consumes scarce memory on virtual NIC (vNIC) ports, while multipath packet spraying introduces severe packet reordering that traditionally requires large, memory-intensive reordering buffers on the receiver. Bifrost was designed to solve these constraints transparently, ensuring that tenants reap the benefits of high-performance multipath transport without altering their virtual machine kernels or applications.

Key Findings

▶ Watch: Design principles and transparency goals for Bifrost architecture (5:50)

Bifrost introduces several core architectural and operational breakthroughs that redefine high-performance VPC transport:

  • Sub-Second Failure Recovery: By implementing fast packet loss detection and recovery outside the guest VM, Bifrost achieves failure recovery in less than 1 second, bypassing legacy guest-kernel RTO mechanisms.
  • Multipath Hotspot Elimination: RTT-aware multipath packet spraying successfully eliminates network hotspots caused by large elephant flows, ensuring zero performance degradation on concurrent streams.
  • Dramatic Tail Latency Reductions: In real-world deployments spanning over six months, Bifrost reduced 99th-percentile (P99) tail latencies for Redis by 242.1 times on average (and 3.4x overall), while reducing Nginx tail latencies by 26.3 times.
  • Throughput and Retransmission Gains: Utilizing an optimal packet group size of 50 packets for multipath spraying increased application throughput by 1.43x while cutting packet retransmissions by 82.7%.
  • High Resource Scalability: Connection aggregation techniques reduced memory overhead by 70%, enabling the RT engine to support over 100,000 concurrent connections using just 1 GB of memory, with sender-side delayed release consuming a mere 100 KB of memory for 10 Gbps of throughput.

Technical Deep Dive

▶ Watch: RTT-aware multipath packet spraying and dynamic path switching (8:51)

The architectural foundation of Bifrost centers on a custom transport protocol and dedicated hardware execution units. When a packet is transmitted, the system inserts a specialized Bifrost header directly behind the outer VXLAN header and ahead of the tenant's original packet. This header encapsulates critical transport metadata, including sequence numbers, connection IDs, path IDs, and precise timestamps.

System Design and the RT Engine

The reliable transport engine is implemented directly beside AVS on Alibaba's self-developed SoC CPUs.

  • Sender Side: Outgoing packets pass through the RT engine where the Bifrost header is injected before hitting AVS for standard VPC processing.
  • Receiver Side: Upon packet arrival, the outer VXLAN header is decapsulated, and the RT engine processes the Bifrost metadata to perform reordering and generate acknowledgments.

RTT-Aware Multipath Packet Spraying

To avoid network bottlenecks, Bifrost continuously measures round-trip times (RTTs) across available paths between VM pairs. It partitions active flows into discrete packet groups (experimentally tuned to a group size of 50 packets) and schedules them across the top $K$ lowest-RTT paths (typically setting $K=4$). A hysteresis threshold is enforced to prevent erratic path-switching oscillations when minor RTT fluctuations occur.

In-Place Guest Reordering

To prevent out-of-order delivery from overwhelming guest operating systems or requiring massive software buffers, Bifrost implements in-place guest reordering entirely within hardware:

  1. When out-of-order packets arrive, hardware decapsulates the network headers and performs a VM lookup via AVS.
  2. Packets are Direct Memory Access (DMA) transferred directly into guest memory using pre-allocated descriptors from the virtio ring buffer, without triggering an immediate CPU interrupt.
  3. Concurrently, the RT engine analyzes the Bifrost metadata and reorders the descriptors (not the underlying packet payloads) in memory.
  4. Descriptors are pushed to the guest ring buffer strictly in-order, after which a single interrupt is raised to the VM. The guest OS receives an entirely ordered packet stream with zero internal reordering overhead.

State Management and Delayed ACKs

To manage memory constraints on high-density cloud hosts:

  • Connection Aggregation: Individual five-tuple connections are aggregated into VM-pair groupings. Resources are dynamically allocated solely for active connections and incoming packets.
  • Delayed Release: The sender retains lightweight metadata in the RT engine rather than buffering full packet payloads. Full packets remain inside guest VM memory until an acknowledgment confirms receipt and the kernel releases them.
  • Delayed ACK Bitmaps: Receiver-side acknowledgments leverage bitmap structures to track received blocks. Retransmissions are triggered rapidly if gaps appear in the bitmap, using an aggressive RTO set to 4 ms (approximately twice the data center network RTT).

Experimental Setup & Results

▶ Watch: In-place guest reordering mechanism using descriptors (10:30)

Bifrost has been deployed in production across Alibaba Cloud infrastructure for over six months. The evaluation benchmarks span massive-scale cloud environments running multi-tenant enterprise applications, specifically focusing on latency-sensitive caching and web workloads like Redis and Nginx.

  • Baseline Comparison: Evaluated against standard guest-kernel TCP and baseline single-path VPC configurations under simulated background fabric jitter and high-load elephant flows.
  • Path Granularity: Testing different packet group sizes revealed that a group size of 50 packets provides the optimal sweet spot between load distribution efficiency and reordering overhead, yielding a 1.43x throughput increase and an 82.7% drop in retransmissions.
  • Latency Impact: Production telemetry demonstrated profound tail latency improvements. For Redis workloads, the P99 tail latency dropped by a factor of 242.1. For Nginx web servers, tail latency improved by 26.3 times.
  • Memory Footprint: Connection pooling and aggregation structures demonstrated extreme efficiency, scaling to support over 100,000 active connections per 1 GB of memory, while sender-side delayed release operated successfully with just 100 KB of memory under 10 Gbps throughput workloads.

Practical Implications

▶ Watch: Conclusion, future work, and hiring announcement (15:20)

For cloud infrastructure teams and systems architects, Bifrost establishes a powerful design pattern: moving transport-layer reliability out of guest operating systems and into the underlying virtualization and hardware layers.

  • For Tenant Application Builders: Developers running latency-sensitive microservices, distributed databases, or caching layers (such as Redis) no longer need to exhaustively tune guest kernel TCP parameters to combat cloud network jitter. Applications experience near-deterministic network performance out-of-the-box.
  • For Cloud Infrastructure Providers: Offloading transport mechanics to SoC-based SmartNICs preserves valuable guest CPU cores for tenant workloads while drastically reducing support tickets and SLAs violations tied to tail latency spikes and network unreliability.
  • Tradeoffs and Limitations: Implementing transport logic in infrastructure hardware requires tightly coupled co-design between switch software (AVS) and custom silicon (SoC CPUs). While transparent to tenants, rolling out such architectures demands significant hardware evolution and careful management of memory footprints on resource-constrained SmartNIC ports.

Key Takeaways

  • Infrastructure-Level Reliability: Shifting reliable transport from guest OS kernels to the VPC layer eliminates long guest-kernel RTO delays and achieves sub-second failure recovery (<1s).
  • RTT-Aware Multipath Spraying: Spraying packet groups across dynamically monitored low-RTT paths effectively neutralizes network hotspots caused by elephant flows.
  • Zero-Overhead Guest Reordering: In-place descriptor reordering in hardware ensures that guest VMs receive perfectly ordered packets via DMA without generating software reordering overhead or premature interrupts.
  • Extreme Tail Latency Reductions: Production-scale deployments over six months proved that Bifrost slashes P99 latencies by up to 242x for Redis and 26.3x for Nginx.
  • Scalable Resource Efficiency: Advanced connection aggregation and metadata pooling allow the RT engine to support >100,000 connections per gigabyte of memory while maintaining high throughput.

About the Speaker(s)

Yeyang is a technical representative from Alibaba Cloud presenting on behalf of a large collaborative research team spanning Alibaba Cloud, Shanghai Jiao Tong University, and Zhejiang University. The broader author contingent includes systems engineers, researchers, and network architects actively scaling Alibaba Cloud's global infrastructure. Beyond VPC transport optimization, the team's ongoing research and hiring initiatives focus on AI inference infrastructure and building cloud-scale RDMA networks over VPC environments.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)