The UDP and TCP protocols are two different protocols that handle data
communications between terminals(servers) in an IP network.
Both are Transport Layer Protocols.
UDP is - connection less protocol.(unreliable)
TCP is - connection oriental protocol.(reliable)
TCP needs connection between source and destination before transfer of data.
1.Because TCP is a connection-oriented protocol responsible for ensuring the transfer of a data from the source to destination machine.
2.TCP must receive communications messages from the destination machine to acknowledge receipt of the data.
3. IP simply handles the routing of data; and if problems occur, IP discards the packet without a second thought, generating an error message back to the sender in the process.
If data is corrupt or lost, It is the TCP which handles retransmission.
Unlike TCP, UDP doesn't establish a connection before sending data, it just sends. Because of this, UDP is called "Connectionless".
Why UDP is faster than TCP ?
No error checking,error correction, or acknowledgment is done by UDP.
UDP is only concerned with speed.
Selection Criteria for UDP or TCP-
UDP is never used to send important data such as web-pages, database information, etc.
Streaming media such as video,audio and others use UDP because it offers speed.
Differences -
Both are Transport Layer Protocols.
UDP is - connection less protocol.(unreliable)
TCP is - connection oriental protocol.(reliable)
TCP needs connection between source and destination before transfer of data.
1.Because TCP is a connection-oriented protocol responsible for ensuring the transfer of a data from the source to destination machine.
2.TCP must receive communications messages from the destination machine to acknowledge receipt of the data.
3. IP simply handles the routing of data; and if problems occur, IP discards the packet without a second thought, generating an error message back to the sender in the process.
If data is corrupt or lost, It is the TCP which handles retransmission.
Unlike TCP, UDP doesn't establish a connection before sending data, it just sends. Because of this, UDP is called "Connectionless".
Why UDP is faster than TCP ?
No error checking,error correction, or acknowledgment is done by UDP.
UDP is only concerned with speed.
Selection Criteria for UDP or TCP-
UDP is never used to send important data such as web-pages, database information, etc.
Streaming media such as video,audio and others use UDP because it offers speed.
Differences -