is it possible to send large UDP Packets by setting IP header to enable IP fragmentation?

后端 未结 1 751
旧巷少年郎
旧巷少年郎 2021-01-25 23:25

I\'m wrting a UDP client and UDP server.

I have some large UDP payload, which is between 2000-3000. I tried some simple tests. I let the UDP client send 2000 bytes in a

相关标签:
1条回答
  • 2021-01-26 00:13

    That's what should happen by default. The problem with that is that if a fragment never arrives, there is nothing at the IP level that will cause a retransmit, so the entire datagram is lost. In general with UDP you are best off using datagrams smaller than the path MTU, if you can discover it, otherwise 534 bytes, as all hosts are required not to fragment below this level.

    0 讨论(0)
提交回复
热议问题