用于一般协议消息交换,可以容忍一些丢包.UDP 比 TCP 效率高多少?
For general protocol message exchange, which can tolerate some packet loss. How much more efficient is UDP over TCP?
UDP 比 TCP 快,原因很简单,因为它的不存在确认包 (ACK) 允许连续的数据包流,而不是 TCP 确认一组数据包,使用 TCP 窗口大小和往返时间 (RTT) 计算得出.
UDP is faster than TCP, and the simple reason is because its non-existent acknowledge packet (ACK) that permits a continuous packet stream, instead of TCP that acknowledges a set of packets, calculated by using the TCP window size and round-trip time (RTT).
更多信息,我推荐简单但非常容易理解的Skullbox解释(TCP vs. UDP)
For more information, I recommend the simple, but very comprehensible Skullbox explanation (TCP vs. UDP)