Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Transport layer

From Wikipedia, the free encyclopedia
Layer in the Internet protocol suite and OSI model
This articlemay be too technical for most readers to understand. Pleasehelp improve it tomake it understandable to non-experts, without removing the technical details.(March 2025) (Learn how and when to remove this message)

Four labeled stacked blocks. The blue block labeled "transport" is the second from the top.
The transport layer in the Internet protocol stack
Internet protocol suite
Application layer
Transport layer
Internet layer
Link layer

Incomputer networking, thetransport layer is a conceptual division of methods in thelayered architecture of protocols in the network stack in theInternet protocol suite and theOSI model. The protocols of this layer provideend-to-end communication services for applications.[1]: §1.1.3  It can provide services such asconnection-oriented communication,reliability,flow control, andmultiplexing.

The details of implementation and semantics of the transport layer of theInternet protocol suite,[1], which is the foundation of theInternet, and theOSI model of general networking are different. The protocols in use today in this layer for the Internet all originated in the development of TCP/IP. In the OSI model, the transport layer is often referred to asLayer 4, orL4,[2] while numbered layers are not used in TCP/IP.

The best-known transport protocol of the Internet protocol suite is theTransmission Control Protocol (TCP). It is used for connection-oriented transmissions, whereas the connectionlessUser Datagram Protocol (UDP) is used for simpler messaging transmissions. TCP is the more complex protocol, due to itsstateful design, incorporating reliable transmission and data stream services. Together, TCP and UDP comprise essentially all traffic on the Internet and are the only protocols implemented in every major operating system. Additional transport layer protocols that have been defined and implemented include theDatagram Congestion Control Protocol (DCCP) and theStream Control Transmission Protocol (SCTP).

OSI model
bylayer

Services

[edit]

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 adata stream rather than having to deal with the underlying connection-less models, such as thedatagram model of theUser Datagram Protocol (UDP) and of theInternet 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 causehead-of-line blocking.
  • Reliability: Packets may be lost during transport due tonetwork congestion and errors. By means of anerror detection code, such as achecksum, the transport protocol may check that the data is not corrupted, and verify correct receipt by sending anACK orNACK 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 receivingdata buffer, causing a buffer overrun. This can also be used to improve efficiency by reducingbuffer underrun.
  • Congestion avoidance:Congestion control can control traffic entry into a telecommunications network, so as to avoidcongestive collapse by attempting to avoid oversubscription of any of the processing orlink capabilities of the intermediate nodes and networks and taking resource reducing steps, such as reducing the rate of sendingpackets. 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, includingslow 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 onenetwork service at the same time. It is part of the transport layer in theTCP/IP model, but of thesession layer in the OSI model.

Analysis

[edit]

The transport layer is responsible for delivering data to the appropriate application process on the host computers. This involvesstatistical 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 anetwork socket, i.e., an identification address of the process-to-process communication. In the OSI model, this function is supported by thesession layer.

Some transport layer protocols, for example TCP, but not UDP, supportvirtual circuits, i.e., provideconnection-oriented communication over an underlying packet-orienteddatagram 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 oferror detecting code andautomatic repeat request (ARQ) protocol. The ARQ protocol also providesflow control, which may be combined withcongestion avoidance.

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

TCP is used for many protocols, includingHTTP web browsing and email transfer. UDP may be used formulticasting andbroadcasting, since retransmissions are not possible to a large number of hosts. UDP typically gives higherthroughput 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 asX.25,Frame Relay andATM, implement 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, toTP4, which is designed for less reliable networks.

Due toprotocol ossification, TCP and UDP are the only widely used transport protocols on the Internet.[6] To avoidmiddlebox intolerance, new transport protocols may mimic thewire image of a tolerated protocol, orbe 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

[edit]

This list shows some protocols that are commonly placed in the transport layers of theInternet protocol suite, theOSI protocol suite,NetWare'sIPX/SPX,AppleTalk, andFibre Channel.

Comparison of Internet transport layer protocols

