Stream Control Transmission Protocol Explained

Stream Control Transmission Protocol
Is Stack:yes
Abbreviation:SCTP
Date:2000
Osilayer:Transport layer (4)

The Stream Control Transmission Protocol (SCTP) is a computer networking communications protocol in the transport layer of the Internet protocol suite. Originally intended for Signaling System 7 (SS7) message transport in telecommunication, the protocol provides the message-oriented feature of the User Datagram Protocol (UDP), while ensuring reliable, in-sequence transport of messages with congestion control like the Transmission Control Protocol (TCP). Unlike UDP and TCP, the protocol supports multihoming and redundant paths to increase resilience and reliability.

SCTP is standardized by the Internet Engineering Task Force (IETF) in . The SCTP reference implementation was released as part of FreeBSD version 7, and has since been widely ported to other platforms.

Formal oversight

The IETF 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. defines the protocol. provides an introduction.

Message-based multi-streaming

SCTP applications submit data for transmission in messages (groups of bytes) to the SCTP transport layer. SCTP places messages and control information into separate chunks (data chunks and control chunks), each identified by a chunk 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 the Internet 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, transporting streams 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 term multi-streaming refers to the capability of SCTP to transmit several independent streams of chunks in parallel, for example transmitting web 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 each segment. SCTP, on the other hand, assigns a sequence number or a message-id[3] to each message 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

Features of SCTP include:

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 as SIGTRAN. In the meantime, other uses have been proposed, for example, the Diameter protocol[4] and Reliable Server Pooling (RSerPool).[5]

Motivation and adoption

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

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

SCTP has seen adoption in the mobile telephony space as the transport protocol for several core network interfaces.[8]

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 a heartbeat. 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

See main article: SCTP packet structure.

An SCTP packet consists of two basic sections:

  1. The common header, which occupies the first 12 bytes and is highlighted in blue.
  2. The data chunks, which occupy the remaining portion of the packet. The first chunk is highlighted in green, and the last of N 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
Chunk N typeChunk N flagsChunk N length
Chunk N data

Each chunk starts with a one-byte type identifier, with 15 chunk types defined by, and at least 5 more defined by additional RFCs.[9] 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

Although encryption was not part of the original SCTP design, SCTP was designed with features for improved security, such as 4-way handshake (compared to TCP 3-way handshake) to protect against SYN 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 for SIGTRAN as it carries SS7 over an IP network using SCTP, and requires strong resilience during link outages to maintain telecommunication service even when enduring network anomalies.

SCTP is sometimes a good fingerprinting candidate. Some operating systems ship with SCTP support enabled, and, as it is not as well known as TCP or UDP, it is sometimes overlooked in firewall and intrusion detection configurations, thus often permitting probing traffic.

Implementations

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

The following operating systems implement SCTP:

Third-party drivers:

Userspace library:

The following applications implement SCTP:

Tunneling over UDP

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

RFCs

See also

External links

Notes and References

  1. Web site: Protocol Numbers . iana.org . . 2014-09-09.
  2. Stream Control Transmission Protocol . 2960 . October 2000. IETF.
  3. The DATA chunk uses a sequence number for ordered messages, the I-DATA chunk, which solves some problems with the original DATA chunk, uses a message-id for all messages
  4. Diameter Base Protocol . 3588 . Transport . 2.1 . . 2012-05-18 .
  5. An Overview of Reliable Server Pooling Protocols . 5351 . Example Scenario Using RSerPool Session Services . 4.2 . 10. IETF.
  6. https://tools.ietf.org/html/rfc9260#section-1.5.5 RFC 9260, section 1.5.5
  7. News: What About Stream Control Transmission Protocol (SCTP)?. https://web.archive.org/web/20140830095541/http://www.networkworld.com/article/2222277/cisco-subnet/what-about-stream-control-transmission-protocol--sctp--.html. dead. August 30, 2014. Hogg. Scott. Network World. 2017-10-04.
  8. Book: Olsson . Magnus . Mulligan . Catherine . Sultana . Shabnam . Rommer . Stefan . Frid . Lars . EPC and 4G packet networks: driving the mobile broadband revolution . 2013 . Elsevier/AP, Academic Press is an imprint of Elsevier . Amsterdam Boston . 978-0-12-394595-2 . 491 . 2nd.
  9. See SCTP packet structure for more details.
  10. Web site: Reference Implementation for SCTP - RFC4960 . . 2013-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)..
  11. Web site: sys/netinet/sctp.h . . BSD Cross Reference . 2017-06-27 . 2019-01-21.
  12. Web site: man4/sctp.4 . . BSD Cross Reference . 2018-07-31 . 2019-01-21.
  13. Web site: DragonFly Removes SCTP. Lists.dragonflybsd.org. 2016-04-28.
  14. Web site: About FreeBSD's Technological Advances . The FreeBSD Project . 2008-03-09 . 2008-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..
  15. Web site: Stream Control Transmission Protocol (SCTP) . https://archive.today/20130103223740/http://h20293.www2.hp.com/portal/swdepot/displayInstallInfo.do?productNumber=SCTP . dead . 2013-01-03 . Hewlett-Packard Development Company.
  16. Web site: TCP/IP Networking . 2008-09-13 . QNX Developer Support . QNX Software Systems. Web site: What's New in this Reference . 2012-12-18 . QNX Library Reference . QNX Software Systems.
  17. Web site: QNX Software Development Platform 6.4.0 .
  18. Web site: Solaris 10 Operating System Networking — Extreme Network Performance . . 2008-09-13.
  19. Web site: SctpDrv: an SCTP driver for Microsoft Windows . https://web.archive.org/web/20171008083650/http://www.bluestop.org:80/SctpDrv/ . dead . 2017-10-08 . 2022-01-04 .
  20. Web site: SCTP Network Kernel Extension for Mac OS X . . 23 September 2021 .
  21. Web site: sctplab/usrsctp . Github . 21 September 2021 .
  22. Web site: SCTP Download Page . 2006-05-29 . 2011-02-04.
  23. Web site: Windows SCTP library installer . 2011-02-04.
  24. UDP Encapsulation of Stream Control Transmission Protocol (SCTP) Packets for End-Host to End-Host Communication . 6951 . Michael . Tuexen . Randall R. . Stewart . May 2013 . IETF.
  25. Web site: Transparent TCP-to-SCTP Translation Shim Layer . Ryan . Bickhart . Paul D. Amer . Randall R. Stewart . 2007 . 2008-09-13.
  26. Happy Eyeballs: Success with Dual-Stack Hosts. D. Wing. A. Yourtchenko. April 2012. tools.ietf.org. IETF.
  27. Web site: Happy Eyeballs for Transport Selection. Khademi. Naeem. Brunstrom. Anna. July 21, 2016. tools.ietf.org. IETF. 2017-01-09. Hurtig. Per. Grinnemo. Karl-Johan.