Open In App

Transport Layer in OSI Model

The transport layer, or layer 4 of the OSI model, controls network traffic between hosts and end systems to guarantee full data flows. Data volume, destination, and rate are all controlled by transport-layer protocols including TCP, UDP, DCCP, and SCTP.

The transport layer is positioned between the network and session layers in the OSI paradigm. The data packets must be taken and sent to the appropriate machine by the network layer. After that, the transport layer receives the packets, sorts them, and looks for faults. Subsequently, it directs them to the session layer of the appropriate computer program. Now, the properly structured packets are used by the session layer to hold the data for the application.



Functions of Transport Layer

The Transport Layer is responsible for end-to-end communication of data packets. It provides a number of important functions that are responsible for reliable, efficient, and organized data transfer between host systems in a networked environment.



The primary functions of the Transport Layer are:

Characteristics of Transport Layer

1. Service-point addressing

As a result of computers running many programs at once, data is transmitted from one source to the destination, connecting not only one computer to another, but also different processes. The header with the address known as a service-point address or port address is added by the transport layer. The transport layer is in charge of sending the message to the appropriate process, whereas the network layer is in charge of sending data from one computer to another.

2. Segmentation and reassembly

The message is split up into numerous segments by the transport layer when it receives it from the top layer. Each segment is given a unique sequence number. The transport layer reassembles the message based on sequence numbers once it has reached its destination.

3. Connection control

Two services are offered by the transport layer. Both connectionless and connection-oriented services are available. Every segment is handled as a separate packet by a connectionless service, and they all take distinct paths to get there. Every packet in a connection-oriented service follows the same path.

4. Flow control

Although it is carried out end-to-end rather than via a single link, the transport layer is likewise in charge of it. It is very essential because it is possible for sender to transmit data or information at very fast rate and hence receiver can receive this information and process it

5. Error control

This function is likewise carried out by the transport layer. Error control is not carried out across the single link, but rather end-to-end. Error Control ensures that the data packet is received to the destination without any error.

Working of Transport Layer

Communication between end systems is dependable and effective thanks to the Transport Layer. Apart from regulating flow and accommodating numerous applications concurrently, it guarantees data delivery in a manner that guarantees accuracy and minimises mistakes. It accomplishes this by utilising a collection of methods and protocols that provide data transport.

Transport Layer Protocols

Transport Layer Protocol uses different protocol for the better communication between two ends uses of protocol may differ from specifications. Below mention are some protocols used in Transport Layer

1. Transmission Control Protocol(TCP)

2. User Datagram Protocol (UDP)

3. Stream Control Transmission Protocol (SCTP)

Difference Between TCP and UDP at Transport Layer

TCP

UDP

TCP is a connection-oriented protocol

UDP is the connection-less protocol

TCP is reliable.

UDP is not reliable.

TCP supports error-checking mechanisms. 

UDP has only the basic error-checking mechanism using checksums.

An acknowledgment segment is present.

No acknowledgment segment.

TCP is slower than UDP

UDP is faster, simpler, and more efficient than TCP.

Retransmission of lost packets is possible in TCP, but not in UDP.

There is no retransmission of lost packets in the User Datagram Protocol (UDP)

TCP has a (20-60) bytes variable length header.

The header length is fixed of 8 bytes.

Frequently Asked Question on Transport Layer – FAQs

What is Transport Layer

The transport layer, or layer 4 of the OSI model, controls network traffic between hosts and end systems to guarantee full data flows. Data volume, destination, and rate are all controlled by transport-layer protocols including TCP, UDP, DCCP, and SCTP.

Name some protocols used at Transport Layer

Protocol such as TCP/IP , UDP , SCTP are used at Transport Layer

What are some important functions of Transport layer?

Transport layer various function such as Segmentation and Resembly , Service Point Addressing , Error and Flow control etc.

What is the use of port number at Transport layer?

The port number is necessary in order to access the service from a server. As a result, by allocating a port number to each application, the transport layer contributes significantly to the multiple communication between these apps.

How TCP ensures reliability?

TCP ensures reliabilty through it uses 3 way handshaking mechanism.


Article Tags :