core-wg / oscore-key-update

Other
0 stars 0 forks source link

Handle situation with two simultaneously started key updates #97

Closed rikard-sics closed 2 weeks ago

rikard-sics commented 4 months ago

It might happen that both peers start KUDOS with one another, without knowing that the other peer has also simultaneously started KUDOS.

The scenario is that each peer:

Proposed solution If a peer P1 is acting as initiator in an ongoing KUDOS execution E1 with another peer P2, and P1 receives a first KUDOS message from P2 aimed to start a second KUDOS execution E2, then P1 MUST abort the execution E2 and MUST reply to P2 with a CoAP RST message. It might happen that both executions get cancelled, but at most one survives.