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

Don't accept inbound connection establishments more than peering_degree #939

Open
youngjoon-lee opened this issue Dec 10, 2024 · 2 comments · May be fixed by #989
Open

Don't accept inbound connection establishments more than peering_degree #939

youngjoon-lee opened this issue Dec 10, 2024 · 2 comments · May be fixed by #989
Labels
Milestone

Comments

@youngjoon-lee
Copy link
Contributor

youngjoon-lee commented Dec 10, 2024

If a node already has the max_peering_degree number of connections, the node should reject additional inbound connection establishments to save bandwidth.
This has been discussed in the comment and added in the specification at 2024-12-10.

@youngjoon-lee youngjoon-lee added this to the Iteration 8 milestone Dec 10, 2024
@youngjoon-lee youngjoon-lee self-assigned this Dec 10, 2024
@danielSanchezQ
Copy link
Collaborator

If a node already has the peering_degree number of healthy connections, the node should reject additional inbound connection establishments to save bandwidth. This hasn't been specified in the specification, but recently discussed in the comment. Here, we shouldn't use the max_peering_degree parameter, which is for limiting additional "outbound" connection establishments to replace malicious/unhealthy connections, not for limiting inbound connection establishments.

I thought connections were used for both sending and receiving meaning that blendnodes would have a total of max_peering_degree connections. This kinda makes sense, if a peer is missbehaving then we need to remove both incoming and outgoing (streams, as the connection should be the same?).

@youngjoon-lee youngjoon-lee removed this from the Iteration 8 milestone Dec 16, 2024
@youngjoon-lee
Copy link
Contributor Author

I thought connections were used for both sending and receiving meaning that blendnodes would have a total of max_peering_degree connections. This kinda makes sense, if a peer is missbehaving then we need to remove both incoming and outgoing (streams, as the connection should be the same?).

Exactly. I developed the discussion with Marcin and update the specification. Accordingly, I updated the issue description above. Yes. All connections are bidirectional. Each node must have max_peering_degree connections at most.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants