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§
- Path
Candidate - A candidate path with measured RTT
- Path
Info - Information about a tracked path
- Path
Manager - Manager for tracking and closing redundant paths
Enums§
- Path
Type - 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