What is the optimal size of a UDP packet for maximum throughput?

后端 未结 9 2063
深忆病人
深忆病人 2020-12-13 00:31

I need to send packets from one host to another over a potentially lossy network. In order to minimize packet latency, I\'m not considering TCP/IP. But, I w

9条回答
  •  渐次进展
    2020-12-13 00:56

    The best way to find the ideal datagram size is to do exactly what TCP itself does to find the ideal packet size: Path MTU discovery.

    TCP also has a widely used option where both sides tell the other what their MSS (basically, MTU minus headers) is.

提交回复
热议问题