I'm currently evaluating DTLS-CID for our use cases.
As far as I understand, the point of CID is to have the connection-identifier be distinct from the port/ip tuple, so that the dlts connection can remain active/you don't need to do a new handshake when those change.
I'm baffled right now as to how to use this currently.
E.g. something I'd like to do is create a dtls-connection, send some data, and then turn off the modem. And then at a later point I'd like to turn the modem back on and send some new data, without having to perform a new handshake. But since I need to close the socket before turning of the modem (or the socket will return an error after turning the modem back on and I'd have to close/reopen it then), all state is discarded anyway and a new handshake needs to be performed.
Am I missing something (e.g. a way to explicitly persist dtls-state) or am I misinterpreting how this feature is supposed to be used? And if the later, I'd appreciate a quick explanation how you intend it to be used and in what situations I/the user sees benefit from it.
Regargs,
Henning