Pith. sign in

REVIEW 2 cited by

P4K: A Formal Semantics of P4 and Applications

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 1804.01468 v1 pith:7WJGPN2Z submitted 2018-04-04 cs.NI cs.PL

classification cs.NIcs.PL
keywords formallanguagesemanticstoolsanalysisapplicationsnetworksbugs
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Programmable packet processors and P4 as a programming language for such devices have gained significant interest, because their flexibility enables rapid development of a diverse set of applications that work at line rate. However, this flexibility, combined with the complexity of devices and networks, increases the chance of introducing subtle bugs that are hard to discover manually. Worse, this is a domain where bugs can have catastrophic consequences, yet formal analysis tools for P4 programs / networks are missing. We argue that formal analysis tools must be based on a formal semantics of the target language, rather than on its informal specification. To this end, we provide an executable formal semantics of the P4 language in the K framework. Based on this semantics, K provides an interpreter and various analysis tools including a symbolic model checker and a deductive program verifier for P4. This paper overviews our formal K semantics of P4, as well as several P4 language design issues that we found during our formalization process. We also discuss some applications resulting from the tools provided by K for P4 programmers and network administrators as well as language designers and compiler developers, such as detection of unportable code, state space exploration of P4 programs and of networks, bug finding using symbolic execution, data plane verification, program verification, and translation validation.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification

    cs.PL 2026-08 conditional novelty 6.0 of 10

    P4-SpecTec mechanizes P4 v1.2.5 with executable algorithmic inference rules and derives a type checker, interpreter, and prose spec from one source, finding 24 ecosystem bugs.

  2. Octopus: Practical Equivalence Checking of P4 Packet Parsers

    cs.LO 2026-08 conditional novelty 5.0 of 10

    Octopus checks equivalence of P4 packet parsers via forward symbolic bisimulation, outperforming Leapfrog by orders of magnitude.

Pith tools