The Wayback Machine - https://web.archive.org/web/20241007085939/https://www.geeksforgeeks.org/transport-layer-in-osi-model/
Open In App

Transport Layer in OSI Model

Last Updated : 25 Jan, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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.

Tranport Layer

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 enable efficient network transmission, the Transport Layer splits the total amount of data it gets from the applications running at the top layers into smaller units known as segments. The Transport Layer puts these bits back together into the original data stream at the other end.
  • In situations when organised data transfer is required, the Transport Layer creates a connection between the source and the destination. In order to create the proper parameters and guarantee that both systems are prepared to communicate data, a handshake protocol is established. When the data transfer is complete, the Transport Layer closes the connection.
  • The transport layer also assures dependable data transmission. Receiving acknowledgments, or ACK bits, is how this is accomplished. While waiting for the recipient to acknowledge the parts it sent, the sender keeps an eye on them. Any damaged segments are retransmitted by the sender if they receive an acknowledgment.
  • Flow regulation is one of the Transport Layer’s most crucial roles. In order to prevent data overload, it regulates the data transfer rate. This is done by utilising protocols like the sliding window protocol, which is carried out by the receiver telling the sender of the maximum amount of data it may receive by sending back a window.
  • Both error detection and repair are handled by the transport layer. Checksums are one of these techniques for error detection. By computing and validating checksums, it can ascertain whether data was tampered with during transmission. The Transport Layer may request retransmission if it finds anything.

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.

Working of Transport-layer

  • The fourth layer down is the transport layer.
  • 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)

  • An IP Transport Layer protocol is called 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.

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.



Similar Reads

What is OSI Model? - Layers of OSI Model
OSI stands for Open Systems Interconnection , where open stands to say non-proprietary. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. The OSI reference model was developed by ISO - 'International Organiz
15+ min read
Difference Between Secure Socket Layer (SSL) and Transport Layer Security (TLS)
SSL stands for Secure Socket Layer while TLS stands for Transport Layer Security. Both Secure Socket Layer and Transport Layer Security are the protocols used to provide security between web browsers and web servers. The main difference between Secure Socket Layer and Transport Layer Security is that, in SSL (Secure Socket Layer), the Message diges
4 min read
Presentation Layer in OSI model
Prerequisite : OSI Model Introduction : 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 required form
6 min read
Session Layer in OSI model
Prerequisite : OSI Layer Introduction :The Session Layer is the 5th layer in the Open System Interconnection (OSI) model. This layer allows users on different machines to establish active communications sessions between them. It is responsible for establishing, maintaining, synchronizing, terminating sessions between end-user applications. In Sessi
5 min read
Functions of Physical layer in OSI Model
The physical layer is the lowest layer of the OSI model. The physical layer consists of various networking devices such as connectors, receivers, plugs, modems, repeaters, cables, Hubs, etc. The rules and procedures that are defined for interaction between the physical layers are known as physical layer protocols. The physical connections between t
5 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 or reads the medium before trying to use it for sen
3 min read
Which layer of OSI Model is Responsible for Reliable Connections?
Answer: The Transport layer of the OSI model is responsible for reliable connections.Reliable DeliveryThe Transport layer ensures the reliable delivery of data between source and destination hosts, regardless of the underlying network's reliability. Error Detection and CorrectionThe Transport layer uses techniques like checksums and sequence number
1 min read
Network Layer in OSI Model
OSI stands for Open Systems Interconnection. It was developed by the ISO – ‘International Organization for Standardization‘, in the year 1984. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. What is a Netw
10 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 one device(s) (like a computer) to another device(
5 min read
Application Layer in OSI Model
The Application Layer of OSI (Open System Interconnection) model, is the top layer in this model and takes care of network communication. The application layer provides the functionality to send and receive data from users. It acts as the interface between the user and the application. The application provides services like file transmission, mail
9 min read
Similarities between TCP/IP model and OSI model
Pre-Requisite: Layers of OSI Model, TCP/IP Model OSI Model or Open Systems Interconnection is an architecture of 7 layers in which each layer has its work to perform whereas TCP/IP is a concise version of the OSI Model. TCP/IP Model consists of 4 layers rather than the 7 layers of the OSI Model. There are so many similarities between the TCP/IP mod
5 min read
This is exactly why we still use the OSI model when we have TCP/IP Model
What is the OSI Model?OSI is an acronym for Open Systems Interconnection. The International Organization for Standardization (ISO) created the OSI model (ISO). It's a model for how applications communicate over the internet. In order to facilitate interoperability between diverse devices and applications, the OSI model describes computing functions
10 min read
Difference Between OSI Model and TCP/IP Model
Data communication is a process or act in which we can send or receive data. Understanding the fundamental structures of networking is crucial for anyone working with computer systems and communication. For data communication two models are available, the OSI (Open Systems Interconnection) Model, and the TCP/IP (Transmission Control Protocol/Intern
5 min read
TCP and UDP in Transport Layer
Layer 3 or the Network layer uses IP or Internet Protocol which being a connection less protocol treats every packet individually and separately leading to lack of reliability during a transmission. For example, when data is sent from one host to another, each packet may take a different path even if it belongs to the same session. This means the p
4 min read
Transport Layer Security (TLS) Handshake
TLS is a data privacy and security protocol implemented for secure communication over internet. It usually encrypts communication between server and clients. TLS is a successor to Secure Socket Layer (SSL) protocol. SSL v3.0 and TLS v1.0 were very similar but it was replaced with TLS. You can also refer to Transport Layer Security (TLS). A Transpor
2 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 information. Instruments Used by Vehicle LayerTo
9 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 transport layer takes the services from its upward la
9 min read
Transport Layer Security (TLS)
Transport Layer Securities (TLS) are designed to provide security at the transport layer. TLS was derived from a security protocol called Secure Socket Layer (SSL). TLS ensures that no third party may eavesdrop or tampers with any message. There are several benefits of TLS: Encryption: TLS/SSL can help to secure transmitted data using encryption.In
4 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 destination host to deliver the services reliably. The u
5 min read
Multiplexing and Demultiplexing in Transport Layer
Prerequisite -Layers of OSI Model Multiplexing and Demultiplexing services are provided in almost every protocol architecture ever designed. UDP and TCP perform the demultiplexing and multiplexing jobs by including two special fields in the segment headers: the source port number field and the destination port number field. Multiplexing - Gathering
3 min read
Critique of OSI Model and Protocols
Open System Interconnection (OSI) model is reference model that is used to describe and explain how does information from software application in one of computers moves freely through physical medium to software application on another computer. This model consists of total of seven layers and each of layers performs specific task or particular netw
4 min read
How Communication happens using OSI model
The Open System Interconnection (OSI) model is a standard “reference model” created by an International Organization for Standardization (ISO) to describe how software and hardware components involved in network communication divide efforts and interact with each other. The OSI model defines a seven-layer set of functional elements, from physical i
4 min read
Why Does the OSI Reference Model Matter?
OSI (Open Systems Interconnection) model is a reference model that describes the movement of information between software applications in different computer systems. It is a seven-layered model used in computer networking. It is useful for developing new standards while considering the existing networking standards. With dynamically changing needs
3 min read
How OSI Model Works in Real Life Example?
Answer: The OSI model is defined as a framework that helps to understand the network architecture and communication protocols. It provides with the systematic approach for transmission and communication of between the devices connected in the network. Below are the Real life examples: Example 1: Ethernet and Local Area Networks Ethernet is defined
2 min read
Working of ISO-OSI Model
The ISO-OSI (International organization of Standardization - Open System Interconnection) says to group together the functions which are related to each other. The Functions in OSI Model that are needed for proper communication can be divided into 2 types :- 1. Mandatory Functions: Here the implementation of the functions is not optional, i.e., it
7 min read
OSI Model Full Form in Computer Networking
The OSI stands for Open System Interconnection. OSI model is a conceptual framework that defines how computers communicate with each other over a network. It consists of seven layers, each with its own specific function and set of protocols. In this article, we are going to discuss OSI model, its seven layers, and functionality in detail. What is M
9 min read
Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
Layer 2 or the Datalink layer provides physical addressing and access to media. It defines how data is to be formatted for transmission and how access to the network is to be controlled. It also provides error detection, ensuring data on higher layers is formatted correctly for transmission. Cisco Discovery Protocol (CDP) and Link Layer Discovery P
2 min read
Difference Between Network Layer Protocols and Application Layer Protocols
Prerequisite: Basics of Computer Network In the world of computer networking, protocols are the set of rules that govern communication between devices. These rules dictate how devices should send and receive data over a network. Protocols are typically organized into layers, with each layer serving a specific purpose and working in conjunction with
6 min read
Why Flow Control is Used in Both Data Link Layer and Network Layer?
OSI model was established in1947 by international standard organization is a multinational body dedicated to worldwide agreement on international standards.ISO standard covers all the aspects of network communications is the Open System Interconnection model.It was introduced in the late 1070s. an open system is a set of protocols that allows any t
6 min read
Which Layer Called Error Detection Layer?
Answer: The Data Link layer is often referred to as the error detection layer.And, Transport Layer is also responsible for error detection and recovery in data communication. Error DetectionThe Data Link layer is responsible for transferring data frames between adjacent network nodes. During this process, it employs error detection techniques to en
1 min read
Article Tags :