HOL4P4: Mechanized Small-Step Semantics for P4

Author:

Alshnakat Anoud1ORCID,Lundberg Didrik2ORCID,Guanciale Roberto1ORCID,Dam Mads1ORCID

Affiliation:

1. KTH Royal Institute of Technology, Stockholm, Sweden

2. KTH Royal Institute of Technology, Stockholm, Sweden / Saab, Järfälla, Sweden

Abstract

We present the first semantics of the network data plane programming language P4 able to adequately capture all key features of P4 16 , the most recent version of P4, including external functions (externs) and concurrency. These features are intimately related since, in P4, extern invocations are the only points at which one execution thread can affect another. Reflecting P4’s lack of a general-purpose memory and the presence of multithreading the semantics is given in small-step style and eschews the use of a heap. In addition to the P4 language itself, we provide an architectural level semantics, which allows the composition of P4-programmed blocks, models end-to-end packet processing, and can take into account features such as arbitration and packet recirculation. A corresponding type system is provided with attendant progress, preservation, and type-soundness theorems. Semantics, type system, and meta-theory are formalized in the HOL4 theorem prover. From this formalization, we derive a HOL4 executable semantics that supports verified execution of programs with partially symbolic packets able to validate simple end-to-end program properties.

Publisher

Association for Computing Machinery (ACM)

Reference29 articles.

1. Anoud Alshnakat Didrik Lundberg Roberto Guanciale Mads Dam Karl Palmskog and Arve Gengelbach. 2024. HOL4P4. https://doi.org/10.5281/zenodo.10796440 10.5281/zenodo.10796440

2. Anoud Alshnakat Didrik Lundberg Roberto Guanciale Mads Dam Karl Palmskog and Arve Gengelbach. 2024. HOL4P4. https://github.com/kth-step/HOL4P4/releases/tag/OOPSLA2024

3. P4

4. The P4 Language Consortium. 2023. P4subscript 16 Language Specification. https://p4.org/p4-spec/docs/P4-16-v1.2.4.html

5. Towards the formalization of SPARK 2014 semantics with explicit run-time checks using coq

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3