本文研究现代 SmartNIC 流卸载技术在网络探针中的应用,发现其相比纯 CPU 方案在转发应用上优势显著,但主机内存中大型流表的限制仍待解决。
摘要:
数据流量的指数级增长和网络化应用日益增加的复杂性,要求能够被动检查和分析网络流量以用于监控和安全目的的有效解决方案。借助数据包捕获技术(如内核旁路框架)的进步,以及旨在多核处理器中分配网络工作负载的多队列适配器,使用通用操作系统在软件中实现网络探针已成为可能。此外,现代 SmartNIC 引入了有状态机制,以将操作关联到网络流,例如转发数据包或更新单个流的流量统计信息。在本文中,我们描述了在现代网络探针中利用这些功能的经验,并研究了不同场景下的性能特征。与纯基于 CPU 的解决方案相比,具有流卸载技术的 SmartNIC 在实现转发应用时提供了显著优势。然而,对于现实的监控和安全应用,必须将大型流表保留在主机内存中的主要限制在很大程度上仍未解决。
英文摘要:
The exponential growth of data traffic and the increasing complexity of networked applications demand effective solutions capable of passively inspecting and analysing the network traffic for monitoring and security purposes. Implementing network probes in software using general-purpose operating systems has been made possible by advances in packet-capture technologies, such as kernel-bypass frameworks, and by multi-queue adapters designed to distribute the network workload in multi-core processors. Modern SmartNICs, in addition, have introduced stateful mechanisms to associate actions to network flows such as forwarding packets or updating traffic statistics for an individual flow. In this paper, we describe our experience in exploiting those functionalities in a modern network probe and we perform a detailed study of the performance characteristics under different scenarios. Compared to pure CPU-based solutions, SmartNICs with flow-offload technologies provide substantial benefits when implementing forwarding applications. However, the main limitation of having to keep large flow tables in the host memory remains largely unsolved for realistic monitoring and security applications.
Distributed Collaborative Inference System in Next-Generation Networks and Communication
School of Cyberspace Science and Technology, Beijing Institute of Technology(北京理工大学网络空间科学与技术学院);School of Electronic and Information Engineering, Beijing Jiaotong University(北京交通大学电子信息工程学院)