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

What is port 110 used for?

628


How do I check if a port is open telnet?

603


How do you find a ip address?

608


How do you find your ip address on windows?

615


Explain about tcp&ip and osi model.

628






Why are we moving onto IPv6? What is the maximum limit of IPv4?

1022


How do I restore my ip address?

594


What is the full form of osi and tcp/ip model?

647


How do I know if my ftp port 21 is blocked?

592


How do I find my servers ip address?

605


Why its so called Open system interconnection reference model?

709


What is a dns address?

594


How many tcp connections does http use?

591


What is my router ip?

567


How can I tell if a ftp port is open?

603