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

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

Open
wei-zhang-simplisafe opened this issue Sep 18, 2024 · 2 comments
Assignees
Labels
needs-triage question Further information is requested

Comments

@wei-zhang-simplisafe
Copy link

wei-zhang-simplisafe commented Sep 18, 2024

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 wei-zhang-simplisafe added needs-triage question Further information is requested labels Sep 18, 2024
@unicornss unicornss self-assigned this Sep 19, 2024
@unicornss
Copy link
Contributor

unicornss commented Sep 20, 2024

Thank you for your observation. To better understand your camera module implementation, could you please provide additional details (or send email to kinesis-video-support@amazon.com) 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?

@wei-zhang-simplisafe
Copy link
Author

wei-zhang-simplisafe commented Sep 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants