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
What is the purpose of routing protocol?
Is there any training institute for network protocol testing / communication protocol testing / data-com protocol testing?
Explain what is the role of tcp/ip in data transmission from source to destination?
Explain what is the data unit of "transport layer"?
Is port 80 open on my network?
What are the 4 layers of tcp ip?
What is the address for port number 8080?
Can ip address be assigned to layer 2?
Can ip addresses be shared?
What is private ip and public ip?
What is Tcp/ip Model?
What is shared memory in os?
Explain address resolution protocol arp?
Desirability of TCP/IP STANDARDS
How Authentication Header provides the protection to IP header?