Difference Between TCP and UDP: Reliability Reliability
Difference Between TCP and UDP: Reliability Reliability
Difference Between TCP and UDP: Reliability Reliability
TCP
UDP
connection lost, the server will request the lost the way. There may be corruption while
part. There is no corruption while transferring transferring a message.
a message.
Ordered: If you send two messages along a
connection, one after the other, you know the don't know what order they'll arrive in i.e. no
first message will get there first. You don't
ordered
together.
Streaming: Data is read as a "stream," with
nothing distinguishing where one packet ends are guaranteed to be whole if they arrive.
and another begins. There may be multiple