Transport Layer Protocols TCP and UDP

For Complete YouTube Video: Click Here

This class will try to understand Transport Layer Protocols TCP and UDP.

In our previous class, we have already discussed one of the objectives of transport layer Proces to Process Communication.

Transport Layer Protocols TCP and UDP

The transport layer has two protocols 1. Transmission Control Protocol TCP and 2. User Datagram Protocol UDP.

To understand both protocols, we will consider the image shown below.

Transport Layer Protocols TCP and UDP
Transport Layer Protocols TCP and UDP

Transmission Control Protocol TCP

The Transmission Control Protocol TCP provides reliable transport services between the processes.

The reliable services will ensure whether the data has been received at the receiver or not.

In transmitting the data between the source and destination, some applications require reliability.

For example, if we consider the mailing services like Gmail or Yahoo mail, the application does not accept any loss of data or packets.

As we have discussed, the underlying network layer does not guarantee reliable communication, and the transport layer provides reliability.

In TCP, a connection is established between the source and destination before the data is transmitted.

The TCP has a lot of overhead.

The overhead is for the connection establishment and the header fields of TCP.

Because of that overhead, the transmission in TCP is slow.

A clear understanding of the connection is established, and the header fields of the TCP will be discussed in our next classes.

User Datagram Protocol UDP

The User Datagram Protocol UDP provides unreliable transportation services between the processes.

As reliability is mandatory for the application, unreliable communication is also good for some applications.

For example, if we consider the video data transmission on YouTube, the loss of packets does not make any difference in the communication, but faster communication is required.

In such cases, UDP is used.