amazon-kinesis-video-streams-webrtc-sdk-c icon indicating copy to clipboard operation
amazon-kinesis-video-streams-webrtc-sdk-c copied to clipboard

[QUESTION] host ice candidate socket and srflx ice candidate socket stay open until the peer connection is closed. Is it intended?

Open wei-zhang-simplisafe opened this issue 1 year ago • 2 comments

When webrtc KVS SDK is doing the ICE negotiation, it opens multiple UDP/TCP, one for each host ice candidate, one for each srflx ice candidate, and one for each turn server.

After an ice candidates pair is chosen, a.k.a. a remote ice candidate and a local ice candidate have exchanged stun packets, the not-in-use TURN sockets are closed,

But, SDK doesn’t close not-in-use host ice sockets and srflx ice sockets when an ice candidate pair is chosen, and only closes them when the peer connection is closed. Therefore, while live streaming is running, there are sockets open and idling. Is this intended behavior? Is there any network security concern? Is there any system resources wasting concern?

wei-zhang-simplisafe avatar Sep 18 '24 13:09 wei-zhang-simplisafe

Thank you for your observation. To better understand your camera module implementation, could you please provide additional details (or send email to [email protected]) on the following aspects:

  • How many network interfaces are utilized in your camera?
  • What is the method you are using to identify the open sockets in the camera?
  • Are you leveraging the SDK's capability to filter out unused or unnecessary network interfaces?
  • Is there any maximum duration of the streaming session (PeerConnection) allowed in the camera?

unicornss avatar Sep 20 '24 00:09 unicornss

How many network interfaces are utilized in your camera?

One

What is the method you are using to identify the open sockets in the camera?

Running Linux command "netstat -uantlp" And also by reading the SDK source code

Are you leveraging the SDK's capability to filter out unused or unnecessary network interfaces?

We know how to use the filtering, but not using it for the camera, because there is only one network interface

Is there any maximum duration of the streaming session (PeerConnection) allowed in the camera?

No

wei-zhang-simplisafe avatar Sep 20 '24 13:09 wei-zhang-simplisafe

This is a very old issue. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.

github-actions[bot] avatar Mar 20 '25 00:03 github-actions[bot]