Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 1 of 9

Stream Control Transmission Protocol

From Wikipedia, the free encyclopedia The five-layer TCP/IP model In the 5. Application layer field of DHCP • DNS • FTP • Gopher • HTTP • IMAP4 • IRC • NNTP • XMPP • MIME • POP3 • SIP • SMTP • SNMP • SSH • TELNET • RPC • RTP • RTCP • TLS/SSL • SDP • SOAP • VPN • PPTP • L2TP • GTP • … 4. Transport layer

TCP • UDP • DCCP • SCTP • … 3. Internet layer

IP (IPv4 • IPv6) • IGMP • ICMP • RSVP • BGP • RIP • OSPF • ISIS • IPsec • ARP • RARP • … 2. Data link layer

802.11 • ATM • DTM • Ethernet • FDDI • Frame Relay • GPRS • EVDO • HSPA • HDLC • PPP • … 1. Physical layer

Ethernet physical layer • ISDN • Modems • PLC • SONET/SDH • G.709 • WiMAX • …

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 2 of 9

computer networking, the IETF Signaling Transport (SIGTRAN) working group defined the Stream Control Transmission Protocol (SCTP) as a transport layer protocol in 2000. RFC 2960 defines the protocol, with RFC 3286 providing an introductory text.

As a transport protocol, SCTP operates analogously to TCP or UDP. Indeed it provides some similar services as TCP—ensuring reliable, in-sequence transport of messages with congestion control. (In the absence of native SCTP support, it may sometimes be desirable to tunnel SCTP over UDP.) Contents

„ 1 Message-based multi-streaming „ 2 Benefits „ 3 Motivations „ 4 Implementations „ 5 Packet structure „ 6 External links „ 6.1 RFCs „ 7 See also Message-based multi-streaming

Whereas TCP transports a byte-stream, SCTP can transport multiple message-streams. All bytes sent in a TCP connection must be delivered in that order, which requires that a byte transmitted first must safely arrive at the destination before a

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 3 of 9

second byte can be processed even if the second byte manages to arrive first. If an arbitrary number of bytes are sent in one step and later some more bytes are sent, these bytes will be received in order, but the receiver can not distinguish which bytes were sent in which step. SCTP in contrast, conserves message boundaries by operating on whole messages instead of single bytes. That means if one message of several related bytes of information is sent in one step, exactly that message is received in one step.

The term "multi-streaming" refers to the capability of SCTP to transmit several independent streams of messages in parallel. For example, transmitting two images in a HTTP application in parallel over the same SCTP association. You might think of multi-streaming as bundling several TCP-connections in one SCTP-association operating with messages instead of bytes.

TCP ensures the correct order of bytes in the stream by conceptually assigning a sequence number to each byte sent and ordering these bytes based on that sequence number when they arrive. SCTP, on the other hand, assigns different sequence numbers to messages sent in a stream. This allows independent ordering of messages in different streams. However, message ordering is optional in SCTP. If the user application so desires, messages will be processed in the order they are received instead of the order they were sent, should these differ.

Signaling in Public Switched Telephone Networks PSTN requires message-based delivery. Multi-Streaming also provides

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 4 of 9 an advantage when used to transport PSTN services. If an SCTP connection is set up to carry, say, ten phone calls with one call per stream, then if a single message is lost in only one phone call, the other nine calls will not be affected. To handle ten phone calls in TCP, some form of multiplexing would be required to put all ten phone calls into a single byte-stream. If a single packet for phone call #3 is lost then all packets after that could not be processed until the missing bytes are retransmitted, thus causing unnecessary delays in the other calls. Benefits

Benefits of SCTP include:

„ Multihoming support, where 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 data in chunks within independent streams - this eliminates unnecessary head-of-line blocking, as opposed to TCP byte-stream delivery. „ Path Selection and Monitoring - Selects a "primary" data transmission path and tests the connectivity of the transmission path. „ Validation and Acknowledgment mechanisms - Protects against flooding attacks and provides notification of duplicated or missing data chunks. „ Improved error detection suitable for jumbo Ethernet frames.

The designers of SCTP originally intended it for the transport of

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 5 of 9 telephony (SS7) protocols over IP, 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 and Reliable server pooling (RSerPool). Motivations

