|
UDP
|
TCP
|
|
Connectionless (like postcards)
|
Connection-oriented (like phone calls)
|
Supports one-to-one, one-to-many, many-to-one,
and many-to-many communication
|
Supports one-to-one communication only
|
|
Send and receive messages
|
Send and receive byte streams
|
|
Limited maximum message size
|
No limit on the amount of data
|
|
App must do segmentation
|
TCP does segmentation automatically
|
|
Best-effort delivery -- messages may be lost
|
Reliable delivery -- data is not lost
|
No ordering guarantee -- messages may be
delivered out of order
|
Guaranteed order -- data is not reordered
|
|
No flow control
|
Flow control
|
|
No congestion control
|
Congestion control
|
|
Low overhead
|
High overhead
|