Transport Layer in OSI Model
Last Updated :
31 Jan, 2025
The transport layer, or layer 4 of the OSI model, controls network traffic between hosts and end systems to guarantee full data flows.
It 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.

Transport Layer in OSI Model
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:
To read in detail about services offered by transport layer, refer to Transport Layer Services
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.

- The primary function of the transport layer is to give application processes operating on several hosts direct access to communication services.
- Logical communication between application processes operating on separate hosts is facilitated by the transport layer. Application processes use the logical communication offered by the transport layer to deliver messages to one other even when they are running on different hosts and are not physically connected.
- The network routers do not implement the transport layer protocols; only the end systems do.
- For instance, the network layer receives services from TCP and UDP, two transport layer protocols, which offer distinct functionalities.
- Protocols at the transport layer offer multiplexing and demultiplexing capabilities. In addition, it offers other services including bandwidth assurances, latency guarantees, and dependable data transport.
- Every application at the application layer is capable of sending a message via either TCP or UDP. Either of these two protocols can be used by the application to interact. The internet protocol on the internet layer will then be communicated with by both TCP and UDP. The transport layer is readable and writeable by the applications.
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)
- TCP is connection-oriented Protocol.
- TCP is reliable protocol.
- As TCP is connection-oriented protocol, so first the connection is established between two ends and then data is transferred and then the connection is terminated after all data being sent.
2. User Datagram Protocol (UDP)
- UDP is not reliable protocol
- The protocol UDP is connectionless.
- When speed and size are more important than security and dependability, this kind of protocol is employed.
- The data from the higher layer is supplemented with transport-level addresses, checksum error control, and length information by UDP, an end-to-end transport level protocol.
- A user datagram is the packet that the UDP protocol generates.
3. Stream Control Transmission Protocol (SCTP)
- Many Internet applications use SCTP to perform transport layer duties, similar to User Datagram Protocol (UDP) and Transmission Control Protocol (TCP).
- On top of a connectionless packet network like IP, SCTP is a dependable transport protocol that facilitates data transfer over the network in scenarios involving one or more IP addresses.
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.
|
For practice, solve quiz on Transport Layer.
Similar Reads
Session Layer in OSI model
The Session Layer is the 5th layer in the Open System Interconnection (OSI) model which plays an important role in controlling the dialogues (connections) between computers. This layer is responsible for setting up, coordinating, and terminating conversations, exchanges, and dialogues between the ap
6 min read
Presentation Layer in OSI model
Presentation Layer is the 6th layer in the Open System Interconnection (OSI) model. This layer is also known as Translation layer, as this layer serves as a data translator for the network. The data which this layer receives from the Application Layer is extracted and manipulated here as per the req
4 min read
Physical Layer in OSI Model
The physical Layer is the bottom-most layer in the Open System Interconnection (OSI) Model which is a physical and electrical representation of the system. It consists of various network components such as power plugs, connectors, receivers, cable types, etc. The physical layer sends data bits from
4 min read
Transport Layer Protocols
The transport layer is the fourth layer in the OSI model and the second layer in the TCP/IP model. The transport layer provides with end to end connection between the source and the destination and reliable delivery of the services. Therefore transport layer is known as the end-to-end layer. The tra
9 min read
Crash Recovery in Transport Layer
A key concept in the transport layer of an organizational convention, which is responsible for ensuring the reliable transfer of information between two endpoints, is crash recovery. Information loss or tampering may result from an organization failure or crash that occurs during the transmission of
9 min read
Network Layer in OSI Model
The Network Layer is the 5th Layer from the top and the 3rd layer from the Bottom of the OSI Model. It is one of the most important layers which plays a key role in data transmission. The main job of this layer is to maintain the quality of the data and pass and transmit it from its source to its de
5 min read
Transport Layer responsibilities
The transport Layer is the second layer in the TCP/IP model and the fourth layer in the OSI model. It is an end-to-end layer used to deliver messages to a host. It is termed an end-to-end layer because it provides a point-to-point connection rather than hop-to-hop, between the source host and destin
5 min read
TCP and UDP in Transport Layer
The Transport Layer in the network architecture is responsible for end-to-end communication between applications. In this layer, TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the two main protocols that handle the responsibility of moving data between applications. TCP foc
8 min read
Uniform Resource Name (URN) in Transport Layer
The transport layer is the important layer in the OSI reference model. A URN is a uniform resource identifier that provides a way of uniquely naming a resource without specifying an access protocol or mechanism, and without specifying a particular location. Uniform Resource Name (URN):Basically, URN
2 min read
Data Link Layer in OSI Model
Below are some common GATE CS topics of data link layer. Carrier Sense Multiple Access (CSMA) Carrier Sense Multiple Access or CSMA method was developed to minimize the probability of collision and thus, to increase the performance. The probability of collision can be minimized if a station senses o
3 min read