Cost-effective and Reliable Global Internet Peering with Programmable Switches

Congcong Miao (Tencent and National University of Singapore), Zhiyi Yao (Tencent), Jianchao Lv (Tencent), Jinglin Wang (Tencent), Shihan Lin (University of Michigan), Xinyi Zhang (CNIC CAS, China), Yunming Xiao (The Chinese University of Hong Kong, Shenzhen), Wei Guo (Tencent), Jiwu Bu (Tencent), Yachen Wang (Tencent), Xianneng Zou (Tencent), Yong Jiang (Tsinghua Shenzhen International Graduate School), Marco Canini (KAUST), Gaogang Xie (CNIC CAS, China)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Distributed Data Systems

Overview

Global cloud providers operate vast peering edges acting as critical gateways between internal cloud services and the public internet. At this scale, handling terabit-scale traffic while maintaining low costs, rapid route convergence, and robust security represents a formidable engineering challenge. Traditional cloud peering architectures rely either on commercial routers—which offer high stability and performance but severely restrict flexibility and feature velocity—or server-based "closer" designs that utilize commodity host CPUs to run inter-domain routing protocols like BGP (Border Gateway Protocol) for application-aware routing. While server-based approaches enable rapid prototyping, they suffer from high hardware costs and acute vulnerability to distributed denial-of-service (DDoS) attacks that easily overwhelm host CPU processing capacities.

Watch on YouTube · Slides

Visual summary for Cost-effective and Reliable Global Internet Peering with Programmable Switches by Congcong Miao, Zhiyi Yao, Jianchao Lv, Jinglin Wang, Shihan Lin, Xinyi Zhang, Yunming Xiao, Wei Guo, Jiwu Bu, Yachen Wang, Xianneng Zou, Yong Jiang, Marco Canini, Gaogang Xie
Visual summary for Cost-effective and Reliable Global Internet Peering with Programmable Switches by Congcong Miao, Zhiyi Yao, Jianchao Lv, Jinglin Wang, Shihan Lin, Xinyi Zhang, Yunming Xiao, Wei Guo, Jiwu Bu, Yachen Wang, Xianneng Zou, Yong Jiang, Marco Canini, Gaogang Xie

Key moments

  1. 0:00 Introduction and background of cloud peering architectures
  2. 2:00 Motivation and key pain points in Tencent Cloud
  3. 4:00 Overview of Janus hybrid programmable switch and host architecture
  4. 6:00 Asymmetric FIBs and extended BGP routing synchronization
  5. 7:40 Fast convergence optimization techniques
  6. 8:50 Inbound traffic processing and three-layer DDoS mitigation
  7. 10:00 Evaluation results on traffic offloading and cost savings
  8. 12:00 Lessons learned and conclusion

Cost-effective and Reliable Global Internet Peering with Programmable Switches

Speakers: Congcong Miao (Tencent and National University of Singapore); Zhiyi Yao (Tencent); Jianchao Lv (Tencent); Jinglin Wang (Tencent); Shihan Lin (University of Michigan); Xinyi Zhang (CNIC CAS, China); Yunming Xiao (The Chinese University of Hong Kong, Shenzhen); Wei Guo (Tencent); Jiwu Bu (Tencent); Yachen Wang (Tencent); Xianneng Zou (Tencent); Yong Jiang (Tsinghua Shenzhen Internal Graduate School); Marco Canini (KAUST); Gaogang Xie (CNIC CAS, China)

Conference: USENIX NSDI

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

Overview

Global cloud providers operate vast peering edges acting as critical gateways between internal cloud services and the public internet. At this scale, handling terabit-scale traffic while maintaining low costs, rapid route convergence, and robust security represents a formidable engineering challenge. Traditional cloud peering architectures rely either on commercial routers—which offer high stability and performance but severely restrict flexibility and feature velocity—or server-based "closer" designs that utilize commodity host CPUs to run inter-domain routing protocols like BGP (Border Gateway Protocol) for application-aware routing. While server-based approaches enable rapid prototyping, they suffer from high hardware costs and acute vulnerability to distributed denial-of-service (DDoS) attacks that easily overwhelm host CPU processing capacities.

This talk presents Janus, a hybrid global internet peering architecture deployed in Tencent Cloud production that combines programmable switches and host servers. Developed collaboratively by researchers and engineers from Tencent Cloud, the University of Michigan, KAUST, Tsinghua University, and other institutions, Janus addresses the fundamental tension between hardware rigidity and server-based economic inefficiency. By strategically partitioning routing responsibilities based on traffic volume distributions and routing requirements, Janus achieves dramatic cost reductions while fortifying the peering edge against sophisticated volumetric attacks.

The significance of this work lies in its successful transition from theoretical programmable data plane research to massive real-world deployment. Over a four-month production evaluation across Tencent's global points of presence (PoPs), Janus scaled to handle a three-fold increase in traffic while slashing average hardware costs by 78%. By leveraging P4-style programmable data planes alongside optimized control-plane extensions, Janus demonstrates that hybrid architectures can simultaneously satisfy conflicting demands for high performance, economic viability, sub-second route convergence, and deep application-aware traffic engineering.

