TCP | UDP |
---|---|
TCP is a connection-oriented protocol | UDP do not establish a connection between devices before transmitting data |
It is more reliable as it guarantees the delivery of data to the destination | The delivery of data to the destination cannot be guaranteed in UDP |
TCP is heavy-weight | UDP is lightweight |
Retransmission of lost packets is possible in TCP | Retransmission of lost packets is not possible in UDP |
TCP is slower | UDP is faster, simpler, and more efficient than TCP |
TCP provides flow control and acknowledgement of data | UDP is efficient for broadcast and multicast type of network transmission |
Order/ sequence of data is preserved is TCP | There is no sequencing of data in UDP |
TCP can be used to sending mail | UDP can be used to stream video |
TCP is used by HTTP, HTTPs, FTP, SMTP and Telnet | UDP is used by DNS, DHCP, TFTP, SNMP, RIP, and VoIP |