what is difference between tcp & udp protocol?

Answer Posted / mahesh

1. TCP(Transmission Control Protocol). TCP is a
connection-oriented protocol, a connection can be made from
client to server, and from then on any data can be sent
along that connection.
* Reliable - when you send a message along a TCP
socket, you know it will get there unless the connection
fails completely. If it gets lost along the way, the server
will re-request the lost part. This means complete
integrity, things don't get corrupted.
* Ordered - if you send two messages along a
connection, one after the other, you know the first message
will get there first. You don't have to worry about data
arriving in the wrong order.
* Heavyweight - when the low level parts of the
TCP "stream" arrive in the wrong order, resend requests have
to be sent, and all the out of sequence parts have to be put
back together, so requires a bit of work to piece together.

2. UDP(User Datagram Protocol). A simpler message-based
connectionless protocol. With UDP you send messages(packets)
across the network in chunks.
* Unreliable - When you send a message, you don't
know if it'll get there, it could get lost on the way.
* Not ordered - If you send two messages out, you
don't know what order they'll arrive in.
* Lightweight - No ordering of messages, no
tracking connections, etc. It's just fire and forget! This
means it's a lot quicker, and the network card / OS have to
do very little work to translate the data back from the packets.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

diff between /etc/inetd and smf?

1649


Describe one advantage of mesh topology?

896


I have to do a project in transport domain in J2EE.How can i find informations regarding transport domain and why do we use that?

2043


Port modes [trunk and access] have any influence on VLAN tagging and un-tagging?

1612


How to delete software errors? What is that?

1776


Define proxy servers?

785


User Datagram Protocol (UDP) is __ and __ a. connectionless, stateless b. connection-orineted, stateless c. connection-oriented, stateful d. connectionless, stateful

1521


Give some private network addresses examples?

733


What is the difference between linux server and solaris server?

2036


Explain the network architecture?

722


hi this is raj igot job in tcs and also i got visa from u.s in this time i dont know what to do can u sugges me pls........

1607


Do you know about the job of the network layer under the osi reference model?

758


What can be considered as good passwords?

755


Explain the role of ieee in computer networking?

816


How many layers are under tcp/ip?

767