Compare TCP and UDP
Characteristics
|
TCP
|
UDP
|
Connection
|
TCP is connection oriented Protocol
|
UDP is connection less Protocol
|
Reliability
|
It provides reliable delivery of messages
|
It provides unreliable delivery of messages
|
Error Handling
|
TCP makes checks for errors and reporting
|
UDP does error checking but no reporting.
|
Flow controlling
|
TCP has flow control
|
UDP has no flow control
|
Data transmission order
|
TCP gives guarantee that the order of the data at the receiving end is the same as the sending end
|
No guarantee of the data transmission order
|
Header Size
|
20 bytes
|
8 bytes
|
Acknowledgment
|
TCP acknowledges the data reception
|
UDP has no acknowledgment Section
|
Use
|
Used where reliability is important
|
Used where time sensitivity is more important.
|
Data Interface to application
|
Stream-based: No particular structure for data
|
Message based data: Data sent in discrete packages by application
|
Overhead
|
Low
|
Very low
|
Speed
|
High
|
Very high
|
Application
|
FTP, Telnet, SMTP, DNS, HTTP, POP
|
DNS, BOOTP, DHCP, TFTP, RIP
|