Here in this post am going to explain to you about TCP vs UDP Protocol. TCP stands for Transmission Control Protocol on the other hand UDP stands for User Datagram Protocol. Hence, Both these protocols works under the Transport Layer of OSI Model we are going to discuss this particular layer too. At the end of this video, I will also share an animation video on the difference between TCP and UDP Protocol. So guys, without any further delay let’s start.
What is the Transport Layer
Transport Layer is the fourth layer of OSI Model which converts packets into segment. In segment this layer is going to add Source and the destination port number and then pass it to the next layer.
Have you ever wondered, why two applications are able to use the same internet connection at the same time?
That’s because of what the transport layer provides. It allows multiple applications to use one internet connection simultaneously. The transport layer creates 65000 ports per network connection. Different applications use different ports according to their requirements. Even a single application can use multiple ports.
TCP and UDP are two different protocols of the Transport layer and here are the features and differences between TCP and UDP.
TCP vs UDP (Difference between TCP and UDP Protocol)
TCP |
UDP |
|
1 | TCP stands for Transmission Control Protocol. | UDP stands for User Datagram Protocol. |
2 | It is a connection-oriented protocol, which means that every time a packet is sent says from host A to B. We will get an acknowledgment. | It is a connectionless protocol. Here we are not receiving any confirmation. |
3 | Use by protocols HTTP, HTTPs, FTP, SMTP, Telnet | Use by protocols DNS, DHCP, TFTP, SNMP, RIP, and VOIP. |
4 | The speed for TCP is slower than UDP. | UDP is faster because there is no error-checking for packets. |
5 | The TCP header size is 20 bytes | The UDP Header size is 8 bytes. |
6 | TCP does error checking and error recovery. | UDP does error checking but no recovery options. It simply discards error packets. |
7 | It sends data in a systematic manner serial wise. | It does not send data in a serial wise. The first data may reach last and the last data may reach first. |
8 | It is used while sending files, emails, etc. | It is used while playing online games. |
9 | It is used to send large amounts of data. | It is used to send a small amount of data. |
Here is an animation video on the difference between TCP and UDP Protocol
So, guys, this is all about the difference between TCP and UDP (TCP vs UDP) Protocol. Hope you have enjoyed reading this article. Please, feel free to give your feedback in the comment section below. Click here to view more networking post.
Difference between Hub Switch and Router:
What is Computer Network Topology and its types:
What is Computer Network Topology | Network Topology Types with Diagram and Advantages