Wireless technology

TCP vs. UDP


Introduction - TCP:


TCP is the abbreviation of transmission control protocol and is called in the separate words. It makes two users to create a connection and send or receive the data. Tcp promises to the user that it will deliver the data and the packet in the same order in the format you have sent the data.
UDP:
UDP is the abbreviation of user datagram protocol and it is pronounced in separate words. It is also used for connection but the main difference in between UDP and TCP is that it sends the data in a different order as it is ordered by the user of any application

Historical Background:
The very famous, Institute of Electrical and Electronic Engineers (IEEE) in May, 1974, issued a paper entitled "A Protocol for Packet Network Interconnection. The writers, of the papers were Vinton G. Cerf and Bob Kahn, they told that an internetworking code of behavior for sharing resources using packet-switching among the servers or clients. An essential direct part of this model was the Transmission Control Program that integrated both connection-oriented links and datagram services between hosts. The model is known as TCP/IP.  It was originally created to meet the information communication needs of the U.S. Department of Defense. To make up particular communication data paths UDP was designed. The protocol was designed by David P. Reed in 1980.


Usage: The usage of TCP is in case of non-time critical applications. TCP/IP is built into the UNIX operating system The usage of UDP is for games because the games that are being manufactured today relay on high graphic and uses lots of the memory of the computer so as the command is given the message is conveyed in the form of UDP and it is also used for the application those who use high memory of the computer such as Adobe Photoshop, Corel, CAD CAM applications that require fast data sending and receiving. UDP’ is also useful for the servers and clients because there are number of queries from a single server.


Function:
TCP is connection based.  
UDP is not connection based which means that one application can send lots of messages but its final destination would be the end point of the message.


Weight:
TCP uses 3 packets to create a socket connection, before any user data can be sent. TCP is reliable, secure, and safe but it is a bit heavy.
UDP is quite lightweight. There are no order format of sending the data and you cant track connection. It is a tiny transport layer designed on top of IP.


Streaming of data:
In TCP the Data sent is read in byte stream, The Packets are sent individually And they are checked for accuracy only if they arrive. In UDP the Packets have there limits which are honored upon receipt,


Speed of transfer: The speed for TCP in comparison with UDP is slower, because it has to check the data accuracy of the packets.  UDP is faster because there is no error-checking for data sent from the application. Examples: HTTP, HTTPs, FTP, SMTP Telnet etc... DNS, DHCP, TFTP, SNMP, RIP, VOIP etc...


Data Reliability: There is absolute perfection in TCP while sending the data. The data transferred remains the same and in the same order as it has been sent by the user.
There is no reliability that the data or packets sent from the application would reach at all or not.


Ordering: TCP sent the data in an arranged format as requested by the user. UDP does not order packets. If ordering is required, it has to be managed by the application layer .


Error Checking: TCP does perform the error checking process while UDP does not perform this.


Header Size: The size of TCP header is 20 bytes and the size of UDP is 8 bytes.






Share
Related Articls:
- How to set up TCP 




Join us at:

facebook group Twitter