Algorithms for Reconstructing DDoS Attack Graphs using Probabilistic Packet Marking

Itamar Zimerman, Dina Barak-Pelleg, Daniel Berend, Thomas J. Robinson, Itamar ZimmermanarXiv 2023 · DOI

Abstract

This paper presents two novel algorithms for reconstructing Distributed Denial-of-Service (DDoS) attack paths using Probabilistic Packet Marking (PPM) with dynamic stopping times. Unlike traditional methods that rely on fixed theoretical bounds, these algorithms determine the stopping point based on real-time data acquisition, leading to improved success rates and reduced traceback times. We provide a theoretical analysis based on the Coupon Collector’s Problem and validate our approach through extensive simulations, demonstrating that stopping at the earliest feasible time is both robust and efficient.

Introduction

In a Distributed Denial-of-Service (DDoS) attack, identifying the true source is a critical challenge because attackers frequently spoof their IP addresses. IP Traceback is the process of reconstructing the path packets took through the network to find the attacker's origin.

A common technique for this is Probabilistic Packet Marking (PPM), where routers along a path randomly "mark" packets with their identity information. The victim collects these marks to piece together the attack graph. The central challenge in PPM is the "stopping time" problem: How many packets does a victim need to collect to be confident they have the full, correct path? Traditional methods use fixed stopping times decided before the attack starts. If the victim stops too early, the reconstructed path might be incomplete; if they wait too long, they suffer unnecessary damage.

Proposed Methods

The authors propose a shift from "fixed" stopping times to "dynamic" stopping times based on the state of the reconstructed graph. Two algorithms are introduced:

  • Algorithm 1 (Basic): This algorithm stops the moment the victim has collected enough edges to form a "full subpath"—a continuous chain of edges starting from the victim and reaching at least two hops away. While seemingly "naive," the authors prove mathematically that this approach is surprisingly robust.
  • Algorithm 2 (Accurate Heuristic): This version introduces a confidence parameter, $\epsilon$. After a full subpath is formed, the algorithm calculates the probability that a further edge exists but hasn't been seen yet. It continues collecting packets until this probability drops below $\epsilon$.

The paper provides a deep theoretical dive into the Coupon Collector’s Problem—a mathematical framework used to model how long it takes to collect all "types" (edges) in a set—and analyzes "disruptions," which occur when marks from farther routers arrive before marks from closer ones.

Comparison of theoretical formula and simulation results for the proposed PPM algorithms.

As shown in the figure above, the authors' theoretical formulas for expected performance align closely with simulation results across varying path lengths, validating the mathematical foundation of their dynamic stopping criteria.

Experimental Evaluation

The authors evaluated their algorithms using large-scale simulations rather than real-world traffic to ensure statistical significance. The simulation parameters included a path length of $n=25$ with a marking probability of $p=1/25$. The simulation was run for $N=10^7$ (ten million) iterations.

The results were benchmarked against two established methods: the Savage et al. algorithm (SWKA) and the Saurabh and Sairam algorithm (S&S).

Key Results

The simulations showed that the new algorithms outperform existing benchmarks in both speed and accuracy:

Algorithm Avg. Packets Received Success Rate
Algorithm 1 167 87%
Algorithm 2 ($\epsilon=0.05$) 222 99%
SWKA (Savage et al.) 214 77%
S&S (Saurabh & Sairam) 241 86%

Algorithm 1 is the fastest, while Algorithm 2 provides near-perfect accuracy with a runtime still comparable to or better than traditional "fixed-time" methods.

Discussion and Insights

  • The "Earliest Feasible Time" is Sufficient: The most striking insight is that Algorithm 1—which returns the graph at the very first moment a valid path is formed—guarantees a high success probability ($1 - o(1)$) as the network size grows.
  • Arrival Order Complexity: There is a common assumption that edges closer to the victim are discovered significantly earlier than those far away. The authors show that while this trend exists, "disruptions" (out-of-order arrivals) are much more frequent than previously thought.
  • Practicality of Dynamic Stopping: Traditional algorithms require knowing the distance to the attacker ($n$) to set a stopping time. The proposed algorithms do not need $n$ as an input, making them much more practical for real-world scenarios where the attacker's distance is unknown.

Limitations and Future Work

While promising, the current research focuses primarily on a single attacker (a path graph). While the algorithms can be adapted for tree-type graphs (multiple attackers), the mathematical proofs for those scenarios are more complex. Additionally, the models assume stable routing; in highly volatile networks where routing tables update frequently, the reconstruction might fail. Future directions include exploring scenarios where multiple attackers share specific edges, creating "noise" that complicates the reconstruction of individual attack paths.

Summary updated

BibTeX
@misc{zimerman2023algorithms,
  author = {Itamar Zimerman and Dina Barak-Pelleg and Daniel Berend and Thomas J. Robinson and Itamar Zimmerman},
  title = {{Algorithms for Reconstructing DDoS Attack Graphs using Probabilistic Packet Marking}},
  year = {2023},
  eprint = {2304.05123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05123},
}
Figure