状态-计算复制:并行化高速有状态数据包处理
State-Compute Replication: Parallelizing High-Speed Stateful Packet Processing
AI总结:
针对多核有状态数据包处理受限于状态分片与单核性能的问题,提出状态-计算复制,借助NIC或架顶交换机序列器实现无同步并行更新,并在真实轨迹上验证线性扩展。
摘要:
随着摩尔定律放缓,面向CPU的软件数据包处理将被网络接口卡(NIC)不断涌现的线路速率显著超越。单核数据包处理吞吐量已经饱和。我们研究使用多个CPU核心进行高速数据包处理的问题。关键挑战在于状态——多个数据包必须读取和更新的内存。利用多核扩展吞吐量的主流方法涉及状态分片,即在同一核心上处理更新相同状态(即流)的所有数据包。然而,鉴于真实流大小分布的重尾特性,该方法在不久的将来将难以为继,因为总吞吐量会受到单核性能的严重限制。本文提出状态-计算复制,这是一种利用复制在多个核心上扩展单个有状态流吞吐量的原则。我们的设计借助运行在NIC或架顶交换机上的数据包历史序列器,使多个核心无需显式同步即可更新状态。我们使用真实数据中心和广域互联网轨迹开展的实验表明,在一系列真实的数据包处理程序中,状态-计算复制能够使总数据包处理吞吐量随核心数线性扩展,具有确定性,并且独立于流大小分布。
英文摘要:
With the slowdown of Moore's law, CPU-oriented packet processing in software will be significantly outpaced by emerging line speeds of network interface cards (NICs). Single-core packet-processing throughput has saturated. We consider the problem of high-speed packet processing with multiple CPU cores. The key challenge is state--memory that multiple packets must read and update. The prevailing method to scale throughput with multiple cores involves state sharding, processing all packets that update the same state, i.e., flow, at the same core. However, given the heavy-tailed nature of realistic flow size distributions, this method will be untenable in the near future, since total throughput is severely limited by single core performance. This paper introduces state-compute replication, a principle to scale the throughput of a single stateful flow across multiple cores using replication. Our design leverages a packet history sequencer running on a NIC or top-of-the-rack switch to enable multiple cores to update state without explicit synchronization. Our experiments with realistic data center and wide-area Internet traces shows that state-compute replication can scale total packet-processing throughput linearly with cores, deterministically and independent of flow size distributions, across a range of realistic packet-processing programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。