difference between Tcp and udp
Answers were Sorted based on User's Feedback
Answer / neeraj suriyal network adminis
tcp is connection oriented protocol of the transport layer
of osi model,
udp is connectionless protocol of the transport layer of the
osi model
tcp is reliable
udp is nonreliable
tcp uses three way handshake to establish ,connection to
other host
no such three way handshake taken by udp
| Is This Answer Correct ? | 25 Yes | 2 No |
Answer / rajn
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.
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 ? | 18 Yes | 2 No |
Answer / kkr
tcp udp
1 transfer control protocol 1 user datagram protocol
2 connection oriented protocol 2 connection less protocol
3 it provides acknowledgement 3 it doesn't provides
acknowledgement
| Is This Answer Correct ? | 14 Yes | 1 No |
TCP
Transmission Control Protocol
Tcp/Udp are layer4 transport layer protocol.
Tcp is a most popular protocol
Tcp is a connection Oriented protocol that means tcp makes
virtually path when session between source and destination.
example:Telephone conversation
Udp
User Datagram Protocol
Connectionless protocol
it works in layer 4
it can't make dedicated path.
example.telephone's ring only
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / jyotish kumar naik
TCP connection
---------------
1- Reliable
2- Reliable because connect() present at the client side.
3- TCP work on data stream
4- 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.
5-heavy n/w overhead
6- Three way handshake is performed.
7- Acknowledgement facility
UDP connection
--------------
1- Not reliable
2- Not reliable because connect() is not present at client
side.
3- UDP work on data block
4- Not ordered - If you send two messages out you don't
know what order they'll arrive in.
5-Low n/w overhead
6- No three way hand shaking
7- No acknowledgement facility
| Is This Answer Correct ? | 5 Yes | 2 No |
What does cd do in linux?
What is trusted/untrusted operating system?
you wish to create a link to the /data directory in bob's home directory so you issue the command ln /data /home/bob/datalink but the command fails. What options hould you use in this command line to be successful.
What is Data Command?
What is difference between egrep and grep?
I want to built a fire wall using iptables. My condition is " inbound to 192.168.0.2 with a port of 80 from 172.168.0.1 should accept"
What is parallel ssh?
What is the purpose of the 'chmod' command?
What does chmod 777 do?
What is gnu in linux?
What is ulimit in linux?
in unix how to change old name to new name