,
Alceste Scalas
,
Guy Amir
,
Jules Jacobs
,
Jana Wagemaker
,
Nate Foster
Creative Commons Attribution 4.0 International license
This paper introduces NEST (Network Enforced Session Types), a runtime verification framework that moves application-level protocol monitoring into the network fabric. Unlike prior work that instruments or wraps application code, we synthesise packet-level monitors that enforce protocols directly in the data plane. We develop algorithms to generate network-level monitors from session types and extend them to handle packet loss and reordering. We implement NEST in P4 and evaluate it on applications including microservice and network-function models, showing that network-level monitors can enforce realistic non-trivial protocols.
@InProceedings{larsen_et_al:LIPIcs.ECOOP.2026.17,
author = {Larsen, Jens Kanstrup and Scalas, Alceste and Amir, Guy and Jacobs, Jules and Wagemaker, Jana and Foster, Nate},
title = {{NEST: Network Enforced Session Types}},
booktitle = {40th European Conference on Object-Oriented Programming (ECOOP 2026)},
pages = {17:1--17:31},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-423-9},
ISSN = {1868-8969},
year = {2026},
volume = {372},
editor = {Krebbers, Robbert and Silva, Alexandra},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ECOOP.2026.17},
URN = {urn:nbn:de:0030-drops-261137},
doi = {10.4230/LIPIcs.ECOOP.2026.17},
annote = {Keywords: Session types, runtime verification, P4, programmable data planes}
}