What Is an RFC and How Do You Read One?
Learn what Requests for Comments are, how to check a document's status and how to read one without starting at page one.
Key takeaways
- RFCs are numbered, freely readable documents, and their text doesn't change after publication.
- Newer RFCs can update or obsolete older ones, so always check the header and status information first.
- Only some RFCs are standards; others are informational, experimental, best practice or historic.
- Capitalized words such as MUST, SHOULD and MAY have defined meanings that tell implementers what is required.
An RFC, short for Request for Comments, is a numbered document in the series that records how much of the internet works: protocols, formats, procedures and advice. To read one well, check its status and whether it has been replaced, skim the introduction and terminology, then jump to the section that answers your question.
The name is misleading today. A published RFC isn't soliciting comments in the way a draft does. It is a permanent record, and some RFCs are the authoritative definition of technology you use every minute.
Where the series came from
The first RFC, written by Steve Crocker in April 1969, concerned host software for the young ARPANET. The graduate students and researchers designing the network wanted a way to share ideas without sounding as if they were issuing final decisions, so they chose a deliberately humble title. ARPANET: the experiment that became the internet gives the background.
The habit of writing things down openly continued as the research network became the internet. Today the series is published through the RFC Editor, and most standards-related documents come from the IETF, one of the organizations described in who sets internet standards.
How a document gets a number
Most IETF documents begin as Internet-Drafts. Drafts are revised, often many times, and expire if abandoned. Don't treat a draft as a standard, even if products refer to it. After review and approval, the RFC Editor prepares the text and assigns a number.
Not all RFCs follow this path. The series has several streams, including documents from the Internet Research Task Force, the Internet Architecture Board and independent authors. The stream is stated near the top, and it tells you how much community agreement stands behind the text.
Status: the first thing to check
| Status or category | What it means |
|---|---|
| Proposed Standard | A reviewed, stable specification on the standards track; widely deployed protocols often stay here |
| Internet Standard | The highest maturity level, reflecting significant implementation and use |
| Best Current Practice | Recommended operational or procedural guidance |
| Informational | Useful information; not a standard |
| Experimental | Something to try and learn from |
| Historic | Retired or superseded for practical purposes |
An older middle level, Draft Standard, was retired, though you may still see it on old documents. Some documents also carry a second identifier: STD numbers for Internet Standards and BCP numbers for best practices. These labels can point to a newer RFC over time.
The April 1 tradition is worth knowing. Some RFCs published on that date are jokes written in a perfectly serious style, such as RFC 1149 on carrying IP datagrams by pigeon.
Dissecting the header block
The top of an RFC carries compact metadata. Take the header of a typical document:
The header printed on the document reflects what was true when it was published. It can say what the document replaces, but it can't know what replaced it later. For that, use the information page for the RFC on the RFC Editor site or the IETF Datatracker, which show "Obsoleted by" and "Updated by" links.
This matters in practice. TCP was long defined by RFC 793, but the consolidated specification is now RFC 9293. HTTP and email standards have been rewritten more than once. Search results and old blog posts often point at the earlier versions.
The requirement words
Many specifications use key words defined in RFC 2119, clarified by RFC 8174: they carry the special meaning when written in capitals.
- MUST and MUST NOT: absolute requirements.
- SHOULD and SHOULD NOT: do this unless you have a good reason and understand the consequences.
- MAY: truly optional.
When two products fail to interoperate, these words often settle which behavior is allowed. Pay attention to SHOULD, because real implementations differ exactly there.
A reading strategy
Reading front to back is rarely the best approach. Try this order.
- Check status. Confirm it isn't obsolete and note which later documents update it.
- Read the abstract and introduction. They say what problem is solved and what is out of scope.
- Skim the table of contents. Build a map before you read details.
- Read terminology. Words like "client," "intermediary" or "origin" may have narrow meanings.
- Find the overview and examples. A sample exchange often explains more than pages of rules.
- Jump to your section and follow its cross-references.
- Read Security Considerations. It states risks the design does and doesn't address.
- Check IANA Considerations if you need the registered numbers or names, then consult the live registry for current entries.
- Look at errata. Reported mistakes and their review status are listed separately, since the original text stays untouched.
Notation you will meet
Packet diagrams are drawn in text, usually 32 bits to a row, with bit positions numbered across the top. Each box is a field, read left to right and top to bottom. Some newer documents use a simpler field-list notation instead.
ABNF, Augmented Backus-Naur Form, defines text formats precisely. It is itself specified in RFC 5234. For instance:
greeting = "HELLO" SP name CRLF
name = 1*ALPHA
SP = %x20 This reads as: a greeting is the word HELLO, a space, a name and a line ending; a name is one or more letters; SP is the byte with hexadecimal value 20. ALPHA and CRLF are predefined rules. Quoted strings in ABNF are case-insensitive unless stated otherwise.
State diagrams show how a connection moves between conditions. TCP's is a famous example, and it makes the three-way handshake much easier to place.
A worked example
Say you want to know whether an email header line may be longer than you've been generating. Start with the current message format specification, RFC 5322, and check its information page for updates. The table of contents leads to a section on line length limits, which states both a hard maximum and a recommended one, using the requirement words. You now have a citable answer, and you've seen why a mail system might fold long headers. The header fields themselves are explained in how to read email headers.
Finding the right RFC
You rarely know the number in advance. A few approaches work well.
- Search the RFC Editor index or the IETF Datatracker by protocol name, then filter out obsoleted entries.
- Follow references from product documentation. Good manuals cite the RFC behind a setting.
- Start from a working group. Its page lists everything it has published, which shows how the documents relate.
- Look for an overview document. Large protocol families sometimes have a roadmap RFC that explains which pieces do what.
A protocol is often spread across several documents: a core specification, separate ones for security, extensions added years later and registries that keep growing. DNS is a good example. RFC 1034 and RFC 1035 from 1987 are still the base, yet many later documents clarify or extend them, so reading only the originals gives an incomplete picture.
Using an RFC to settle a question
RFCs are most useful when you have a specific dispute: two systems behave differently and you want to know which one is right. Work through it methodically.
First, write the question precisely, such as "may the receiver ignore this unknown field?" Second, find the section governing that field and read the surrounding paragraphs, since exceptions are often stated nearby. Third, check updates and errata for that section. Fourth, compare the requirement word with what each system does.
Quote the section number when you report a bug. "The specification says a recipient MUST ignore unrecognized fields, section such-and-such" is far more persuasive than "your server is broken." If the text really is ambiguous, say so, and consider raising it with the relevant working group, because other implementers have probably tripped on it too.
Citing is easy because the numbering is stable. Give the RFC number and section, and a reader years later will see exactly the words you saw.
Common mistakes
- Quoting an obsolete document because it ranked first in a search.
- Treating every RFC as binding. An informational or experimental one makes no such claim.
- Reading a lowercase "should" as a formal requirement in documents that follow RFC 8174.
- Assuming products match the text. Implementations may lag, deviate or add extensions. Test them.
- Skipping references. Documents are marked as normative (needed to implement) or informative (background).
Common questions
Can an RFC be corrected?
The published text isn't edited. Errors are recorded as errata, and substantive changes come in a new RFC that updates or obsoletes the old one.
Do I have to be an engineer to read one?
No. Introductions, overviews and security sections of many documents are readable by a motivated non-specialist. Packet formats and grammar take practice.
Can anyone write one?
Anyone can submit an Internet-Draft. Becoming an RFC requires passing the review process of one of the streams, which for IETF standards means building support within the community.