Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Stream Control Transmission Protocol

From Wikipedia, the free encyclopedia
Computer network protocol
Stream Control Transmission Protocol
Protocol stack
AbbreviationSCTP
Introduction2000
OSI layerTransport layer (4)
RFC(s)9260
Internet protocol suite
Application layer
Transport layer
Internet layer
Link layer

TheStream Control Transmission Protocol (SCTP) is acomputer networkingcommunications protocol in thetransport layer of theInternet protocol suite. Originally intended forSignaling System 7 (SS7) message transport in telecommunication, the protocol provides the message-oriented feature of theUser Datagram Protocol (UDP) while ensuring reliable, in-sequence transport of messages withcongestion control like theTransmission Control Protocol (TCP). Unlike UDP and TCP, the protocol supportsmultihoming and redundant paths to increase resilience and reliability.

SCTP is standardized by theInternet Engineering Task Force (IETF) inRFC 9260. The SCTP reference implementation was released as part ofFreeBSD version 7 and has since been widely ported to other platforms.

Formal oversight

[edit]

TheIETF Signaling Transport (SIGTRAN) working group defined the protocol (number 132[1]) in October 2000,[2] and the IETF Transport Area (TSVWG) working group maintains it.RFC 9260 defines the protocol.RFC 3286 provides an introduction.

Message-based multi-streaming

[edit]

SCTP applications submit data for transmission in messages (groups of bytes) to the SCTP transport layer. SCTP places messages and control information into separatechunks (data chunks and control chunks), each identified by achunk header. The protocol can fragment a message into multiple data chunks, but each data chunk contains data from only one user message. SCTP bundles the chunks into SCTP packets. The SCTP packet, which is submitted to theInternet Protocol, consists of a packet header, SCTP control chunks (when necessary), followed by SCTP data chunks (when available).

SCTP may be characterized as message-oriented, meaning it transports a sequence of messages (each being a group of bytes), rather than transporting an unbroken stream of bytes as in TCP. As in UDP, in SCTP a sender sends a message in one operation, and that exact message is passed to the receiving application process in one operation. In contrast, TCP is a stream-oriented protocol, transportingstreams of bytes reliably and in order. However TCP does not allow the receiver to know how many times the sender application called on the TCP transport passing it groups of bytes to be sent out. At the sender, TCP simply appends more bytes to a queue of bytes waiting to go out over the network, rather than having to keep a queue of individual separate outbound messages which must be preserved as such.

The termmulti-streaming refers to the capability of SCTP to transmit several independent streams of chunks in parallel, for example transmittingweb page images simultaneously with the web page text. In essence, it involves bundling several connections into a single SCTP association, operating on messages (or chunks) rather than bytes.

TCP preserves byte order in the stream by including a byte sequence number with eachsegment. SCTP, on the other hand, assigns a sequence number or a message-id[note 1] to eachmessage sent in a stream. This allows independent ordering of messages in different streams. However, message ordering is optional in SCTP; a receiving application may choose to process messages in the order of receipt instead of in the order of sending.

Features

[edit]

Features of SCTP include:

  • Reliable transmission of both ordered and unordered data streams
  • Multihoming support in which one or both endpoints of a connection can consist of more than one IP address, enabling transparent fail-over between redundant network paths
  • Delivery of chunks within independent streams eliminates unnecessaryhead-of-line blocking, as opposed to TCP byte-stream delivery.
  • Explicit partial reliability
  • Path selection and monitoring to select a primary data transmission path and test the connectivity of the transmission path
  • Validation and acknowledgment mechanisms protect againstflooding attacks and provide notification of duplicated or missing data chunks.
  • Improved error detection suitable forEthernet jumbo frames

The designers of SCTP originally intended it for the transport of telephony (i.e. Signaling System 7) over Internet Protocol, with the goal of duplicating some of the reliability attributes of the SS7 signaling network in IP. This IETF effort is known asSIGTRAN. In the meantime, other uses have been proposed, for example, theDiameter protocol[3] andReliable Server Pooling (RSerPool).[4]

