TCP and UDP both are protocols for sending files across computer network
TCP (Transmission Control Protocol) | UDP (User Datagram Protocol) |
TCP is connection oriented protocol. When connection lost during transferring files, the server would request the lost part. While transferring a message, there is no corruption while transferring a message | UDP is based on connectionless protocol. When you send data, there is no guarantee whether your transferred message will reach there without any leakage |
The message will deliver in the order it is sent | The message you sent may not be in the same order |
Data in TCP is read as a stream, where one packet ends, and another begins | Packets are transmitted individually and are guaranteed to be whole if they arrive |
Example of TCP includes World Wide Web, file transfer protocol, e-mail, | Example for UDP are VOIP (Voice Over Internet Protocol) TFTP ( Trivial File Transfer Protocol) |