Tuesday, 27 August 2013

TCP and UDP transfer explanation

TCP and UDP transfer explanation

Not sure if I chose right StackExchange site, but, anyway, the question:
can TCP packets arrive to receiver by pieces? E.g.: if I send 20 bytes
using TCP protocol, can I be 100% sure that I will receive exactly 20
bytes at once, not 10 bytes then another 10 bytes or so? And the same
question for UDP protocol. I know that UDP is unreliable and packets can
not arrive at all or arrive in different order, but what about 1 packet?
If it arrives, can I be sure that it is a complete packet, not a piece?

No comments:

Post a Comment