MUST/SHOULD/MAY: Key words for use in RFCs to Indicate Requirement Levels
Defining the precise meaning of MUST, SHOULD, MAY and other requirement keywords
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/info/rfc2119>.
@misc{rfc2119,
series = {Request for Comments},
number = 2119,
howpublished = {RFC 2119},
publisher = {RFC Editor},
doi = {10.17487/RFC2119},
url = {https://www.rfc-editor.org/info/rfc2119},
author = {S. Bradner},
title = {{Key words for use in RFCs to Indicate Requirement Levels}},
pagetotal = 3,
year = 1997,
month = mar,
} RFC text
Contents
Network Working Group S. Bradner
Request for Comments: 2119 Harvard University
BCP: 14 March 1997
Category: Best Current Practice
Key words for use in RFCs to Indicate Requirement Levels
Status of this Memo
This document specifies an Internet Best Current Practices for the
Internet Community, and requests discussion and suggestions for
improvements. Distribution of this memo is unlimited.
Abstract
In many standards track documents several words are used to signify
the requirements in the specification. These words are often
capitalized. This document defines these words as they should be
interpreted in IETF documents. Authors who follow these guidelines
should incorporate this phrase near the beginning of their document:
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.
Note that the force of these words is modified by the requirement
level of the document in which they are used.
1. MUST This word, or the terms "REQUIRED" or "SHALL", mean that the
definition is an absolute requirement of the specification.
2. MUST NOT This phrase, or the phrase "SHALL NOT", mean that the
definition is an absolute prohibition of the specification.
3. SHOULD This word, or the adjective "RECOMMENDED", mean that there
may exist valid reasons in particular circumstances to ignore a
particular item, but the full implications must be understood and
carefully weighed before choosing a different course.
4. SHOULD NOT This phrase, or the phrase "NOT RECOMMENDED" mean that
there may exist valid reasons in particular circumstances when the
particular behavior is acceptable or even useful, but the full
implications should be understood and the case carefully weighed
before implementing any behavior described with this label.
5. MAY This word, or the adjective "OPTIONAL", mean that an item is
truly optional. One vendor may choose to include the item because a
particular marketplace requires it or because the vendor feels that
it enhances the product while another vendor may omit the same item.
An implementation which does not include a particular option MUST be
prepared to interoperate with another implementation which does
include the option, though perhaps with reduced functionality. In the
same vein an implementation which does include a particular option
MUST be prepared to interoperate with another implementation which
does not include the option (except, of course, for the feature the
option provides.)
6. Guidance in the use of these Imperatives
Imperatives of the type defined in this memo must be used with care
and sparingly. In particular, they MUST only be used where it is
actually required for interoperation or to limit behavior which has
potential for causing harm (e.g., limiting retransmisssions) For
example, they must not be used to try to impose a particular method
on implementors where the method is not required for
interoperability.
7. Security Considerations
These terms are frequently used to specify behavior with security
implications. The effects on security of not implementing a MUST or
SHOULD, or doing something the specification says MUST NOT or SHOULD
NOT be done may be very subtle. Document authors should take the time
to elaborate the security implications of not following
recommendations or requirements as most implementors will not have
had the benefit of the experience and discussion that produced the
specification.
8. Acknowledgments
The definitions of these terms are an amalgam of definitions taken
from a number of RFCs. In addition, suggestions have been
incorporated from a number of people including Robert Ullmann, Thomas
Narten, Neal McBurnett, and Robert Elz.
9. Author's Address
Scott Bradner
Harvard University
1350 Mass. Ave.
Cambridge, MA 02138
phone - +1 617 495 3864
email - sob@harvard.edu
AI ELI5
On this page
§1Introduction
In many standards track documents, several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.
RFC 2119 is cited by a very large number of RFCs, many of which include the phrase: "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."
If a game rulebook says "you may roll again", does that mean you are allowed to, or you have to? This note picks special words, always written in capital letters, so that nobody has to guess.
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.§2Keyword Definitions
MUST is a rule with no exceptions. SHOULD is a rule you can break only if you have a very good reason and know what could go wrong. MAY is a choice. And the NOT versions say the opposite: do not do this.
| Key word (and synonyms) | What it means | Can an implementation skip it? |
|---|---|---|
| MUST, REQUIRED, SHALL | An absolute requirement of the specification | No |
| MUST NOT, SHALL NOT | An absolute prohibition of the specification | No |
| SHOULD, RECOMMENDED | Valid reasons may exist in particular circumstances to ignore it, but the full implications must be understood and carefully weighed | Only with a good reason |
| SHOULD NOT, NOT RECOMMENDED | Valid reasons may exist when the behavior is acceptable or even useful, but the implications should be understood and weighed | Only with a good reason |
| MAY, OPTIONAL | Truly optional; one vendor may include the item and another omit it | Yes, but others must interoperate either way |
§3Guidance for Use
Authors must exercise care in using these terms. They should only be used where actually required for interoperation or to limit behavior which has potential for causing harm.
The RFC notes that the force of these words is modified by the requirement level of the document in which they are used, and that ignoring a MUST or SHOULD can have subtle security effects, so authors should explain the security implications.
Do not shout MUST about everything. Save it for the times when things would break if someone did not follow the rule, or when it keeps someone from doing harm.
§4Usage in RFCs
RFC 2119 itself says only that these words are "often capitalized"; it does not say that lowercase forms lose the special meaning. Writing the key words in ALL CAPITALS is the convention that RFC 8174 later made explicit, and lowercase forms carry their normal English meaning.
Correct (RFC 2119 meaning): "Implementations MUST support UTF-8 encoding." "The server SHOULD include a Date header." "Clients MAY cache the response." Normal English (no RFC 2119 meaning): "This must be considered carefully." "Implementations should work well." "You may find this useful."
RFC 8174 later clarified that the keywords have RFC 2119 meaning only when they are in ALL CAPITALS. This addressed confusion about mixed-case usage like "Must" or "must".
The shouting letters are the ones with the special meaning. A quiet "must" in a normal sentence is just an ordinary word.