Conformance

How OrbitMQ maps every normative requirement in the MQTT specifications to tests, with the generated matrix.

OrbitMQ's goal is 100% conformance with MQTT 3.1, 3.1.1 and 5.0. "Conformance" here means something specific and checkable, not a marketing claim.

Requirement-mapped testing

  1. Catalogue. Each normative statement in the specifications (for example [MQTT-3.1.0-1] in 3.1.1 and 5.0) is recorded as a requirement with a stable ID in the project's specs/requirements catalogue, with a short paraphrase, its section, its level (MUST, SHOULD, MAY and their negations) and whether it binds the server. MQTT 3.1 has no numbered requirements, so its normative statements are given project IDs (V31-…).
  2. Tests reference requirements. Every test declares the requirement IDs it covers with a comment such as // req: 5.0/MQTT-3.3.1-4. The spec version is part of the reference because the same tag number means different things in 3.1.1 and 5.0.
  3. Gaps are errors. A test that references an unknown requirement fails the check, and the checker fails a milestone gate while any server-binding requirement scheduled for that milestone has no test.
  4. Waivers are explicit. A requirement can only be skipped with a written reason, shown in the matrix below.
  5. The matrix is generated. The table on this page is produced from the catalogue and the test sources by the project's requirement checker, so it cannot drift from the code.

Summary

"Mapped to tests" counts server-binding requirements referenced by at least one automated test in the broker or the black-box conformance suite. Coverage is mapped requirements divided by server-binding requirements. Tests run in CI on every change.

SpecificationRequirementsServer-bindingMapped to testsWaivedNot yet mappedCoverage
MQTT 3.1101100981198.0%
MQTT 3.1.11411331320199.2%
MQTT 5.02512382290996.2%

Requirements that are not server-binding (for example rules that only constrain clients) are listed for completeness but do not count towards coverage.

Matrix

Filter by specification, level, binding or status, or search by ID, section or summary. Summaries are paraphrases; the specification text is authoritative.

Showing 471 of 493 requirements.

RequirementSectionLevelServerTestsStatusSummary
3.1/V31-A-1AMUST NOTYes1MappedWildcards are valid only in subscription filters; topic names used for publishing must not contain them.
3.1/V31-A-2AMUSTYes2Mapped'#' matches any number of levels including zero, so 'finance/#' also matches 'finance'.
3.1/V31-A-3AMUSTYes1Mapped'#' must stand alone or follow '/' and must be the last character of the filter; 'finance#' and 'a/#/b' are invalid.
3.1/V31-A-4AMUSTYes3Mapped'+' matches exactly one level, so 'finance/+' matches 'finance/x' but not 'finance' or 'finance/x/y'.
3.1/V31-A-5AMUSTYes1Mapped'+' must occupy a whole level, standing alone or bounded by '/'; 'finance+' is invalid while '+/x' and 'a/+/b' are valid.
3.1/V31-A-6AMUSTYes2MappedTopic names and filters must be at least one character long.
3.1/V31-A-7AMUSTYes3MappedTopic matching is case sensitive, treats spaces as ordinary characters and treats a leading '/' as an empty first level ('/a' matches '/+' and '+/+', not '+').
3.1/V31-A-8AMUST NOTYes4MappedTopic names and filters must not contain the null character U+0000.
3.1/V31-A-9AMAYYes1Mapped3.1 defines no special '$' topics; the server may apply the 3.1.1 rule that leading wildcards never match '$' topics to 3.1 clients.
3.1/V31-2.1-12.1MUST NOTYes2MappedMessage types 0 and 15 are reserved and must not be sent; the server treats a packet with either type as invalid and closes the connection.
3.1/V31-2.1-22.1MUSTYes2MappedRemaining Length uses 1 to 4 bytes of 7-bit groups with a continuation bit, maximum 268,435,455; the server treats a fifth length byte as invalid.
3.1/V31-2.1-32.1SHOULDYes4MappedA sender re-delivering a QoS>0 PUBLISH, PUBREL, SUBSCRIBE or UNSUBSCRIBE sets DUP=1; unlike 3.1.1, DUP is valid on PUBREL, SUBSCRIBE and UNSUBSCRIBE.
3.1/V31-2.1-42.1SHOULD NOTYes1MappedA receiver treats DUP only as a hint and should not rely on it to detect duplicates; QoS 2 de-duplication uses the Message ID.
3.1/V31-2.1-52.1MUST NOTYes2MappedQoS value 3 is reserved and must not be used; the server closes the connection on a PUBLISH whose QoS bits are both set.
3.1/V31-2.1-62.1SHOULDYes5MappedFor a client PUBLISH with RETAIN=1, the server keeps the message as the topic's retained message after delivering it to current subscribers.
3.1/V31-2.1-72.1SHOULDYes3MappedOn a new subscription the server sends the last retained message of each matching topic with RETAIN=1; nothing is sent if none exists.
3.1/V31-2.1-82.1SHOULD NOTYes3MappedMessages forwarded to subscriptions that existed when the PUBLISH arrived are sent with RETAIN=0, regardless of the inbound RETAIN flag.
3.1/V31-2.1-92.1SHOULDYes0Not yet mappedRetained messages survive a server restart.
3.1/V31-2.1-102.1MAYYes3MappedA RETAIN=1 PUBLISH with a zero-length payload may delete the topic's retained message; OrbitMQ applies the 3.1.1 behaviour of always deleting it.
3.1/V31-2.2-12.2MUSTYes3MappedThe CONNECT protocol name must be the length-prefixed string 'MQIsdp' (exact case), not 'MQTT'; the server uses it to select 3.1 handling.
3.1/V31-2.2-22.2MUSTYes3MappedThe CONNECT protocol version byte must be 3 (0x03) together with the name 'MQIsdp'; the server treats other versions under this name as unsupported.
3.1/V31-2.2-32.2MUSTYes4MappedWith CleanSession=0 the server keeps the client's subscriptions, queued QoS 1/2 messages and in-flight state after disconnect until the client reconnects.
3.1/V31-2.2-42.2MUSTYes3MappedWith CleanSession=1 the server discards any stored state for the ClientId at connect and discards the session's state when the client disconnects.
3.1/V31-2.2-52.2MUST NOTYes2MappedQoS 0 messages are never queued for a disconnected CleanSession=0 client; only QoS 1 and QoS 2 messages are stored.
3.1/V31-2.2-62.2MAYYes3MappedThe server may offer an administrative mechanism to delete the stored session of a client known never to reconnect.
3.1/V31-2.2-72.2SHOULDYes1MappedCONNECT flags bit 0 is reserved and set to zero; unlike 3.1.1 the server is not required to reject a 3.1 CONNECT with it set.
3.1/V31-2.2-82.2MUSTYes4MappedThe server publishes the Will Message when it hits an I/O error or keep-alive expiry for the client, but never because of a received DISCONNECT.
3.1/V31-2.2-92.2MUSTYes3MappedIf Will Flag=1, the Will QoS and Will Retain flags apply and the Will Topic and Will Message must both be present in the payload.
3.1/V31-2.2-102.2SHOULDYes2MappedIf Will Flag=0 the server disregards Will QoS and Will Retain values instead of rejecting the CONNECT as 3.1.1 requires.
3.1/V31-2.2-112.2MUST NOTYes2MappedWill QoS must be 0, 1 or 2; the server refuses a CONNECT with Will Flag=1 and Will QoS 3.
3.1/V31-2.2-122.2SHOULDYes3MappedWhen publishing a Will Message the server retains it if Will Retain=1 and publishes it non-retained if Will Retain=0.
3.1/V31-2.2-132.2MUST NOTYes2MappedA password must not be supplied without a user name; the server treats Password Flag=1 with User Name Flag=0 as an invalid CONNECT.
3.1/V31-2.2-142.2MUSTYes2MappedIf Keep Alive is non-zero and nothing arrives within 1.5 times Keep Alive, the server disconnects the client, keeps its subscriptions and publishes its Will.
3.1/V31-2.2-152.2MUST NOTYes1MappedA Keep Alive of zero disables the keep-alive mechanism; the server must not disconnect such a client for inactivity.
3.1/V31-2.2-172.2MUST NOTYes1MappedCONNACK return codes 6..255 are reserved; the server only sends codes 0 to 5.
3.1/V31-2.2-182.2MUSTYes1MappedA 3.1 topic name is a UTF-8 string limited to 32,767 characters; the server accepts topics up to that length from 3.1 clients.
3.1/V31-2.4-12.4MUSTYes2MappedA Message ID is present in PUBLISH only for QoS 1 and 2, and always in PUBACK, PUBREC, PUBREL, PUBCOMP, SUBSCRIBE, SUBACK, UNSUBSCRIBE and UNSUBACK.
3.1/V31-2.4-22.4MUSTYes3MappedThe server keeps its own Message ID space per client, unique among its in-flight messages in the server-to-client direction, independent of client-chosen IDs.
3.1/V31-2.4-32.4MUST NOTYes3MappedMessage ID 0 is reserved as invalid and must not be used in any packet that carries a Message ID.
3.1/V31-2.5-12.5MUSTYes1MappedStrings are encoded as a 2-byte big-endian byte length followed by that many bytes of UTF-8 data.
3.1/V31-2.5-22.5MUSTYes1MappedStrings carry full UTF-8 rather than only US-ASCII; the server accepts any valid UTF-8 in 3.1 strings.
3.1/V31-2.6-12.6SHOULDYes1MappedBits marked unused are sent as zero; 3.1 does not require the receiver to reject packets where such bits are set.
3.1/V31-3.1-13.1MUSTYes1MappedThe first message a client sends on a new TCP connection must be CONNECT, which creates the protocol-level session.
3.1/V31-3.1-23.1MUSTYes1MappedCONNECT payload strings that are present must appear in the order Client Identifier, Will Topic, Will Message, User Name, Password.
3.1/V31-3.1-33.1MUSTYes2MappedThe Client Identifier is the first payload string, 1 to 23 characters long, and unique among clients of the server.
3.1/V31-3.1-43.1MUSTYes2MappedIf the Client Identifier is longer than 23 characters the server replies with CONNACK return code 2 (identifier rejected).
3.1/V31-3.1-53.1MUSTYes1MappedThe Will Message may be zero-length; when published, the payload is only its bytes, without the 2-byte length prefix.
3.1/V31-3.1-63.1MUSTYes2MappedThe server accepts a CONNECT whose User Name Flag is set but whose user name string is absent because Remaining Length ends the packet.
3.1/V31-3.1-73.1MUSTYes2MappedThe server accepts a CONNECT whose Password Flag is set but whose password string is absent because Remaining Length ends the packet.
3.1/V31-3.1-83.1SHOULDYes1MappedThe server closes a TCP connection that has not delivered a CONNECT within a configurable, reasonable time after it was established.
3.1/V31-3.1-93.1MUSTYes1MappedIf a client with the same Client ID is already connected, the server disconnects the older client before completing the new CONNECT.
3.1/V31-3.1-103.1SHOULDYes2MappedThe server closes the connection on an invalid CONNECT, including one with an invalid protocol name or protocol version.
3.1/V31-3.1-113.1MAYYes1MappedIf enough of the CONNECT parses to show an unsupported protocol, the server may send CONNACK return code 1 before closing the connection.
3.1/V31-3.2-13.2MUSTYes4MappedThe server answers CONNECT with a CONNACK of remaining length 2 whose first variable-header byte is reserved; 3.1 has no Session Present flag.
3.1/V31-3.2-23.2MUSTYes2MappedThe server sends CONNACK return code 2 when the Client Identifier is not 1 to 23 characters, so zero-length ClientIds are rejected.
3.1/V31-3.2-33.2MUSTYes2MappedThe server refuses failed authentication with CONNACK return code 4 (bad user name or password) and denied authorization with code 5 (not authorized).
3.1/V31-3.2-43.2SHOULDYes2MappedAfter sending a CONNACK with a non-zero return code the server closes the network connection.
3.1/V31-3.2-53.2MUSTYes2MappedThe server signals an accepted connection with CONNACK return code 0 and a refusal with the matching code 1 to 5 from the 3.1 return code table.
3.1/V31-3.3-13.3MUST NOTYes2MappedA PUBLISH topic name must not contain wildcard characters; the server treats such a PUBLISH as invalid.
3.1/V31-3.3-23.3MUSTYes3MappedA PUBLISH delivered to a subscriber carries the publisher's exact topic name, not the subscriber's wildcard filter.
3.1/V31-3.3-33.3MUSTYes1MappedA PUBLISH with a zero-length payload is valid and the server delivers it normally.
3.1/V31-3.3-43.3MUSTYes4MappedA PUBLISH receiver responds by QoS: nothing for QoS 0, PUBACK for QoS 1, PUBREC for QoS 2.
3.1/V31-3.3-53.3MUSTYes5MappedOn a QoS 1 PUBLISH the server stores the message durably, makes it available to matching subscribers and replies PUBACK.
3.1/V31-3.3-63.3MUSTYes1MappedOn a QoS 2 PUBLISH the server stores the message durably and replies PUBREC; onward delivery follows one of the two section 4.1 semantics.
3.1/V31-3.3-73.3MUSTYes1MappedIf the server does not authorize a client's PUBLISH it still acknowledges it normally per QoS, without informing the client; closing the connection is not offered.
3.1/V31-3.4-13.4MUSTYes4MappedPUBACK has remaining length 2 and carries the Message ID of the QoS 1 PUBLISH it acknowledges.
3.1/V31-3.5-13.5MUSTYes6MappedOn receiving PUBREC the PUBLISH sender replies with PUBREL carrying the same Message ID.
3.1/V31-3.6-13.6MUSTYes2MappedPUBREL is sent with QoS 1 in its fixed header (byte 0x62, or 0x6A when DUP=1 on retry) and is retried like a PUBLISH.
3.1/V31-3.6-23.6MUSTYes8MappedOn PUBREL from a publisher the server makes the message available to subscribers if not already done and replies PUBCOMP with the same Message ID.
3.1/V31-3.7-13.7MUSTYes8MappedPUBCOMP has remaining length 2 and carries the Message ID of the PUBREL it acknowledges.
3.1/V31-3.8-13.8MUSTYes2MappedSUBSCRIBE is sent with QoS 1 in its fixed header (byte 0x82, or 0x8A when DUP=1 on retry) and carries a Message ID.
3.1/V31-3.8-23.8MUSTYes1MappedThe SUBSCRIBE payload is a contiguous list of UTF-8 topic filter and requested QoS byte pairs; filters may contain wildcards.
3.1/V31-3.8-33.8MUSTYes6MappedMessages are delivered to a subscriber at the lower of the publish QoS and the granted subscription QoS; QoS is never upgraded.
3.1/V31-3.8-43.8SHOULDYes2MappedA requested QoS byte with both QoS bits set is invalid and the server closes the connection.
3.1/V31-3.8-53.8MUSTYes2MappedThe server answers every SUBSCRIBE with a SUBACK.
3.1/V31-3.8-63.8MAYYes0Waived

OrbitMQ never delivers before SUBACK (ADR-0011 SUBACK barrier); this MAY is deliberately not exercised.

The server may start delivering PUBLISH messages for a new subscription before the client has received the SUBACK.
3.1/V31-3.8-73.8MUSTYes1MappedIf a SUBSCRIBE is not authorized the server still sends a normal-looking SUBACK; the client is not informed because 3.1 has no failure return code.
3.1/V31-3.8-83.8MAYYes1MappedThe server may grant a lower QoS than requested, for example QoS 0 only when it lacks reliable persistence.
3.1/V31-3.9-13.9MUSTYes2MappedSUBACK carries the Message ID of the SUBSCRIBE it acknowledges.
3.1/V31-3.9-23.9MUSTYes2MappedSUBACK carries exactly one granted QoS byte per requested topic, in the same order as the SUBSCRIBE payload.
3.1/V31-3.9-33.9MUST NOTYes6MappedGranted QoS bytes sent to a 3.1 client must be 0, 1 or 2; the 3.1.1 failure code 0x80 must not be sent.
3.1/V31-3.10-13.10MUSTYes2MappedUNSUBSCRIBE is sent with QoS 1 in its fixed header (byte 0xA2, or 0xAA when DUP=1 on retry) and carries a Message ID.
3.1/V31-3.10-23.10MUSTYes1MappedThe UNSUBSCRIBE payload is a contiguous list of UTF-8 topic strings naming the subscriptions to remove.
3.1/V31-3.10-33.10MUSTYes3MappedThe server answers every UNSUBSCRIBE with an UNSUBACK, including when no listed subscription existed.
3.1/V31-3.10-43.10MUSTYes6MappedOn UNSUBSCRIBE the server removes each of the client's subscriptions whose topic string equals a listed topic (wildcards compared literally, an OrbitMQ derivation), stops queuing new messages for it, and ignores unknown topics.
3.1/V31-3.11-13.11MUSTYes4MappedUNSUBACK has remaining length 2 and carries the Message ID of the UNSUBSCRIBE it acknowledges.
3.1/V31-3.12-13.12MUSTYes2MappedThe server answers every PINGREQ from a connected client with a PINGRESP.
3.1/V31-3.14-13.14MUSTYes1MappedOn DISCONNECT from a CleanSession=1 client the server discards all state it held for that client.
3.1/V31-3.14-23.14SHOULD NOTYes1MappedThe server should not rely on the client closing TCP after DISCONNECT and closes the connection itself.
3.1/V31-3.14-33.14MUSTYes1MappedOn DISCONNECT the server discards the client's Will Message without publishing it.
3.1/V31-4.1-14.1MUSTYes2MappedQoS 0 messages are sent once with no acknowledgement and no retry.
3.1/V31-4.1-24.1MUSTYes1MappedOn a duplicate QoS 1 PUBLISH from a client the server publishes it to subscribers again and sends another PUBACK.
3.1/V31-4.1-34.1MUSTYes6MappedA QoS 2 flow is retried from the last unacknowledged message, PUBLISH or PUBREL, and the message reaches subscribers exactly once.
3.1/V31-4.1-44.1MAYYes1MappedFor QoS 2 the server may forward on PUBLISH (keeping the Message ID until PUBREL) or on PUBREL; both must prevent duplicate onward delivery.
3.1/V31-4.2-14.2MAYYes1MappedIf no response arrives in time, a sender may retry a QoS>0 PUBLISH, PUBREL, SUBSCRIBE or UNSUBSCRIBE, setting DUP=1 on the retry.
3.1/V31-4.2-24.2SHOULDYes2MappedThe retry timeout is configurable, accounts for message size and link speed, and grows across successive retries.
3.1/V31-4.2-34.2SHOULDYes5MappedOn reconnect without CleanSession, client and server redeliver all in-flight messages from the previous connection.
3.1/V31-4.2-44.2SHOULDYes1MappedThe server retries any unacknowledged message it sent, not only on reconnect.
3.1/V31-4.3-14.3MUSTYes3MappedTo guarantee ordering, each stage of delivery flows completes in the order started, e.g. PUBRELs are sent in the order of the original PUBLISHes.
3.1/V31-4.3-24.3SHOULDYes2MappedThe server preserves per-client publish order to each subscriber; with an in-flight window above 1, order is guaranteed only within a QoS level.
3.1.1/MQTT-1.5.3-11.5.3MUSTYes4MappedString data must be well-formed UTF-8 (RFC 3629) with no surrogate code points U+D800..U+DFFF; a receiver of ill-formed UTF-8 must close the network connection.
3.1.1/MQTT-1.5.3-21.5.3MUST NOTYes2MappedStrings must not encode the null character U+0000; a receiver getting a packet whose string contains U+0000 must close the network connection.
3.1.1/MQTT-1.5.3-31.5.3MUST NOTYes1MappedA receiver must not skip or strip the bytes EF BB BF inside a string; they always denote code point U+FEFF and are preserved.
3.1.1/MQTT-2.2.2-12.2.2MUSTYes3MappedFixed-header flag bits marked reserved in Table 2.2 must carry exactly the values that table lists for the packet type.
3.1.1/MQTT-2.2.2-22.2.2MUSTYes5MappedA receiver that gets a packet with invalid fixed-header flag bits must close the network connection.
3.1.1/MQTT-2.3.1-12.3.1MUSTYes4MappedSUBSCRIBE, UNSUBSCRIBE and PUBLISH with QoS 1 or 2 must carry a non-zero 16-bit Packet Identifier.
3.1.1/MQTT-2.3.1-42.3.1MUSTYes1MappedFor QoS>0 PUBLISH it sends, the server must use an unused Packet Identifier, keep it on re-sends, and free it only after PUBACK (QoS 1) or PUBCOMP (QoS 2).
3.1.1/MQTT-2.3.1-52.3.1MUST NOTYes3MappedA QoS 0 PUBLISH must not contain a Packet Identifier field.
3.1.1/MQTT-2.3.1-62.3.1MUSTYes1MappedPUBACK, PUBREC and PUBREL must carry the same Packet Identifier as the PUBLISH that started the exchange.
3.1.1/MQTT-2.3.1-72.3.1MUSTYes1MappedSUBACK and UNSUBACK must carry the Packet Identifier of the SUBSCRIBE or UNSUBSCRIBE they acknowledge.
3.1.1/MQTT-3.1.0-13.1.0MUSTYes2MappedThe first packet a client sends on a new network connection must be CONNECT; the server treats any other first packet as a protocol violation.
3.1.1/MQTT-3.1.0-23.1.0MUSTYes2MappedThe server must treat a second CONNECT on the same network connection as a protocol violation and disconnect the client.
3.1.1/MQTT-3.1.2-13.1.2MUST NOTYes3MappedIf the protocol name is not 'MQTT', the server may disconnect or process it under another specification, but must not continue processing it as MQTT 3.1.1.
3.1.1/MQTT-3.1.2-23.1.2MUSTYes3MappedIf the Protocol Level is unsupported, the server must reply with CONNACK return code 0x01 (unacceptable protocol version) and then disconnect.
3.1.1/MQTT-3.1.2-33.1.2MUSTYes3MappedThe server must check that reserved bit 0 of the CONNECT flags is zero and disconnect the client if it is set.
3.1.1/MQTT-3.1.2-43.1.2MUSTYes2MappedWith CleanSession=0 the server must resume the session for that ClientId or create one if none exists, and both sides must keep the session after disconnection.
3.1.1/MQTT-3.1.2-53.1.2MUSTYes3MappedAfter a CleanSession=0 client disconnects, the server must store new QoS 1 and QoS 2 messages matching its subscriptions as part of the session state.
3.1.1/MQTT-3.1.2-63.1.2MUSTYes4MappedWith CleanSession=1 both sides must discard any previous session and start a new one that lasts only for the connection; its state must never be reused later.
3.1.1/MQTT-3.1.2-73.1.2MUST NOTYes2MappedRetained messages are not part of session state and must not be deleted when a session ends.
3.1.1/MQTT-3.1.2-83.1.2MUSTYes3MappedIf Will Flag=1 and the connection is accepted, the server must store the Will Message and publish it when the connection closes, unless a DISCONNECT removed it.
3.1.1/MQTT-3.1.2-93.1.2MUSTYes4MappedWith Will Flag=1 the CONNECT payload has to include both a Will Topic and a Will Message, and the server honours the Will QoS and Will Retain flags.
3.1.1/MQTT-3.1.2-103.1.2MUSTYes3MappedThe server must remove the Will Message from stored session state once it has been published or a DISCONNECT has been received from the client.
3.1.1/MQTT-3.1.2-113.1.2MUSTYes3MappedIf Will Flag=0 then Will QoS and Will Retain must be zero and the Will Topic and Will Message fields must be absent from the payload.
3.1.1/MQTT-3.1.2-123.1.2MUST NOTYes1MappedIf Will Flag=0 the server must not publish any Will Message when the network connection ends.
3.1.1/MQTT-3.1.2-133.1.2MUSTYes2MappedIf Will Flag=0 the Will QoS bits in the CONNECT flags must be 0.
3.1.1/MQTT-3.1.2-143.1.2MUST NOTYes2MappedIf Will Flag=1 the Will QoS must be 0, 1 or 2; the value 3 must not be used.
3.1.1/MQTT-3.1.2-153.1.2MUSTYes2MappedIf Will Flag=0 the Will Retain flag must be 0.
3.1.1/MQTT-3.1.2-163.1.2MUSTYes3MappedWith Will Flag=1 and Will Retain=0 the server must send the Will Message with RETAIN=0, i.e. not as a retained message.
3.1.1/MQTT-3.1.2-173.1.2MUSTYes1MappedWith Will Flag=1 and Will Retain=1 the server must send the Will Message with RETAIN=1 so that it is retained.
3.1.1/MQTT-3.1.2-183.1.2MUST NOTYes2MappedIf User Name Flag=0 no user name field may be present in the CONNECT payload.
3.1.1/MQTT-3.1.2-193.1.2MUSTYes3MappedIf User Name Flag=1 a user name field must be present in the CONNECT payload.
3.1.1/MQTT-3.1.2-203.1.2MUST NOTYes1MappedIf Password Flag=0 no password field may be present in the CONNECT payload.
3.1.1/MQTT-3.1.2-213.1.2MUSTYes3MappedIf Password Flag=1 a password field must be present in the CONNECT payload.
3.1.1/MQTT-3.1.2-223.1.2MUSTYes3MappedIf User Name Flag=0 the Password Flag must also be 0.
3.1.1/MQTT-3.1.2-243.1.2MUSTYes2MappedIf Keep Alive is non-zero and nothing arrives from the client within 1.5 times Keep Alive, the server must disconnect it as if the network had failed.
3.1.1/MQTT-3.1.3-13.1.3MUSTYes1MappedWhichever CONNECT payload fields are present are ordered Client Identifier, Will Topic, Will Message, User Name, then Password.
3.1.1/MQTT-3.1.3-23.1.3MUSTYes1MappedClient and server must use the ClientId to identify the session state they hold for that client.
3.1.1/MQTT-3.1.3-33.1.3MUSTYes1MappedThe Client Identifier must always be present and must be the first field of the CONNECT payload.
3.1.1/MQTT-3.1.3-43.1.3MUSTYes2MappedThe ClientId must be a UTF-8 encoded string conforming to section 1.5.3.
3.1.1/MQTT-3.1.3-53.1.3MUSTYes1MappedThe server must accept ClientIds that are 1 to 23 UTF-8 bytes long and contain only the characters 0-9, a-z and A-Z.
3.1.1/MQTT-3.1.3-63.1.3MUSTYes2MappedThe server may accept a zero-length ClientId; if it does, it must assign a unique ClientId and process the CONNECT as if the client had supplied it.
3.1.1/MQTT-3.1.3-73.1.3MUSTYes1MappedA client that supplies a zero-byte ClientId must set CleanSession to 1.
3.1.1/MQTT-3.1.3-83.1.3MUSTYes2MappedIf the ClientId is zero bytes and CleanSession=0, the server must reply with CONNACK return code 0x02 (identifier rejected) and then close the connection.
3.1.1/MQTT-3.1.3-93.1.3MUSTYes1MappedWhenever the server rejects a ClientId it must reply with CONNACK return code 0x02 (identifier rejected) and then close the connection.
3.1.1/MQTT-3.1.3-103.1.3MUSTYes1MappedThe Will Topic must be a UTF-8 encoded string conforming to section 1.5.3.
3.1.1/MQTT-3.1.3-113.1.3MUSTYes1MappedThe User Name must be a UTF-8 encoded string conforming to section 1.5.3.
3.1.1/MQTT-3.1.4-13.1.4MUSTYes2MappedThe server must validate that CONNECT conforms to section 3.1 and, if it does not, close the network connection without sending CONNACK.
3.1.1/MQTT-3.1.4-23.1.4MUSTYes1MappedIf the ClientId belongs to a client that is already connected, the server must disconnect that existing client.
3.1.1/MQTT-3.1.4-33.1.4MUSTYes1MappedAfter CONNECT validation succeeds the server must apply the CleanSession processing defined in section 3.1.2.4.
3.1.1/MQTT-3.1.4-43.1.4MUSTYes1MappedAfter CONNECT validation succeeds the server must acknowledge with a CONNACK carrying return code 0.
3.1.1/MQTT-3.1.4-53.1.4MUST NOTYes1MappedIf the server rejects a CONNECT it must not process any data the client sent after that CONNECT packet.
3.1.1/MQTT-3.2.0-13.2.0MUSTYes1MappedThe first packet the server sends to a client must be CONNACK.
3.1.1/MQTT-3.2.2-13.2.2MUSTYes3MappedWhen accepting a CleanSession=1 connection the server must send CONNACK with Session Present=0 and return code 0.
3.1.1/MQTT-3.2.2-23.2.2MUSTYes3MappedWhen accepting a CleanSession=0 connection for which it holds stored session state, the server must set Session Present=1 in CONNACK.
3.1.1/MQTT-3.2.2-33.2.2MUSTYes2MappedWhen accepting a CleanSession=0 connection with no stored session state, the server must set Session Present=0 along with return code 0.
3.1.1/MQTT-3.2.2-43.2.2MUSTYes4MappedA CONNACK with a non-zero return code must have Session Present set to 0.
3.1.1/MQTT-3.2.2-53.2.2MUSTYes2MappedAfter sending a CONNACK with a non-zero return code the server must close the network connection.
3.1.1/MQTT-3.2.2-63.2.2MUSTYes1MappedIf no return code in Table 3.1 fits the failure, the server must close the network connection without sending any CONNACK.
3.1.1/MQTT-3.3.1-13.3.1MUSTYes4MappedThe DUP flag must be set to 1 whenever a client or server re-delivers a PUBLISH packet.
3.1.1/MQTT-3.3.1-23.3.1MUSTYes3MappedThe DUP flag must be 0 on every QoS 0 PUBLISH.
3.1.1/MQTT-3.3.1-33.3.1MUSTYes2MappedDUP on a PUBLISH the server forwards must reflect only whether that outgoing packet is a retransmission, never the DUP of the inbound PUBLISH.
3.1.1/MQTT-3.3.1-43.3.1MUST NOTYes3MappedA PUBLISH must not have both QoS bits set; a server or client receiving such a packet must close the network connection.
3.1.1/MQTT-3.3.1-53.3.1MUSTYes5MappedFor a client PUBLISH with RETAIN=1 the server must store the message and its QoS so it can be delivered to future matching subscribers.
3.1.1/MQTT-3.3.1-63.3.1MUSTYes3MappedWhen a new subscription is established, the last retained message on each matching topic must be sent to the subscriber.
3.1.1/MQTT-3.3.1-73.3.1MUSTYes2MappedOn a QoS 0 PUBLISH with RETAIN=1 the server must discard any previously retained message for that topic; it should keep the new one but may drop it later.
3.1.1/MQTT-3.3.1-83.3.1MUSTYes3MappedA PUBLISH the server sends because a new subscription matched a retained message must have RETAIN=1.
3.1.1/MQTT-3.3.1-93.3.1MUSTYes3MappedA PUBLISH forwarded because it matches an established subscription must have RETAIN=0, whatever the RETAIN flag on the received message.
3.1.1/MQTT-3.3.1-103.3.1MUSTYes3MappedA RETAIN=1 PUBLISH with a zero-byte payload is delivered normally and must remove the topic's retained message so later subscribers receive none.
3.1.1/MQTT-3.3.1-113.3.1MUST NOTYes3MappedThe server must not store a message with a zero-byte payload as a retained message.
3.1.1/MQTT-3.3.1-123.3.1MUST NOTYes2MappedFor a client PUBLISH with RETAIN=0 the server must not store it as retained and must not remove or replace the existing retained message.
3.1.1/MQTT-3.3.2-13.3.2MUSTYes2MappedThe Topic Name must be present as the first field of the PUBLISH variable header and must be a UTF-8 encoded string.
3.1.1/MQTT-3.3.2-23.3.2MUST NOTYes3MappedThe Topic Name in a PUBLISH must not contain the wildcard characters '+' or '#'.
3.1.1/MQTT-3.3.2-33.3.2MUSTYes3MappedThe Topic Name in a PUBLISH the server sends to a subscriber must match that subscription's Topic Filter under the section 4.7 rules.
3.1.1/MQTT-3.3.4-13.3.4MUSTYes4MappedThe receiver of a PUBLISH must respond per its QoS: nothing for QoS 0, PUBACK for QoS 1, PUBREC for QoS 2.
3.1.1/MQTT-3.3.5-13.3.5MUSTYes2MappedWhen several of a client's subscriptions match a message, the server must deliver it respecting the highest maximum QoS among those matching subscriptions.
3.1.1/MQTT-3.3.5-23.3.5MUSTYes1MappedIf the server does not authorize a client's PUBLISH, it must either acknowledge it normally according to its QoS or close the network connection.
3.1.1/MQTT-3.6.1-13.6.1MUSTYes2MappedPUBREL fixed-header bits 3..0 must be 0010; on any other value the server must close the network connection, treating the packet as malformed.
3.1.1/MQTT-3.8.1-13.8.1MUSTYes2MappedSUBSCRIBE fixed-header bits 3..0 must be 0010; on any other value the server must close the network connection, treating the packet as malformed.
3.1.1/MQTT-3.8.3-13.8.3MUSTYes1MappedTopic Filters in a SUBSCRIBE payload must be UTF-8 encoded strings conforming to section 1.5.3.
3.1.1/MQTT-3.8.3-23.8.3MUSTYes1MappedA server that does not support wildcard Topic Filters must reject every subscription request whose filter contains a wildcard.
3.1.1/MQTT-3.8.3-33.8.3MUSTYes2MappedA SUBSCRIBE payload must contain at least one Topic Filter/QoS pair; a SUBSCRIBE without payload is a protocol violation.
3.1.1/MQTT-3.8.3-43.8.3MUSTYes2MappedThe server must treat a SUBSCRIBE as malformed and close the connection if any reserved bit of a requested-QoS byte is set or QoS is not 0, 1 or 2.
3.1.1/MQTT-3.8.4-13.8.4MUSTYes2MappedThe server must respond to every SUBSCRIBE packet with a SUBACK packet.
3.1.1/MQTT-3.8.4-23.8.4MUSTYes2MappedThe SUBACK must carry the same Packet Identifier as the SUBSCRIBE it acknowledges.
3.1.1/MQTT-3.8.4-33.8.4MUSTYes5MappedA SUBSCRIBE whose filter equals an existing one must replace that subscription (QoS may change), re-send matching retained messages, and not interrupt publication flow.
3.1.1/MQTT-3.8.4-43.8.4MUSTYes4MappedA SUBSCRIBE with multiple Topic Filters must be handled like a sequence of single SUBSCRIBEs whose responses are combined into one SUBACK.
3.1.1/MQTT-3.8.4-53.8.4MUSTYes3MappedSUBACK must hold one return code per Topic Filter/QoS pair, each giving the granted maximum QoS or indicating failure.
3.1.1/MQTT-3.8.4-63.8.4MUSTYes6MappedMessages delivered for a subscription must use the lower of the original publish QoS and the granted maximum QoS.
3.1.1/MQTT-3.9.3-13.9.3MUSTYes2MappedReturn codes in SUBACK must appear in the same order as the Topic Filters in the SUBSCRIBE.
3.1.1/MQTT-3.9.3-23.9.3MUST NOTYes4MappedOnly 0x00, 0x01, 0x02 and 0x80 may be used as SUBACK return codes; every other value is reserved and must not be sent.
3.1.1/MQTT-3.10.1-13.10.1MUSTYes2MappedUNSUBSCRIBE fixed-header bits 3..0 must be 0010; on any other value the server must close the network connection, treating the packet as malformed.
3.1.1/MQTT-3.10.3-13.10.3MUSTYes1MappedTopic Filters in an UNSUBSCRIBE payload must be UTF-8 encoded strings per section 1.5.3, packed contiguously.
3.1.1/MQTT-3.10.3-23.10.3MUSTYes2MappedAn UNSUBSCRIBE payload must contain at least one Topic Filter; an UNSUBSCRIBE without payload is a protocol violation.
3.1.1/MQTT-3.10.4-13.10.4MUSTYes3MappedEach UNSUBSCRIBE filter, wildcards included, must be compared character-by-character with the client's filters; only an exact match deletes a subscription.
3.1.1/MQTT-3.10.4-23.10.4MUSTYes3MappedOnce a subscription is deleted the server must stop adding new messages for delivery to the client through it.
3.1.1/MQTT-3.10.4-33.10.4MUSTYes1MappedAfter deleting a subscription the server must still complete delivery of QoS 1 and QoS 2 messages it has already started sending to the client.
3.1.1/MQTT-3.10.4-43.10.4MUSTYes3MappedThe server must answer every UNSUBSCRIBE with an UNSUBACK carrying the same Packet Identifier.
3.1.1/MQTT-3.10.4-53.10.4MUSTYes2MappedThe server must send UNSUBACK even when no subscription was deleted.
3.1.1/MQTT-3.10.4-63.10.4MUSTYes3MappedAn UNSUBSCRIBE with multiple Topic Filters must be processed like a sequence of single UNSUBSCRIBEs but answered with exactly one UNSUBACK.
3.1.1/MQTT-3.12.4-13.12.4MUSTYes2MappedThe server must reply to every PINGREQ with a PINGRESP.
3.1.1/MQTT-3.14.1-13.14.1MUSTYes2MappedThe server must check that the DISCONNECT fixed-header reserved bits are zero and disconnect the client if they are not.
3.1.1/MQTT-3.14.4-33.14.4MUSTYes1MappedOn receiving DISCONNECT the server must discard the connection's Will Message without publishing it.
3.1.1/MQTT-4.1.0-14.1.0MUSTYes2MappedClient and server must keep session state for the entire duration of the session.
3.1.1/MQTT-4.1.0-24.1.0MUSTYes1MappedA session must last at least as long as it has an active network connection.
3.1.1/MQTT-4.3.1-14.3.1MUSTYes3MappedA QoS 0 sender must send the PUBLISH with QoS=0 and DUP=0.
3.1.1/MQTT-4.3.2-14.3.2MUSTYes3MappedA QoS 1 sender must assign an unused Packet Identifier, send PUBLISH with QoS=1 and DUP=0, and treat it as unacknowledged until the matching PUBACK.
3.1.1/MQTT-4.3.2-24.3.2MUSTYes3MappedA QoS 1 receiver must, after taking ownership, reply PUBACK with the incoming Packet Identifier, then treat later PUBLISH with that identifier as new regardless of DUP.
3.1.1/MQTT-4.3.3-14.3.3MUSTYes6MappedA QoS 2 sender must use an unused identifier, send PUBLISH QoS=2 DUP=0, send PUBREL on PUBREC, await PUBCOMP, and never re-send the PUBLISH after PUBREL.
3.1.1/MQTT-4.3.3-24.3.3MUSTYes7MappedA QoS 2 receiver must PUBREC with the identifier, re-PUBREC repeats without onward duplicates until PUBREL, answer PUBREL with PUBCOMP, then treat the identifier as new.
3.1.1/MQTT-4.4.0-14.4.0MUSTYes6MappedOn reconnect with CleanSession=0 both client and server must re-send every unacknowledged QoS>0 PUBLISH and PUBREL using the original Packet Identifiers.
3.1.1/MQTT-4.5.0-14.5.0MUSTYes3MappedWhen the server takes ownership of an incoming message it must add it to the session state of every client with a matching subscription.
3.1.1/MQTT-4.6.0-14.6.0MUSTYes2MappedRe-sent QoS 1 and QoS 2 PUBLISH packets must go out in the original send order; the server is bound to this rule by MQTT-4.6.0-6.
3.1.1/MQTT-4.6.0-24.6.0MUSTYes2MappedPUBACKs must be sent in the order the corresponding QoS 1 PUBLISH packets were received; the server is bound to this rule by MQTT-4.6.0-6.
3.1.1/MQTT-4.6.0-34.6.0MUSTYes2MappedPUBRECs must be sent in the order the corresponding QoS 2 PUBLISH packets were received; the server is bound to this rule by MQTT-4.6.0-6.
3.1.1/MQTT-4.6.0-44.6.0MUSTYes1MappedPUBRELs must be sent in the order the corresponding PUBREC packets were received; the server is bound to this rule by MQTT-4.6.0-6.
3.1.1/MQTT-4.6.0-54.6.0MUSTYes2MappedThe server must treat every topic as an Ordered Topic by default; it may offer an administrative way to mark topics as Unordered.
3.1.1/MQTT-4.6.0-64.6.0MUSTYes3MappedFor Ordered Topics the server must apply the 4.6 ordering rules to each subscriber and forward PUBLISHes per topic and QoS in the order received from each client.
3.1.1/MQTT-4.7.1-14.7.1MUST NOTYes2MappedWildcard characters may be used in Topic Filters but must not appear within a Topic Name.
3.1.1/MQTT-4.7.1-24.7.1MUSTYes4MappedThe '#' wildcard must stand alone or directly follow a '/' separator, and must be the last character of the Topic Filter.
3.1.1/MQTT-4.7.1-34.7.1MUSTYes6MappedThe '+' wildcard may be used at any level, including first and last, but must occupy an entire topic level.
3.1.1/MQTT-4.7.2-14.7.2MUST NOTYes5MappedThe server must not match Topic Filters starting with '#' or '+' against Topic Names starting with '$'.
3.1.1/MQTT-4.7.3-14.7.3MUSTYes3MappedEvery Topic Name and Topic Filter must be non-empty, i.e. contain at least one character.
3.1.1/MQTT-4.7.3-24.7.3MUST NOTYes4MappedTopic Names and Topic Filters must not contain the null character U+0000.
3.1.1/MQTT-4.7.3-34.7.3MUST NOTYes2MappedTopic Names and Topic Filters must not encode to more than 65535 bytes.
3.1.1/MQTT-4.7.3-44.7.3MUST NOTYes2MappedDuring subscription matching the server must not normalize Topic Names or Filters nor modify or substitute unrecognized characters.
3.1.1/MQTT-4.8.0-14.8.0MUSTYes4MappedUnless stated otherwise, a client or server that encounters a protocol violation must close the network connection that carried the offending packet.
3.1.1/MQTT-4.8.0-24.8.0MUSTYes1MappedA client or server hitting a transient error while processing an inbound packet must close the network connection that carried it.
3.1.1/MQTT-6.0.0-16.0.0MUSTYes4MappedOver WebSocket, MQTT packets must be sent in binary data frames; a recipient receiving any other data frame type must close the network connection.
3.1.1/MQTT-6.0.0-26.0.0MUST NOTYes3MappedA WebSocket receiver must not assume MQTT packets align with frame boundaries; one frame may hold several or partial packets.
3.1.1/MQTT-6.0.0-46.0.0MUSTYes2MappedThe WebSocket subprotocol the server selects and returns in the handshake must be 'mqtt'.
3.1.1/MQTT-7.0.0-17.0.0MUSTYes0Not yet mappedA server that also opens outbound connections to other servers (e.g. as a bridge) must meet the conformance requirements of both an MQTT client and an MQTT server.
3.1.1/MQTT-7.0.0-27.0.0MUST NOTYes1MappedA conformant implementation must not require any extension defined outside this specification to interoperate with other conformant implementations.
3.1.1/MQTT-7.1.1-17.1.1MUSTYes1MappedA conformant server must support at least one transport that provides an ordered, lossless, bidirectional byte stream between client and server.
5.0/MQTT-1.5.4-11.5.4MUSTYes3MappedUTF-8 string data must be well-formed UTF-8 and must not encode surrogate code points U+D800..U+DFFF; receiver treats violations as Malformed Packet.
5.0/MQTT-1.5.4-21.5.4MUST NOTYes2MappedUTF-8 encoded strings must not contain the null character U+0000.
5.0/MQTT-1.5.4-31.5.4MUST NOTYes1MappedThe byte sequence EF BB BF inside a string is U+FEFF and a receiver must preserve it, never skipping or stripping it.
5.0/MQTT-1.5.5-11.5.5MUSTYes5MappedVariable Byte Integers must be encoded using the minimum number of bytes needed for the value; non-minimal encodings are invalid.
5.0/MQTT-1.5.7-11.5.7MUSTYes3MappedBoth the name and the value of a UTF-8 String Pair must satisfy all UTF-8 Encoded String rules.
5.0/MQTT-2.1.3-12.1.3MUSTYes4MappedFixed-header flag bits marked Reserved must carry exactly the value listed for that packet type; other values make the packet malformed.
5.0/MQTT-2.2.1-22.2.1MUST NOTYes1MappedA QoS 0 PUBLISH must not carry a Packet Identifier field.
5.0/MQTT-2.2.1-32.2.1MUSTYes1MappedEach new client SUBSCRIBE, UNSUBSCRIBE, or QoS>0 PUBLISH must use a non-zero Packet Identifier not currently in use by that client.
5.0/MQTT-2.2.1-42.2.1MUSTYes1MappedEach new QoS>0 PUBLISH sent by the Server must use a non-zero Packet Identifier not currently in use for that session.
5.0/MQTT-2.2.1-52.2.1MUSTYes1MappedPUBACK, PUBREC, PUBREL and PUBCOMP must echo the Packet Identifier of the PUBLISH flow they belong to.
5.0/MQTT-2.2.1-62.2.1MUSTYes1MappedSUBACK and UNSUBACK must echo the Packet Identifier of the SUBSCRIBE or UNSUBSCRIBE being acknowledged.
5.0/MQTT-2.2.2-12.2.2.1MUSTYes2MappedWhen a packet has no properties, the Property Length field must still be present and set to zero.
5.0/MQTT-3.1.0-13.1MUSTYes2MappedThe first packet a Client sends on a new Network Connection must be CONNECT; the Server treats anything else as a protocol violation.
5.0/MQTT-3.1.0-23.1MUSTYes2MappedA second CONNECT on the same Network Connection must be handled by the Server as a Protocol Error, closing the connection.
5.0/MQTT-3.1.2-13.1.2.1MUSTYes2MappedCONNECT Protocol Name must be the UTF-8 string "MQTT"; otherwise Server may send CONNACK 0x84 and must close the connection.
5.0/MQTT-3.1.2-23.1.2.2MUSTYes3MappedIf Protocol Version is not 5 and the Server rejects it, it may send CONNACK 0x84 and must then close the connection.
5.0/MQTT-3.1.2-33.1.2.3MUSTYes3MappedServer must check that the CONNECT flags reserved bit (bit 0) is 0 and treat a non-zero value as Malformed Packet.
5.0/MQTT-3.1.2-43.1.2.4MUSTYes2MappedOn CONNECT with Clean Start=1, Client and Server must discard any existing Session and begin a fresh one.
5.0/MQTT-3.1.2-53.1.2.4MUSTYes5MappedOn CONNECT with Clean Start=0 and an existing Session for the ClientID, the Server must resume using that Session's state.
5.0/MQTT-3.1.2-63.1.2.4MUSTYes1MappedOn CONNECT with Clean Start=0 and no Session for the ClientID, the Server must create a new Session.
5.0/MQTT-3.1.2-73.1.2.5MUSTYes1MappedWhen Will Flag=1, the Server must store the Will Message and associate it with the Session.
5.0/MQTT-3.1.2-83.1.2.5MUSTYes11MappedServer must publish the Will after connection close once Will Delay elapses or Session ends, unless removed by DISCONNECT 0x00 or a reconnect before the delay.
5.0/MQTT-3.1.2-93.1.2.5MUSTYes3MappedWhen Will Flag=1, the CONNECT payload must contain Will Properties, Will Topic and Will Payload; Server uses Will QoS and Will Retain.
5.0/MQTT-3.1.2-103.1.2.5MUSTYes3MappedServer must remove the stored Will Message from Session State after publishing it or on receiving DISCONNECT with Reason Code 0x00.
5.0/MQTT-3.1.2-113.1.2.6MUSTYes2MappedWhen Will Flag=0, both Will QoS bits must be 0; a CONNECT violating this fails the Server's CONNECT format validation (see MQTT-3.1.4-1).
5.0/MQTT-3.1.2-123.1.2.6MAYYes2MappedWhen Will Flag=1, Will QoS may be 0, 1 or 2; a value of 3 is a Malformed Packet.
5.0/MQTT-3.1.2-133.1.2.7MUSTYes2MappedWhen Will Flag=0, the Will Retain bit must be 0; a CONNECT violating this fails the Server's CONNECT format validation (see MQTT-3.1.4-1).
5.0/MQTT-3.1.2-143.1.2.7MUSTYes3MappedIf Will Flag=1 and Will Retain=0, the Will Message must be published by the Server as non-retained.
5.0/MQTT-3.1.2-153.1.2.7MUSTYes1MappedIf Will Flag=1 and Will Retain=1, the Will Message must be published by the Server as retained.
5.0/MQTT-3.1.2-163.1.2.8MUST NOTYes2MappedIf User Name Flag=0, the CONNECT payload must not contain a User Name.
5.0/MQTT-3.1.2-173.1.2.8MUSTYes3MappedIf User Name Flag=1, the CONNECT payload must contain a User Name.
5.0/MQTT-3.1.2-183.1.2.9MUST NOTYes2MappedIf Password Flag=0, the CONNECT payload must not contain a Password.
5.0/MQTT-3.1.2-193.1.2.9MUSTYes3MappedIf Password Flag=1, the CONNECT payload must contain a Password.
5.0/MQTT-3.1.2-223.1.2.10MUSTYes2MappedWith non-zero Keep Alive, if no packet arrives from the Client within 1.5x the Keep Alive period, the Server must close the connection as a network failure.
5.0/MQTT-3.1.2-233.1.2.11.2MUSTYes2MappedWhen Session Expiry Interval is greater than 0, Client and Server must retain Session State after the Network Connection closes.
5.0/MQTT-3.1.2-243.1.2.11.4MUST NOTYes2MappedServer must not send any packet larger than the Maximum Packet Size the Client declared in CONNECT.
5.0/MQTT-3.1.2-253.1.2.11.4MUSTYes3MappedAn outgoing packet exceeding the Client's Maximum Packet Size must be silently discarded, with the Server behaving as if delivery of that message completed.
5.0/MQTT-3.1.2-263.1.2.11.5MUST NOTYes3MappedServer must not send a Topic Alias value greater than the Topic Alias Maximum the Client declared in CONNECT.
5.0/MQTT-3.1.2-273.1.2.11.5MUST NOTYes2MappedWhen the Client's CONNECT omits Topic Alias Maximum or sets it to 0, the Server must send that Client no Topic Aliases at all.
5.0/MQTT-3.1.2-283.1.2.11.6MUST NOTYes2MappedIf Request Response Information is 0, the Server must not include Response Information in CONNACK.
5.0/MQTT-3.1.2-293.1.2.11.7MUST NOTYes2MappedIf Request Problem Information is 0, the Server must not send Reason String or User Properties except on PUBLISH, CONNACK or DISCONNECT.
5.0/MQTT-3.1.2-303.1.2.11.9MUST NOTYes0Not yet mappedA Client that sent an Authentication Method must send only AUTH or DISCONNECT until it receives CONNACK.
5.0/MQTT-3.1.3-13.1.3MUSTYes1MappedCONNECT payload fields, when present, must appear in order: Client Identifier, Will Properties/Topic/Payload, User Name, Password.
5.0/MQTT-3.1.3-23.1.3.1MUSTYes1MappedClient and Server must use the ClientID to identify the Session State they hold for that Client.
5.0/MQTT-3.1.3-33.1.3.1MUSTYes1MappedThe ClientID must always be present as the first field of the CONNECT payload.
5.0/MQTT-3.1.3-43.1.3.1MUSTYes2MappedThe ClientID must be a valid UTF-8 Encoded String.
5.0/MQTT-3.1.3-53.1.3.1MUSTYes1MappedServer must accept ClientIDs of 1 to 23 bytes consisting solely of ASCII digits and upper/lower-case letters.
5.0/MQTT-3.1.3-63.1.3.1MUSTYes2MappedIf the Server permits a zero-length ClientID, it must assign that Client a unique ClientID.
5.0/MQTT-3.1.3-73.1.3.1MUSTYes3MappedFor an assigned ClientID, the Server must process CONNECT as if the Client supplied it and return it as Assigned Client Identifier in CONNACK.
5.0/MQTT-3.1.3-83.1.3.1MUSTYes2MappedWhen rejecting a ClientID, the Server may reply CONNACK 0x85 and must then close the Network Connection.
5.0/MQTT-3.1.3-93.1.3.2.2MUST NOTYes2MappedIf the Client reconnects to the Session before the Will Delay Interval expires, the Server must not publish the Will Message.
5.0/MQTT-3.1.3-103.1.3.2.8MUSTYes2MappedWhen publishing a Will Message, the Server must preserve the order of its User Properties.
5.0/MQTT-3.1.3-113.1.3.3MUSTYes1MappedThe Will Topic must be a valid UTF-8 Encoded String.
5.0/MQTT-3.1.3-123.1.3.5MUSTYes1MappedWhen present, the User Name must be a valid UTF-8 Encoded String.
5.0/MQTT-3.1.4-13.1.4MUSTYes2MappedServer must validate CONNECT against the packet format rules and close the connection if it is not well formed.
5.0/MQTT-3.1.4-23.1.4MUSTYes1MappedServer may apply extra checks and should authenticate/authorize; if any such check fails it must close the connection.
5.0/MQTT-3.1.4-33.1.4MUSTYes2MappedIf the ClientID is already connected, Server sends DISCONNECT 0x8E to the existing Client and must close that existing connection.
5.0/MQTT-3.1.4-43.1.4MUSTYes1MappedServer must carry out Clean Start processing when handling a CONNECT.
5.0/MQTT-3.1.4-53.1.4MUSTYes1MappedOn accepting a CONNECT, the Server must reply with CONNACK carrying Reason Code 0x00 (Success).
5.0/MQTT-3.1.4-63.1.4MUST NOTYes1MappedAfter rejecting a CONNECT, the Server must ignore all subsequent data from the Client except AUTH packets.
5.0/MQTT-3.2.0-13.2MUSTYes1MappedServer must send a successful CONNACK (0x00) before sending any packet other than AUTH.
5.0/MQTT-3.2.0-23.2MUST NOTYes1MappedServer must send at most one CONNACK per Network Connection.
5.0/MQTT-3.2.2-13.2.2.1MUSTYes3MappedBits 7-1 of the CONNACK Acknowledge Flags byte are reserved and must be 0.
5.0/MQTT-3.2.2-23.2.2.1.1MUSTYes2MappedWhen accepting a CONNECT with Clean Start=1, Server must send CONNACK with Session Present=0 and Reason Code 0x00.
5.0/MQTT-3.2.2-33.2.2.1.1MUSTYes4MappedWhen accepting Clean Start=0, Session Present must be 1 if Session State exists for the ClientID, else 0; Reason Code must be 0x00.
5.0/MQTT-3.2.2-63.2.2.1.1MUSTYes2MappedA CONNACK with a non-zero Reason Code must have Session Present set to 0.
5.0/MQTT-3.2.2-73.2.2.2MUSTYes1MappedAfter sending a CONNACK with Reason Code 0x80 or above, the Server must close the Network Connection.
5.0/MQTT-3.2.2-83.2.2.2MUSTYes2MappedCONNACK Reason Code must be one of the values defined in the Connect Reason Code table.
5.0/MQTT-3.2.2-93.2.2.3.4MUSTYes2MappedA Server not supporting QoS 1 or 2 must announce its highest supported QoS via the Maximum QoS property in CONNACK.
5.0/MQTT-3.2.2-103.2.2.3.4MUSTYes2MappedA Server with reduced Maximum QoS must still accept SUBSCRIBE requests asking for QoS 0, 1 or 2.
5.0/MQTT-3.2.2-113.2.2.3.4MUST NOTYes2MappedAfter receiving Maximum QoS, the Client must not publish above that QoS; Server treats violation as error (0x9B).
5.0/MQTT-3.2.2-123.2.2.3.4MUSTYes1MappedA CONNECT whose Will QoS exceeds Server capability must be rejected, preferably with CONNACK 0x9B, and the connection closed.
5.0/MQTT-3.2.2-133.2.2.3.5MUSTYes1MappedA CONNECT with Will Retain=1 to a Server lacking retain support must be rejected, preferably with CONNACK 0x9A, and the connection closed.
5.0/MQTT-3.2.2-143.2.2.3.5MUST NOTYes2MappedAfter Retain Available=0, the Client must not send PUBLISH with RETAIN=1; Server treats violation as error (0x9A).
5.0/MQTT-3.2.2-153.2.2.3.6MUST NOTYes4MappedClient must not send packets exceeding the Maximum Packet Size the Server declared in CONNACK; Server treats oversized packets as error (0x95).
5.0/MQTT-3.2.2-163.2.2.3.7MUSTYes3MappedFor a zero-length ClientID, CONNACK must include an Assigned Client Identifier not used by any other current Session on the Server.
5.0/MQTT-3.2.2-173.2.2.3.8MUST NOTYes2MappedClient must not send a Topic Alias greater than the Topic Alias Maximum given in CONNACK.
5.0/MQTT-3.2.2-183.2.2.3.8MUST NOTYes1MappedIf CONNACK omits Topic Alias Maximum or sets it to 0, the Client must not send any Topic Alias to the Server.
5.0/MQTT-3.2.2-193.2.2.3.9MUST NOTYes2MappedServer must omit the CONNACK Reason String if including it would exceed the Client's Maximum Packet Size.
5.0/MQTT-3.2.2-203.2.2.3.10MUST NOTYes2MappedServer must omit CONNACK User Properties if including them would exceed the Client's Maximum Packet Size.
5.0/MQTT-3.2.2-223.2.2.3.14MUSTYes1MappedIf no Server Keep Alive is sent in CONNACK, the Server must enforce the Keep Alive value from the Client's CONNECT.
5.0/MQTT-3.3.1-13.3.1.1MUSTYes3MappedThe DUP flag must be set to 1 whenever a PUBLISH packet is being re-delivered.
5.0/MQTT-3.3.1-23.3.1.1MUSTYes3MappedThe DUP flag must be 0 on every QoS 0 PUBLISH.
5.0/MQTT-3.3.1-33.3.1.1MUSTYes2MappedDUP on a forwarded PUBLISH must reflect only whether that outgoing packet is a retransmission, independent of the inbound DUP.
5.0/MQTT-3.3.1-43.3.1.2MUST NOTYes3MappedA PUBLISH must not have QoS bits set to 3 (both bits 1); receiver treats it as Malformed Packet.
5.0/MQTT-3.3.1-53.3.1.3MUSTYes5MappedOn a client PUBLISH with RETAIN=1, the Server must store the message, replacing any existing retained message for that topic.
5.0/MQTT-3.3.1-63.3.1.3MUSTYes3MappedA RETAIN=1 PUBLISH with empty payload is delivered normally but must clear any retained message for that topic.
5.0/MQTT-3.3.1-73.3.1.3MUST NOTYes3MappedA retained PUBLISH with a zero-byte payload must not itself be stored as a retained message.
5.0/MQTT-3.3.1-83.3.1.3MUST NOTYes2MappedOn a client PUBLISH with RETAIN=0, the Server must neither store it as retained nor alter any existing retained message.
5.0/MQTT-3.3.1-93.3.1.3MUSTYes5MappedWith Retain Handling 0, the Server must send matching retained messages when the subscription is made.
5.0/MQTT-3.3.1-103.3.1.3MUSTYes3MappedWith Retain Handling 1, Server must send matching retained messages if the subscription is new, and must not send them if it already existed.
5.0/MQTT-3.3.1-113.3.1.3MUST NOTYes2MappedWith Retain Handling 2, the Server must not send retained messages when the subscription is made.
5.0/MQTT-3.3.1-123.3.1.3MUSTYes4MappedIf Retain As Published is 0, the Server must forward messages with RETAIN=0 regardless of the received RETAIN flag.
5.0/MQTT-3.3.1-133.3.1.3MUSTYes3MappedIf Retain As Published is 1, the Server must forward messages with RETAIN equal to the received PUBLISH's RETAIN flag.
5.0/MQTT-3.3.2-13.3.2.1MUSTYes2MappedPUBLISH variable header must begin with the Topic Name, which must be a valid UTF-8 Encoded String.
5.0/MQTT-3.3.2-23.3.2.1MUST NOTYes2MappedThe PUBLISH Topic Name must not contain the wildcard characters + or #.
5.0/MQTT-3.3.2-33.3.2.1MUSTYes4MappedThe Topic Name in a PUBLISH forwarded to a subscriber must match that subscription's Topic Filter.
5.0/MQTT-3.3.2-43.3.2.3.2MUSTYes2MappedServer must forward the Payload Format Indicator unchanged to every subscriber receiving the message.
5.0/MQTT-3.3.2-53.3.2.3.3MUSTYes3MappedIf Message Expiry elapses before onward delivery to a subscriber has begun, the Server must delete that subscriber's copy.
5.0/MQTT-3.3.2-63.3.2.3.3MUSTYes7MappedForwarded PUBLISH must carry Message Expiry Interval equal to the received value minus the time the message waited in the Server.
5.0/MQTT-3.3.2-73.3.2.3.4MUST NOTYes2MappedTopic Alias mappings must not persist across Network Connections; receiver resets them per connection.
5.0/MQTT-3.3.2-83.3.2.3.4MUST NOTYes5MappedA PUBLISH must not carry Topic Alias 0; receiver treats it as Protocol Error.
5.0/MQTT-3.3.2-93.3.2.3.4MUST NOTYes4MappedClient must not send a Topic Alias greater than the Topic Alias Maximum returned in CONNACK.
5.0/MQTT-3.3.2-113.3.2.3.4MUST NOTYes2MappedServer must not send a Topic Alias greater than the Topic Alias Maximum the Client sent in CONNECT.
5.0/MQTT-3.3.2-123.3.2.3.4MUSTYes3MappedServer must accept any Topic Alias from 1 up to the Topic Alias Maximum it returned in CONNACK.
5.0/MQTT-3.3.2-133.3.2.3.5MUSTYes1MappedThe Response Topic property must be a valid UTF-8 Encoded String.
5.0/MQTT-3.3.2-143.3.2.3.5MUST NOTYes2MappedThe Response Topic property must not contain the wildcard characters + or #.
5.0/MQTT-3.3.2-153.3.2.3.5MUSTYes2MappedServer must forward the Response Topic unchanged to every subscriber receiving the message.
5.0/MQTT-3.3.2-163.3.2.3.6MUSTYes2MappedServer must forward Correlation Data unchanged to every subscriber receiving the message.
5.0/MQTT-3.3.2-173.3.2.3.7MUSTYes3MappedServer must forward all User Properties of a PUBLISH unchanged when delivering it to a Client.
5.0/MQTT-3.3.2-183.3.2.3.7MUSTYes4MappedServer must preserve the order of User Properties when forwarding a PUBLISH.
5.0/MQTT-3.3.2-193.3.2.3.9MUSTYes1MappedThe Content Type property must be a valid UTF-8 Encoded String.
5.0/MQTT-3.3.2-203.3.2.3.9MUSTYes3MappedServer must forward the Content Type unchanged to every subscriber receiving the message.
5.0/MQTT-3.3.4-13.3.4MUSTYes4MappedThe receiver of a PUBLISH must respond with the acknowledgement required by its QoS (none, PUBACK, or PUBREC).
5.0/MQTT-3.3.4-23.3.4MUSTYes2MappedWhen a message matches several overlapping subscriptions of one Client, the Server must deliver it at the highest QoS among those subscriptions.
5.0/MQTT-3.3.4-33.3.4MUSTYes4MappedIf any overlapping matching subscription has a Subscription Identifier, the Server must include those identifiers in the delivered message(s).
5.0/MQTT-3.3.4-43.3.4MUSTYes2MappedWhen sending one copy for overlapping subscriptions, the PUBLISH must include Subscription Identifiers of all matching subscriptions that have one, in any order.
5.0/MQTT-3.3.4-53.3.4MUSTYes2MappedWhen sending one PUBLISH per matching subscription, each must carry that subscription's Subscription Identifier if it has one.
5.0/MQTT-3.3.4-63.3.4MUST NOTYes2MappedA PUBLISH from Client to Server must not include a Subscription Identifier; Server treats it as Protocol Error.
5.0/MQTT-3.3.4-73.3.4MUST NOTYes5MappedClient must not have more unacknowledged QoS 1/2 PUBLISH packets in flight than the Server's Receive Maximum; Server treats excess as error (0x93).
5.0/MQTT-3.3.4-93.3.4MUST NOTYes5MappedServer must not have more unacknowledged QoS 1/2 PUBLISH packets in flight to a Client than the Client's Receive Maximum.
5.0/MQTT-3.3.4-103.3.4MUST NOTYes2MappedServer must not hold back non-PUBLISH packets because its Receive Maximum in-flight window to the Client is full.
5.0/MQTT-3.4.2-13.4.2.1MUSTYes2MappedA PUBACK must use a Reason Code from the defined PUBACK Reason Code set.
5.0/MQTT-3.4.2-23.4.2.2.2MUST NOTYes1MappedPUBACK Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.4.2-33.4.2.2.3MUST NOTYes1MappedPUBACK User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.5.2-13.5.2.1MUSTYes2MappedA PUBREC must use a Reason Code from the defined PUBREC Reason Code set.
5.0/MQTT-3.5.2-23.5.2.2.2MUST NOTYes1MappedPUBREC Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.5.2-33.5.2.2.3MUST NOTYes1MappedPUBREC User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.6.1-13.6.1MUSTYes2MappedPUBREL fixed-header flags must be 0b0010; Server must treat any other value as Malformed Packet and close the connection.
5.0/MQTT-3.6.2-13.6.2.1MUSTYes2MappedA PUBREL must use a Reason Code from the defined PUBREL Reason Code set.
5.0/MQTT-3.6.2-23.6.2.2.2MUST NOTYes1MappedPUBREL Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.6.2-33.6.2.2.3MUST NOTYes1MappedPUBREL User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.7.2-13.7.2.1MUSTYes2MappedA PUBCOMP must use a Reason Code from the defined PUBCOMP Reason Code set.
5.0/MQTT-3.7.2-23.7.2.2.2MUST NOTYes1MappedPUBCOMP Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.7.2-33.7.2.2.3MUST NOTYes1MappedPUBCOMP User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.8.1-13.8.1MUSTYes3MappedSUBSCRIBE fixed-header flags must be 0b0010; Server must treat any other value as Malformed Packet and close the connection.
5.0/MQTT-3.8.3-13.8.3MUSTYes1MappedEach Topic Filter in SUBSCRIBE must be a valid UTF-8 Encoded String.
5.0/MQTT-3.8.3-23.8.3MUSTYes2MappedSUBSCRIBE payload must contain at least one Topic Filter with its Subscription Options; an empty payload is a Protocol Error.
5.0/MQTT-3.8.3-33.8.3.1MUST NOTYes3MappedWith No Local=1, the Server must not deliver messages back to a connection whose ClientID equals the publisher's ClientID.
5.0/MQTT-3.8.3-43.8.3.1MUST NOTYes2MappedSetting No Local=1 on a Shared Subscription is a Protocol Error; Server must treat it as such.
5.0/MQTT-3.8.3-53.8.3.1MUSTYes2MappedServer must treat SUBSCRIBE as malformed if any reserved bits of a Subscription Options byte are non-zero.
5.0/MQTT-3.8.4-13.8.4MUSTYes2MappedServer must answer every SUBSCRIBE with a SUBACK.
5.0/MQTT-3.8.4-23.8.4MUSTYes2MappedSUBACK must carry the same Packet Identifier as the SUBSCRIBE it acknowledges.
5.0/MQTT-3.8.4-33.8.4MUSTYes5MappedA SUBSCRIBE with a Topic Filter identical to an existing non-shared subscription in the Session must replace that subscription.
5.0/MQTT-3.8.4-43.8.4MUSTYes2MappedWhen replacing a subscription with Retain Handling 0, matching retained messages must be resent and no messages may be lost due to replacement.
5.0/MQTT-3.8.4-53.8.4MUSTYes4MappedA SUBSCRIBE with multiple Topic Filters must be handled as a sequence of individual subscribes, with one combined SUBACK.
5.0/MQTT-3.8.4-63.8.4MUSTYes3MappedSUBACK must contain one Reason Code per Topic Filter / Subscription Options pair in the SUBSCRIBE.
5.0/MQTT-3.8.4-73.8.4MUSTYes4MappedEach SUBACK Reason Code must state the granted maximum QoS for that filter or signal failure.
5.0/MQTT-3.8.4-83.8.4MUSTYes6MappedMessages delivered for a subscription must use the lower of the published QoS and the granted maximum QoS.
5.0/MQTT-3.9.2-13.9.2.1.2MUST NOTYes1MappedSUBACK Reason String must be omitted if it would exceed the Client's Maximum Packet Size.
5.0/MQTT-3.9.2-23.9.2.1.3MUST NOTYes1MappedSUBACK User Properties must be omitted if they would exceed the Client's Maximum Packet Size.
5.0/MQTT-3.9.3-13.9.3MUSTYes2MappedSUBACK Reason Codes must be in the same order as the Topic Filters in the SUBSCRIBE.
5.0/MQTT-3.9.3-23.9.3MUSTYes4MappedSUBACK must contain a valid Subscribe Reason Code value for each received Topic Filter.
5.0/MQTT-3.10.1-13.10.1MUSTYes2MappedUNSUBSCRIBE fixed-header flags must be 0b0010; Server must treat any other value as Malformed Packet and close the connection.
5.0/MQTT-3.10.3-13.10.3MUSTYes1MappedEach Topic Filter in UNSUBSCRIBE must be a valid UTF-8 Encoded String.
5.0/MQTT-3.10.3-23.10.3MUSTYes2MappedUNSUBSCRIBE payload must contain at least one Topic Filter; an empty payload is a Protocol Error.
5.0/MQTT-3.10.4-13.10.4MUSTYes3MappedUNSUBSCRIBE filters must be compared byte-for-byte (no wildcard matching) with existing filters; an exact match must delete that subscription.
5.0/MQTT-3.10.4-23.10.4MUSTYes4MappedOn UNSUBSCRIBE, the Server must stop queuing new matching messages for that Client.
5.0/MQTT-3.10.4-33.10.4MUSTYes1MappedOn UNSUBSCRIBE, the Server must finish delivering QoS 1/2 messages for those filters that it had already started sending.
5.0/MQTT-3.10.4-43.10.4MUSTYes3MappedServer must answer every UNSUBSCRIBE with an UNSUBACK.
5.0/MQTT-3.10.4-53.10.4MUSTYes3MappedUNSUBACK must carry the UNSUBSCRIBE's Packet Identifier and must be sent even when no subscription was removed.
5.0/MQTT-3.10.4-63.10.4MUSTYes3MappedAn UNSUBSCRIBE with multiple filters must be processed as a sequence of individual unsubscribes, with a single UNSUBACK.
5.0/MQTT-3.11.2-13.11.2.1.2MUST NOTYes1MappedUNSUBACK Reason String must be omitted if it would exceed the Client's Maximum Packet Size.
5.0/MQTT-3.11.2-23.11.2.1.3MUST NOTYes1MappedUNSUBACK User Properties must be omitted if they would exceed the receiver's Maximum Packet Size.
5.0/MQTT-3.11.3-13.11.3MUSTYes2MappedUNSUBACK Reason Codes must be in the same order as the Topic Filters in the UNSUBSCRIBE.
5.0/MQTT-3.11.3-23.11.3MUSTYes5MappedUNSUBACK must contain a valid Unsubscribe Reason Code value for each received Topic Filter.
5.0/MQTT-3.12.4-13.12.4MUSTYes2MappedServer must reply to every PINGREQ with a PINGRESP.
5.0/MQTT-3.14.0-13.14MUST NOTYes2MappedServer must not send DISCONNECT before it has sent a CONNACK with Reason Code below 0x80.
5.0/MQTT-3.14.1-13.14.1MUSTYes2MappedReceiver must check DISCONNECT fixed-header reserved bits are 0; if not, it sends DISCONNECT 0x81 (Malformed Packet).
5.0/MQTT-3.14.2-13.14.2.1MUSTYes2MappedA DISCONNECT must use a Reason Code from the defined DISCONNECT Reason Code set.
5.0/MQTT-3.14.2-23.14.2.2.2MUST NOTYes2MappedServer must not include a Session Expiry Interval property in DISCONNECT.
5.0/MQTT-3.14.2-33.14.2.2.3MUST NOTYes1MappedDISCONNECT Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.14.2-43.14.2.2.4MUST NOTYes1MappedDISCONNECT User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.14.4-13.14.4MUST NOTYes1MappedAfter sending DISCONNECT, the sender must not send any further packets on that connection.
5.0/MQTT-3.14.4-23.14.4MUSTYes1MappedAfter sending DISCONNECT, the sender must close the Network Connection.
5.0/MQTT-3.14.4-33.14.4MUSTYes2MappedOn receiving DISCONNECT with Reason Code 0x00, the Server must discard the connection's Will Message without publishing it.
5.0/MQTT-3.15.1-13.15.1MUSTYes1MappedAUTH fixed-header flags must all be 0; any other value must be treated as Malformed Packet and the connection closed.
5.0/MQTT-3.15.2-13.15.2.1MUSTYes1MappedAn AUTH packet must use a Reason Code from the defined Authenticate Reason Code set.
5.0/MQTT-3.15.2-23.15.2.2.4MUST NOTYes0Not yet mappedAUTH Reason String must be omitted if it would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-3.15.2-33.15.2.2.5MUST NOTYes0Not yet mappedAUTH User Properties must be omitted if they would push the packet over the receiver's Maximum Packet Size.
5.0/MQTT-4.1.0-14.1.1MUST NOTYes1MappedClient and Server must not discard Session State while the Network Connection remains open.
5.0/MQTT-4.1.0-24.1.1MUSTYes3MappedServer must discard Session State once the connection is closed and the Session Expiry Interval has elapsed.
5.0/MQTT-4.2.0-14.2MUSTYes1MappedClient and Server must support at least one transport giving an ordered, lossless, bidirectional byte stream (e.g. TCP, TLS, WebSocket).
5.0/MQTT-4.3.1-14.3.1MUSTYes3MappedFor QoS 0, the sender must send PUBLISH with QoS 0 and DUP=0.
5.0/MQTT-4.3.2-14.3.2MUSTYes3MappedFor QoS 1, the sender must assign an unused Packet Identifier to each new Application Message.
5.0/MQTT-4.3.2-24.3.2MUSTYes4MappedFor QoS 1, the sender must send PUBLISH with that Packet Identifier, QoS 1 and DUP=0.
5.0/MQTT-4.3.2-34.3.2MUSTYes1MappedFor QoS 1, the sender must keep the PUBLISH as unacknowledged until the matching PUBACK arrives.
5.0/MQTT-4.3.2-44.3.2MUSTYes3MappedFor QoS 1, the receiver must take ownership and reply with PUBACK carrying the incoming Packet Identifier.
5.0/MQTT-4.3.2-54.3.2MUSTYes1MappedFor QoS 1, after sending PUBACK the receiver must treat a later PUBLISH with the same Packet Identifier as a new message, whatever its DUP flag.
5.0/MQTT-4.3.3-14.3.3MUSTYes2MappedFor QoS 2, the sender must assign an unused Packet Identifier to each new Application Message.
5.0/MQTT-4.3.3-24.3.3MUSTYes2MappedFor QoS 2, the sender must send PUBLISH with that Packet Identifier, QoS 2 and DUP=0.
5.0/MQTT-4.3.3-34.3.3MUSTYes1MappedFor QoS 2, the sender must keep the PUBLISH as unacknowledged until the matching PUBREC arrives.
5.0/MQTT-4.3.3-44.3.3MUSTYes2MappedFor QoS 2, on PUBREC with Reason Code below 0x80, the sender must send PUBREL with the original Packet Identifier.
5.0/MQTT-4.3.3-54.3.3MUSTYes1MappedFor QoS 2, the sender must keep the PUBREL as unacknowledged until the matching PUBCOMP arrives.
5.0/MQTT-4.3.3-64.3.3MUST NOTYes3MappedFor QoS 2, once PUBREL has been sent the sender must not resend the PUBLISH.
5.0/MQTT-4.3.3-74.3.3MUST NOTYes1MappedFor QoS 2, the sender must not apply message expiry to a message whose PUBLISH has already been sent.
5.0/MQTT-4.3.3-84.3.3MUSTYes2MappedFor QoS 2, the receiver must take ownership and reply with PUBREC carrying the incoming Packet Identifier.
5.0/MQTT-4.3.3-94.3.3MUSTYes1MappedFor QoS 2, after sending PUBREC with Reason Code 0x80 or above, the receiver must treat a later PUBLISH with that Packet Identifier as new.
5.0/MQTT-4.3.3-104.3.3MUSTYes5MappedFor QoS 2, until PUBREL arrives, a repeated PUBLISH with the same Packet Identifier must get PUBREC and must not cause duplicate onward delivery.
5.0/MQTT-4.3.3-114.3.3MUSTYes3MappedFor QoS 2, the receiver must answer PUBREL with PUBCOMP carrying the same Packet Identifier.
5.0/MQTT-4.3.3-124.3.3MUSTYes2MappedFor QoS 2, after sending PUBCOMP the receiver must treat a later PUBLISH with that Packet Identifier as a new message.
5.0/MQTT-4.3.3-134.3.3MUSTYes1MappedFor QoS 2, the receiver must complete the PUBREC/PUBREL/PUBCOMP exchange even if the message has expired.
5.0/MQTT-4.4.0-14.4MUSTYes5MappedOn reconnect with Clean Start=0 and an existing session, unacked QoS>0 PUBLISH and PUBREL must be resent with original Packet Identifiers; never resend otherwise.
5.0/MQTT-4.4.0-24.4MUST NOTYes1MappedA PUBLISH answered by PUBACK or PUBREC with Reason Code 0x80 or above is acknowledged and must not be retransmitted.
5.0/MQTT-4.5.0-14.5MUSTYes6MappedWhen the Server takes ownership of a message it must add it to the Session State of every Client with a matching subscription.
5.0/MQTT-4.6.0-54.6MUSTYes2MappedFor an Ordered Topic, Server must deliver PUBLISH packets to consumers (same topic and QoS) in the order received from each publishing Client.
5.0/MQTT-4.6.0-64.6MUSTYes3MappedServer must treat every topic as an Ordered Topic when forwarding on non-shared subscriptions.
5.0/MQTT-4.7.0-14.7.1MUST NOTYes1MappedWildcard characters are allowed in Topic Filters but must not appear in Topic Names.
5.0/MQTT-4.7.1-14.7.1.2MUSTYes4MappedThe # wildcard must stand alone or follow a / separator, and must be the final character of the Topic Filter.
5.0/MQTT-4.7.1-24.7.1.3MUSTYes6MappedThe + wildcard may appear at any level but must occupy that entire level of the Topic Filter.
5.0/MQTT-4.7.2-14.7.2MUST NOTYes5MappedTopic Filters beginning with # or + must not match Topic Names that begin with $.
5.0/MQTT-4.7.3-14.7.3MUSTYes3MappedEvery Topic Name and Topic Filter must be at least one character long.
5.0/MQTT-4.7.3-24.7.3MUST NOTYes4MappedTopic Names and Topic Filters must not contain U+0000.
5.0/MQTT-4.7.3-34.7.3MUST NOTYes2MappedTopic Names and Topic Filters must not exceed 65,535 bytes when UTF-8 encoded.
5.0/MQTT-4.7.3-44.7.3MUST NOTYes2MappedDuring subscription matching, the Server must not normalize topics or alter/substitute unrecognized characters.
5.0/MQTT-4.8.2-14.8.2MUSTYes2MappedA Shared Subscription filter must begin with $share/ followed by a ShareName of at least one character.
5.0/MQTT-4.8.2-24.8.2MUSTYes2MappedShareName must not contain /, + or #, and must be followed by / and then a Topic Filter.
5.0/MQTT-4.8.2-34.8.2MUSTYes2MappedWhen delivering a shared-subscription message, the Server must honour the granted QoS of the chosen Client's subscription.
5.0/MQTT-4.8.2-44.8.2MUSTYes2MappedIf a shared-subscription QoS 2 delivery is interrupted by disconnect, the Server must complete it to the same Client on reconnect.
5.0/MQTT-4.8.2-54.8.2MUST NOTYes1MappedIf that Client's Session ends before reconnecting, the Server must not redirect the message to another shared subscriber.
5.0/MQTT-4.8.2-64.8.2MUSTYes1MappedIf a shared subscriber rejects a PUBLISH with PUBACK/PUBREC 0x80 or above, the Server must drop it and not try other subscribers.
5.0/MQTT-4.9.0-14.9MUSTYes1MappedInitial send quota must be set to a non-zero value no larger than the peer's Receive Maximum.
5.0/MQTT-4.9.0-24.9MUST NOTYes2MappedSend quota decrements per QoS>0 PUBLISH sent; at zero, no further QoS>0 PUBLISH may be sent.
5.0/MQTT-4.9.0-34.9MUSTYes2MappedEven with send quota at zero, Client and Server must keep processing and responding to all other packets.
5.0/MQTT-4.12.0-14.12MUSTYes1MappedIf the Client's Authentication Method is unsupported, Server may send CONNACK 0x8C or 0x87 and must close the connection.
5.0/MQTT-4.12.0-24.12MUSTYes0Not yet mappedAn AUTH sent by the Server to request more authentication data must carry Reason Code 0x18 (Continue authentication).
5.0/MQTT-4.12.0-34.12MUSTYes0Not yet mappedA Client's AUTH responding to a Server AUTH challenge must carry Reason Code 0x18 (Continue authentication).
5.0/MQTT-4.12.0-44.12MUSTYes0Not yet mappedIf the Server rejects authentication at any stage, it may send CONNACK 0x80 or above and must close the connection.
5.0/MQTT-4.12.0-54.12MUSTYes0Not yet mappedIf CONNECT had an Authentication Method, every AUTH and a successful CONNACK must carry the same Authentication Method value.
5.0/MQTT-4.12.0-64.12MUST NOTYes2MappedIf CONNECT had no Authentication Method, Server must not send AUTH and must not include Authentication Method in CONNACK.
5.0/MQTT-4.12.0-74.12MUST NOTYes1MappedIf CONNECT had no Authentication Method, the Client must not send AUTH; Server treats it as Protocol Error.
5.0/MQTT-4.12.1-14.12.1MUSTYes0Not yet mappedA Client re-authenticating via AUTH 0x19 must use the same Authentication Method as the original connection authentication.
5.0/MQTT-4.12.1-24.12.1MUSTYes0Not yet mappedIf re-authentication fails, the peer should send DISCONNECT with a suitable Reason Code and must close the connection.
5.0/MQTT-4.13.1-14.13.1MUSTYes6MappedOn detecting a Malformed Packet or Protocol Error with a specified Reason Code, the Server must close the Network Connection.
5.0/MQTT-4.13.2-14.13.2MUSTYes1MappedWhen a Reason Code of 0x80 or above applies, the Network Connection must be closed whether or not CONNACK/DISCONNECT was actually sent.
5.0/MQTT-6.0.0-16MUSTYes4MappedOver WebSocket, MQTT packets must travel in binary frames; receiving any other data frame type must close the connection.
5.0/MQTT-6.0.0-26MUST NOTYes3MappedThe WebSocket receiver must not assume MQTT packet boundaries coincide with frame boundaries; frames may hold partial or multiple packets.
5.0/MQTT-6.0.0-46MUSTYes2MappedThe WebSocket subprotocol selected and returned by the Server must be "mqtt".

Interoperability

Alongside requirement tests, the conformance suite includes an interoperability runner for the Eclipse Paho test suite and a smoke test with the Eclipse Mosquitto command-line clients. Published interoperability results for more client libraries are planned.

The Paho runner executes the upstream MQTT 3.1.1 and 5.0 client tests (37 tests) with an empty allowlist: every test must pass. It currently pins a fork of eclipse-paho/paho.mqtt.testing that adds one fix. Upstream's MQTT 5.0 decoder rejects some valid SUBACK and UNSUBACK reason codes, such as 0x87 (Not authorized), which a broker sends when an ACL refuses a subscription (issue #92). The fix is proposed upstream in PR #93. Once it is merged, the runner goes back to pinning upstream.

On this page