DDoS Detection at the Scale of One Hundred Tbps
Yunming Xiao (The Chinese University of Hong Kong, Shenzhen, and Tencent), Xijun Luo (Tencent), Youliang Jiang (Tencent), Aike Wang (Tencent), Hu Chen (Tencent), Zhibin Zhou (Tencent), Heng Yu (Tsinghua University), Jiahao Cao (Tsinghua University), Yong Jiang (Tsinghua Shenzhen International Graduate School), Jilong Wang (Tsinghua University), Mingwei Xu (Tsinghua University), Yan Chen (Northwestern University), Congcong Miao (Tencent)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Measuring at Scale
Overview
Modern Distributed Denial of Service (DDoS) detection in large-scale production environments has hit a severe scaling wall. At hyperscale cloud providers such as Tencent, aggregate network traffic routinely exceeds 100 terabits per second (Tbps), rendering traditional single-server or straightforward distributed detection architectures obsolete. Attacks ramp up aggressively—surging to nearly 1 Tbps in mere seconds—and rely on complex volumetric and behavioral patterns that cannot be identified by simple bandwidth thresholds alone. This talk, presented at USENIX NSDI by Yunming Xiao on behalf of researchers from Tencent, Tsinghua University, CUHK Shenzhen, and Northwestern University, introduces Canopy, a production-grade distributed DDoS detection system engineered to operate seamlessly at the scale of 100+ Tbps.

