3 ms·
Thanks for the summary. I'm aware of all of this; but from the server side, when clients mysteriously don't send packets of a certain size, it's hard to know wh
by toast0 8y ago
Thanks for the summary. I'm aware of all of this; but from the server side, when clients mysteriously don't send packets of a certain size, it's hard to know why --- because I'm only on the server side, and I haven't had any luck getting knowledgeable people on the other end.
I can tell it's an MTU issue, because I get later packets, but I'm missing a block that happens to be an exact multiple of the MSS. It could be simple packet loss, except this pattern comes up too often, the client will sometimes send probing acks, but never the missing packets, and it never retries with smaller packets. This is especially bad when you're communicating with default Linux servers that always send syn+ack with their local MSS, because so many clients think they can send 1500 byte packets, but they can't. It's less bad when using most versions of FreeBSD [1] where it returns whichever is smaller of client side MSS or server MSS. There are a number of systems/networks that clamp outgoing SYNs but not incoming SYNs, so downloads mostly work, but uploads are broken. Mirroring the sent MSS isn't enough to make every connection work though, because of exciting things you mentioned -- somewhere in the middle, something is dropping large packets, and ICMPs aren't sent or otherwise don't make it to the client, so it just kind of sits around waiting forever.
Edit to add: I wish the codified behavior was simply to truncate IP packets to the size available, rather than either fragment or alert. TCP Peers would be able to notice that only shorter packets get acked, and adjust, and in the meantime, some data would have gotten through. Not terribly great for UDP, but I dunno.
[1] there's a change in -CURRENT to use the Linux behavior, unfortunately
- p1mrx 8y ago> I wish the codified behavior was simply to truncate IP packets to the size available If a router could replace the packet with a "truncation sentinel" that's compatible with most firewalls, detectable by new implementations, and doesn't cause data corruption for old implementations, then perhaps truncation could be incrementally deployed? Like a "packet too big" error, but in the forward direction. However, it might be impossible to construct a packet satisfying all of those conditions.