REAL

Program Patterns in P4 Programs

Laczkó, Zsófia and Tejfel, Máté (2026) Program Patterns in P4 Programs. In: Proceedings of the 13th International Conference on Applied Informatics. Líceum Kiadó, Eger, pp. 169-181. ISBN 9789634963271

[img]
Preview
Text
ICAI2026-pp169-181.pdf - Published Version

Download (727kB) | Preview

Abstract

Programming Protocol-independent Packet Processors (P4) [2] is an open-source domain-specific programming language, which is primarily developed to describe algorithms that determine the forwarding of network data packets. In this research we defined and analysed positive (recommended) and negative (to be avoided) programming patterns in P4 codes. The defined templates were examined by static methodology. We have implemented an analyser program for the investigation of the patterns, integrated in P4Query [7], which is a static analyser tool for P4. Our analyser is able to recognise certain positive or negative templates, as well as provide feedback to developers about patterns found in their code. During the research the analyses that are already in the P4Query tool were utilized, and a new module was created built on them. Primarily, the syntax tree and the control flow graph built from the source code was used. The goal of the paper is to reduce the number of errors in P4 codes and to demonstrate which recurring solutions support or hinder the correct and effective processing of data packets.

Item Type: Book Section
Subjects: Q Science / természettudomány > QA Mathematics / matematika > QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány
SWORD Depositor: MTMT SWORD
Depositing User: MTMT SWORD
Date Deposited: 25 Sep 2026 12:27
Last Modified: 25 Sep 2026 12:27
URI: https://real.mtak.hu/id/eprint/247698

Actions (login required)

View Item View Item