A Language-theoretic View on Network Protocols

Pierre Ganty, Boris Köpf, Pedro Valero
10/23/2016
3 citations
cs.FLcs.PL

Official code: pevalme/HTTPValidator (15 stars, Lex, GPL-3.0, last commit 2017-04-27).

Abstract

Input validation is the first line of defense against malformed or malicious inputs. It is therefore critical that the validator (which is often part of the parser) is free of bugs.

Show full abstract

To build dependable input validators, we propose using parser generators for context-free languages. In the context of network protocols, various works have pointed at context-free languages as falling short to specify precisely or concisely common idioms found in protocols. We review those assessments and perform a rigorous, language-theoretic analysis of several common protocol idioms. We then demonstrate the practical value of our findings by developing a modular, robust, and efficient input validator for HTTP relying on context-free grammars and regular expressions.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

An Input Validator for HTTP based on Context-free Languages

150Lex, M4Oct 21, 20169 years agoGPL-3.0
bisoncontext-freeflexhttpparse+2 more

Similar Papers

Cite this paper

@article{ganty2016languagetheoretic,
  title  = {A Language-theoretic View on Network Protocols},
  author = {Pierre Ganty and Boris Köpf and Pedro Valero},
  year   = {2016},
  eprint = {1610.07198},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1610.07198}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1610.07198.svg)](https://codeofpaper.com/paper/1610.07198)

Discussion