TCP: It stands for Transmission Control Protocol ,which is a data delivery protocol operate on transport layer of OSI model. It is the most reliable protocol to send our data because it implements 3 way handshake method. Due to this 3 way hand shake it ensure that our data get properly delivery without losing of data packet and maintaining the correct order.
UDP: It stands for User Datagram Protocol, this is also data delivery model operate on transport layer . It is less reliable than TCS model but it is very fast in transferring the data. unlike TCP here packet loss can occur, and it does not maintain correct order of packet always.
Key differences between TCP and UDP
TCP is connection oriented and UDP is connectionless TCP is highly reliable best fit for the critical task and on the other hand UDP is less reliable but it got super speed and speed is very important.…