[edit]
FeatureUDPUDP-LiteTCPMultipath TCPSCTPDCCPRUDP[a]
Packet header size8 bytes8 bytes20–60 bytes50–90 bytes12 bytes[b]12 or 16 bytes14+ bytes
Typical data-packet overhead8 bytes8 bytes20 bytes?? bytes44–48+ bytes[c]12 or 16 bytes14 bytes
Transport-layer packet entityDatagramDatagramSegmentSegmentDatagramDatagramDatagram
Connection-orientedNoNoYesYesYesYesYes
Reliable transportNoNoYesYesYesNoYes
Unreliable transportYesYesNoNoYesYesYes
Preserve message boundaryYesYesNoNoYesYesYes
DeliveryUnorderedUnorderedOrderedOrderedOrdered / UnorderedUnorderedUnordered
DatachecksumOptional[d]YesYesYesYesYesOptional
Checksum size16 bits16 bits16 bits16 bits32 bits16 bits16 bits
PartialchecksumNoYesNoNoNoYesNo
PathMTUNoNoYesYesYesYes?
Flow controlNoNoYesYesYesNoYes
Congestion controlNoNoYesYesYesYes?
Explicit Congestion NotificationNoNoYesYesYesYes?
MultiplestreamsNoNoNoNoYesNoNo
Multi-homingNoNoNoYesYesNoNo
Bundling /NagleNoNoYesYesYesNo?
  1. ^RUDP is not officially standardized. There have been no standard-related developments since 1999.
  2. ^Excluding data chunk headers and overhead chunks. Without embedded chunks, an SCTP packet is essentially useless.
  3. ^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.
  4. ^Optional in IPv4 but compulsory in IPv6.[10]

Comparison of OSI transport protocols

[edit]

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:[11]

ServiceTP0TP1TP2TP3TP4
Connection-oriented networkYesYesYesYesYes
Connectionless networkNoNoNoNoYes
Concatenation and separationNoYesYesYesYes
Segmentation and reassemblyYesYesYesYesYes
Error recoveryNoYesNoYesYes
Reinitiate connection (if an excessive number ofPDUs are unacknowledged)NoYesNoYesNo
Multiplexing and demultiplexing over a singlevirtual 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.[12]

References

[edit]
  1. ^abR. Braden, ed. (October 1989).Requirements for Internet Hosts -- Communication Layers. Network Working Group.doi:10.17487/RFC1122. STD 3. RFC1122.Internet Standard 3. Updated byRFC 1349,4379,5884,6093,6298,6633,6864,8029 and9293.
  2. ^"Introducing the Internet Protocol Suite".System Administration Guide, Volume 3.
  3. ^"X.225 : Information technology – Open Systems Interconnection – Connection-oriented Session protocol: Protocol specification".Archived from the original on February 1, 2021. RetrievedMarch 10, 2023.
  4. ^"Transport Layer"(PDF).Galgotias University.
  5. ^Heena, Khera."Data Communication and networking"(PDF).Galgotias University. p. 9.
  6. ^Papastergiou et al. 2017, p. 620-621.
  7. ^Papastergiou et al. 2017, p. 623-624.
  8. ^Corbet 2018.
  9. ^Brian C. Smith,Cyclic-UDP: A Priority-Driven Best-Effort Protocol(PDF), retrievedFebruary 23, 2020
  10. ^"RFC 8200". RetrievedJune 15, 2025.Unlike IPv4, the default behavior when UDP packets are originated by an IPv6 node is that the UDP checksum is not optional.
  11. ^"ITU-T Recommendation X.224 (11/1995) ISO/IEC 8073".Itu.int. RetrievedJanuary 17, 2017.
  12. ^"ITU-T Recommendation X.234 (07/1994) ISO/IEC 8602".Itu.int. RetrievedJanuary 17, 2017.

Bibliography

[edit]
Wikiversity has learning resources about Transport layer
Retrieved from "https://en.wikipedia.org/w/index.php?title=Transport_layer&oldid=1337201053"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp