RFC 2119 BEST CURRENT PRACTICE REQUIREMENT LEVELS · BCP 14

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

On rfc-editor.org ↗
PUBLISHED
March 1997
AUTHORS
S. Bradner
ORG
Harvard University
STREAM
IETF
UPDATED BY
RFC 8174 — RFC 2119 Clarification
SERIES
BCP 14
LENGTH
3 pages
KEY WORDS
MUST, MUST NOT, SHOULD, SHOULD NOT, MAY
DOI
10.17487/RFC2119
ERRATA
Reported errata

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
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
PROBLEMSpecifications written in everyday English leave readers guessing whether a rule is mandatory, advisable or optional.
MECHANISMThe RFC defines a small set of key words (MUST, MUST NOT, SHOULD, SHOULD NOT, MAY, plus synonyms such as REQUIRED, SHALL, RECOMMENDED and OPTIONAL) and gives authors a one-sentence phrase to cite it.
WHAT IT SETTLEDAuthors, implementors and reviewers share one vocabulary for requirement levels, with a warning to use the words sparingly, only for interoperation or to limit harmful behavior.

§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 sentence the RFC asks authors to use
Boilerplate from the abstract
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

MUSTAn absolute requirement of the specification. Synonyms: REQUIRED, SHALL.
MUST NOTAn absolute prohibition of the specification. Synonym: SHALL NOT.
SHOULDThere may exist valid reasons to ignore, but implications must be understood and carefully weighed. Synonym: RECOMMENDED.
SHOULD NOTThere may exist valid reasons when behavior is acceptable, but implications should be understood. Synonym: NOT RECOMMENDED.
MAYAn item is truly optional. One implementation may include it while another may omit it. Synonym: OPTIONAL.

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.

Requirement levels at a glance
Key word (and synonyms)What it meansCan an implementation skip it?
MUST, REQUIRED, SHALLAn absolute requirement of the specificationNo
MUST NOT, SHALL NOTAn absolute prohibition of the specificationNo
SHOULD, RECOMMENDEDValid reasons may exist in particular circumstances to ignore it, but the full implications must be understood and carefully weighedOnly with a good reason
SHOULD NOT, NOT RECOMMENDEDValid reasons may exist when the behavior is acceptable or even useful, but the implications should be understood and weighedOnly with a good reason
MAY, OPTIONALTruly optional; one vendor may include the item and another omit itYes, 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.

MUST and Interop
The RFC says these imperatives must be used with care and sparingly: only where actually required for interoperation or to limit behavior which has potential for causing harm (its example is limiting retransmissions). The RFC adds that these words must not be used to impose a particular method on implementors where the method is not required for interoperability.
SHOULD and Judgment
SHOULD allows implementors to exercise judgment.
MAY and Optional Features
When MAY is used, other implementations MUST be prepared to interoperate with implementations that do or do not include the optional feature.

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.

Example Usage
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.

§5References