Wednesday, February 06, 2008

tcp/udp contrasts

tcp
udp
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:
http://www.laynetworks.com/Comparative%20analysis_TCP%20Vs%20UDP.htm

No comments:

Post a Comment