Key moments
- 0:00 Introduction and motivation for 100 Tbps DDoS detection
- 1:55 Complexity of production traffic and multi-indicator analysis
- 3:30 System architecture and server-side bottleneck analysis
- 5:30 Evaluating load balancing options: hash versus round-robin
- 7:35 Canopy system design: adaptive load balancing and offloading
- 10:20 Traffic compression on programmable switches to reduce packet rates
- 13:10 Evaluation results on dynamic load balancing and capacity gains
- 14:40 Production deployment insights, attack trends, and conclusion
DDoS Detection at the Scale of One Hundred Tbps
Speakers: Yunming Xiao (The Chinese University of Hong Kong, Shenzhen, and Tencent); Xijun Luo (Tencent); Youliang Jiang (Tencent); Aike Wang (Tencent); Hu Chen (Tencent); Zhibin Zhou (Tencent); Heng Yu (Tsinghua University); Jiahao Cao (Tsinghua University); Yong Jiang (Tsinghua Shenzhen International Graduate School); Jilong Wang (Tsinghua University); Mingwei Xu (Tsinghua University); Yan Chen (Northwestern University); Congcong Miao (Tencent)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=MvWM_fLA6Lo
Overview
Modern Distributed Denial of Service (DDoS) detection in large-scale production environments has hit a severe scaling wall. At hyperscale cloud providers such as Tencent, aggregate network traffic routinely exceeds 100 terabits per second (Tbps), rendering traditional single-server or straightforward distributed detection architectures obsolete. Attacks ramp up aggressively—surging to nearly 1 Tbps in mere seconds—and rely on complex volumetric and behavioral patterns that cannot be identified by simple bandwidth thresholds alone. This talk, presented at USENIX NSDI by Yunming Xiao on behalf of researchers from Tencent, Tsinghua University, CUHK Shenzhen, and Northwestern University, introduces Canopy, a production-grade distributed DDoS detection system engineered to operate seamlessly at the scale of 100+ Tbps.
Canopy tackles the fundamental tension in high-speed network traffic distribution: the contradiction between hash-based load balancing (which preserves flow locality but destroys load balance under heavy elephant flows) and round-robin packet spraying (which balances load effectively but shatters flow state and inflates CPU aggregation costs). By combining a programmable data plane with intelligent load balancing, multi-packet traffic compression, and flexible CPU-bound analytics, Canopy successfully raises per-server processing capacity from under 100 Gbps to over 1 Tbps while maintaining sub-second detection latency during massive attack bursts.
Background
▶ Watch: Introduction and motivation for 100 Tbps DDoS detection (0:00)
In enterprise and cloud production environments, intrusion detection systems (IDS) typically operate out-of-band by passively mirroring or duplicating traffic via layer-2 switches for parallel analysis, allowing primary production traffic to flow unhindered. However, processing this duplicated traffic at modern backbone scales introduces immense systems challenges. Historically, scaling detection meant adding more CPU cores to parse packets, maintain protocol states, and run anomaly detection algorithms.
This approach breaks down under real-world traffic distributions governed by heavy-tailed flow sizes, where mice flows (numerous small flows) and elephant flows (massive data transfers or volumetric attacks) coexist. Traditional hash-based load balancing hashes packet headers (such as 5-tuples) to assign flows to specific CPU cores. While this preserves flow locality—keeping packets of the same flow together to simplify downstream correlation—a single elephant flow can instantly saturate a CPU core, leading to catastrophic packet drops and blind spots. Conversely, round-robin packet spraying distributes packets evenly across all available cores regardless of flow, eliminating single-core bottlenecks but fragmenting packet streams across dozens of threads. This forces the CPU to perform expensive aggregation, regrouping, and state-reconstruction, inflating CPU utilization and bottlenecking analysis under normal traffic loads.
Furthermore, prior academic proposals like Poseidon and Pixels attempted to offload complete DDoS detection logic directly onto programmable switches (P4-capable data planes). While data-plane offloading achieves line-rate processing, it severely restricts flexibility. Production detection algorithms evolve rapidly, incorporate diverse user-defined signatures, and require rich multi-indicator correlation that is exceedingly difficult, if not impossible, to maintain within the rigid memory and instruction constraints of hardware switches. A hybrid architecture that correctly divides labor between the network fabric and compute servers was urgently required.
Key Findings
▶ Watch: System architecture and server-side bottleneck analysis (3:30)
Canopy’s deployment across Tencent's production network over a one-year period yielded critical insights into modern attack trends and systems performance:
- Escalating Attack Scale: Production attack volumes are growing faster than background traffic. Peak attack rates observed on the Tencent network surged from 1.2 Tbps in 2023 to 4.1 Tbps by 2025, validating that 100 Tbps aggregate design targets are necessary for future-proofing cloud infrastructure.
- Dynamic Load Balancing Efficiency: Canopy’s hybrid load balancing strategy successfully matches the efficiency of hash-based distribution for normal mice flows (incurring minimal CPU overhead) while matching the balance of round-robin spraying for elephant flows (eliminating packet drops under heavy single-flow injection).
- Amplified Per-Server Capacity: By introducing on-switch traffic compression, Canopy elevates the effective processing capacity of a standard detection server from under 100 Gbps to over 1 Tbps, slashing the total CPU core footprint required to monitor a 100 Tbps backbone.
- Reliability Under Duress: During a production stress test where traffic to a single target IP burst to 1.5 Tbps, Canopy detected the DDoS attack accurately within 1 second. In contrast, the legacy detection system dropped so many packets under the heavy load that it only observed 80 Gbps of the attack, completely failing to trigger timely mitigation.
Technical Deep Dive
▶ Watch: Canopy system design: adaptive load balancing and offloading (7:35)
Canopy's architecture is built around three core design principles: adaptive load balancing, selective function offload, and retaining complex decision logic on CPUs.
Adaptive Load Balancing
Canopy observes that hash-based balancing excels for mice flows, whereas round-robin spraying excels for elephant flows. For each destination IP address, the programmable switch monitors incoming packet rates. If the rate remains below a defined threshold, packets are hashed to preserve locality. Once the packet count exceeds the threshold, the switch dynamically transitions distribution for that destination to a rotating (round-robin) distribution, circumventing core saturation without fragmenting mice flows.
Selective Function Offload
Rather than pushing full detection algorithms to the data plane, Canopy splits responsibilities between hardware and software based on stability and evolution speed. Stable, high-volume line-rate operations—specifically packet parsing, header compression, and adaptive load balancing—are offloaded to the programmable switch. In contrast, evolving, complex analytics—such as stream matching, table joins, multi-indicator grouping, statistical correlation, and final detection logic—remain on standard CPU servers.
Multi-Packet Traffic Compression
Even with perfect load balancing, serving 100 Tbps of traffic via raw packet inspection would require over 100,000 CPU cores—an economically prohibitive overhead. Canopy addresses this by implementing programmable traffic compression directly on the switch.
Implementing compression on hardware switches presents severe systems hurdles:
- Register Width Limits: Programmatic switches lack rich multi-packet state structures, and registers are typically limited to 32 bits. Because a parsed packet representation requires 512 bits (64 bytes), full parse results cannot be cached in a single register. Canopy solves this by splitting keyword representations into smaller pieces and distributing them across multiple register tables.
- Single-Access Constraints: A switch register can perform only one read or write per address during a single packet processing cycle. Canopy overcomes this by implementing a loopback-based mechanism that uses switch recirculation to assemble multiple parsed packets into a single compressed output packet. This drastically reduces the packets-per-second (PPS) metric encountered by downstream detection servers.
Experimental Setup & Results
▶ Watch: Traffic compression on programmable switches to reduce packet rates (10:20)
Canopy was evaluated using both controlled testbed environments and large-scale production deployments across Tencent's global network infrastructure, benchmarked against legacy static-hash and round-robin detection systems.
- Dynamic Load Balancing Performance: Under normal traffic compositions, Canopy’s dynamic load balancing matches hash-based distribution, maintaining low, stable CPU latencies while preserving state locality. When subjected to a single elephant flow, pure hash-based balancing caused severe CPU load polarization (ranging from 0% on idle cores to 100% on overwhelmed cores, inducing heavy packet drops), whereas Canopy’s dynamic load balancing engaged spray mechanics, absorbing the traffic cleanly without packet loss.
- Per-Server Throughput: Utilizing multi-packet compression on the programmable switch, Canopy raised the effective processing capacity of a single detection server from less than 100 Gbps to over 1. Tbps.
- Latency Breakdown: End-to-end detection latency with Canopy is heavily dominated by server-side analytics, while switch-level processing and load balancing consume only a few microseconds. This confirms that bottleneck shifting has been successfully localized to software-level compute rather than hardware transport.
Practical Implications
▶ Watch: Production deployment insights, attack trends, and conclusion (14:40)
For infrastructure teams and cloud providers operating high-capacity networks, Canopy demonstrates that scaling intrusion detection to 100+ Tbps cannot be achieved solely through brute-force server provisioning or pure data-plane offloading.
- Hardware-Software Co-Design: Practitioners should adopt a selective offload philosophy. Offloading high-frequency, low-complexity tasks (parsing, compression, routing) to programmable switches preserves the agility needed to update complex machine learning or heuristic detection models on standard CPUs.
- The PPS Bottleneck: Network architects must recognize packets-per-second (PPS), rather than raw bandwidth alone, as the primary constraint on detection servers. On-switch traffic packing and compression are essential techniques for reducing CPU interrupt overhead.
- Trade-offs: Canopy's compression mechanisms introduce small parsing latency overheads and consume internal switch loopback bandwidth. System operators must tune recirculation thresholds to balance compression ratios against switch forwarding capacity.
Key Takeaways
- Scaling Wall: Production networks routinely exceed 100 Tbps, overwhelming traditional single-server and static hash-based DDoS detectors.
- Hybrid Load Balancing: Canopy combines hash-based distribution for mice flows with round-robin packet spraying for elephant flows, eliminating single-core bottlenecks while preserving flow locality.
- Selective Offload: Stable tasks like parsing, compression, and load balancing are pushed to programmable switches, while evolving detection logic remains on flexible CPU servers.
- Traffic Compression: Switch-level multi-packet compression packs multiple parsed headers into single packets, raising per-server processing capacity from <100 Gbps to >1 Tbps.
- Production Validation: Deployed across Tencent for over a year, Canopy successfully detected a 1.5 Tbps attack burst within 1 second while legacy systems dropped packets and failed.
About the Speaker(s)
Yunming Xiao presented this work on behalf of a multi-institutional collaborative team. He holds affiliations with The Chinese University of Hong Kong, Shenzhen, and Tencent, combining academic systems research with large-scale industrial cloud deployment experience. The research team includes engineers and researchers from Tencent, Tsinghua University, Tsinghua Shenzhen International Graduate School, and Northwestern University.
Reviews
- Simon Wisk (Open Source Developer & AI Tooling Expert) — MUST SEE ★★★★★
→ 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)