Background

▶ Watch: Introduction and background of cloud peering architectures (0:00)

The architectural evolution of cloud peering edges has long been constrained by the dichotomy between dedicated Application-Specific Integrated Circuit (ASIC) routers and general-purpose server hardware. Commercial routers provide deterministic line-rate performance and robust control-plane stability, executing BGP routing tables containing hundreds of thousands of full internet routes with ease. However, modifying these proprietary systems to support custom telemetry, fine-grained traffic engineering, or novel encapsulation protocols often requires multi-month or multi-year engineering cycles.

To overcome this inflexibility, some operators adopted server-based architectures where commodity hosts run software BGP stacks (such as FRRouting or BIRD) directly. While this software-defined approach grants complete programmability and simplifies application-aware routing, it introduces critical operational bottlenecks in production environments:

  1. Severe DDoS Vulnerability: Host CPUs processing packets at the edge are easily overwhelmed by volumetric attack traffic. In Tencent Cloud's observations, over 4,000 DDoS attacks occurred in a three-month window, with 15% completely exhausting host server processing capacity.
  2. Exorbitant Capital Expenditure: Commodity host servers deployed for packet processing are significantly more expensive—roughly 1.6 to 16 times more costly per gigabit of throughput—than equivalent routing hardware or programmable switches.
  3. Slow Convergence at Scale: Updating millions of routing table entries across massive distributed host clusters during a peering link failure leads to sluggish convergence times, degrading global service reliability.

These pain points motivated the design principles behind Janus: absolute resilience against DDoS attacks, extreme cost-effectiveness, rapid global route convergence, and uncompromising flexibility for custom routing policies.

Key Findings

▶ Watch: Overview of Janus hybrid programmable switch and host architecture (4:00)

The foundational discovery enabling Janus is a heavy-tailed traffic distribution characteristic of internet peering edges: a minuscule fraction of routing prefixes carries the vast majority of traffic. Specifically, Tencent Cloud telemetry revealed that the top 1.7% of routing prefixes account for 80% of total traffic, and just 7.6% of prefixes carry 90%.

This empirical finding invalidates the necessity of storing full, heavy internet routing tables on high-performance switching hardware. By exploiting this skew, Janus implements host route offloading, storing only the heavy-hitting prefixes in the high-speed programmable data plane while delegating the long tail of cold prefixes and complex traffic engineering policies to host servers.

Key performance and operational findings from the production deployment include:

  • Cost Reduction: Janus lowered average network hardware costs by 78%, achieving up to 84% savings on outbound traffic processing and 90% on inbound traffic processing.
  • Traffic Scaling: Over a four-month evaluation period in Tencent Cloud production, Janus handled a 3x growth in total traffic while maintaining less than 10% of total global routes offloaded onto the programmable switches.
  • Convergence Speed: Through optimized BGP extensions and route update batching, Janus achieves second-level convergence times for both route withdrawal and route advertisement, outperforming traditional commercial router and software-based implementations by orders of magnitude.
  • DDoS Mitigation: By shifting inbound traffic processing entirely away from host servers and utilizing a three-layer hardware mitigation pipeline, Janus successfully eliminated host CPU exhaustion from volumetric attacks.

Technical Deep Dive

▶ Watch: Fast convergence optimization techniques (7:40)

Janus establishes a hybrid architecture comprising three distinct types of programmable switches working in concert with commodity host servers and anti-DDoS clusters: Internal Peering Switches (Internal PS), External Peering Switches (External PS), and Security Switches (Security PS).

Hierarchical Traffic Dispatch & Asymmetric FIBs

For outbound traffic, Janus employs a hierarchical dispatch module. The Internal PS receives traffic from the cloud core and forwards high-volume traffic directly to the External PS using entries cached in its physical Forwarding Information Base (FIB). Traffic destined for "cold" prefixes—those not installed in the switch's restricted memory—is forwarded to host servers. These host servers maintain the full internet routing table, executing advanced traffic engineering (TE) and application-aware routing policies before forwarding the packets out through the External PS.

This design creates asymmetric FIBs: the programmable switches maintain a compact, high-priority forwarding table for heavy hitters, whereas the host servers maintain the complete internet routing state. This maximizes switch memory utilization while minimizing the total number of expensive host servers required.

Extended BGP and Global Routing Consistency

To maintain synchronization across a vast distributed topology of switches and hosts without relying on heavy centralized SDN (Software-Defined Networking) controllers, Janus extends standard BGP update messages. The control plane injects three custom attributes into BGP updates: Device IPs, Peering IPs, and Peer IDs.

When BGP Route Reflectors receive these extended messages, they broadcast updates to all participating switches and hosts simultaneously. This ensures global routing consistency and acts as the foundation for rapid failure recovery.

Fast Convergence Optimization

