Wednesday, February 06, 2008

tcp/udp contrasts

stream discrete packets
reliable unreliable
point to point and "connected" can broadcast, 1 to N, server can receive from many clients
connect/accept specify address at setup time, read/write don't need address each read/write specifies address
data is checksummed data may be consumed

The last one at above: TCP/IP need the confirmation feedback to make sure the data is received. UDP donot need. For video application, we don't need TCP since even data is lost, the next frame is coming immediately.
Check the following link:

No comments:

Post a Comment