package net.i2p.router.peermanager
Peer profiles and capacity calculation, peer test jobs, peer selection for tunnel building, and the database and tunnel history used for peer selection. Profiles persist across restarts. Not for use by apps, clients or plugins.
- ClassDescriptionEstimate how many of our tunnels the peer can join per hour.History of NetDb related activities (lookups, replies, stores, etc).Reliability classification for floodfill peers based on proven request-handling history.Determine how well integrated a peer is - how likely they will be useful to us if we are trying to get further connected.Order profiles by their capacity, but backwards (highest capacity / value first).Tracks peer capabilities and manages the periodic profile reorganization cycle.Base implementation that has simple algorithms and periodically saves state.Copied from http://www.i2p2.i2p/how_peerselection.htmlDefines the criteria for selecting a set of peers for use when searching the PeerManager.Periodically tests selected peers to gather real-time performance data and update peer profiles.Cached peer data to eliminate repeated lookups and string parsing.Methods to update profiles.Categorizes peers into performance tiers (fast, high-capacity, well-integrated) based on historical metrics from
PeerProfile.Result ofProfileOrganizer.buildCandidateProfiles(long, long, long, long, long): the candidate set plus the totals and counts consumed by the threshold and logging sections.Why a peer was evicted from a tier.Defines peer selection slicing modes for tier-based peer organization.Write profiles to disk at shutdown, read at startup.A profile file considered for deletion, with the age that decides its order.Filter selecting the profile files.A latency baseline for one transport, built from the round trip times that transport has actually measured.Per-cycle state for the promotion deferral on a stale RouterInfo.Quantify how fast the peer is based on advertised bandwidth tier, measured latency, congestion capability, and actual tunnel throughput.Order profiles by their speed (lowest first).Tunnel related history information.