Tunnel creation, tunnel build message handling. Peer selection for tunnels. Grouping of tunnels into inbound and outbound pools. Pool configuration. Adaptive tunnel build strategy. Build request throttling, acceptance, rejection, and dropping based on local statistics and conditions.
Class Summary Class Description AliasedTunnelPoolA tunnel pool with its own settings and Destination, but uses another pool for its tunnels. BuildExecutorSingle threaded controller of the tunnel creation process, spanning all tunnel pools. BuildHandlerHandle the received tunnel build message requests and replies, including sending responsses to requests, updating the lists of our tunnels and participating tunnels, and updating stats. BuildRequestorMethods for creating Tunnel Build Messages, i.e. ClientPeerSelectorPick peers randomly out of the fast pool, and put them into tunnels ordered by XOR distance from a random key. ConnectCheckerTools to check transport compatibility. ExpireJobThis runs twice for each tunnel. ExploratoryPeerSelectorPick peers randomly out of the not-failing pool, and put them into a tunnel ordered by XOR distance from a random key. ParticipatingThrottlerCount how often we have accepted a tunnel with the peer as the previous or next hop. PooledTunnelCreatorConfigData about a tunnel we created RequestThrottlerLike ParticipatingThrottler, but checked much earlier, cleaned more frequently, and with more than double the min and max limits. TestJobRepeatedly test a single tunnel for its entire lifetime, or until the pool is shut down or removed from the client manager. TunnelPeerSelectorCoordinate the selection of peers to go into a tunnel for one particular pool. TunnelPoolA group of tunnels for the router or a particular client, in a single direction. TunnelPoolManagerManage all the exploratory and client tunnel pools.