arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.01494cs.NI
收藏

NFork:可扩展网络功能的高效开发

Productive Development of Scalable Network Functions with NFork

Lei Yan, Yueyang Pan, Diyu Zhou, Sanidhya Kashyap, George Candea

AI总结:

NFork通过抽象并发性,使开发者以顺序程序编写网络功能,利用事务内存和高效并发数据结构实现透明并行化,并提供剖析器和优化方案,达到与Cisco VPP相当的扩展性。

摘要:

尽管经过数十年的研究,开发正确且可扩展的并发程序仍然具有挑战性。网络功能(NFs)也不例外。本文提出了NFork,一个通过将并发性从开发者中抽象出来,帮助NF领域专家高效开发并发NF的系统。NFork设计的关键方案是利用NF的特性来克服先前并发编程工作的局限性。开发者将NF编写为顺序程序,在运行时,NFork通过在不同核心上处理数据包来执行透明的并行化。利用NF的特性,NFork采用事务内存并开发高效的并发数据结构,以实现可扩展性并保证无并发错误。由于NFork管理并发性,它还进一步提供了(i)一个剖析器,揭示NF语义固有的可扩展性瓶颈的根本原因,以及(ii)可操作的方案,供开发者通过放宽NF语义来缓解这些根本原因。我们展示了使用NFork开发的NF在可扩展性方面与Cisco VPP [16]中的NF具有竞争力,并且NFork的剖析器和方案能有效帮助开发者优化NF的可扩展性。

英文摘要:

Despite decades of research, developing correct and scalable concurrent programs is still challenging. Network functions (NFs) are not an exception. This paper presents NFork, a system that helps NF domain experts to productively develop concurrent NFs by abstracting away concurrency from developers. The key scheme behind NFork's design is to exploit NF characteristics to overcome the limitations of prior work on concurrency programming. Developers write NFs as sequential programs, and during runtime, NFork performs transparent parallelization by processing packets in different cores. Exploiting NF characteristics, NFork leverages transactional memory and develops efficient concurrent data structures to achieve scalability and guarantee the absence of concurrency bugs. Since NFork manages concurrency, it further provides (i) a profiler that reveals the root causes of scalability bottlenecks inherent to the NF's semantics and (ii) actionable recipes for developers to mitigate these root causes by relaxing the NF's semantics. We show that NFs developed with NFork achieve competitive scalability with those in Cisco VPP [16], and NFork's profiler and recipes can effectively aid developers in optimizing NF scalability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