← Back to the chapter · Next detail →
Technical detail · CoAP Security: CON and NON Trade-Offs
Why the message-type advisor can violate a loss policy
The CoAP message-type advisor is a simplified model for choosing Confirmable (CON) messages with receipt acknowledgements or Non-confirmable (NON) messages without them.
The message-type advisor on the reference page illustrates why a recommendation needs checking against the declared requirement. With battery priority set to critical, loss tolerance 0% and network loss 40%, it recommends NON for periodic readings even though loss exceeds the tolerance. That output does not satisfy the declared policy.
CON adds bounded retries but cannot guarantee zero loss. Define application failure handling rather than treating either message type as proof of success. The advisor’s fixed energy and latency values are discussion assumptions, not device measurements. Its timeline mixes retry intervals with elapsed send times, so it cannot establish timer settings or a delivery guarantee.