Poseidon: Mitigating Volumetric DDoS Attacks with Programmable Switches

Menghao Zhang, Guanyu Li, Shicheng Wang, Chang Liu, Ang Chen, Hongxin Hu, Guofei Gu, Qi Li, Mingwei Xu, Jianping WuNDSS 2020

Abstract

As Distributed Denial-of-Service (DDoS) attacks enter the "terabit era," traditional defense mechanisms struggle to balance performance with flexibility. Poseidon is a high-performance, agile DDoS defense system that leverages programmable switches to mitigate volumetric attacks at line rate. By combining a modular policy language with an intelligent resource orchestrator, Poseidon offers the speed of specialized hardware at the cost and flexibility of software-based solutions. This paper details the architecture of Poseidon and demonstrates its ability to handle dynamic attacks with minimal latency and high cost-efficiency.

Introduction

The rise of massive botnets composed of insecure IoT devices has pushed DDoS attacks into the terabit scale. Network operators currently face a difficult choice between two suboptimal defense strategies: proprietary hardware middleboxes and software-based Network Function Virtualization (NFV). Hardware appliances offer line-rate processing but are expensive and inflexible, often requiring physical upgrades to counter new attack vectors. Conversely, software-based defenses are flexible but suffer from significant latency, jitter, and high operational costs when processing Tbps-scale traffic.

Poseidon addresses this deadlock by utilizing programmable switches. These devices allow developers to define custom packet-processing logic in hardware, achieving the throughput of specialized ASICs with the agility of software.

System Architecture

The Poseidon architecture is built upon three primary pillars designed to simplify defense deployment and ensure system resilience:

  1. Modular Policy Language: To avoid the complexities of low-level P4 programming, Poseidon provides a high-level language based on NetCore. Operators define Monitors to collect statistics via memory-efficient "sketches" (specifically Count-Min Sketches) and Actions such as drop, rate-limit, or sproxy (TCP SYN proxying).
  2. Hybrid Resource Orchestration: Recognizing that not all defense logic can fit within the constrained memory of a switch, Poseidon employs an Integer Linear Programming (ILP) solver. This solver automatically partitions defense primitives, keeping high-volume tasks like SYN filtering on the switch while offloading complex tasks, such as solving cryptographic puzzles, to a server tier.
  3. Runtime Management & State Replication: A critical challenge in switch reconfiguration is the potential loss of connection state. Poseidon implements a custom state replication protocol that synchronizes connection information between the switch and servers. This ensures "hitless" transitions, allowing the system to reconfigure in response to changing attack patterns without dropping legitimate connections.
Poseidon System Architecture showing the separation between the control plane and infrastructure.

Evaluation and Key Results

Poseidon was evaluated using a testbed featuring a Barefoot Tofino programmable switch (3.3 Tbps capacity) and a cluster of Dell R730 servers. The system was tested against real-world traces from Tier-1 ISPs and synthetic attacks including DNS amplification and HTTP floods.

Performance and Efficiency

Poseidon demonstrates significant improvements over existing solutions across several metrics:

  • Latency: Packet processing latency is reduced by two orders of magnitude compared to traditional NFV systems, moving from tens of microseconds to hundreds of nanoseconds.
  • Throughput: While the evaluation testbed was limited by traffic generators, the underlying hardware is capable of processing traffic at a 3.3 Tbps line rate.
  • Cost-Effectiveness: As shown in the comparison below, a single programmable switch can replace hundreds of servers at a fraction of the cost of proprietary hardware.
Comparison of Poseidon's programmable switch hardware against traditional appliances and commodity servers.

Expressiveness

The system significantly reduces the burden on security teams. Complex defenses that typically require approximately 1,000 lines of C++ or P4 code can be expressed in just 6–9 lines of Poseidon policy.

Discussion and Future Work

While Poseidon provides a robust defense against volumetric attacks, it is not without limitations. It currently requires human intervention or external detection systems to identify new attack patterns and generate policies. Furthermore, the physical resource limits of programmable switches (SRAM and processing stages) mean that an excessive number of simultaneous complex defenses will eventually force more traffic to the slower server-based scrubbing tier. Future work may involve integrating automated anti-spoofing mechanisms and exploring autonomous attack pattern discovery.

Conclusion

Poseidon represents a significant step forward in DDoS defense, proving that programmable hardware can deliver the performance required for the terabit era without sacrificing the flexibility needed to adapt to an evolving threat landscape. By lowering the cost of defense to approximately $3/Gbps, Poseidon makes high-capacity mitigation accessible to a wider range of network operators.

Summary updated

BibTeX
@inproceedings{zhang2020poseidon,
  author = {Menghao Zhang and Guanyu Li and Shicheng Wang and Chang Liu and Ang Chen and Hongxin Hu and Guofei Gu and Qi Li and Mingwei Xu and Jianping Wu},
  title = {{Poseidon: Mitigating Volumetric DDoS Attacks with Programmable Switches}},
  booktitle = {NDSS},
  year = {2020},
}
Figure