Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoAP Echo option Support #2179

Open
sbernard31 opened this issue Sep 5, 2023 · 3 comments
Open

CoAP Echo option Support #2179

sbernard31 opened this issue Sep 5, 2023 · 3 comments

Comments

@sbernard31
Copy link
Contributor

Since LWM2M v1.1.1, "The CoAP Echo Option SHOULD be used to enable lightweight freshness verification." (See for more details : eclipse-leshan/leshan#1507))

I understand this is mainly to protect against :

So I try get more information about that.

  1. I understand this is not supported by Californium for now, right ?
  2. Is there plan to add support about it ?
  3. Even if this is not planned, I would like to understand what could means to support it ?

About 3. I understand this is a very application oriented solution. (by opposition to a protocol oriented solution)
In another world, I understand that an application developer should understand the "issue" and decide when he should use echo option or not. But in my experience application developers has not deep knowledge of protocol they are using, so relying on that sounds not so good.

I guess ideally this kind of hardening should be handled transparently at protocol stack level (at least by default).
E.g. When you are using TLS you don't need to think about that kind of thing, you just consider the connection safe.

Or maybe I missed something and there is a smart way to handle this at protocol layer transparently ?

@sbernard31
Copy link
Contributor Author

About 3., obgm/libcoap#786 is a partial answer.

@boaks
Copy link
Contributor

boaks commented Sep 5, 2023

  1. yes, Californium hasn't implemented it.
  2. from my side there are no plans
  3. Others, which have already implemented it may know it better.

I guess, that this may also be implemented as selective feature of CoapResource.

@boaks
Copy link
Contributor

boaks commented Feb 10, 2024

Though the ECHO is available, I assume, that someone, who is interested in this function, is able to implement that in the own "CoapResource.handle???" functions. And clients may react on the error response. I haven't studied the RFC, so it may be not possible without some more changes in the library itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants