Difference Between TCP (Transmission Control Protocol) & UDP (User Datagram Protocol) In Tabular Form.
Sno | TCP | UDP |
---|---|---|
1. | TCP stands for transmission control protocol. | UDP stands for user datagram protocol. |
2. | TCP is a connection orientated protocol with built in error recovery and re transmission. You can liken a TCP connection to a telephone connection. With a telephone connection you first need to setup the connection by dialing the number, and once the calling party answers you have a both way communications channel.You then proceed to speak and once done you hang up the connection. | UDP is a connectionless protocol.You can liken UDP to email or the normal post.With email or a written message you send your message, but have no idea whether or not that message was received. UDP does not correct or recover errors in the message. Any error detection and recovery is the responsibility of the receiving application. |
3. | It offers error control and flow control facilities. | It does not offers error control and flow control facilities. |
4. | TCP is used in the applications where we want to ensure accurate data delivery. | UDP is used in the applications that require prompt delivery. |
5. | The speed for TCP is slower than UDP. | UDP is faster because error recovery is not attempted. It is a “best effort” protocol. |
6. | TCP header size is 20 bytes | UDP Header size is 8 bytes. |
7. | Common Header Fields – Source port, Destination port, Check Sum | Common Header Fields- Source port, Destination port, Check Sum. |
8. | Handshake -SYN, SYN-ACK, ACK. | Handshake – No handshake (connectionless protocol) |
9. | Function- As a message makes its way across the internet from one computer to another. This is connection based. | Function- UDP is also a protocol used in message transport or transfer. This is not connection based which means that one program can send a load of packets to another and that would be the end of the relationship. |
10. | Use by other protocols- HTTP, HTTPs, FTP, SMTP, Telnet protocols. | Use by other protocols-DNS, DHCP, TFTP, SNMP, RIP, VOIP. |
11. |
(Visited 1,572 times, 1 visits today)
Written by:
It works quite well for me