What are the differences between TCP and UDP?
Hello,
TCP and UDP are the transport layer protocols.
1. TCP Is a reliable protocol and UDP is an Unreliable protocol.
2. TCP uses sequenced data transmission and UDP does not uses sequenced data transmission method
3. TCP is connection oriented and UDP is connection less
4. TCP sends acknowledgements and UDP does not sends acknowledgements
5. In addition TCP is very expensive to implement and UDP is not very expensive to implement.
Thank You
John Major.
What are the differences between TCP and UDP?
TCP means Transmission Control Protocol and UDP stands for User Datagram Protocol.
They are transportation protocols. Both TCP and UDP work at transport layer TCP/IP model. They have very different usages:
TCP – There is no corruption while transferring the message
UDP – There can be corruption while transferring the message
TCP – If you send two messages, they will arrive one after the other. There is order.
UDP – If you send two messages, you cannot tell which one is arriving first. There is no order.
TCP – Heavyweight
UDP – Lightweight
TCP – Data is read as “stream”
UDP – Package are sent individually (datagram)
What are the differences between TCP and UDP?
Hi dear,
Transmission control protocol (TCP) and User datagram protocol are main and important protocols working at TCP/IP. But they have more differences.
Over TCP, if you send message or number of messages you can know about what message reach first and order of arriving. But over UDP you are unable to know the order of arriving. In TCP, multiple packets for read call. Where one packet ends other one begins, but UDP send data packets individually and guaranteed method.
UDP is connection-less protocol and TCP is not so. It is the main deference between them. Using TCP want open a connection before transmitting data and should close the connection y after transmitting the data.
TCP provide extensive error checking mechanisms but UDP provide only basic error checking mechanisms.
Data transmission is guaranteed for TCP and UDP is not guaranteed.