Motivation and adoption

[edit]

TCP has provided the primary means to transfer data reliably across the Internet. However, TCP has imposed limitations on several applications. FromRFC 4960:

  • TCP provides both reliable data transfer and strict order-of-transmission delivery of data. Some applications need reliable transfer without sequence maintenance, while others would be satisfied with partial ordering of the data. In both of these cases, the head-of-line blocking property of TCP causes unnecessary delay.
  • For applications exchanging distinct records or messages, the stream-oriented nature of TCP requires the addition of explicit markers or other encoding to delineate the individual records.
  • In order to avoid sending many small IP packets where one single larger packet would have sufficed, the TCP implementation may delay transmitting data while waiting for possibly more data being queued by the application (Nagle's algorithm). Although many TCP implementations allow the disabling of Nagle's algorithm, this is not required by the specification. SCTP, on the other hand, allows undelayed transmission to be configured as a default for an association, eliminating any undesired delays, but at the cost of higher transfer overhead.[5]
  • The limited scope[vague] of TCP sockets complicates the task of providing highly-available data transfer capability using multihomed hosts.
  • TCP is relatively vulnerable to denial-of-service attacks, such asSYN attacks.

Adoption of SCTP has been slowed by lack of awareness, lack of implementations (particularly in Microsoft Windows), lack of application support and lack of network support.[6]

SCTP has seen adoption in themobile telephony space as the transport protocol for severalcore network interfaces.[7]

Multihoming

[edit]
SCTP multihoming
Asymmetric multihoming: local multihoming to remote single homing
Asymmetric multihoming: local single homing to remote multihoming

SCTP provides redundant paths to increase reliability.

Each SCTP end point needs to check reachability of the primary and redundant addresses of the remote end point using aheartbeat. Each SCTP end point needs to acknowledge the heartbeats it receives from the remote end point.

When SCTP sends a message to a remote address, the source interface will only be decided by the routing table of the host (and not by SCTP).

In asymmetric multihoming, one of the two endpoints does not support multihoming.

In local multihoming and remote single homing, if the remote primary address is not reachable, the SCTP association fails even if an alternate path is possible.

Packet structure

[edit]
Main article:SCTP packet structure

An SCTP packet consists of two basic sections:

  1. Thecommon header, which occupies the first 12 bytes and is highlighted in blue.
  2. Thedata chunks, which occupy the remaining portion of the packet. The first chunk is highlighted in green, and the last ofN chunks (Chunk N) is highlighted in red.
Bits0–78–1516–2324–31
+0Source portDestination port
32Verification tag
64Checksum
96Chunk 1 typeChunk 1 flagsChunk 1 length
128Chunk 1 data
ChunkN typeChunkN flagsChunkN length
ChunkN data

Each chunk starts with a one-byte type identifier, with 15 chunk types defined byRFC 9260, and at least 5 more defined by additional RFCs.[note 2] Eight flag bits, a two-byte length field, and the data compose the remainder of the chunk. If the chunk does not form a multiple of 4 bytes (i.e., the length is not a multiple of 4), then it is padded with zeros, which are not included in the chunk length. The two-byte length field limits each chunk to a 65,535-byte length (including the type, flags and length fields).

Security

[edit]

Although encryption was not part of the original SCTP design, SCTP was designed with features for improved security, such as 4-wayhandshake (compared toTCP 3-way handshake) to protect againstSYN flooding attacks, and large "cookies" for association verification and authenticity.

Reliability was also a key part of the security design of SCTP. Multihoming enables an association to stay open even when some routes and interfaces are down. This is of particular importance forSIGTRAN as it carriesSS7 over an IP network using SCTP, and requires strong resilience during link outages to maintain telecommunication service even when enduring network anomalies.

Implementations

[edit]

The SCTP reference implementation runs on FreeBSD, Mac OS X, Microsoft Windows, and Linux.[8]

The followingoperating systems implement SCTP:

Third-party drivers:

  • Microsoft Windows:
    • The SctpDrv kernel driver is a port of the BSD SCTP stack to Windows (Abandoned after 2012)[17]
  • MacOS:
    • SCTP Network Kernel Extension for Mac OS X[18]

Userspace library:

The following applications implement SCTP:

Tunneling over UDP

[edit]

In the absence of native SCTP support in operating systems, it is possible totunnel SCTP over UDP,[22] as well as to map TCP API calls to SCTP calls so existing applications can use SCTP without modification.[23]

RFCs

[edit]
  • RFC 9260 Stream Control Transmission Protocol
  • RFC 8540 Stream Control Transmission Protocol: Errata and Issues in RFC 4960 (obsoleted by RFC 9260)
  • RFC 7829 SCTP-PF: A Quick Failover Algorithm for the Stream Control Transmission Protocol
  • RFC 7765 TCP and Stream Control Transmission Protocol (SCTP) RTO Restart
  • RFC 7496 Additional Policies for the Partially Reliable Stream Control Transmission Protocol Extension
  • RFC 7053 SACK-IMMEDIATELY Extension for the Stream Control Transmission Protocol (obsoleted by RFC 9260)
  • RFC 6951 UDP Encapsulation of Stream Control Transmission Protocol (SCTP) Packets for End-Host to End-Host Communication
  • RFC 6525 Stream Control Transmission Protocol (SCTP) Stream Reconfiguration
  • RFC 6458 Sockets API Extensions for the Stream Control Transmission Protocol (SCTP)
  • RFC 6096 Stream Control Transmission Protocol (SCTP) Chunk Flags Registration (obsoleted by RFC 9260)
  • RFC 5062 Security Attacks Found Against the Stream Control Transmission Protocol (SCTP) and Current Countermeasures
  • RFC 5061 Stream Control Transmission Protocol (SCTP) Dynamic Address Reconfiguration
  • RFC 5043 Stream Control Transmission Protocol (SCTP) Direct Data Placement (DDP) Adaptation
  • RFC 4960 Stream Control Transmission Protocol (obsoleted by RFC 9260)
  • RFC 4895 Authenticated Chunks for the Stream Control Transmission Protocol (SCTP)
  • RFC 4820 Padding Chunk and Parameter for the Stream Control Transmission Protocol (SCTP)
  • RFC 4460 Stream Control Transmission Protocol (SCTP) Specification Errata and Issues (obsoleted by RFC 9260)
  • RFC 3873 Stream Control Transmission Protocol (SCTP)Management Information Base (MIB)
  • RFC 3758 Stream Control Transmission Protocol (SCTP) Partial Reliability Extension
  • RFC 3554 On the Use of Stream Control Transmission Protocol (SCTP) withIPsec
  • RFC 3436 Transport Layer Security over Stream Control Transmission Protocol
  • RFC 3309 Stream Control Transmission Protocol (SCTP) Checksum Change (obsoleted by RFC 4960)
  • RFC 3286 An Introduction to the Stream Control Transmission Protocol
  • RFC 3257 Stream Control Transmission Protocol Applicability Statement
  • RFC 2960 Stream Control Transmission Protocol (updated by RFC 3309 and obsoleted by RFC 4960)

See also

[edit]

Notes

[edit]
  1. ^TheDATA chunk uses a sequence number for ordered messages, theI-DATA chunk, which solves some problems with the original DATA chunk, uses a message-id for all messages
  2. ^SeeSCTP packet structure for more details.

References

[edit]
  1. ^"Protocol Numbers".iana.org.IANA. Retrieved2014-09-09.
  2. ^Stream Control Transmission Protocol.IETF. October 2000.doi:10.17487/RFC2960.RFC2960.
  3. ^"Transport".Diameter Base Protocol.IETF. sec. 2.1.doi:10.17487/RFC3588.RFC3588. Retrieved2012-05-18.
  4. ^"Example Scenario Using RSerPool Session Services".An Overview of Reliable Server Pooling Protocols.IETF. p. 10. sec. 4.2.doi:10.17487/RFC5351.RFC5351.
  5. ^RFC 9260, section 1.5.5
  6. ^Hogg, Scott."What About Stream Control Transmission Protocol (SCTP)?".Network World. Archived fromthe original on August 30, 2014. Retrieved2017-10-04.
  7. ^Olsson, Magnus; Mulligan, Catherine; Sultana, Shabnam; Rommer, Stefan; Frid, Lars (2013).EPC and 4G packet networks: driving the mobile broadband revolution (2nd ed.). Amsterdam Boston: Elsevier/AP, Academic Press is an imprint of Elsevier. p. 491.ISBN 978-0-12-394595-2.
  8. ^"Reference Implementation for SCTP - RFC4960".GitHub. Retrieved2013-10-14.This is the reference implementation for SCTP. It is portable and runs on FreeBSD/MAC-OS/Windows and in User Space (including linux).
  9. ^"sys/netinet/sctp.h".BSD Cross Reference.NetBSD. 2017-06-27. Retrieved2019-01-21.
  10. ^"man4/sctp.4".BSD Cross Reference.NetBSD. 2018-07-31. Retrieved2019-01-21.
  11. ^"DragonFly Removes SCTP".Lists.dragonflybsd.org. 7 January 2015. Retrieved2016-04-28.
  12. ^"About FreeBSD's Technological Advances". The FreeBSD Project. 2008-03-09. Retrieved2008-09-13.SCTP: FreeBSD 7.0 is the reference implementation for the new IETF Stream Control Transmission Protocol (SCTP) protocol, intended to support VoIP, telecommunications, and other applications with strong reliability and variable quality transmission through features such as multi-path delivery, fail-over, and multi-streaming.
  13. ^"Stream Control Transmission Protocol (SCTP)". Hewlett-Packard Development Company. Archived fromthe original on 2013-01-03.
  14. ^"TCP/IP Networking".QNX Developer Support. QNX Software Systems. Retrieved2008-09-13."What's New in this Reference".QNX Library Reference. QNX Software Systems. Retrieved2012-12-18.
  15. ^"QNX Software Development Platform 6.4.0".
  16. ^"Solaris 10 Operating System Networking — Extreme Network Performance".Sun Microsystems. Retrieved2008-09-13.
  17. ^"SctpDrv: an SCTP driver for Microsoft Windows". Archived fromthe original on 2017-10-08. Retrieved2022-01-04.
  18. ^"SCTP Network Kernel Extension for Mac OS X".GitHub. 23 September 2021.
  19. ^"sctplab/usrsctp".Github. Retrieved21 September 2021.
  20. ^"sctplib and socketapi: The User-Space SCTP Library (sctplib) and Socket API Library (socketapi)". 2025-07-09. Retrieved2025-07-09.
  21. ^"Windows SCTP library installer". Retrieved2011-02-04.
  22. ^Tuexen, Michael; Stewart, Randall R. (May 2013).UDP Encapsulation of Stream Control Transmission Protocol (SCTP) Packets for End-Host to End-Host Communication.IETF.doi:10.17487/RFC6951.RFC6951.
  23. ^Bickhart, Ryan; Paul D. Amer; Randall R. Stewart (2007)."Transparent TCP-to-SCTP Translation Shim Layer"(PDF). Retrieved2008-09-13.
  24. ^D. Wing; A. Yourtchenko (April 2012)."Happy Eyeballs: Success with Dual-Stack Hosts".tools.ietf.org.IETF.
  25. ^Khademi, Naeem; Brunstrom, Anna; Hurtig, Per; Grinnemo, Karl-Johan (July 21, 2016)."Happy Eyeballs for Transport Selection".tools.ietf.org.IETF. Retrieved2017-01-09.

External links

[edit]
National
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&oldid=1320618244"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp