Speed Records in Network Flow Measurement on FPGA
2021, 2021 31st International Conference on Field-Programmable Logic and Applications (FPL)
https://doi.org/10.1109/FPL53798.2021.00043Abstract
Network traffic measurement keeps track of the amount of traffic sent by each flow in the network. It is a core functionality in applications such as traffic engineering and network intrusion detection. In high-speed networks, it is impossible to keep an exact count of the flow traffic, due to limitations with respect to memory and computational speed. Therefore, probabilistic data structures, such as sketches, are used. This paper proposes Approximate Count-Min sketch or A-CM sketch, a novel variant of the Count-Min sketch algorithm that uses less memory and has a higher throughput compared to other FPGA-based sketch implementations. A-CM sketch relies on optimizations at two levels: (1) it uses approximate counters and the newly proposed Hardware-oriented Simple Active Counter algorithm to efficiently implement these counters; (2) it uses a distribution of the embedded memory, optimized towards maximum operating frequency. To the best of our knowledge, A-CM sketch outperforms all other FPGA-based sketch implementations.
References (31)
- Sriram Ramabhadran and George Varghese. Efficient implementation of a statistics counter architecture. In in Proc. ACM SIGMETRICS, 2003.
- Q. Zhao, J. Xu, and Z. Liu. Design of a novel statistics counter architecture with optimal space and time efficiency. In Proc. of ACM SIGMETRICS '06, France, 2006.
- CISCO. CISCO IOS NetFlow Version 9. http://www.cisco.com/c/en/us/ products/ios-nx-os-software/netflow-version-9/index.html, 2015.
- sFlow. Traffic Monitoring using sFlow. http://www.sflow.org/ sFlowOverview.pdf, 2003.
- C. Hu, S. Wang, J. Tian, B. Liu, Y. Cheng, and Y. Chen. Accurate and efficient traffic monitoring using adaptive non-linear sampling method. In IEEE INFOCOM, pages 26-30, 2008.
- M. Charikar, K. Chen, and M. Farach-Colton. Finding frequent items in data streams. In Automata, Languages and Programming, pages 693- 703. Springer Berlin Heidelberg, 2002.
- G. Cormode and S. Muthukrishnan. An improved data stream summary: the count-min sketch and its applications. J. Algorithms, 55(1):58-75, 2005.
- C. Hu, B. Liu, H. Zhao, K. Chen, Y. Chen, C. Wu, and Y. Cheng. Disco: Memory efficient and accurate flow statistics for network measurement. In 2010 IEEE 30th International Conference on Distributed Computing Systems, pages 665-674, 2010.
- Z. Liu, A. Manousis, G. Vorsanger, V. Sekar, and V. Braverman. One sketch to rule them all: Rethinking network flow monitoring with Univ- Mon. Proc. ACM Special Interest Group Data Commun. (SIGCOMM), pages 101-114, 2016.
- Q. Huang et al. SketchVisor: Robust network measurement for software packet processing. Proc. ACM Special Interest Group Data Commun. (SIGCOMM), pages 113-126, 2017.
- T. Yang et al. Elastic sketch: Adaptive and fast network-wide measure- ments. Proc. ACM Special Interest Group Data Commun. (SIGCOMM), pages 561-575, 2018.
- Z. Liu et al. Nitrosketch: Robust and general sketch-based monitoring in software switches. Proc. ACM SIGCOMM, pages 334-350, 2019.
- Simon Scherrer, Che-Yu Wu, Yu-Hsi Chiang, Benjamin Rothenberger, Daniele E Asoni, Arish Sateesan, Jo Vliegen, Nele Mentens, Hsu-Chun Hsiao, and Adrian Perrig. Low-rate overuse flow tracer (loft): An effi- cient and scalable algorithm for detecting overuse flows. In Proceedings of the 40th International Symposium on Reliable Distributed Systems (SRDS) (to appear), 2021.
- Y. Li, R. Miao, C. Kim, and M. Yu. FlowRadar: A Better NetFlow for Data Centers. In 13th USENIX Symposium on Networked Systems Design and Implementation, pages 311-324, 2016.
- M. Zadnik, M. Canini, A. W. Moore, D. J. Miller, and W. Li. Tracking elephant flows in internet backbone traffic with an FPGA-based cache. In FPL, pages 640-644, 2009.
- Z. Martinasek, J. Hajny, D. Smekal, L. Malina, D. Matousek, M. Kekely, and N. Mentens. 200 Gbps hardware accelerated encryption system for FPGA network cards. In ASHES, page 11-17. ACM, 2018.
- Netcope. NFB-200G2QL FPGA-based Hardware . www.netcope. com/getattachment/bb2b8efa-9925-438d-b895-897d7c1e4745/ NFB-200G2QL-product-brief.aspx.
- R. Stanojevic. Small active counters. In IEEE INFOCOM, pages 2153- 2161, 2007.
- Robert Morris. Counting large numbers of events in small registers. Commun. ACM, pages 840-842, 1978.
- P. Flajolet and G. Nigel Martin. Probabilistic counting algorithms for data base applications. Journal of Computer and System Sciences, 31(2):182-209, 1985.
- G. Einziger, B. Fellman, and Y. Kassner. Independent counter estimation buckets. In IEEE INFOCOM, pages 2560-2568, 2015.
- Y. Li, H. Wu, T. Pan, H. Dai, J. Lu, and B. Liu. CASE: Cache-assisted stretchable estimator for high speed per-flow measurement. In IEEE INFOCOM, pages 1-9, 2016.
- T. Yang, J. Xu, X. Liu, P. Liu, L. Wang, J. Bi, and X. Li. A generic technique for sketches to adapt to different counting ranges. In IEEE INFOCOM, pages 2017-2025, 2019.
- R.B. Basat, G. Einziger, M. Mitzenmacher, and S. Vargaftik. Faster and more accurate measurement through additive-error counters. In arXiv:2004.10332 [cs.DS], 2020.
- D. Tong and V. K. Prasanna. Sketch acceleration on fpga and its applications in network anomaly detection. IEEE Transactions on Parallel and Distributed Systems, 29(4):929-942, 2018.
- Y.-K. Lai, N.-C. Wang, T.-Y. Chou, C.-C. Lee, T. Wellem, and H. T. Nugroho. Implementing on-line sketch-based change detection on a NetFPGA platform. In 1st Asia NetFPGA Developers Workshop, 2010.
- T. Wellem, Y. Lai, C. Huang, and W. Chung. A hardware-accelerated infrastructure for flexible sketch-based network traffic monitoring. In IEEE HPSR, pages 162-167, 2016.
- A. Saavedra, C. Hernández, and M. Figueroa. Heavy-hitter detection using a hardware sketch with the Countmin-CU algorithm. In Euromicro DSD, pages 38-45, 2018.
- Martin Kiefer, Ilias Poulakis, Sebastian Breß, and Volker Markl. Scotch: Generating fpga-accelerators for sketching at line rate. Proceedings of the VLDB Endowment, 14(3):281-293, 2020.
- G. Einziger, B. Fellman, and Y. Kassner. Independent counter estimation buckets. In IEEE INFOCOM, pages 2560-2568, 2015.
- Arish Sateesan, Jo Vliegen, Joan Daemen, and Nele Mentens. Novel bloom filter algorithms and architectures for ultra-high-speed network security applications. In 2020 23rd Euromicro Conference on Digital System Design (DSD), pages 262-269. IEEE, 2020.