what is the different between TCP and UDP?

Answer Posted / s.srikanth

In UDP, as you have read above, every time you send a
datagram, you have to send the local descriptor and the
socket address of the receiving socket along with it. Since
TCP is a connection-oriented protocol, on the other hand, a
connection must be established before communications
between the pair of sockets start. So there is a connection
setup time in TCP. UDP is an unreliable protocol -- there
is no guarantee that the datagrams you have sent will be
received in the same order by the receiving socket. On the
other hand, TCP is a reliable protocol; it is guaranteed
that the packets you send will be received in the order in
which they were sent.

In short, TCP is useful for implementing network services --
such as remote login (rlogin, telnet) and file transfer
(FTP) -- which require data of indefinite length to be
transferred. UDP is less complex and incurs fewer
overheads. It is often used in implementing client/server
applications in distributed systems built over local area
networks.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is tcp used?

579


How does interprocess communication work?

616


What is j std 001 class 3?

625


Explain what is the role of tcp/ip in data transmission from source to destination?

631


What is the difference between public and private ip?

570






Can two ip addresses use same port?

584


How many layers are there under tcp/ip?

651


How do I find my ip address in terminal?

637


Explain how many hosts can be on each network? Consider a fixed subnet partition of a class b network number that will accommodate at least 76 networks.?

846


What are the different functions of each of the layer in TCP/IP model? What are the protocols associated with each layer?

643


netmeeting in vista

2062


Who wrote indian penal code?

579


Does ip protect data on the network?

637


What are the different class and ranges of ip address?

659


Is port 80 and 8000 the same?

683