Breaking News

TCP VS UDP

What is TCP:

It is one of the most important protocols used to transmit data packets inside networks, and the development of the TCP / IP protocol as a result of research funded by the American Government’s Advanced Research Project ARPA in the early seventies. The Application layer and the Network layer. (The protocol exists in the Transport layer) so this is often written as TCP / IP.

How does the protocol work?

Before doing the data transmission, TCP performs the process of getting acquainted or shaking hands (Three Way handshake) through which it is known whether the receiver exists, is he ready to receive the data and agree on the number of packages that will be sent each time. When this process is closed, the protocol begins to send the segments according to the number of agreed packets. If it arrives, the device answers that it has arrived, if it does not arrive, informs it that it has not arrived, and then sends it again.

TCP / IP
Three Way Handshake
TCP features:
1- Reliable: It guarantees that data can be accessed without errors.
2- Establish a connection before transmission (Connection Orient): the handshake process Three Three Handshake.
3- It numbers the packages and sends them in order (Deliver Data en proper order).
4- Controls the data flow (Flow Control): it does not send until the other device tells him that the data has arrived, so I have more if any.

Secondly what is the UDP protocol:
 It is also one of the protocols used to transmit data within networks. Designed in 1980 by David Red.

How does UDP work?

The “UDP” divides the message to be transferred into units called Datagram, as opposed to “TCP” which is called Segments. Then print it on IP address then send it.

UDP defects:
1- Unreliable because it does not evaluate the handshaking process, so it is very possible to lose Data (Connection Non Orient).
2- It does not ensure that the damaged data are corrected.
3- It does not control the data flow, it only sends it once.
4- It does not number the Datagram, but sends it as it came, so it is possible to interfere with data or access data before another.

UDP Features:
1- Fast because he does not waste time shaking hands or correcting mistakes.

UDP is mostly used for voice and video communications. So what we notice a lot during calls is that sometimes the sound does not arrive or arrive sporadically.

Here we have reached the end of today’s lesson from networks and an upcoming opportunity, God willing. If you have any questions or concerns, please do not hesitate to ask them in a comment or on our page. May God bestow you.

About The Author