0% found this document useful (0 votes)
106 views2 pages

Difference Between TCP and UDP Protocol

TCP is a connection-oriented protocol that establishes a connection between sender and receiver using a three-way handshake. It provides reliable data transmission but is slower than UDP. UDP is a connectionless protocol that does not establish connections and provides unreliable data transmission but is faster than TCP. Key differences are that TCP is reliable while UDP is not, TCP has error checking while UDP does not, and TCP reorders packets while UDP does not.

Uploaded by

Mayank Sethi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views2 pages

Difference Between TCP and UDP Protocol

TCP is a connection-oriented protocol that establishes a connection between sender and receiver using a three-way handshake. It provides reliable data transmission but is slower than UDP. UDP is a connectionless protocol that does not establish connections and provides unreliable data transmission but is faster than TCP. Key differences are that TCP is reliable while UDP is not, TCP has error checking while UDP does not, and TCP reorders packets while UDP does not.

Uploaded by

Mayank Sethi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DIFFERENCE BETWEEN TCP & UDP

PROTOCOL

What is the difference between TCP & UDP protocols of TCP/IP

protocol suite.

Solution:

The 2 types of traffic in the network are based on TCP (Transmission

Control Protocol) and UDP (User Datagram Protocol). Following are the

differences between the two

1. TCP is connection Oriented protocol, hence a connection need to be

established (using 3-way handshaking) before data is transmitted

using TCP. UDP is Connectionless protocol and no connection need

to be established. The packets are sent directly over the network.

2. Because connection need to be established, TCP data transfer takes

more time (3-way handshaking is done for establishing connection

and then for removing the connection) than data transferred using

UDP.
3. Connection in the TCP is established to make the

transfer reliable (acknowledgement based). Hence data transfer using

TCP is reliable and UDP is non-reliable (sender does no know, for

sure, if the packet has actually reached the receiver or not).

4. Header Size of a TCP packet is bigger than the UDP header.

5. TCP does the error checking also, UDP does not have an option for

Error checking.

6. Packets are ordered in case of TCP (i.e they are received in the same

order as they are sent).

7. Application layer protocols like HTTP, FTP, Telnet, etc. uses TCP to

transmit data whereas UDP is used by protocols like VoIP, DHCP,

SNMP, etc.

Source: http://www.ritambhara.in/difference-between-tcp-udp-protocol/

You might also like