In VoIP, voice samples are placed in packets for transmission over the IP network. Typically, a single packet will contain 10 to 30 milliseconds of speech. TCP and UDP are the two most common connection protocols for sending and receiving data over the Internet.
Transmission control protocol (TCP) is connection type. In other words, before transmission of data, it is necessary to establish a formal connection between the two endpoints. TCP also guarantees delivery of data and also guarantees that the order in which packets are sent is the same as the order in which they are sent. The process is as follows.
If the acknowledgment packet does not get received after a certain period of time, the original packet is retransmitted. This ensures that all transmitted data is sent in the correct order without error. TCP takes precedence over speed and efficiency. We use TCP for websites you are looking at, e-mail delivery, etc.
The user datagram protocol or UDP is entirely different. Unlike TCP, UDP is connectionless. In other words, you can send packets without warning, preparation, or negotiation. There is no handshake or setting, only packets. UDP does not have any type of error control. Packets are not only sent in the wrong order, they may be omitted altogether. UDP is suitable for applications that place importance on maintaining the flow of information, rather than receiving each packet reliably. This makes UDP an ideal choice for real-time services such as Voice over IP.
Why is UDP highly suitable for real-time service rather than TCP? Believe it or not, the "trustworthy" nature of the actual contract may impair the end user experience. In TCP, a delay occurs every time an error such as packet loss occurs. These delays are caused by retransmission of corrupted packets and possibly posted packets. This converts the end user to an unacceptable jitter level.
Fortunately, real-time communication services such as VoIP do not require a completely reliable transport layer protocol. This allows UDP to shine. Errors such as packet loss usually have only a small effect on the audio output. Keeping silence for a few milliseconds by dropping packets is much better than delaying a few seconds.
The UDP and TCP protocols work with VoIP to form a way for network traffic to pass through the Internet. Since TCP packets and UDP packets are sent from the source to the phone or computer, discarding these packets will affect the call quality. Sound bursting, static electricity occurs, frustration increases.
The transport layer is controlled by two protocols, TCP and UDP. TCP is a responsible, grown brother who ensures that recipients receive all data. I do not care about UDP at all. After sending the data, the UDP job is completed. This happens when your Netflix stream gets worse - some packages are lost along the way, but Robot has already begun, so resending them is meaningless. This is UDP. People who earn a lot of money via the Internet are not the creator of that. Most of the value is captured by resource managers such as ISPs or by service providers such as Facebook. Smaller fish and users are dominated by larger participants and the value generated by network and community effects is absorbed by a few people
The UDP and TCP protocols work with VoIP to form a way for network traffic to pass through the Internet. Since TCP packets and UDP packets are sent from the source to the phone or computer, discarding these packets will affect the call quality. Sound bursting, static electricity occurs, frustration increases.
TCP and UDP are both protocols for sending data bits (called packets) over the Internet. They are all built on the Internet protocol. That is, regardless of whether TCP or UDP sends a packet, the packet is sent to the IP address. These packets are forwarded from the computer to an intermediate router and processed in the same way as they are forwarded to the destination. When you load a web page, the computer sends a TCP packet to the web server's address and requests the web page to be sent. The web server responds by sending TCP packets. TCP packets are joined by a web browser to form a web page and display it. When you click a link, log in, post a comment, or perform other operations, the web browser sends a TCP packet to the server, and the server returns that TCP packet. TCP is more than one way communication - the remote system sends the packet back to confirm receipt of the packet