As a rule of thumb, always defer to the actual spec rather than the wiki if there's any confusion. I don't see any mention of the cloud pinging devices in the spec, or even mention of "ping" or "gateway" for that matter. The details of CoAP+TCP ping/pong can be found in RFC8323 section 5.4
@yitzchak What use case do you have where you need keepalive messages so frequently? It was my understanding that coap+tcp keepalive messages were only to enable sessions longer than the keepalive settings of the TCP stack (IIRC the default is 2 hours and minimum is 5 minutes). If you need to send the cloud data in those pings, then you may be better served by using observe/notify messages. If you want to refresh NAT bindings, you can send empty messages (RFC8323 3.4). I've brought it up in the past, but feel it bears repeating, I'm personally much less concerned about how the device maintains long-lived connections with the cloud and much more concerned about load balancing (which struggles with long lived L4 connections) and cloud=>device message routing (how do you determine which pod/container is connected with your target device in a scalable fashion?). Regards, Scott -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wouter van der Beek via Lists.Iotivity.Org Sent: Wednesday, October 31, 2018 11:15 AM To: Mats Wichmann <[email protected]>; Ondrej Tomcik <[email protected]>; [email protected]; [email protected] Cc: [email protected] Subject: Re: [dev] Maintaining a connection from Coap devices to the iotivity cloud Hi Mats, The current cloud spec only allows that a device is reachable through the cloud by having its own connection to the cloud. Hence to be reachable outside the home, the device needs to be connected. Additional work, by defining a gateway, the routing can be done via that gateway for all the devices on that network segment. That would reduce the amount of connections. Not sure when this will be ready though. Kind Regards, Wouter -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Mats Wichmann Sent: Wednesday, October 31, 2018 2:59 PM To: Ondrej Tomcik <[email protected]>; [email protected]; [email protected] Subject: Re: [dev] Maintaining a connection from Coap devices to the iotivity cloud On 10/31/18 4:26 AM, Ondrej Tomcik wrote: > Hello! > See my comments: > In a production iotivity cloud setup, with many Coap devices > connecting to the cloud, it is very important to make sure that coap > devices maintain a connection to the iotivity cloud as much as > possible as a rank amateur at this aspect of the technology, it seems to me the above is something you really don't want to do - have a whole bunch of devices EACH trying to maintain connections to the cloud. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9980): https://lists.iotivity.org/g/iotivity-dev/message/9980 Mute This Topic: https://lists.iotivity.org/mt/27796570/21656 Group Owner: [email protected] Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
