What is the difference between TCP and UDP ?

Answer Posted / a.v.sudheer

TCP is a Transmission Control Protocol.
UDP is a User Datagram Protocol.
There are four major differences between UDP and TCP:
1. TCP can establishes a Connection and UDP cannot.
2. TCP provides a stream of unlimited length, UDP sends
small packets.
3.TCP gurantees that as long as you have a connection data
sent will arrive at the destination, UDP provides not
guarantee delivery.
4.UDP is faster for sending small amounts of data since no
connection setup is required, the data can be sent in less
time then it takes for TCP to establish a connection.

Is This Answer Correct ?    312 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages and disadvantages of sockets?

556


If you do not want your program to halt while it waits for a connection, put the call to accept( ) in a separate thread?

522


What is network programming in java?

544


What is socket in java?

609


What is cookies in networking ?

598






What is a thread pool?

624


How we can make simple java program for Server/Client Communication

623


What is an http redirector?

534


Explain a time server?

566


What is a listener in networking?

568


What is the main difference between Client side Java Script and and Server side Java Script how actually they run on both side with Example.

645


Explain the generic term internet.

570


What do you understand by the term network?

553


What is the use of network interface?

481


Explain a daytime server?

623