Traditional routing systems recalculate BGP best-path selections and update hardware tables sequentially, a process taking minutes during major link failures. Janus accelerates convergence through two primary software-hardware optimizations:

  1. Batch Route Updates: Routes are organized and indexed by device IP and physical link. When a peering link fails, affected routes are isolated and updated instantly rather than iterating through global tables.
  2. Community Caching: The results of BGP community attribute evaluations are cached and reused during best-path recalculations, eliminating redundant evaluation overhead.

Three-Layer Inbound DDoS Defense

To protect fragile host CPUs from malicious actors, all inbound internet traffic completely bypasses host servers, flowing strictly through a three-layer hardware mitigation pipeline:

  1. External PS Blackholing: Incoming packets are checked against a prefix table designated for blackholing malicious IPs.
  2. Security PS ACL Filtering: Traffic matching suspicious prefixes is redirected to Security PS instances executing simple Access Control List (ACL) filters at line rate.
  3. Deep Packet Inspection (DPI): Surviving traffic is funneled to dedicated anti-DDoS clusters for fine-grained DPI. Only confirmed legitimate traffic is re-injected back into the Internal PS for cloud delivery.

Experimental Setup & Results

▶ Watch: Inbound traffic processing and three-layer DDoS mitigation (8:50)

The Janus production evaluation and testbed validation utilized hardware representative of modern hyperscale data center edges:

  • Programmable Switches: Configured with Broadcom Trident 3 ASICs, featuring 4 core control-plane CPUs and a total switching capacity of 3.2 Terabits per second.
  • Host Servers: Equipped with 48-core CPUs running DPDK (Data Plane Development Kit) for high-performance userspace packet processing, paired with network interface cards (NICs) supporting 120 Gbps of throughput.
  • Baselines: Compared against Tencent Cloud's legacy FRRouting (FRR) software deployments and traditional commercial routers.

Headline performance metrics demonstrated across Tencent production deployments include:

  • Throughput & Offload Efficiency: Less than 10% of total global routing rules were offloaded to programmable switches, yet these rules successfully carried over 82% of aggregate production traffic.
  • Cost Reduction Factor: Average network hardware expenditure dropped by 78%, broken down into an 84% reduction for outbound traffic nodes and 90% for inbound traffic nodes.
  • Convergence Latency: Janus achieved sub-5-second convergence times for route withdrawals and low-second latency for route advertisements, outperforming legacy FRR and commercial router failover benchmarks by orders of magnitude.
  • Application Performance: Measurements of high-priority application traffic routed through host-managed TE policies showed consistently low latency and minimal packet loss compared to baseline traffic streams.

Practical Implications

▶ Watch: Lessons learned and conclusion (12:00)

For infrastructure teams, network architects, and cloud deployers, Janus provides a blueprint for disaggregating data plane scale from control-plane flexibility. By proving that programmable data planes can execute core BGP forwarding for heavy-hitting prefixes without requiring full routing table memory, the architecture liberates operators from vendor lock-in and excessive hardware costs.

However, several tradeoffs and limitations must be considered:

  • Hardware Limitations: Programmable switch ASICs have constrained SRAM/TCAM capacities. Sudden shifts in traffic locality or flash crowds that shatter the heavy-tail distribution assumption could cause thrashing between switch and host routing tables.
  • Control Plane Complexity: Extending BGP with custom attributes and managing an asymmetric FIB requires sophisticated synchronization logic, increasing operational debugging complexity for network engineers accustomed to off-the-shelf routing daemons.
  • DDoS Exhaustion Boundaries: While moving inbound inspection to security switches and dedicated anti-DDoS hardware protects host CPUs, extremely high-volume volumetric attacks still place severe demands on external switch forwarding bandwidth and auxiliary mitigation pools.

Key Takeaways

  • Exploiting Traffic Skew: Heavy-tail traffic distributions (where ~1.7% to 7.6% of routes carry 80% to 90% of traffic) enable efficient routing table offloading from expensive host servers to programmable switches.
  • Hybrid Architecture Synergy: Combining programmable switches for high-volume, line-rate forwarding with host servers for fine-grained traffic engineering achieves both high performance and extreme economic efficiency.
  • Massive Cost Savings: Production deployment at Tencent Cloud demonstrated a 78% reduction in average hardware costs, scaling efficiently across a 3x traffic increase.
  • Hardware-Enforced Security: Completely bypassing host servers for inbound traffic and utilizing a three-layer switch/security-ASIC mitigation pipeline effectively neutralizes host CPU exhaustion from DDoS attacks.
  • Sub-Second Convergence: Extended BGP control-plane messaging combined with batch route updates and community caching achieves orders-of-magnitude faster convergence during link failures than legacy implementations.

About the Speaker(s)

Shihan Lin is a researcher from the University of Michigan who presented this collaborative work developed alongside engineering and research teams from Tencent Cloud, KAUST, Tsinghua Shenzhen International Graduate School, and the Chinese Academy of Sciences (CNIC CAS). The research stems from real-world production deployments scaling across Tencent Cloud's global points of presence.

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)