Skip to main content

SYN Flood Attack Detection and Defense Method Based on Extended Berkeley Packet Filter

  • Conference paper
  • First Online:
Advances in Natural Computation, Fuzzy Systems and Knowledge Discovery (ICNC-FSKD 2021)

Abstract

Distributed denial of service (DDoS) attacks have always been one of the most important issues in network security, and SYN Flood attacks are currently the most popular and commonly used attack methods for denial of service (DoS) and distributed denial of service DDoS. This paper proposes a system framework based on extended Berkeley Packet Filter (eBPF) and eXpress Data Path (XDP) to realize automatic detection and defense against Synchronize Sequence Numbers (SYN) Flood attacks. By analyzing the principle of SYN Flood attack, using eBPF to track and monitor the attack process of SYN Flood attack in the Linux kernel network protocol stack, extract the number of SYN request connections per unit time corresponding to the IP address and the number of server retransmission SYN request connections Indicator data. The indicator data corresponding to each IP address is sent to the detection algorithm for analysis and source tracing, and the abnormal connection IP address is found. Finally, XDP is used to defend against abnormal connection IP addresses. The experimental results show that the system framework can realize automatic detection and defense of SYN Flood attacks. SYN Flood attack characteristic data can be easily extracted using eBPF. The detection algorithm can accurately trace the source to abnormal IP addresses. XDP can accurately defend against abnormal IP addresses. At the same time, data packets are processed faster on the data receiving path, which greatly reduces the consumption of system resources and improves the efficiency of the system.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Wang, Y.X., Huang, H.X.: Overview of the development and defense of DDoS attacks. Mod. Comput. 02, 51–56 (2021)

    Google Scholar 

  2. Liu, Y., He, Y.: The SYN flood detection method based on statistical properties. Softw. Eng. 20(04), 4–8 (2017)

    Google Scholar 

  3. Li, Z.W., Wu, C.B., Xu, X.C.: Research on DDoS intrusion detection system based on linux high speed packet capturing platform. Comput. Sci. 41(04), 159–162 (2014)

    Google Scholar 

  4. Yu, B., Wang, X., Huang, T.M.: A scheme to prevent DDoS attacks based on eBPF and XDP. In: 2019 Internet Security and Governance Forum, 3 (2019)

    Google Scholar 

  5. Liu, Y.: Research of new SYN flood defense model based on linux. Comput. Sci. 40(S2), 210–213 (2013)

    Google Scholar 

  6. Liu, P.E., Sheng, Z.H.: Defending against tcp syn flooding with a new kind of syn-agent. In: 2008 International Conference on Machine Learning and Cybernetics, pp. 1218–1221 (2008)

    Google Scholar 

  7. Hussain, K., Hussain, S.J., Jhanjhi, N., et al.: SYN flood attack detection based on bayes estimator (SFADBE) for manet. In: International Conference on Computer and Information Sciences (ICCIS), 2019 ICCIS Conference, pp. 1–4. IEEE (2019)

    Google Scholar 

  8. Dimolianis, M., Pavlidis, A., Maglaris, V.: SYN flood attack detection and mitigation using machine learning traffic classification and programmable data plane filtering. In: Conference on Innovation in Clouds, Internet and Networks and Workshops (ICIN), 2021 24th ICIN Conference, pp. 126–133. IEEE (2021)

    Google Scholar 

  9. Nam, T., Kim, J.: Open-source IO visor eBPF-based packet tracing on multiple network interfaces of linux boxes. In: International Conference on Information and Communication Technology Convergence (ICTC), 2017 ICTC Conference, pp. 324–326. IEEE (2017)

    Google Scholar 

  10. Troia, S., Mazzara, M., Zorello, L.M.M., et al.: Resiliency in SD-WAN with eBPF monitoring: municipal network and video streaming use cases. In: International Conference on the Design of Reliable Communication Networks (DRCN), 2021 17th DRCN Conference, pp. 1–3. IEEE (2021)

    Google Scholar 

  11. Scholz, D., Raumer, D., Emmerich, P., et al.: Performance implications of packet filtering with linux eBPF. In: International Teletraffic Congress (ITC), 2018 30th ITC Conference, pp. 209–217. IEEE (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zhang, X., Chen, L., Bai, J. (2022). SYN Flood Attack Detection and Defense Method Based on Extended Berkeley Packet Filter. In: Xie, Q., Zhao, L., Li, K., Yadav, A., Wang, L. (eds) Advances in Natural Computation, Fuzzy Systems and Knowledge Discovery. ICNC-FSKD 2021. Lecture Notes on Data Engineering and Communications Technologies, vol 89. Springer, Cham. https://doi.org/10.1007/978-3-030-89698-0_145

Download citation

Publish with us

Policies and ethics