The difference between TCP and UDP
There are two types of protocols in the IP suite. They are Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). TCP is a connection-oriented IP which means that once a connection is established, data can be sent in a bidirectional manner. UDP is a much simpler, connectionless Internet protocol. Multiple messages are sent as packets in chunks using UDP. Let's distinguish between the two with clear points, as follows:
TCP |
UDP |
---|---|
TCP is a connection-oriented protocol. |
UDP is a connectionless protocol. |
Using this mode, a message makes its way across the Internet from one computer and network to another. This is connection based. |
UDP is also a protocol used in message transport or transfer. It is not a connection-based protocol. A program using UDP can send a lot of packets to another, and that would be the end of the relationship. |
TCP is suited to applications that require high reliability, and transmission time is relatively less... |