Networking.com

transport layer

By Gavin Wright

What is the transport layer?

The transport layer is Layer 4 of the Open Systems Interconnection (OSI) communications model. It is responsible for ensuring that the data packets arrive accurately and reliably between sender and receiver. The transport layer most often uses TCP or User Datagram Protocol (UDP). In the TCP/IP network model, the transport layer comes between the application and network layers.

In the OSI model, the transport layer sits between the network layer and the session layer. The network layer is responsible for taking the data packets and sending them to the correct computer. The transport layer then takes the received packets, checks them for errors and sorts them. Then, it sends them to the session layer of the correct program running on the computer. The session layer now takes the well-formatted packets and uses them for the application's data.

To illustrate the transport layer, imagine a computer is a big company with many departments. The data packets are letters. The network layer is like the Postal Service that gets the letters to the correct address of the company. The transport layer is like the company mailroom. It receives the letters and does an initial inspection.

Any letters that were damaged in transit or delivered to the wrong address it reports to the sender. It then sorts the letters by department, puts them into the time order of oldest to newest and then delivers them inside the company to the correct department. The department, or application in this case, then takes the letters to read them and can build an understanding of the back-and-forth correspondence and do whatever work is needed from the letter.

Transport layer functions

The overall functionality is to insulate the application layer from needing to worry about the nitty-gritty details. It does this by providing end-to-end communication, reliability, flow control, addressing and multiplexing:

Transport layer in TCP/IP model

The OSI model is a theoretical construct of how communication between systems can be understood. It does not directly relate to any specific implementation. TCP/IP, on the other hand, is a practically implemented protocol that is used in modern computer networks and on the internet.

TCP/IP may or may not implement all the features mentioned by the OSI model. Supported features depend on which protocols are used.

TCP/IP also uses less layers. In the OSI model, the transport layer comes between the network and the session layer. In TCP/IP, it comes between the network layer and the application layer.

Transport layer protocols

UDP and TCP are the most common transport layer protocols.

UDP is a simple and fast transport protocol. It is for connectionless transmissions. It is considered unreliable because it does not use acknowledgements or retransmissions, so packets may be lost. UDP is best for real-time data where speed of delivery is more important than reliability, such as for video conferencing.

TCP is the more feature-rich transport protocol. It is connection-oriented. It uses synchronization and acknowledgement messages to ensure delivery. It retransmits and reorders packets if needed. It can negotiate sending and receiving rates. TCP is slower than UDP. TCP is the most common protocol on the internet.

QUIC, formerly Quick UDP Internet Connections, is a new protocol. It seeks to combine many of the best reliability features of TCP with the speed of UDP. It is optimized for use over the internet and for Hypertext Transfer Protocol 3. It uses forward error correction, making it better for wireless transmissions, such as for 5G networks.

Other transport layer protocols include the following:

Learn about 12 common network protocols and their functions.

10 Apr 2023

All Rights Reserved, Copyright 2000 - 2024, TechTarget | Read our Privacy Statement