What are the Differences and similarities between TCP and UDP
Difference between TCP and UDP:
TCP | TCP or Transmission Control Protocol is connection-oriented protocol,Data can be sent by directional once connection established.TCP is comparatively slower than UDP.Here the connection between a sender and receiver is established before the data can be sent.TCP check packets for errors and track packets so that data is being saved from being lost or corrupted,hence TCP is best suited to be used for applications that require high reliability.TCP transmissions are sent in a sequence and they are received in the same sequence.Use by other protocols as HTTP,HTTPs,FTP.SMPT,Telnet.TCP is heavy weight ,requires three packets to set up a socket connection,before any user data can be sent. |
UDP | UDP or User Datagram Protocol is simpler and connectionless.UDP does not establish coneection before sending data. Here in UDP, there is no such guarantee regarding data being lost or corrupted.UDP is said to be best suited for applications that require speed and efficiency.UDP, sent message sequence may not be maintained when it reaches receiving application. Used by protocols DNS,DHCP,TFTP,SNMP,RIP,VOIP.UDP is lightweight. There is no ordering of messages ,no tracking connections ,etc. |
Similarities between TCP amd UDP:
1)Both TCP and UDP has port-forwarding feature.
2)Both TCP and UDP are layer 4 means transport layer protocols.
3)Both protocols are used in order to transfer data over the internet or a local networking environment.
Get Answers For Free
Most questions answered within 1 hours.