<div dir="ltr">Hi Gents,<div><br></div><div>Quite a bit of tcpdumping at various places now has me somewhat confused..</div><div><br></div><div>When I trace a connection, all is fine until it gets to this packet going OUT the tunnel interface on the US end of the tunnel:<br><br><div>21:15:47.374650 IP (tos 0x0, ttl 53, id 58671, offset 0, flags [DF], proto TCP (6), length 1702)</div><div> a13-18.smtp-out.amazonses.com.43433 > cpanel02.rendrag.net.au.smtp: Flags [P.], cksum 0xe77f (incorrect -> 0x8ad4), seq 2409:4059, ack 4391, win 441, options [nop,nop,TS val 671045654 ecr 1901069108], length 1650</div><div> 0x0000: 4500 06a6 e52f 4000 3506 793b 36f0 0d12 E..../@.5.y;6...</div></div><div><br></div><div>I'm a little confused WHY this packet is being sent out the tunnel though. The interface MTU is 1452. But sure enough, as expected the router IS sending the correct ICMP reply back to amazon:</div><div><br></div><div><div>21:15:47.374664 IP (tos 0xc0, ttl 64, id 27466, offset 0, flags [none], proto ICMP (1), length 576)</div><div> <a href="http://rtr01.lax01.ca.rendrag.net.au">rtr01.lax01.ca.rendrag.net.au</a> > <a href="http://a13-18.smtp-out.amazonses.com">a13-18.smtp-out.amazonses.com</a>: ICMP <a href="http://cpanel02.rendrag.net.au">cpanel02.rendrag.net.au</a> unreachable - need to frag (mtu 1452), length 556</div></div><div><br></div><div>However the next packet in is then again over sized:</div><div><div> IP (tos 0x0, ttl 53, id 58671, offset 0, flags [DF], proto TCP (6), length 1500)</div><div> a13-18.smtp-out.amazonses.com.43433 > cpanel02.rendrag.net.au.smtp: Flags [.], seq 2409:3857, ack 4391, win 441, options [nop,nop,TS val 671</div><div>045654 ecr 1901069108], length 1448</div><div> 0x0000: 45c0 0240 6b4a 0000 4001 adf6 ae88 6c32 E..@kJ..@.....l2</div></div><div><br></div><div>So the router again sends a frag needed:</div><div><div>21:15:47.762629 IP (tos 0xc0, ttl 64, id 27467, offset 0, flags [none], proto ICMP (1), length 576)</div><div> <a href="http://rtr01.lax01.ca.rendrag.net.au">rtr01.lax01.ca.rendrag.net.au</a> > <a href="http://a13-18.smtp-out.amazonses.com">a13-18.smtp-out.amazonses.com</a>: ICMP <a href="http://cpanel02.rendrag.net.au">cpanel02.rendrag.net.au</a> unreachable - need to frag (mtu 1452), length 556</div><div><br></div><div>And what do you know, another packet that is too large?</div><div> IP (tos 0x0, ttl 54, id 58673, offset 0, flags [DF], proto TCP (6), length 1500)</div><div> a13-18.smtp-out.amazonses.com.43433 > cpanel02.rendrag.net.au.smtp: Flags [.], seq 961:2409, ack 4391, win 441, options [nop,nop,TS val 671046043 ecr 1901069329], length 1448</div><div> 0x0000: 45c0 0240 6b4b 0000 4001 adf5 ae88 6c32 E..@kK..@.....l2</div></div><div><br></div><div>The question then is - am I reading this wrong? My router is sending frag-needed with max mtu 1452, but then amazon continues to send too-large packets? Is amazon perhaps seeing this as 'payload max length of 1452' ? or should they be seeing it as max total packet length of 1452?</div><div><br></div><div>Thanks,</div><div><br>Damien</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 June 2015 at 12:31, Mark Andrews <span dir="ltr"><<a href="mailto:marka@isc.org" target="_blank">marka@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In message <<a href="mailto:287364545.4594356.1433297845041.JavaMail.yahoo@mail.yahoo.com">287364545.4594356.1433297845041.JavaMail.yahoo@mail.yahoo.com</a>>, Mar<br>
<span class="">k ZZZ Smith writes:<br>
><br>
> MSS hacking is definitely a hack, it doesn't work on non-TCP protocols,<br>
> and involves looking far deeper into each and every packet to<br>
</span>> - see if they're TCP- find the TCP header (which in theory may not<br>
<span class="">> always be in the same place because of IP options) <br>
> - then see of they're TCP SYNs, - find the TCP MSS option, if it exists<br>
> (it's optional), and if it does, find where it is, because it isn't<br>
</span>> required to be in the same place,- update the TCP MSS value- since the<br>
<span class="">> contents of the TCP header has been intentionally changed, recalculate<br>
> the TCP header checksum and update that too. <br>
> and after all that, you still haven't fixed your PMTUD problem, you've<br>
> just pasted over it for just one of the possible protocols that can be<br>
> used end-to-end over the Internet (which could include TCP hidden inside<br>
> some other protocol e.g. GRE, PPTP, IPsec, so you haven't even fixed it<br>
> for all TCP traffic either). MSS hacking should really only be used when<br>
> it isn't possible or feasible to fix or avoid PMTUD issues.<br>
><br>
> If you want to avoid the cost of PMTUD for dumbbell MTU paths, it is<br>
> better to lower the interface MTU on the source and destination hosts, as<br>
> it will then work for all protocols the hosts' use, not just TCP. There<br>
> is a DHCPv4 MTU option that can be used to do this, although some hosts<br>
> may not support it, so it'd be best to check it, and manually change the<br>
> MTUs on hosts that don't. IPv6 RAs have an MTU option that can be used to<br>
> lower hosts' interface MTUs, and support for that option by IPv6 hosts is<br>
> mandatory. You'll lose some performance for transfers between hosts<br>
> attached to the same LAN with lower host MTUs, but if the majority of<br>
> traffic is to or from off-link destinations or sources, as most traffic<br>
> is for most LANs, the loss of LAN performance won't occur very often, and<br>
> when it does, it may not be significant anyway.<br>
><br>
<br>
</span>There are also various socket options that can be used to set transmit<br>
packet sizes at the application level. Named does this for IPv6 as<br>
PMTUD (TCP and UDP) as bigger packets really don't provide a benefit<br>
for DNS.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mark Andrews, ISC<br>
1 Seymour St., Dundas Valley, NSW 2117, Australia<br>
PHONE: <a href="tel:%2B61%202%209871%204742" value="+61298714742">+61 2 9871 4742</a> INTERNET: <a href="mailto:marka@isc.org">marka@isc.org</a><br>
</font></span><br>_______________________________________________<br>
AusNOG mailing list<br>
<a href="mailto:AusNOG@lists.ausnog.net">AusNOG@lists.ausnog.net</a><br>
<a href="http://lists.ausnog.net/mailman/listinfo/ausnog" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<p>Damien Gardner Jnr<br>VK2TDG. Dip EE. GradIEAust<br><a href="mailto:rendrag@rendrag.net" target="_blank">rendrag@rendrag.net</a> - <span><a href="http://www.rendrag.net/" target="_blank">http://www.rendrag.net/</a><u><br></u></span>--<br>We rode on the winds of the rising storm,<br> We ran to the sounds of thunder.<br>We danced among the lightning bolts,<br> and tore the world asunder</p></div></div>
</div>