<div dir="ltr"><div>Hi all</div><div><br></div>I try to use tinc within my network, but I find almost all mtu probe take 30 times to fix, it's never really fix at all. <div><br></div><div>after read code,  i think the problem case by function receive_udppacket();</div><div>and line :</div><div>origin -= MTU / 64 + 20;</div><div><br></div><div>here , MTU / 64 + 20 =43, this means, every time we send a mtu probe packet, we get a reply smaller then what we send.<br></div><div><br></div><div>review the commit log, the line added for keep saft to compress.</div><div><br></div><div>for capable with current version, I can't remove this line, so I add 43 back then we got reply. and once MTU fix, apply the saft margine when set mtu  <font color="#000000">"<span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">n</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">-></span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">mtu</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap"> = </span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">n</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">-></span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">minmtu</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap"> - MTU / </span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">64</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap"> - </span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">20</span><span style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;white-space:pre-wrap">;</span>" </font></div><div><br></div><div>now, I can fix MTU within about 10 probes.</div><div><br></div><div>2020-02-13 23:20:05 tinc.firma[28376]: Fixing MTU of office01 (123.120.166.214 port 655) to 1408 after 6 probes<br>2020-02-13 23:20:08 tinc.firma[28376]: Fixing MTU of vmub1804 (111.196.162.156 port 59172) to 1405 after 7 probes<br>2020-02-13 23:20:08 tinc.firma[28376]: Fixing MTU of home02 (111.196.162.156 port 52283) to 1403 after 7 probes<br>2020-02-13 23:20:09 tinc.firma[28376]: Fixing MTU of home01 (111.196.162.156 port 655) to 1403 after 8 probes<br>2020-02-13 23:20:30 tinc.firma[28376]: Fixing MTU of openwrt01 (106.121.163.249 port 48968) to 1363 after 30 probes<br>2020-02-13 23:21:17 tinc.firma[28376]: Fixing MTU of office01 (123.120.166.214 port 655) to 1406 after 8 probes<br>2020-02-13 23:22:29 tinc.firma[28376]: Fixing MTU of office01 (123.120.166.214 port 655) to 1403 after 8 probes<br>2020-02-13 23:25:19 tinc.firma[28376]: Fixing MTU of openwrt01 (106.121.163.249 port 48968) to 1365 after 30 probes<br>2020-02-13 23:29:03 tinc.firma[28376]: Fixing MTU of openwrt01 (106.121.163.249 port 48968) to 1364 after 30 probes<br>2020-02-13 23:29:57 tinc.firma[28376]: Fixing MTU of vmub1804 (111.196.162.156 port 61655) to 1404 after 5 probes<br>2020-02-13 23:40:47 tinc.firma[28376]: Fixing MTU of home02 (111.196.162.156 port 52283) to 1403 after 5 probes<br>2020-02-13 23:54:16 tinc.firma[28376]: Fixing MTU of home01 (111.196.162.156 port 655) to 1403 after 8 probes<br>2020-02-14 00:07:27 tinc.firma[28376]: Fixing MTU of openwrt01 (106.121.163.249 port 48968) to 1365 after 30 probes<br></div><div><br></div><div>client openwrt01 use version 1.0.35, still try to probe mtu and ervery time take 30time.</div><div><br></div><div>also I try to reduce network usage during probe which alreay done in 1.1.pre17</div><div><br></div><div>the patch attached base on 1.0.36</div><div><br></div><div>thanks</div><div class="gmail-yj6qo gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px"><div id="gmail-:2cr" class="gmail-ajR" tabindex="0" style="background-color:rgb(232,234,237);border:none;clear:both;line-height:6px;outline:none;width:24px;border-radius:5.5px"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="background: url("https://www.gstatic.com/images/icons/material/system/2x/more_horiz_black_20dp.png") 50% 50% / 20px no-repeat; height: 11px; opacity: 0.54; width: 24px;"></div></div><span class="gmail-HOEnZb gmail-adL"><font color="#888888"><div>Haibo Peng</div><div><br></div></font></span></div>