Their features, abreviations, typical usage areas
TCP stands for Transmission Control Protocol.
UDP stands for User Datagram Protocol.
TCP is connection oriented.
UDP is connectionless.
Packets in TCP is called segment.
Packets in UDP are called a user datagrams.
TCP header is of 20 to 60 bytes.
UDP header is of 8 bytes.
As TCP is connection oriented service, it sends acknowledgement when all the data is delivered.
UDP does not send acknowledgement when data delivery is done because it is connectionless service.
TCP support error control mechanism.
There is no error control mechanism in UDP except the checksum.
TCP provides Process to Process Communication using port numbers.
It provides Process to Process Communication using combination of port numbers and IP addresses.
Transmission speed of the packet is low.
Transmission speed of the packet is high.
Process to process communication stream delivery service, reliable service, flow control, error control, congestion control, full duplex communication, multiplexing, demultiplexing, acknowledgement number, system number, sequence number and byte number.
Process to process communication, Encapsulation, decapsulation, multiplexing, and demultiplexing.
More reliable protocol.
Moderately reliable as compared to TCP protocol.
In TCP, the Window Mechanism is there. It is used for sliding the packet length before the ACK signal is sent to the sender.
In UDP, there is no Window Mechanism.