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

add link reliability metrics, fix aggressive node removal on first packet loss #99

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

cskiraly
Copy link
Collaborator

@cskiraly cskiraly commented Oct 8, 2024

UDP packets get lost easily. We can't just remove
nodes from the routing table at first loss, as it can create issues in small networks and in cases of temporary connection failures.

Copy link
Member

@gmega gmega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a great improvement, but I worry a bit about us keeping dead nodes in the routing table for too long. Going to approve it but would like to discuss this.

codexdht/private/eth/p2p/discoveryv5/protocol.nim Outdated Show resolved Hide resolved
UDP packets get lost easily. We can't just remove
nodes from the routing table at first loss, as it can
create issues in small networks and in cases of temporary
connection failures.

Signed-off-by: Csaba Kiraly <[email protected]>
keep defaults as before

Signed-off-by: Csaba Kiraly <[email protected]>

# Conflicts:
#	codexdht/private/eth/p2p/discoveryv5/node.nim
#	codexdht/private/eth/p2p/discoveryv5/routing_table.nim
Signed-off-by: Csaba Kiraly <[email protected]>

# Conflicts:
#	codexdht/private/eth/p2p/discoveryv5/protocol.nim
@cskiraly cskiraly changed the title fix aggressive node removal from on first packet loss fix aggressive node removal on first packet loss Oct 14, 2024
@cskiraly
Copy link
Collaborator Author

rebased on current master

@cskiraly cskiraly changed the title fix aggressive node removal on first packet loss add link reliability metrics, fix aggressive node removal on first packet loss Oct 18, 2024
@cskiraly cskiraly merged commit ee4e210 into master Oct 18, 2024
6 checks passed
@cskiraly cskiraly deleted the fix-removal branch October 18, 2024 18:14
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

Successfully merging this pull request may close these issues.

2 participants