Skip to main content

Module overlay_network

Module overlay_network 

Source
Expand description

Structured overlay network manager supporting multiple topology strategies.

This module provides OverlayNetworkManager, which models a logical overlay network on top of physical connectivity. It supports Chord finger-table routing, Pastry prefix routing, Kademlia greedy forwarding, FullMesh direct routing, and spanning Tree routing—all computed purely in-memory without I/O.

§Routing algorithms

TopologyRoute selectionLatency estimate
FullMeshdirect 1-hop20 ms
Chordfinger table log₂(N) hops20 ms/hop
TreeBFS in spanning tree20 ms/hop
Pastrygreedy numeric proximity20 ms/hop
Kademliagreedy numeric proximity20 ms/hop

Structs§

OverlayMessage
A message routed through the overlay network.
OverlayNetworkManager
Manages a logical overlay network of nodes with topology-aware routing.
OverlayNode
A participant in the overlay network.
OverlayRoute
A computed route through the overlay network.
OverlayStats
Snapshot of overlay network statistics.

Enums§

OverlayError
Errors returned by OverlayNetworkManager.
OverlayTopology
Overlay topology strategy used by OverlayNetworkManager.