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

Preventing anyone joining the network #589

Open
ghenry opened this issue Mar 7, 2022 · 9 comments
Open

Preventing anyone joining the network #589

ghenry opened this issue Mar 7, 2022 · 9 comments

Comments

@ghenry
Copy link
Collaborator

ghenry commented Mar 7, 2022

Hi all,

I'm running a public node on port 4222 for SentryPeer use at bootstrap.sentrypeer.org and already noticed:

OpenDHT node e83de88b72539594d45db90d08230fe8859c47d2 running on port 50836
1 ongoing operations
IPv4 stats:
Known nodes: 26 good, 12 dubious, 7 incoming.
4 searches, 293 total cached nodes
Routing table depth: 4
Network size estimation: 128 nodes

IPv6 stats:
Known nodes: 0 good, 0 dubious, 0 incoming.
1 searches, 8 total cached nodes

Is this a good thing?

@ghenry
Copy link
Collaborator Author

ghenry commented Mar 7, 2022

Should I be concerned? ld:

IP 51.91.75.152:52732 uses 77616 bytes
IP 54.36.178.20:48033 uses 70177 bytes
IP 51.222.10.40:35625 uses 57769 bytes

Total 67 storages, 52 values (200 / 65536 KB)

I don't know what they are storing...

@aberaud
Copy link
Member

aberaud commented Mar 7, 2022

OpenDHT is a public distributed key-value network, like others such as the mainline BitTorrent DHT, IPFS, ZeroNet and others.

That means other nodes on the network will help store your data, and your node will store data for others.

Unlike persistent networks like IPFS, OpenDHT is meant for small volatile data.

OpenDHT is often used as an overlay network, to map Application-level IDs with IP addresses.
For instance, the Bittorrent DHT maps the torrent ID (magnet link) with announcers (peers advertizing the file on the DHT).
Jami uses the DHT to discover devices from the JamiID and exchange encrypted ICE candidates to establish p2p connections.

OpenDHT can also be used as a best-effort signaling mechanism or to exchange light messages (it's used by Jami to signal incoming calls and messages when there is no existing p2p connection with a peer)

@ghenry
Copy link
Collaborator Author

ghenry commented Mar 7, 2022 via email

@ghenry
Copy link
Collaborator Author

ghenry commented May 6, 2022

Any tips?

@ghenry
Copy link
Collaborator Author

ghenry commented May 6, 2022

SentryPeer/SentryPeer#39

@ghenry
Copy link
Collaborator Author

ghenry commented May 8, 2022

Actually, just some UDP bandwidth control or max number is sessions would be ideal. Otherwise the connection gets saturated pretty quick.

@aberaud
Copy link
Member

aberaud commented May 8, 2022

UDP bandwidth saturation is not supposed to happen, nor is CPU saturation.

We run a significant amount of dht nodes (standalone, as bootstrap nodes, proxy nodes, and as part of Jami) and don't encounter these issues.

To investigate

@ghenry
Copy link
Collaborator Author

ghenry commented May 8, 2022

It was related to this SentryPeer/SentryPeer#39 (comment)

@ghenry
Copy link
Collaborator Author

ghenry commented May 8, 2022

I think the deletion loops

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