一种用于可重构匹配动作表交换机的开源P416配置器后端
An Open-Source P416 Compiler Backend for Reconfigurable Match-Action Table Switches
摘要:
P4语言已成为基于可重构匹配动作表的可编程开关编程的主要选择。V1Model体系结构是该范例最广泛可用的实现。由P4联盟开发的开源编译器前端可以执行语法分析,并导出使用最新版本的P4(也称为P416)编写的程序的独立于硬件的表示。需要一个编译器后端来将这个中间表示映射到V1Model交换机的硬件资源。然而,没有开源编译器后端可用于检查P416程序在V1Model交换机上的可实现性。不同硬件供应商提供的专有工具可用于此目的。但是,它们是封闭源代码的,不提供对内部映射机制的访问。这抑制了新的映射算法和创新的指令集的可重构匹配动作表架构的实验。此外,专有的编译器后端成本高昂,并且附带各种保密协议。这些因素对可编程开关相关的研究提出了严峻的挑战。在这项工作中,我们提出了一个开源的P416编译器后端的V1Model架构为基础的可编程开关。它使用基于逻辑的映射算法将P416程序映射到V1模型交换机的硬件资源上。它允许开发人员快速原型化不同的映射算法。同时给出了P416程序的各种资源使用情况统计,便于对多种P416方案进行比较。
英文摘要:
The P4 language has become the dominant choice for programming the reconfigurable match-action table based programmable switches. V1Model architecture is the most widely available realization of this paradigm. The open-source compiler frontend developed by the P4 consortium can execute syntax analysis and derive a hardware-independent representation of a program written using the latest version of P4 (also known as P416 ). A compiler backend is required to map this intermediate representation to the hardware resources of a V1Model switch. However, there is no open-source compiler backend available to check the realizability of a P416 program over a V1Model switch. Proprietary tools provided by different hardware vendors are available for this purpose. However, they are closed source and do not provide access to the internal mapping mechanisms. Which inhibits experimenting with new mapping algorithms and innovative instruction sets for reconfigurable match-action table architecture. Moreover, the proprietary compiler backends are costly and come with various non-disclosure agreements. These factors pose serious challenges to programmable switch-related research. In this work, we present an open-source P416 compiler backend for the V1Model architecture-based programmable switches. It uses heuristic-based mapping algorithms to map a P416 program over the hardware resources of a V1Model switch. It allows developers to rapidly prototype different mapping algorithms. It also gives various resource usage statistics of a P416 program, enabling comparison among multiple P416 schemes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。