Thursday, 29 March 2012

Comparison of UDP and TCP

Transmission Ascendancy Agreement is a connection-oriented protocol, which agency that it requires handshaking to set up end-to-end communications. Once a affiliation is set up user abstracts may be beatific bi-directionally over the connection.

Reliable – TCP manages bulletin acknowledgment, retransmission and timeout. Assorted attempts to bear the bulletin are made. If it gets absent forth the way, the server will re-request the absent part. In TCP, there's either no missing data, or, in case of assorted timeouts, the affiliation is dropped.

Ordered – if two letters are beatific over a affiliation in sequence, the aboriginal bulletin will ability the accepting appliance first. When abstracts segments access in the amiss order, TCP buffers the out-of-order abstracts until all abstracts can be appropriately re-ordered and delivered to the application.

Heavyweight – TCP requires three packets to set up a atrium connection, afore any user abstracts can be sent. TCP handles believability and bottleneck control.

Streaming – Abstracts is apprehend as a byte stream, no appropriate break are transmitted to arresting bulletin (segment) boundaries.

UDP is a simpler message-based connectionless protocol. Connectionless protocols do not set up a committed end-to-end connection. Advice is accomplished by transmitting advice in one administration from antecedent to destination after acceptance the address or accompaniment of the receiver. However, one primary account of UDP over TCP is the appliance to articulation over internet agreement (VoIP) area any handshaking would arrest bright articulation communication. It is affected in VoIP UDP that the end users accommodate any all-important absolute time acceptance that the bulletin has been received.

Unreliable – When a bulletin is sent, it cannot be accepted if it will ability its destination; it could get absent forth the way. There is no abstraction of acknowledgment, retransmission or timeout.

Not ordered – If two letters are beatific to the aforementioned recipient, the adjustment in which they access cannot be predicted.

Lightweight – There is no acclimation of messages, no tracking connections, etc. It is a baby carriage band advised on top of IP.

Datagrams – Packets are beatific alone and are arrested for candor alone if they arrive. Packets accept audible boundaries which are accustomed aloft receipt, acceptation a apprehend operation at the receiver atrium will crop an absolute bulletin as it was originally sent.

No bottleneck ascendancy – UDP itself does not abstain congestion, and it's accessible for top bandwidth applications to activate bottleneck collapse, unless they apparatus bottleneck ascendancy measures at the appliance level.


No comments:

Post a Comment