Tcp Vs Udp

 

TCP VS UDP

TCP (TRANSMISSION CONTROL PROTOCOL) AND UDP (USER DATAGRAM PROTOCOL) ARE BOTH TRANSPORT LAYER PROTOCOLS THAT ARE USED TO SEND DATA OVER A NETWORK. HOWEVER, THEY HAVE SOME KEY DIFFERENCES.

TCP

CONNECTION-ORIENTED: TCP ESTABLISHES A CONNECTION BETWEEN THE SENDER AND RECEIVER BEFORE SENDING ANY DATA. THIS ALLOWS TCP TO ENSURE THAT ALL DATA IS RECEIVED IN THE CORRECT ORDER AND WITHOUT ANY ERRORS.

RELIABLE: TCP PROVIDES RELIABLE DELIVERY OF DATA. THIS MEANS THAT TCP WILL RETRANSMIT ANY DATA THAT IS LOST OR CORRUPTED DURING TRANSMISSION.

SLOW: TCP IS SLOWER THAN UDP BECAUSE IT HAS TO ESTABLISH A CONNECTION AND SEND ACKNOWLEDGMENTS FOR EACH PACKET OF DATA THAT IS SENT.

HEADER : TCP PACKET HEADER IS 20 BYTES.

PROTOCOLS USED IN TCP.

WEB BROWSING

EMAIL

FILE TRANSFERS

TELNET

FTP

UDP

CONNECTIONLESS: UDP DOES NOT ESTABLISH A CONNECTION BETWEEN THE SENDER AND RECEIVER BEFORE SENDING ANY DATA. THIS MAKES UDP FASTER THAN TCP, BUT IT ALSO MAKES IT LESS RELIABLE.

UNRELIABLE: UDP DOES NOT GUARANTEE THAT ALL DATA WILL BE RECEIVED IN THE CORRECT ORDER OR WITHOUT ANY ERRORS.

FAST: UDP IS FASTER THAN TCP BECAUSE IT DOES NOT HAVE TO ESTABLISH A CONNECTION OR SEND ACKNOWLEDGMENTS.

HEADER : UDP PACKET HEADER IS 8 BYTES.

PROTOCOLS USED IN UDP.

ONLINE GAMING

LIVE STREAMING

VOIP

DNS

DHCP

_____________

Comments