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

后端 未结 9 2065
深忆病人
深忆病人 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:57

    Uhh Jason, TCP does not use UDP. TCP uses IP, which is why you often see it referred to as TCP/IP. UDP also uses IP, so UDP is technically UDP/IP. The IP layer handles the transfer of data from end to end (across different networks), which is why it is called the Inter-networking Protocol. TCP and UDP handle the segmentation of the data itself. The lower layers such as Ethernet or PPP or whatever else you use handle computer-to-computer data transfer (that is, within a single network).

提交回复
热议问题