difference between Tcp and udp

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the command elm?

572


What is cmake in linux?

603


How do I find the linux version?

501


How use linux command line?

522


Explain about system and user utilities?

559






If we transfer 100 files by ftp to remote server, how to know the files are successfully transfer or some file are not transferred?

540


What is the difference between locating and locate command?

523


How do I check my cpu cores?

523


How do I clear my run history?

555


What does grep command do?

571


What does pwd mean in linux?

539


Explain about the command lynx?

666


What is $@ in bash?

542


What is df command in unix?

503


How do I do a whois search?

554