From: Etienne Dechamps Date: Tue, 30 Dec 2014 17:02:38 +0000 (+0000) Subject: Adjust MTU probe counts. X-Git-Tag: release-1.1pre12~234 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=172cbe6771fd3b98233f71e42ac9c9407d534568;hp=172cbe6771fd3b98233f71e42ac9c9407d534568;p=tinc Adjust MTU probe counts. The recently introduced new MTU discovery algorithm converges much faster than the previous one, which allows us to reduce the number of probes required before we can confidently fix the MTU. This commit reduces the number of initial discovery probes from 90 to 20. With the new algorithm this is more than enough to get to the precise (byte-level accuracy) MTU value; in cases of packet loss or weird MTU values for which the algorithm is not optimized, we should get close to the actual value, and then we rely on MTU increase detection (steady state probes) to fine-tune it later if the need arises. This patch also triggers MTU increase detection even if the MTU we have is off by only one byte. Previously we only did that if it was off by at least 8 bytes. Considering that (1) this should happen less often, (2) restarting MTU discovery is cheaper than before and (3) having MTUs that are subtly off from their intended values by just a few bytes sounds like trouble, this sounds like a good idea. ---