TCP (Transmission Control Protocol) is connection oriented, whereas UDP (User Datagram Protocol) is connection-less.This means that TCP tracks all data sent, requiring acknowledgment for each octet (generally).UDP does not use acknowledgments at all, and is usually used for protocols where a few lost datagrams do not matter.
Because of acknowledgments, TCP is considered a reliable data transfer protocol.It ensures that no data is sent to the upper layer application that is out of order, duplicated, or has missing pieces.It can even manage transmissions to attempt to reduce congestion.
UDP is a very lightweight protocol defined in RFC 768.The primary uses for UDP include service advertisements, such as routing protocol updates and server availability, one-to-many multicast applications, and streaming applications, such as voice and video, where a lost datagram is far less important than an out-of-order datagram.*
|Segment retransmission and flow control through windowing||No windowing or retransmission|
|Segment sequencing||No sequencing|
|Acknowledge sequencing||No acknowledgment|
*Source:Network Maintenance and Troubleshooting Guide, Second Edition, by Neal Allen.