Skip to content

Add 'lightweight' primitive connection functions (ping) #149

@joshuakarp

Description

@joshuakarp

Fundamental network functions ('PING', relaying a message, etc) require a heavyweight connection construction.

For example, in NodeGraph:getClosestGlobalNodes(), we only add discovered nodes to our buckets database once we deem the node to be 'active' or 'online'. The Kademlia specification suggests to perform a ping operation to determine whether a node is active. However, our current network implementation requires NAT punching to create a connection to a node before we can even determine if the node is active. Thus, for a simple operation, it requires a significant degree of overhead.

A lightweight mechanism for pinging another node (without requiring this heavy network construction) would be beneficial.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions