Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Transport layer
Layer in the OSI and TCP/IP models providing host-to-host communication services for applications

In computer networking, the transport layer is a key part of the OSI model and the Internet protocol suite, providing end-to-end communication services such as connection-oriented communication, reliability, and multiplexing. The most well-known protocols in this layer are the Transmission Control Protocol (TCP), which offers reliable, stateful data transmission, and the User Datagram Protocol (UDP) for simpler, connectionless messaging. These protocols form the backbone of Internet traffic and are implemented in all major operating systems. Other transport protocols include DCCP and SCTP, each designed for specific network functions and performance needs.

We don't have any images related to Transport layer yet.
We don't have any YouTube videos related to Transport layer yet.
We don't have any PDF documents related to Transport layer yet.
We don't have any Books related to Transport layer yet.
We don't have any archived web articles related to Transport layer yet.

Services

Transport layer services are conveyed to an application via a programming interface to the transport layer protocols. The services may include the following features:4

  • Connection-oriented communication:5 It is normally easier for an application to interpret a connection as a data stream rather than having to deal with the underlying connection-less models, such as the datagram model of the User Datagram Protocol (UDP) and of the Internet Protocol (IP).
  • Same order delivery: The network layer doesn't generally guarantee that packets of data will arrive in the same order that they were sent, but often this is a desirable feature. This is usually done through the use of segment numbering, with the receiver passing them to the application in order. This can cause head-of-line blocking.
  • Reliability: Packets may be lost during transport due to network congestion and errors. By means of an error detection code, such as a checksum, the transport protocol may check that the data is not corrupted, and verify correct receipt by sending an ACK or NACK message to the sender. Automatic repeat request schemes may be used to retransmit lost or corrupted data.
  • Flow control: The rate of data transmission between two nodes must sometimes be managed to prevent a fast sender from transmitting more data than can be supported by the receiving data buffer, causing a buffer overrun. This can also be used to improve efficiency by reducing buffer underrun.
  • Congestion avoidance: Congestion control can control traffic entry into a telecommunications network, so as to avoid congestive collapse by attempting to avoid oversubscription of any of the processing or link capabilities of the intermediate nodes and networks and taking resource reducing steps, such as reducing the rate of sending packets. For example, automatic repeat requests may keep the network in a congested state; this situation can be avoided by adding congestion avoidance to the flow control, including slow start. This keeps the bandwidth consumption at a low level in the beginning of the transmission, or after packet retransmission.
  • Multiplexing: Ports can provide multiple endpoints on a single node. For example, the name on a postal address is a kind of multiplexing and distinguishes between different recipients of the same location. Computer applications will each listen for information on their own ports, which enables the use of more than one network service at the same time. It is part of the transport layer in the TCP/IP model, but of the session layer in the OSI model.

Analysis

The transport layer is responsible for delivering data to the appropriate application process on the host computers. This involves statistical multiplexing of data from different application processes, i.e. forming data segments, and adding source and destination port numbers in the header of each transport layer data segment. Together with the source and destination IP address, the port numbers constitute a network socket, i.e. an identification address of the process-to-process communication. In the OSI model, this function is supported by the session layer.

Some transport layer protocols, for example TCP, but not UDP, support virtual circuits, i.e. provide connection-oriented communication over an underlying packet-oriented datagram network. A byte stream is delivered while hiding the packet mode communication for the application processes. This involves connection establishment, dividing of the data stream into packets called segments, segment numbering and reordering of out-of-order data.

Finally, some transport layer protocols, for example TCP, but not UDP, provide end-to-end reliable communication, i.e. error recovery by means of error detecting code and automatic repeat request (ARQ) protocol. The ARQ protocol also provides flow control, which may be combined with congestion avoidance.

UDP is a very simple protocol and does not provide virtual circuits, nor reliable communication, delegating these functions to the application program. UDP packets are called datagrams, rather than segments.

TCP is used for many protocols, including HTTP web browsing and email transfer. UDP may be used for multicasting and broadcasting, since retransmissions are not possible to a large amount of hosts. UDP typically gives higher throughput and shorter latency and is therefore often used for real-time multimedia communication where packet loss occasionally can be accepted, for example IP-TV and IP-telephony, and for online computer games.

Many non-IP-based networks, such as X.25, Frame Relay and ATM, implement the connection-oriented communication at the network or data link layer rather than the transport layer. In X.25, in telephone network modems and in wireless communication systems, reliable node-to-node communication is implemented at lower protocol layers.

The OSI connection-mode transport layer protocol specification defines five classes of transport protocols: TP0, providing the least error recovery, to TP4, which is designed for less reliable networks.

Due to protocol ossification, TCP and UDP are the only widely used transport protocols on the Internet.6 To avoid middlebox intolerance, new transport protocols may mimic the wire image of a tolerated protocol, or be encapsulated in UDP, accepting some overhead (e.g., due to outer checksums made redundant by inner integrity checks).7 QUIC takes the latter approach, rebuilding reliable stream transport on top of UDP.8

Protocols

This list shows some protocols that are commonly placed in the transport layers of the Internet protocol suite, the OSI protocol suite, NetWare's IPX/SPX, AppleTalk, and Fibre Channel.

Comparison of Internet transport layer protocols

FeatureUDPUDP-LiteTCPMultipath TCPSCTPDCCPRUDP10
Packet header size8 bytes8 bytes20–60 bytes50–90 bytes12 bytes1112 or 16 bytes14+ bytes
Typical data-packet overhead8 bytes8 bytes20 bytes?? bytes44–48+ bytes1212 or 16 bytes14 bytes
Transport-layer packet entityDatagramDatagramSegmentSegmentDatagramDatagramDatagram
Connection-orientedNoNoYesYesYesYesYes
Reliable transportNoNoYesYesYesNoYes
Unreliable transportYesYesNoNoYesYesYes
Preserve message boundaryYesYesNoNoYesYesYes
DeliveryUnorderedUnorderedOrderedOrderedOrdered / UnorderedUnorderedUnordered
Data checksumOptionalYesYesYesYesYesOptional
Checksum size16 bits16 bits16 bits16 bits32 bits16 bits16 bits
Partial checksumNoYesNoNoNoYesNo
Path MTUNoNoYesYesYesYes?
Flow controlNoNoYesYesYesNoYes
Congestion controlNoNoYesYesYesYes?
Explicit Congestion NotificationNoNoYesYesYesYes?
Multiple streamsNoNoNoNoYesNoNo
Multi-homingNoNoNoYesYesNoNo
Bundling / NagleNoNoYesYesYesNo?

Comparison of OSI transport protocols

ISO/IEC 8073/ITU-T Recommendation X.224, "Information Technology - Open Systems Interconnection - Protocol for providing the connection-mode transport service", defines five classes of connection-mode transport protocols designated class 0 (TP0) to class 4 (TP4). Class 0 contains no error recovery and was designed for use on network layers that provide error-free connections. Class 4 is closest to TCP, although TCP contains functions, such as the graceful close, which OSI assigns to the session layer. All OSI connection-mode protocol classes provide expedited data and preservation of record boundaries. Detailed characteristics of the classes are shown in the following table:13

ServiceTP0TP1TP2TP3TP4
Connection-oriented networkYesYesYesYesYes
Connectionless networkNoNoNoNoYes
Concatenation and separationNoYesYesYesYes
Segmentation and reassemblyYesYesYesYesYes
Error recoveryNoYesNoYesYes
Reinitiate connection (if an excessive number of PDUs are unacknowledged)NoYesNoYesNo
Multiplexing and demultiplexing over a single virtual circuitNoNoYesYesYes
Explicit flow controlNoNoYesYesYes
Retransmission on timeoutNoNoNoNoYes
Reliable Transport ServiceNoYesNoYesYes

There is also a connectionless transport protocol, specified by ISO/IEC 8602/ITU-T Recommendation X.234.14

Bibliography

Wikiversity has learning resources about Transport layer

References

  1. R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Communication Layers. Network Working Group. doi:10.17487/RFC1122. STD 3. RFC 1122. Internet Standard 3. Updated by RFC 1349, 4379, 5884, 6093, 6298, 6633, 6864, 8029 and 9293. /wiki/Bob_Braden

  2. R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Communication Layers. Network Working Group. doi:10.17487/RFC1122. STD 3. RFC 1122. Internet Standard 3. Updated by RFC 1349, 4379, 5884, 6093, 6298, 6633, 6864, 8029 and 9293. /wiki/Bob_Braden

  3. "Introducing the Internet Protocol Suite". System Administration Guide, Volume 3. https://docs.oracle.com/cd/E19455-01/806-0916/6ja85398m/index.html

  4. "Transport Layer" (PDF). Galgotias University. http://103.47.12.35/bitstream/handle/1/4881/659.pdf?sequence=1&isAllowed=y

  5. Heena, Khera. "Data Communication and networking" (PDF). Galgotias University. p. 9. http://103.47.12.35/bitstream/handle/1/4881/659.pdf?sequence=1&isAllowed=y

  6. Papastergiou et al. 2017, p. 620-621. - Papastergiou, Giorgos; Fairhurst, Gorry; Ros, David; Brunstrom, Anna; Grinnemo, Karl-Johan; Hurtig, Per; Khademi, Naeem; Tüxen, Michael; Welzl, Michael; Damjanovic, Dragana; Mangiante, Simone (2017). "De-Ossifying the Internet Transport Layer: A Survey and Future Perspectives". IEEE Communications Surveys & Tutorials. 19: 619–639. doi:10.1109/COMST.2016.2626780. hdl:2164/8317. S2CID 1846371. https://doi.org/10.1109%2FCOMST.2016.2626780

  7. Papastergiou et al. 2017, p. 623-624. - Papastergiou, Giorgos; Fairhurst, Gorry; Ros, David; Brunstrom, Anna; Grinnemo, Karl-Johan; Hurtig, Per; Khademi, Naeem; Tüxen, Michael; Welzl, Michael; Damjanovic, Dragana; Mangiante, Simone (2017). "De-Ossifying the Internet Transport Layer: A Survey and Future Perspectives". IEEE Communications Surveys & Tutorials. 19: 619–639. doi:10.1109/COMST.2016.2626780. hdl:2164/8317. S2CID 1846371. https://doi.org/10.1109%2FCOMST.2016.2626780

  8. Corbet 2018. - Corbet, Jonathan (January 29, 2018). "QUIC as a solution to protocol ossification". LWN.net. https://lwn.net/Articles/745590/

  9. Brian C. Smith, Cyclic-UDP: A Priority-Driven Best-Effort Protocol (PDF), retrieved February 23, 2020 https://www.cs.cornell.edu/zeno/Papers/cyclicudp.pdf

  10. RUDP is not officially standardized. There have been no standard-related developments since 1999.

  11. Excluding data chunk headers and overhead chunks. Without embedded chunks, an SCTP packet is essentially useless.

  12. Counted as follows: 12 bytes SCTP header + 16 bytes DATA chunk header or 20 bytes I-DATA chunk header + 16+ bytes SACK chunk. Additional non-data chunks (e.g. AUTH) and/or headers for additional data chunks, which might easily increase the overhead with 50 bytes or more, not counted.

  13. "ITU-T Recommendation X.224 (11/1995) ISO/IEC 8073". Itu.int. Retrieved January 17, 2017. http://www.itu.int/rec/T-REC-X.224-199511-I/en/

  14. "ITU-T Recommendation X.234 (07/1994) ISO/IEC 8602". Itu.int. Retrieved January 17, 2017. http://www.itu.int/rec/T-REC-X.234-199407-I/en/