Fix ping timeout and interval #4
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-ping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We had issues before where ping timeouts were causing disconnections between nodes too easily. This was due to the combination of two problems:
This PR upgrades the ping timeout to 10 seconds, makes sure that no ping is re-sent before 15 seconds after the previous one, and sets the number of consecutive failures before disconnection to 4 instead of 3. In an mknet simulation with very limited bandwidth, this allowed for more concurrent traffic before timeouts caused a disconnection. Disconnections still happenned in the simulation, because kernel packet buffers allowed for traffic to have up to 24 seconds RTT, which still triggers the 10 seconds ping timeout repetitively.
Question: in a real-world network, taking into account the rate at which TCP throttles sends on a slow connection, what is the expected maximum RTT on a saturated link? This should guide us to set the correct ping timeout in the definitive version.
Publishing this as v0.4.5