Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines RFC 2119, which defines the meanings of normative keywords such as MUST and SHOULD in technical specifications.
The following specification is the basis for this explanation.
For other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, and RFCs, see the following page.
Overview
RFC 2119 defines the meanings and use of requirement-level keywords in standards documents written by the Internet Engineering Task Force (IETF). These definitions allow technical specifications to communicate requirements and intentions precisely.
Purpose and Background
Internet standards frequently use strong words such as MUST and SHOULD to convey requirements. If readers interpret their strength differently, interoperability and security may suffer.
RFC 2119 addresses this by defining the terms and recommending that specifications explicitly state how they are used. For example, a document may include the following boilerplate.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
RFC 2119.Meaning of Each Keyword
MUST / REQUIRED / SHALL
These indicate an absolute requirement. An implementation that does not satisfy such a requirement cannot claim conformance to it.
MUST NOT / SHALL NOT
These indicate an absolute prohibition. The specified behavior is not permitted.
SHOULD / RECOMMENDED
These indicate a strong recommendation. An implementation should normally follow it, but valid reasons may justify an exception. The implications must be understood and weighed before choosing a different course.
SHOULD NOT / NOT RECOMMENDED
These indicate behavior that should generally be avoided, although particular circumstances may justify it. The risks and consequences must be considered carefully before proceeding.
MAY / OPTIONAL
These indicate a genuinely optional feature. The implementer may choose whether to implement it. Interoperability must nevertheless be maintained between implementations that make different choices.
Usage Considerations
RFC 2119 keywords should be used carefully to support interoperability and security. They should not simply enforce personal preferences or implementation styles.
For example, making JSON storage a MUST could unnecessarily restrict developers who would otherwise use another format, such as XML. RFC 2119 cautions against using normative keywords to impose unnecessary implementation restrictions.
Security
These keywords often have security implications. Compliance with a MUST or MUST NOT requirement can determine whether an implementation introduces a vulnerability.
Specification authors should therefore explain the risks of failing to follow relevant requirements or recommendations.
Conclusion
RFC 2119 provides a common vocabulary for expressing the strength of requirements in technical specifications.
