Visual RFC.
ALL RFCs / RFC 5234
Read the RFC ↗
RFC 5234 / READING ABNF

Expand a named rule

01

A rule names a pattern; following its parts tells you which complete strings fit.

RFC 5234 · § 2EXAMPLE
4 / 4
Expand a named ruleA rule names a pattern; following its parts tells you which complete strings fit. ID:4 fails the complete example because the second required digit is absent.Expand a rule into a complete valuelabel = "id" ":" 2DIGITID:4?Input: ID:4Stop: no matchNO MATCHRFC5234 · chapter 1 · state 4 · ASCII examples
04
Stop at a missing digit

ID:4 fails the complete example because the second required digit is absent.

Source for this drawing: RFC 5234 · Read RFC section 2 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

Rule names begin with A–Z or a–z; later characters can also be digits or hyphens. Rule-name case does not distinguish rules.

  • Rule names begin with A–Z or a–z; later characters can also be digits or hyphens. Rule-name case does not distinguish rules.
  • The equals sign defines a rule. A rule line ends in CRLF; continuation lines are indented.
  • In this invented ASCII example, label = "id" ":" 2DIGIT needs exactly two digits. Quotes and rule-formatting spaces are not sent as data.
DETAILS

Examples are invented ASCII strings, not a complete application protocol. Matching syntax does not establish application meaning or authorization. Core rules are in RFC5234 Appendix B.1; external encodings are separate (§2.4).

Read the RFC section ↗

All chapters in RFC 5234

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