RFCLLM: Evaluating LLMs’ Reasoning Ability of Network Protocol State Machines

Anqi Chen, Dan Goldwasser, Cristina Nita-Rotaru


Abstract
Mapping textual specifications into formal representations is essential for ensuring the correctness of protocol designs and implementations. LLM-generated mappings, used for networking security or testing, are assumed to capture a perfect understanding of the specification, which may not hold in practice. The goal of this paper is to assess the extent to which LLMs can interpret the specification correctly. We examine the degree to which an LLM’s implicit representation of a finite-state transition system–defined via natural language descriptions–aligns with a manually generated ground-truth model.

We designed 4 tasks and 1482 task queries for 16 protocols. We evaluated different judge biases, observed the inherent difficulty gaps between tasks, looked into the effect of 4 context types, and the influence of protocol characteristics. Our work contributes to a step toward verifying whether LLMs can really be trusted in FSM (Finite State Machine) reasoning of protocol specifications.
Anthology ID:
2026.findings-emnlp.2161
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
46227–46246
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.2161/
DOI:
10.18653/2026.findings-emnlp.2161
Bibkey:
Cite (ACL):
Anqi Chen, Dan Goldwasser, and Cristina Nita-Rotaru. 2026. RFCLLM: Evaluating LLMs’ Reasoning Ability of Network Protocol State Machines. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 46227–46246, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
RFCLLM: Evaluating LLMs’ Reasoning Ability of Network Protocol State Machines (Chen et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.2161.pdf