Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In today's internet, why do voice and video traffic often go through TCP instead of UDP?
In today's internet, why do voice and video traffic often go through TCP instead of UDP?

Whether to use UDP or TCP is generally determined based on the transmission quality of the network;

1. First of all, TCP is a connection-oriented transmission protocol. Packet loss and error occur during the transmission process. , the protocol itself can be corrected; so it can ensure that no packets are lost during the transmission process (of course, too much loss will cause the connection to be interrupted); its disadvantage is that there are too many confirmations during the transmission process, resulting in lower transmission efficiency and transmission speed. UDP.

2. UDP is a non-connection-oriented transmission protocol, which means that the UDP protocol ignores packet loss and other phenomena during the transmission process. Error checking and correction to prevent transmission errors require upper-layer applications. Processing is generally suitable for environments with relatively good transmission quality, and its transmission efficiency and transmission speed are relatively better.

3. Voice and video data have extremely strict requirements on time delay, especially packet loss. Many developers use TCP in order to reduce the workload of development; when using UDP, the program needs to deal with packet errors and packet loss accordingly, which increases the difficulty of development, so it causes the phenomenon you mentioned.