Transmission Control Protocol (TCP) has provided the primary means to transfer data across the Internet in a reliable way. However, TCP has imposed limitations on several applications. From RFC 2960:

„ 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 offered by TCP causes unnecessary delay. „ The stream-oriented nature of TCP is often an inconvenience. Applications must add their own record marking to delineate their messages, and must make explicit use of the push facility (PSH) to ensure that a complete message is transferred in a reasonable time. „ The limited scope of TCP sockets complicates the task of providing highly-available data transfer capability using multi-homed hosts. „ TCP is relatively vulnerable to denial of service attacks, such as SYN attacks.

All these limitations affect the performance of IP over public

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 6 of 9 switched telephone networks. Implementations

The following operating systems implement SCTP:

„ AIX Version 5 „ BSD with external patch at KAME project „ Cisco IOS 12 „ DragonFly BSD since version 1.4 „ FreeBSD version 7 „ 2.4/2.6 „ QNX Neutrino Realtime OS „ Sun Solaris 10

Various third-party implementations implement SCTP for other operating systems.

Userspace library:

„ The SCTP library (sctplib), with Windows XP port Packet structure

SCTP packets have a simpler Bits 0 16 - 24 - Bits 8 - 15 basic structure than TCP or - 7 23 31 UDP packets. Each consists of Destination +0 Source port two basic sections: port 1. The common header, 32 Verification tag which occupies the first

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 7 of 9

12 bytes and is 64 Checksum highlighted in blue, and Chunk 2. The data chunks, which Chunk Chunk 1 96 1 occupy the remaining 1 type length portion of the packet. The flags first chunk is highlighted 128 Chunk 1 data in green, and the last of N … … chunks (Chunk N) is Chunk Chunk highlighted in red. Chunk N … N N length Each chunk has a type type flags identifier that is one byte long … Chunk N data yielding, at most, 255 different chunk types. RFC 2960 defines a list of chunk types and there are currently 15 types defined. The remainder of the chunk is a two byte length (maximum size of 65,535 bytes) and the data. If the chunk does not form a multiple of 4 bytes (i.e., the length is a multiple of 4) then it is implicitly padded with zeros which are not included in the chunk length. External links

„ Better Networking with SCTP „ http://www.sigtran.org „ http://www.ietf.org/html.charters/sigtran-charter.html „ http://www.openss7.org „ http://www.sctp.de „ SCTP for QualNet network simulator from DEGAS networking group „ The Linux Kernel Stream Control Transmission Protocol (lksctp) project

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 8 of 9

„ http://tdrwww.exp-math.uni- essen.de/inhalt/forschung/sctp_fb/ „ SCTP Sequence Diagram - Setup, IP Address Reconfiguration and Release (PDF) „ Tunneling of SCTP over Single UDP Port „ Open Source / GPL Seagull test tool - with SCTP support „ Parallel computing using the Message-passing Interface (MPI) over SCTP „ SCTPscan: SCTP port scanner and network scanner, GPL RFCs

„ RFC 4460 Stream Control Transmission Protocol (SCTP) Specification Errata and Issues „ 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) with IPsec „ RFC 3436 Transport Layer Security over Stream Control Transmission Protocol „ RFC 3309 Stream Control Transmission Protocol (SCTP) Checksum Change „ RFC 3286 An Introduction to the Stream Control Transmission Protocol „ RFC 3257 Stream Control Transmission Protocol Applicability Statement „ RFC 2960 Stream Control Transmission Protocol See also

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07 Stream Control Transmission Protocol - Wikipedia, the free encyclopedia Page 9 of 9

„ Comparison with other transport protocols Retrieved from "http://en.wikipedia.org/wiki/Stream_Control_Transmission_Prot

Categories: Streaming | Internet protocols | Internet standards | Transport layer protocols

„ This page was last modified 21:16, 8 July 2007. „ All text is available under the terms of the GNU Free Documentation License. (See Copyrights for details.) Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a US-registered 501(c)(3) tax-deductible nonprofit charity.

http://en.wikipedia.org/w/index.php?title=Stream_Control_Transmission_Protocol&printable... 12/7/07