3 ms·
Path MTU discovery is supposed to ferret out the fact that the TCP segment size should be reduced. IP fragmentation is just a best effort mechanism that is bet
by kazinator 9y ago
Path MTU discovery is supposed to ferret out the fact that the TCP segment size should be reduced.
IP fragmentation is just a best effort mechanism that is better than the datagrams being dropped due to their excessive size; it allows connections to be established.
You don't want to be doing bulk transfers with fragmentation.
IP fragmentation won't help with latency, because it is redundant. The TCP window is already a form of "fragmentation". TCP already fragments the data into segments that can be received out of order, individually re-transmitted and re-assembled.
For large transfers over fast, high latency networks, TCP supports window scaling. Larger individual segments (and thus IP fragmentation) is not required for the sake of having more data "in the air".
- Borealid 9y agoThis neglects the fact that IP imposes a fixed per-packet overhead. More packets means lower efficiency. Using larger packets reduces the overhead as a percentage of traffic, so is desirable regardless of the TCP window size. Higher efficiency means higher bandwidth, which means lower latency for small transfers. Waiting for two 10-byte packets yields latency equal to the higher of the two latencies. Waiting for one 20-byte packet is, on average, lower latency (because you take one sample instead of worst-of-two).
- kazinator 9y agoOf course, we want to be using the largest packets that the underlying network allows. My comment is about using larger packets specifically while relying on fragmentation to deliver them. Fragmentation re-introduces the overhead since fragments carry IP headers. If a protocol already segments data into datagrams and reassembles them into a stream, it derives no advantage from IP fragmentation. IP fragmentation basically provides the possibility of operating in the face of misconfiguration (hopefully temporarily), with reduced performance (better than no performance at all). (Of course I'm not saying that since TCP chops the data into pieces and has a sliding window that can scale, there is no downside to making the pieces small just for the heck of it, like 50 bytes of payload!)