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

Get Raspberry Pi: Amazing Projects from Scratch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.