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

P4sim:在ns-3中编程实现协议无关分组处理器

P4sim: Programming Protocol-independent Packet Processors in ns-3

Mingyu Ma, Giang T. Nguyen

AI总结:

针对现有仿真平台对P4网络高性能支持不足的问题,本文提出基于bmv2和NS4、与ns-3无缝集成的P4sim框架,改进队列建模等模块并扩展架构兼容性,经性能与用例验证可支撑可编程网络研究教学。

摘要:

可编程数据平面支持用户为网络设备设计数据平面算法,为网络定制化提供了高度灵活性。协议无关分组处理器编程(Programming Protocol-Independent Packet Processors, P4)已成为数据平面编程领域应用最广泛的抽象、编程语言与框架。然而,现有仿真平台缺乏对基于P4的网络的高性能支持。本文提出P4sim——一款基于bmv2与NS4构建、与ns-3无缝集成的高性能P4驱动仿真框架。该框架改进了队列建模、时间调度与P4架构支持,将兼容性扩展至V1model、PSA和PNA。P4sim可实现高效分组处理、精准时间追踪,以及支持P4的主机与交换机之间的无缝交互。我们从性能和队列管理两方面对P4sim进行了评估,并通过基础隧道(Basic Tunneling)和负载均衡(Load Balancing)两个常见用例验证了其功能。结果表明,P4sim是推动可编程网络研究与教学的有力工具。

英文摘要:

Programmable data planes enable users to design data plane algorithms for network devices, providing extensive flexibility for network customization. Programming Protocol-Independent Packet Processors (P4) has become the most widely adopted abstraction, programming language, and framework for data plane programming. However, existing simulation platforms lack high-performance support for P4-based networks. This paper introduces P4sim, a high-performance P4-driven simulation framework built on bmv2 and NS4, seamlessly integrated with ns-3. It improves queue modeling, time scheduling, and P4 architecture support, extending compatibility to V1model, PSA, and PNA. P4sim enables efficient packet processing, accurate time tracking, and seamless interaction between P4-enabled hosts and switches. We evaluate the P4sim in terms of performance and queue management and demonstrate its capabilities using two common use cases: Basic Tunneling and Load Balancing. The results highlight the P4sim as a powerful tool for advancing research and education in programmable networks.

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

↑