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

后端 未结 9 2052
深忆病人
深忆病人 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 01:05

    The easiest workaround to find mtu in c# is to send udp packets with dontfragment flag set to true. if it throws an exception, try reduce the packet size. do this until there is no exception thrown. you can start with 1500 packet size.

提交回复
热议问题