Menu

1 / 3

TCP vs UDP: When to Use What, and How TCP Relates to HTTP

DEV Community: backend·Anirban Dutta·about 16 hours ago
#QVJskFn4
#devtobackend#devto#dev#reliable#protocol
Long article (363 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.