CStar Gateway: Augmenting Public Cloud Infrastructure for Heterogeneous Network Function Virtualization
Haonan Li (Alibaba Cloud), Tian Pan (Alibaba Cloud), Jin Ke (Alibaba Cloud), Baohai Hu (Alibaba Cloud), Changgang Zheng (Alibaba Cloud), Enge Song (Alibaba Cloud), Zhi Xu (Alibaba Cloud), Ye Yang (Alibaba Cloud), Bowen Yang (Alibaba Cloud), Donglin Lai (Alibaba Cloud), Yisong Qiao (Alibaba Cloud), Bengbeng Xue (Alibaba Cloud), Jianyuan Lu (Alibaba Cloud), Xiaoqing Sun (Alibaba Cloud), Shize Zhang (Alibaba Cloud), Zihao Fan (Alibaba Cloud), Mingxin Li (Alibaba Cloud), Yang Song (Alibaba Cloud), Jun Liang (Alibaba Cloud), Xionglie Wei (Alibaba Cloud), Biao Lyu (Alibaba Cloud), Rong Wen (Fudan University and Alibaba Cloud), Zhigang Zong (Alibaba Cloud), Jiao Zhang (Purple Mountain Laboratories), Tao Huang (Purple Mountain Laboratories), Shunmin Zhu (Alibaba Cloud)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Virtualization Meets the Network
Overview
Network Function Virtualization (NFV) in public clouds typically implements network functions—such as load balancers, transit routers, and firewalls—on standard virtual machines (NFVMs) rather than dedicated hardware. In Alibaba Cloud's NFV architecture, tenant traffic is steered through Virtual Network Interfaces (vNICs) and handled collectively by groups of NFVMs using Equal-Cost Multi-Path (ECMP) routing. While this approach preserves cloud elasticity and fault tolerance, it introduces a profound architectural tension: public cloud infrastructure is engineered and optimized for tenant VMs, whereas NFVMs act as intermediate network forwarding nodes with fundamentally mismatched resource consumption patterns.

