Thursday, 19 March 2020

TCP VS UDP





TCP (Transmission Control Protocol)

UDP (User Datagram Protocol)

It is a heavy weight protocol

It is a light weight protocol

Connection-oriented (uses a 3-way handshake to establish connection, 4-way handshake to close as acknowledgement

Connectionless (no handshake)

Ensures reliable delivery of data(checks error and retransmits the lost packets)

Unreliable delivery (no retransmission)

Uses fixed windowing and sliding windowing for congestion and flow control

No flow control or congestion control

Slower due to reliability mechanisms

Fast data transmission

Segments data and ensures ordered delivery

Sends datas independently without any order.

Web browsing (HTTP/HTTPS), File transfer (FTP), Email (SMTP, IMAP, POP3)

Online gaming, Video streaming, VoIP, DNS queries


No comments:

Post a Comment