Distinguish, differentiate, compare and explain what is the difference Between TCP and UDP Protocol.
Comparison and Difference Between TCP and UDP Protocol
- TCP is an acronym for Transmission Control Protocol while UDP is an acronym for User datagram Protocol.
- TCP is a connection-oriented protocol while UDP is a connectionless protocol.
- In TCP if you send two messages along a connection, one after the other, the message sent first will arrive first at receiver while in UDP you don’t know what order they’ll arrive at the receiver. i.e. no order can maintain.
- UDP is faster than TCP because error recovery is not attempted. It is a best effort protocol.
- TCP header size is 20 bytes while in UDP header size is 8 bytes.
- TCP is heavy weight as it needs three packets to setup a connection while UDP is light-weight.
- TCP Examples: HTTP, HTTPs, FTP, SMTP, Telnet
- UDP Examples: DNS, DHCP, TFTP, SNMP, RIP, VOIP.