Key moments
- 0:00 Introduction and background on NFV architecture
- 1:53 The barrel effect and introducing CStar Gateway
- 4:01 Four critical resource mismatches in production
- 7:31 Tofino-based stateless gateway and architecture overview
- 9:15 vNIC aggregation and pseudo vNIC ID mechanism
- 11:34 FPGA acceleration and hybrid data plane design
- 13:58 Evaluation results, resource utilization, and cost savings
CStar Gateway: Augmenting Public Cloud Infrastructure for Heterogeneous Network Function Virtualization
Speakers: Haonan Li (Alibaba Cloud); Tian Pan (Alibaba Cloud); Jin Ke (Alibaba Cloud); Baohai Hu (Alibaba Cloud); Changgang Zheng (Alibaba Cloud); Enge Song (Alibaba Cloud); Zhi Xu (Alibaba Cloud); Ye Yang (Alibaba Cloud); Bowen Yang (Alibaba Cloud); Donglin Lai (Alibaba Cloud); Yisong Qiao (Alibaba Cloud); Bengbeng Xue (Alibaba Cloud); Jianyuan Lu (Alibaba Cloud); Xiaoqing Sun (Alibaba Cloud); Shize Zhang (Alibaba Cloud); Zihao Fan (Alibaba Cloud); Mingxin Li (Alibaba Cloud); Yang Song (Alibaba Cloud); Jun Liang (Alibaba Cloud); Xionglie Wei (Alibaba Cloud); Biao Lyu (Alibaba Cloud); Rong Wen (Fudan University and Alibaba Cloud); Zhigang Zong (Alibaba Cloud); Jiao Zhang (Purple Mountain Laboratories); Tao Huang (Purple Mountain Laboratories); Shunmin Zhu (Alibaba Cloud)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=OElpdlC1v1A
Overview
Network Function Virtualization (NFV) in public clouds typically implements network functions—such as load balancers, transit routers, and firewalls—on standard virtual machines (NFVMs) rather than dedicated hardware. In Alibaba Cloud's NFV architecture, tenant traffic is steered through Virtual Network Interfaces (vNICs) and handled collectively by groups of NFVMs using Equal-Cost Multi-Path (ECMP) routing. While this approach preserves cloud elasticity and fault tolerance, it introduces a profound architectural tension: public cloud infrastructure is engineered and optimized for tenant VMs, whereas NFVMs act as intermediate network forwarding nodes with fundamentally mismatched resource consumption patterns.
An NFVM can be conceptualized as a barrel where different system resources—sessions, vNIC quotas, and CPU cores—act as wooden planks determining its overall capacity. In production environments, NFVMs frequently exhaust specific constraints like session tables or vNIC counts long before CPU or I/O capacities are fully utilized. This forces cloud operators to provision vastly more NFVM instances than theoretically necessary, driving up operational costs. To resolve this, Alibaba Cloud engineers developed CStar Gateway, a programmable, stateless gateway placed between tenant VMs and NFVMs.
CStar Gateway addresses resource bottlenecks by decoupling tenant configuration, session tracking, and traffic acceleration from distributed vSwitches. By utilizing a novel nested tunneling protocol and a hybrid data plane incorporating Intel Tofino programmable ASICs and Field Programmable Gate Arrays (FPGAs), CStar Gateway enables NFVMs to fully utilize their hardware resources. In production deployments across multiple availability zones, this architecture eliminated resource bottlenecks, increased CPU and I/O utilization by at least 5×, and reduced total NFVM counts by 80% to 94%.
Background
▶ Watch: Introduction and background on NFV architecture (0:00)
The evolution of cloud networking has driven service providers to replace dedicated middlebox hardware with software-defined network functions running on virtual machines. In standard public cloud architectures, a software vSwitch sits on the hypervisor, enforcing tenant policies (such as access control lists, rate limiting, and security groups) via dedicated vNICs allocated to each endpoint. When these vSwitches interface with NFVM clusters, several structural limitations manifest because the infrastructure assumes general-purpose tenant workloads rather than high-throughput network processing.
Prior systems attempt to handle NFV scaling by simply provisioning more NFVM instances or scaling out vSwitch resources. However, these approaches hit hard economic and architectural limits governed by hardware storage constraints on SmartNICs and vSwitch session table capacities. In Alibaba Cloud's deployment, a single server can support approximately 4,000 vNICs. Allocating multiple vNICs per NFVM directly cannibalizes the vNIC quota available for standard tenant VMs, reducing server density and per-server revenue. Furthermore, because traditional vSwitches rely on a fast-path/slow-path separation—where the initial packet of a flow triggers a slow-path lookup to create a session entry—heavy concurrent traffic instantly saturates session tables, causing packet drops while CPU cores remain idle.
The core problem stems from a mismatch in resource profiles: different network functions consume system resources in diametrically opposed ways. Load balancers exhaust session tables; transit routers saturate I/O bandwidth with minimal CPU overhead; and security gateways consume vast vNIC counts for isolation. CStar Gateway was designed to solve these systemic mismatches without requiring intrusive, high-risk modifications to the underlying cloud virtualization architecture or the distributed vSwitch codebase.
Key Findings
▶ Watch: Four critical resource mismatches in production (4:01)
Deploying CStar Gateway in production across Alibaba Cloud availability zones yielded dramatic improvements in resource efficiency, system capacity, and financial cost. The primary discoveries and results include:
- Resolution of Resource Mismatch: By decoupling vNIC allocation and session tracking from the vSwitch, NFVMs are no longer constrained by vSwitch quotas. A single NFVM can process substantially higher traffic volumes before hitting resource limits.
- Dramatic Utilization Gains: Across production availability zones where CStar Gateway was deployed, average CPU and I/O utilization of NFVM instances increased by at least 5 times, moving from under 10% utilization prior to deployment to levels that properly reflect healthy resource amortization.
- Minimal Memory Overhead: Migrating tenant configurations (such as security groups and rate limiting) from the vSwitch into the NFVM packet processing pipeline introduced negligible storage overhead, increasing memory utilization by less than 4.3% on average.
- Massive Infrastructure Cost Reductions: Accounting for the hardware and operational footprint of the CStar Gateway itself, the total number of required NFVM instances dropped by 80%, 94%, and 91% across the evaluated availability zones, generating substantial net infrastructure savings.
Technical Deep Dive
▶ Watch: Tofino-based stateless gateway and architecture overview (7:31)
CStar Gateway achieves its efficiency gains through a combination of programmable hardware, a novel nested tunneling protocol, and a hybrid data plane architecture.
1. vNIC Aggregation via Nested Tunneling
To eliminate vNIC exhaustion (where NFVMs consumed an average of over 97 vNICs compared to ~2 for regular VMs), CStar Gateway introduces a logical identifier termed a pseudo vNIC ID. The gateway maps the original VNI and service IP to this pseudo vNIC ID. Incoming packets are encapsulated using a nested tunneling format:
- The original packet is wrapped in a GENEVE tunnel carrying the pseudo vNIC ID in the tunnel header.
- This GENEVE packet is further encapsulated in a VXLAN header for transport across the physical network.
On the receiving NFVM, the hypervisor extracts the pseudo vNIC ID. The NFVM's internal vSwitch encounters only a single basic vNIC, completely eliminating vNIC quota exhaustion while preserving tenant isolation.
2. Session Aggregation and Port Randomization
To prevent session table exhaustion from short-lived, high-concurrency flows (such as microservice backend calls reaching 1 million concurrent sessions within seconds), CStar Gateway aggregates multiple tenant flows into a single GENEVE tunnel. Because the distributed vSwitch only inspects the outer GENEVE 5-tuple, multiple distributed flows consume precisely one session entry in the vSwitch.
To ensure balanced load distribution across NFVM CPU cores without causing hash polarization, CStar Gateway randomizes the GENEVE and VXLAN UDP source ports on a per-flow basis within a controlled port range. Because destination ports remain fixed for GENEVE encapsulation, modifying the source port provides sufficient entropy to distribute flows evenly across NFVM CPU cores via Receive Side Scaling (RSS).
3. Hybrid Data Plane: Tofino ASICs and FPGAs
While standard NFVMs handle elastic, stateful workloads, certain traffic profiles—such as stateless L3 forwarding in transit routers (which can drive TBPS-scale I/O with only ~6% CPU usage) and persistent elephant flows—create severe I/O or single-core CPU bottlenecks. CStar Gateway employs a hybrid data plane:
- Tofino-based Stateless Gateway: The core gateway uses Intel Tofino programmable ASICs to perform up-front flow identification, stateless L3/L4 forwarding, and ECMP consistent hashing. Migrating ECMP hashing from distributed tenant-side vSwitches to the centralized Tofino gateway simplifies scaling operations from updating hundreds of distributed vSwitches to updating a small set of centralized tables.
- FPGA Acceleration Clusters: NFVMs continuously monitor real-time per-flow packet and byte counters. Upon detecting an elephant flow or bandwidth-intensive traffic, the NFVM transmits the flow identifier, pseudo vNIC ID, and hash value to the gateway via the control plane. The gateway redirects subsequent packets to a dedicated processing cluster composed of high-performance FPGA cards. Concurrently, the NFVM session entry is migrated directly to the FPGA, which installs the entry and executes matching actions for a seamless handoff. FPGAs handle high-bandwidth offloads, while elastic stateful network functions remain on NFVMs.
4. NFVM-Internal Policy Enforcement
Tenant configurations such as Access Control Lists (ACLs) and metering are moved out of the vSwitch and integrated directly into the NFVM packet processing pipeline. Upon packet arrival, the NFVM executes rate-limiting and metering prior to any other logic. If a packet misses the fast-path session table, it enters a slow-path lookup matching the pseudo vNIC ID and the inner 5-tuple against the tenant security group.
Experimental Setup & Results
▶ Watch: FPGA acceleration and hybrid data plane design (11:34)
The evaluation of CStar Gateway was conducted in production environments across three distinct availability zones (AZs) within Alibaba Cloud that had fully integrated the gateway into their NFV infrastructure.
- Metrics Tracked: Average CPU utilization, I/O utilization, memory overhead, and total NFVM instance counts required to sustain production workloads.
- Baseline: NFV infrastructure operating without CStar Gateway, where NFVMs were bottlenecked by vSwitch vNIC quotas and session table capacities.
- Headline Results:
- Resource Utilization: Prior to CStar Gateway deployment, average CPU and I/O utilization across NFVMs in all three AZs hovered below 10% due to premature session and vNIC exhaustion. Post-deployment, CPU and I/O utilization increased by at least 5 times.
- Memory Impact: Transferring tenant configurations (ACLs and rate-limiting rules) into the NFVM increased internal memory utilization by an average of less than 4.3%, demonstrating extreme storage efficiency.
- Cost Reduction: Factoring in the deployment cost of the CStar Gateway hardware, the total number of required NFVM instances dropped by 80%, 94%, and 91% across the three evaluated AZs.
No ablation studies or synthetic dataset benchmarks were detailed in the transcript, as the evaluation focuses entirely on live production metrics from large-scale public cloud data centers.
Practical Implications
▶ Watch: Evaluation results, resource utilization, and cost savings (13:58)
For cloud infrastructure teams, model builders, and systems engineers deploying large-scale network function virtualization, CStar Gateway demonstrates that scaling NFV workloads requires addressing fundamental resource mismatch patterns rather than blindly throwing compute instances at the problem. Key takeaways for practitioners include:
- Economic Design Constraints are Real: Hardware limitations—such as SmartNIC vNIC quotas—are often economic and architectural constructs rather than fundamental silicon limits. Intercepting traffic at a programmable gateway can bypass these artificial ceilings.
- Decoupling Elasticity from Performance: FPGAs and programmable ASICs offer unmatched throughput for stateless, bandwidth-heavy traffic (like transit routing), but they lack the operational elasticity required for stateful network functions. A hybrid model leveraging Tofino/FPGAs for heavy lifting and standard VMs for stateful elasticity achieves the best of both worlds.
- Centralized Control of Distributed Topology: Migrating ECMP consistent hashing and session tracking from distributed vSwitches to a centralized gateway drastically reduces control-plane scaling latency, avoiding the need to push configuration updates to thousands of hypervisors.
Limitations: The architecture requires specialized hardware components (Intel Tofino ASICs and FPGA clusters) and introduces a centralized gateway layer that must be engineered for high availability to avoid becoming a single point of failure.
Key Takeaways
- Resource Mismatch in NFV: Standard cloud infrastructure optimized for tenant VMs creates severe bottlenecks when running NFVMs, leading to premature vNIC and session exhaustion while CPU and I/O remain idle.
- CStar Gateway Architecture: A programmable, stateless gateway placed between tenant VMs and NFVMs that aggregates vNICs and sessions, eliminating vSwitch bottlenecks.
- Nested Tunneling Protocol: Combines GENEVE (carrying pseudo vNIC IDs and inner 5-tuples) and VXLAN encapsulation to reduce multiple distributed flows into a single outer vSwitch session entry.
- Hybrid Data Plane: Utilizes Intel Tofino ASICs for stateless L3/L4 forwarding and centralized ECMP hashing, alongside FPGA clusters for high-bandwidth elephant flow offloading.
- Production Impact: Achieved a $\ge$ 5× increase in NFVM CPU and I/O utilization and reduced total NFVM instance counts by 80% to 94% across production availability zones.
About the Speaker(s)
The presentation was delivered by Jingle (Haonan Li) representing the Alibaba Cloud networking and systems team, which comprises engineers and researchers from Alibaba Cloud, Fudan University, and Purple Mountain Laboratories. The team specializes in public cloud infrastructure, network function virtualization, programmable data planes, and large-scale systems architecture.
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)