Ask an engineer to name the documents holding the Internet together and you will hear about IP, TCP, DNS, maybe HTTP. Nobody says RFC 5234. Yet every one of those specifications is written in it.
RFC 5234 is the grammar of the Internet’s grammars. Published in January 2008 as STD 68, it standardises ABNF — Augmented Backus-Naur Form — the notation in which protocols describe their own syntax. HTTP headers, SIP calls, SMTP envelopes, URIs, IMAP mailboxes, calendar files: all are specified in ABNF, and almost none of their users could name it.
Its genius is a refusal. ABNF tells you precisely which strings are legal, then declines — on purpose — to tell you how to recognise one. That silence looks like an omission. It is the design.
The short version
- RFC 5234 (January 2008, Standards Track, STD 68) standardises ABNF because “Internet technical specifications often need to define a formal syntax” and the modified BNF “has been popular among many Internet specifications”.
- Its stated aim is “compactness and simplicity with reasonable representational power”; the departures from standard BNF are “naming rules, repetition, alternatives, order-independence, and value ranges”.
- Two rules do most of the work: “Rule names are case insensitive”, so
foo,FooandFOOare one rule; and “In ABNF, a character is merely a non-negative integer”, so terminals are numbers with an explicit base. - The notation defines the set of valid strings and nothing else. Parsing, error recovery and ambiguity resolution belong to running code — which is exactly why ABNF has outlived every rival.
Before there was one notation
In August 1982, David H. Crocker published RFC 822, the document that gave email its shape. It carried a grammar — hand-rolled, idiosyncratic, and copied within a year. That was the problem. Every specification with a syntax section invented its own conventions, and readers reconstructed the rules from examples, warnings and the occasional apology.
Crocker and Paul Overell closed the gap in November 1997 with RFC 2234, which codified the notation itself. They revised it in October 2005 as RFC 4234, and again in January 2008 as RFC 5234. Eleven years, three documents, the same two editors — and the revisions were largely housekeeping. A design that survives a decade of maintenance without changing shape was right the first time.
The choices that saved keystrokes and arguments
ABNF’s stated aim is “compactness and simplicity with reasonable representational power”, and its departures from standard BNF are precisely the ones a protocol author needs: “naming rules, repetition, alternatives, order-independence, and value ranges”.
Two of those choices carry more weight than the rest. The first is case-insensitivity: “Rule names are case insensitive”, which deletes an entire genre of bug in which a definition and its hundred uses drift apart by a capital letter.
The second is the terminal. “In ABNF, a character is merely a non-negative integer.” Terminals are written as numbers with an explicit base — %x41, %d65, %b1000001 — so a rule can demand a byte without committing to a character set. Encoding belongs to the layer that names an encoding. It is a small piece of discipline that has spared the Internet a great deal of Unicode pain.
Grammar is not a parser
Here is the whole argument in one sentence: ABNF defines a set; a parser is an algorithm.
The notation tells you whether a string is in the language. It does not tell you where a field ends when the sender has been creative, what to do with a malformed tail, or which of two legal parses to prefer. Those are decisions, and every implementation makes them locally.
That gap is where interoperability actually lives. Two stacks can claim perfect conformance to the same grammar and still disagree about the same bytes — which is the entire plot of HTTP request smuggling, the class of bug where a proxy and an origin server read one message and find two different endings. The grammar was never the problem. The algorithm was never written down.
This is the running-code problem in its purest form. Lu Heng’s Note on Running-Code Primacy makes the general case: when a document and a deployed implementation disagree, the implementation is what the packets meet, and legitimacy should be tested against what runs rather than what was published.
Why the notation held
Standards notations usually die with the project that made them. ABNF did not, and the reason is not a standards body’s authority. It is the price of leaving.
ABNF is a page of rules you can implement in an afternoon, verify locally, and ignore entirely if you prefer. Nothing about it requires a membership fee, a conformance programme or a registry’s permission. It earned permanence by being cheap to abandon — the only kind of permanence that means anything.
Lu Heng makes the same argument about specifications in his Note on Minimum Initial Specification, Localized Future Decision and Voluntary Adoption: keep the common layer small enough to verify, leave later choices with the people running code, and let change become real only through implementation. “The common layer is not an institution,” he writes. “A proposal is not reality. A recommendation is not reality. A document is not reality.”
ABNF is that principle in miniature, and it passes the test he sets for any coordination layer: “A system that cannot be forked, locally verified, or selectively accepted without destroying valid operation has probably hidden governance power inside its recordkeeping function.” Nobody has ever hidden governance power inside a grammar. That is the highest compliment a notation can receive.
What a grammar cannot promise
A specification can be exact about shapes and silent about behaviour, and readers will assume the precision covers both. Every field that behaves differently in two implementations is a place where a grammar was read as a promise it never made.
The fix is not a better notation. RFC 7405, published in December 2014, added case-sensitive string literals — a small, additive patch after years of stability, not a rewrite. The notation had already said what it needed to say. What it could not say was how to behave.
So write the algorithm next to the grammar. Then write down what happens on a bad byte — the paragraph nobody writes and everybody debugs at three in the morning.
Because the grammar only says what a valid string looks like. The parser decides what your network actually accepts. And only one of them is awake at 3 a.m.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






