A Novel Approach to Simulate DDoS Attack

Qing Li, Lejun Chi, Zhaoxin ZhangInternational Journal of Wireless and Microwave Technologies 2011

Abstract: Due to the rapid spread of botnets, distributed denial of service attacks have become more and more frequent and fatal. In order to detect and defend DDoS attack, many researches have been done, such as using NS2 to simulate such attacks. However, the major bottlenecks in large-scale network simulation are the memory usage and simulation time. In this paper, we present a novel approach to simulate DDoS attack, called Analytical Packet Forwarding Model (APFM), which simplifies the procedure of packet forwarding based on computation. The experimental results show that our model ensures the authenticity of the overall simulation procedure and simulation results, compared to NS2. The most significant contribution of APFM is that it significantly reduced the memory usage and simulation time.

Introduction

Simulating large-scale Distributed Denial of Service (DDoS) attacks is a critical component of cybersecurity research. However, traditional event-driven tools like Network Simulator 2 (NS2) often encounter a "resource wall" when scaling to thousands of nodes. In NS2, every packet movement is treated as a discrete event that must be queued and processed, leading to astronomical computational overhead. For instance, simulating just 100 seconds of Internet activity could theoretically require over a year of CPU time and nearly 300 terabytes of RAM.

To address this, we introduce the Analytical Packet Forwarding Model (APFM). This model replaces complex event scheduling with direct mathematical calculations, significantly reducing memory usage and simulation time while maintaining high fidelity.

Methodology: The Analytical Packet Forwarding Model

The core innovation of APFM is the shift from simulation to computation. Instead of simulating the internal mechanics of a network link as separate discrete events, APFM treats packet forwarding as a series of mathematical functions.

Key components of the model include:

  • Direct Calculation: APFM uses equations to calculate exactly when a packet will reach the next node based on bandwidth ($B$) and communication delay ($D$), bypassing the need for a scheduler to trigger arrival events.
  • Mathematical Queue Modeling: A specific formula determines if a packet should be dropped based on the current length of the buffered queue at a node at time $t$.
  • Selective Awareness: APFM achieves massive memory savings by focusing resources only on nodes actually involved in the attack path, ignoring the rest of the network topology.
Flowchart of the APFM simulation logic, detailing the sequence from configuration to priority queue management.

The simulation process, as outlined in the flowchart above, begins by gathering attack configuration (source, destination, packet size). It then computes routing and generates attack packets, which are managed via a simplified priority queue scheduler. This streamlined logic allows the system to determine next hops and arrival times without the overhead of a full discrete-event engine.

Experimental Setup

To validate APFM, we generated four synthetic network topologies of varying sizes to stress-test the model against NS2:

  1. Small: 8,377 nodes, 150 attackers.
  2. Medium: 9,442 nodes, 200 attackers.
  3. Large: 9,603 nodes, 100 attackers.
  4. Very Large: 13,950 nodes, 200 attackers.

Key Results and Discussion

The experimental results demonstrate that APFM is a highly efficient and accurate alternative to traditional simulators.

Efficiency

APFM used 55.6% less memory on average than NS2. This efficiency stems from avoiding the creation of complex objects and classifiers for every link in the topology. Furthermore, simulation time was reduced by approximately 26.3% across the tested scenarios.

Accuracy and Fidelity

Despite the mathematical abstractions, the fidelity of the simulation remained high. The error rate in packet forwarding time was remarkably low, ranging between 2ms and 2.9ms.

Comparison of APFM and NS2 simulation results, showing nearly identical curves for forwarded and dropped packets over time.

As shown in the comparison graphs, the number of packets forwarded and dropped over time in APFM closely mirrors the results from NS2. This proves that treating the network as a system of equations rather than mechanical events does not sacrifice the reliability of the simulation results.

Conclusion

APFM provides a scalable solution for DDoS research by bypassing the bottlenecks of discrete-event simulation. While the current model focuses on UDP-based volumetric attacks and lacks background traffic, it establishes a robust framework for large-scale network analysis. Future work will involve incorporating legitimate background traffic to further enhance the realism of the simulation environment.

Summary updated

BibTeX
@article{li2011novel,
  author = {Qing Li and Lejun Chi and Zhaoxin Zhang},
  title = {{A Novel Approach to Simulate DDoS Attack}},
  journal = {International Journal of Wireless and Microwave Technologies},
  year = {2011},
  doi = {10.5815/ijwmt.2011.02.05},
}
Figure