What is the Difference between TCP and UDP

TCP/IP:

TCP/IP stands for Transmission Control Protocol and Internet Protocol. In TCP/IP, IP deal with the packets only while TCP establishes a connection between 2 hosts and responsible for data transfer.

Difference Between TCP and UDP:

TCP and UDP work on Transport Layer (Layer-4). Both transmitting data from one host to another host-

TCP UDP
Stand For Transmission Control Protocol User Datagram Protocol
Connection Connection-Oriented Protocol Connection-Less Protocol
Reliability and Acknowledgement More Reliable and ACK with 3 way-handshake Unreliable and No ACK
Data Transfer Slower than UDP UDP is faster because there is no error checking
Header Size 20 Bytes 8 Bytes
Error Checking Yes No
Flow Control Yes No
Handshake SYN, SYN-Ack, ACK No Handshake
Use by protocols Http, Https, FTP, telnet, DNS, DHCP, TFTP, SNMP, RIP, VoIP

 

Connection Oriented– This is giving guarantee for error free and sequencing and flow.

Connection Less– This is not giving error-free data guarantee.

Advertisement

4 thoughts on “What is the Difference between TCP and UDP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s