Module path_selection

Module path_selection 

Source
Expand description

RTT-based path selection with hysteresis RTT-based path selection with hysteresis

Path selection algorithm:

  • Lower RTT paths preferred
  • 5ms hysteresis to prevent flapping
  • 3ms advantage for IPv6
  • Direct paths strongly preferred over relay

Structs§

PathCandidate
A candidate path with measured RTT
PathInfo
Information about a tracked path
PathManager
Manager for tracking and closing redundant paths

Enums§

PathType
Type of path connection

Constants§

IPV6_RTT_ADVANTAGE
RTT advantage given to IPv6 paths
MAX_CANDIDATES_PER_PEER
Maximum number of candidates per peer
MAX_INACTIVE_CANDIDATES
Maximum number of inactive candidates to keep
MIN_DIRECT_PATHS
Minimum number of direct paths to keep open
RTT_SWITCHING_MIN
Minimum RTT improvement required to switch paths (prevents flapping)

Functions§

select_best_path
Select the best path from candidates
select_v4_v6
Compare IPv4 and IPv6 paths, applying IPv6 advantage