mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-17 20:05:22 +00:00
68273cd256
See previous checkin for SSU 1. This change dramatically reduces the measured RTT to get it much closer to the real RTT by reducing the ack delay. With the ack delay dependent on the measured RTT, the measured RTT will increase. Simulation results: For a denominator D in the ack delay calculation (currently 2) and a true RTT = TRTT: For D <= about 2, measured RTT -> TRTT + 2 * TRTT/D For D >= about 4, measured RTT -> TRTT + TRTT/D In other words, for D == 2, measured RTT -> 2 * TRTT. For a TRTT of 50, the measured RTT is 100. D == 2 is too small. It's been like that since 2005. Testnet results: measured RTT 80-90 This changes D to 6. measured RTT -> 6/5 * TRTT. Simulation results: For a TRTT of 50, the measured RTT is 58. Testnet results: measured RTT 60