Skip to content

net: lwm2m: Registration retry behavior on timeout #57114

Answered by SeppoTakalo
mlasch asked this question in General
Discussion options

You must be logged in to vote

Thank you for the question @mlasch

If you use non-secure LwM2M, these two values seem to do almost the same.
However, they do have different purposes and it is visible when you use DTLS.

CoAP retry can handle single packets dropped from the application layer traffic. If that can recover, then there is no network failures assumed.
But when network NAT timeout have happened, CoAP retry can not recover. But if there is still lifetime left, recovering the DTLS session might recover the LwM2M connection.
So the difference between CoAP retries and RD_CLIENT_MAX_RETRIES is that socket is closed in between RD client retries.

Here is a relevant piece from the state machine diagram:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by carlescufi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: Networking area: LWM2M
2 participants
Converted from issue

This discussion was converted from issue #56774 on April 21, 2023 09:46.