TCP vs UDP
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are the major protocols operating at Transport Layer. Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) operate very differently and you can choose Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) depending on your requirement.
|
TCP (transfer control protocol)
|
UDP (user data gram protocol)
|
|
Transmission
Control Protocol (TCP) is a
connection oriented protocol, which means the
devices should open a connection before transmitting data and should close the connection gracefully after transmitting the data. |
User
Datagram Protocol (UDP) is Datagram oriented protocol with no overhead for
opening, maintaining, and closing a connection. |
|
Transmission
Control Protocol (TCP) assure
reliable delivery of data to the destination. |
User
Datagram Protocol (UDP) is efficient for broadcast/multicast transmission. |
|
Transmission
Control Protocol (TCP) protocol
provides extensive error checking
mechanisms such as flow control and acknowledgment of data. |
User Datagram protocol (UDP) has only the
basic error checking mechanism using checksums. |
|
Sequencing
of data is a feature of Transmission
Control Protocol (TCP). |
There is no sequencing of data in User
Datagram protocol (UDP). |
|
Delivery
of data is guaranteed if you are using Transmission
Control Protocol (TCP). |
The delivery of data cannot be guaranteed in
User Datagram protocol (UDP). |
|
Transmission
Control Protocol (TCP) is
comparatively slow because of these extensive error checking mechanisms |
User Datagram protocol (UDP) is faster,
simpler and more efficient than TCP. However, User Datagram protocol (UDP) it
is less robust then TCP |
|
Multiplexing
and De multiplexing is possible
in Transmission Control Protocol (TCP) using TCP port numbers. |
Multiplexing and De multiplexing
is possible in User Datagram Protocol (UDP) using UDP port numbers. |
|
Retransmission
of lost packets is possible in Transmission
Control Protocol (TCP). |
8) There
is no retransmission of lost packets in User Datagram Protocol (UDP). |
Comments
Post a Comment