[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Californium (Cf) CoAP Framework » "Fire and Forget" possible?(Is it possible to send messages without expecting any response?)
"Fire and Forget" possible? [message #1859899] Tue, 04 July 2023 12:53 Go to next message
Felix Noz is currently offline Felix NozFriend
Messages: 2
Registered: July 2023
Junior Member
Hi,

we are currently evaluating CoAP/Californium. One use case we have so far is that we're sending messages very frequently on rather constrained hardware resources. Therefore we want to avoid as much network traffic as possible.
My question is: is it possible to use CoAP/Califormium with real "fire and forget" semantics, e.g. the client sends a message to the server and does not expect any response so that there's no timeout/retransmission handling?

Regards
Felix
Re: "Fire and Forget" possible? [message #1859902 is a reply to message #1859899] Tue, 04 July 2023 17:40 Go to previous messageGo to next message
Achim Kraus is currently offline Achim KrausFriend
Messages: 6
Registered: August 2021
Junior Member
The short answer:

Yes, use NON requests with RFC 7967 (No Server Response).

The more complete answer:

What is considered to be "very frequently"?
CoAP uses a 16 bit MID and that is usually valid for about 4 minutes. That's round about 200 msg/s.

And are you sure, that "fire and forget" is the right approach?
At least every now and then I would use a regular CON request to ensure, the server is still operating.

Re: "Fire and Forget" possible? [message #1860033 is a reply to message #1859902] Wed, 12 July 2023 13:31 Go to previous message
Felix Noz is currently offline Felix NozFriend
Messages: 2
Registered: July 2023
Junior Member
Thanks a lot for the hint about RFC 7967.

Our use case covers sending messages of different frequency. The highest frequency is about 60 Messages per second but we have to support 200 simultaneous connections for particular devices, so we have about 12000 Messages per second overall. These messages don't have to be confirmed so we hope that we can significantly lower the network traffic and CPU load by omitting the responses. For transport we want to use WebSockets over TLS.

Besides this there are also messages which will be confirmed but occur only every >1000ms which is sufficient to ensure that the server is still operating.
Previous Topic:how many request /sec a coap server can handle ?
Goto Forum:
  


Current Time: Thu Dec 12 14:07:58 GMT 2024

Powered by FUDForum. Page generated in 0.03195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top