Protocols
Saved & recent

Protocol conformance

Also called: conformance testing, MUST SHOULD MAY, interoperability testing

Protocol conformance means meeting a specification’s applicable requirements, including message formats, state transitions and error behavior. Specifications using BCP 14 distinguish mandatory MUST requirements, SHOULD recommendations with carefully considered exceptions, and optional MAY features. The document’s own conformance rules determine what an implementation can claim.

A parser that accepts a valid request but mishandles a malformed one can still violate the protocol. Useful tests cover successful exchanges, boundary values and required rejection behavior, followed by exchanges with independent implementations. Passing a test suite is evidence about its coverage, not proof of every possible behavior; optional capabilities must also be handled consistently.

Related
Protocol, Protocol state machine, Protocol extensibility
Further reading
specification implementation expected outcomes valid message accept invalid message reject unsupported option specified fallback peer exchange peer response implementation independent peer interoperability check
Conformance includes required error behavior. Interoperability tests add evidence from real exchanges with another implementation.

View in the full Protocols collection