# SweepSketch: Detecting Carpet-Bombing Attacks Before They End

DevFeed: [SweepSketch: Detecting Carpet-Bombing Attacks Before They End](<https://devfeed.tech/articles/sweepsketch-detecting-carpet-bombing-attacks-before-they-end-109002.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.33308>)

Author: Yutong Yan, Sijia Du, Haowei Wang, Bo Yang

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [network-intelligence](<https://devfeed.tech/topics/network-intelligence.md>), [Internet Traffic](<https://devfeed.tech/topics/internet-traffic.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [control-plane](<https://devfeed.tech/topics/control-plane.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [ddos](<https://devfeed.tech/tags/ddos.md>), [dpu](<https://devfeed.tech/tags/dpu.md>), [hyperloglog](<https://devfeed.tech/tags/hyperloglog.md>), [packet](<https://devfeed.tech/tags/packet.md>), [security](<https://devfeed.tech/tags/security.md>), [state](<https://devfeed.tech/tags/state.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

SweepSketch detects carpet-bombing DDoS attacks while they are still underway by measuring traffic per distinct destination, avoiding unreliable source-side state and training. A tagged self-cleaning windowed HyperLogLog feeds per-packet CUSUM decisions and dual EWMA gates. The reference state uses 512 KB; its bit-exact C++ implementation reaches 13.2 Mpps per core. It alarms before the end of 95.6% of evaluated 0.5-second attacks, and 49.3% of real-capture attacks trigger an alarm within one second; static and mixed-traffic F1 are both 0.991. Hardware implementations differ: Tofino2 runs the per-packet state chain but places final gates on the control plane, while a DPU micro-engine keeps the full decision chain in the fast path.

## Source excerpt

arXiv:2609.33308v3 Announce Type: replace Abstract: Carpet-bombing DDoS attacks spread traffic almost uniformly across a destination prefix, keeping each host below alarm thresholds while exhausting prefix-level resources; spoofed sources make source-side evidence unreliable. Existing detectors either decide on windows of seconds, alarming only at window boundaries, or depend on supervised training, so short attacks often end before the first alarm. We present SweepSketch, a destination-anchored, per-packet sketch detector that keeps no source-side state, needs no training, and alarms while the attack is still in progress. Its core is a tagged self-cleaning windowed HyperLogLog (T-HLL) that turns uniformity testing into one event per distinct destination per window; per-packet cumulative-sum (CUSUM) decisions and dual exponentially weighted moving average (EWMA) gates form the decision chain. The reference state occupies 512 KB, and a bit-exact C++ implementation reaches 13.2 Mpps per core. On attacks lasting only 0.5 s, it raises its first alarm before the attack ends in 95.6% of attacks; on real captures, 49.3% alarm within the first second; static and mixed-traffic F1 both reach 0.991. SweepSketch is deployed in two hardware forms: a Tofino2 program carries the complete per-packet state chain and places the final gates on the control plane, while a DPU micro-engine keeps the entire decision chain in the fast path.