TCP Vs UDP
TCP Vs UDP
The main difference between TCP (transmission control protocol) and UDP (user datagram protocol) is
that TCP is a connection-based protocol and UDP is connectionless. While TCP is more reliable, it
transfers data more slowly. UDP is less reliable but works more quickly. This makes each protocol
suited to different types of data transfers.
Protocols are rules that govern how data is formatted and sent over a network. TCP and UDP are two
different methods for doing the same job: transferring data via the internet. They enable servers and
devices to communicate so you can send emails, watch Netflix, play games, and browse web pages.
TCP creates a secure communication line to ensure the reliable transmission of all data. Once a
message is sent, the receipt is verified to make sure all the data was transferred.
UDP does not establish a connection when sending data. It sends data without confirming receipt or
checking for errors. That means some or all of the data may be lost during transmission.
Connection type Requires an established connection before No connection is needed to start and
transmitting data end a data transfer
Data Can retransmit data if packets fail to No data retransmitting. Lost data
retransmission arrive can’t be retrieved