SCTP packet structure

SCTP packet structure

The Stream Control Transmission Protocol (SCTP) has a simpler basic packet structure than TCP or UDP. Each consists of two basic sections:
# The "common header", which occupies the first 12 bytes. In the diagram to the right, this header is highlighted in blue.
# The "data chunks", which form the remaining portion of the packet. In the diagram, the first chunk is highlighted in green and the last of "N" chunks (Chunk N) is highlighted in red.

Common header

All SCTP packets require the common header section (shown with a blue background).

; Source port : This field identifies the sending port.

; Destination port : This field identifies the receiving port that hosts use to route the packet to the appropriate endpoint/application.

; Verification tag : A 32-bit random value created during initialization to distinguish stale packets from a previous connection.

; Checksum : SCTP's original design catered for Adler-32; but RFC 3309 changed the protocol to use the CRC32c algorithm. cite journal
last = Castagnoli | first = G. | coauthors = S. Braeuer; M. Herrman
year = 1993| month = June
title = Optimization of Cyclic Redundancy-Check Codes with 24 and 32 Parity Bits
journal = IEEE Transactions on Communications
volume = 41 | issue = 6| doi = 10.1109/26.231911| issn = 0090-6778 | pages = 883
. Castagnoli's et al. work on algorithmic selection of CRC polynomials] cite journal
author = Koopman, P. | year = 2002| month = June
title = 32-Bit Cyclic Redundancy Codes for Internet Applications
journal = The International Conference on Dependable Systems and Networks
url = http://citeseer.ist.psu.edu/koopman02bit.html
pages = 459
doi = 10.1109/DSN.2002.1028931
. Verification of Castagnoli's results by exhaustive search and some new good polynomials]

Chunks

Each SCTP packet consists, in addition to the common header, of chunks.Each chunk has a common format, but the contents can vary.One chunk appears in the diagram to the right with the green background.

; Chunk type : An 8-bit value predefined by the IETF to identify the contents of the chunk value field.

; Chunk flags : Eight flag-bits whose definition varies with the chunk type. The default value is zero.

; Chunk length : A 16-bit unsigned value specifying the total length of the chunk in bytes (excludes any padding) that includes chunk type, flags, length, and value fields.

; Chunk value : General purpose data field whose definition varies with the chunk type.

If the chunk length does not equate to a multiple of 4 bytes then the protocol implicitly pads the chunk with trailing zeros.

Additionally, each chunk type may define a set of parameters which it includes inside the chunk value field (and, consequently, their length in the chunk length).

Two types of parameter exist:
* fixed parameters — they must appear and in the order specified
* variable-length or optional parameters — they appear after the fixed parameters and may appear in any order and in any number.

For optional/variable-length parameters, the parameter type, parameter length, and parameter value fields all behave just like their chunk counterparts.The minimum size of parameter is 4 bytes and this occurs when the parameter value field is empty and the parameter consists only of the type & length fields.

Chunk types

RFC 2960 defines the following list of chunk types.

Following this table each chunk and its parameters are defined. Please note the following color scheme:
* gray: chunk fields
* red: fixed parameters
* green/blue: optional/variable-length parameters that alternate colors

:; Chunk type : always zero for payload data (DATA).:; Chunk flags : There are currently only 3 flags used::* U — If set, this indicates this data is an unordered chunk and the stream sequence number is invalid. If an unordered chunk is fragmented then each fragment has this flag set.::* B — If set, this marks the beginning fragment. An unfragmented chunk has this flag set.::* E — If set, this marks the end fragment. An unfragmented chunk has this flag set.:; Chunk length : The chunk length has a minimum value of 17 as data of size less than one byte is not allowed.

: Fixed parameters::; Transmission sequence number (TSN) : The sequence number for the entire DATA stream (used in fragmentation for reassembly).:; Stream identifier : Identifier of the stream that this data chunk belongs to:; Stream sequence number : Identifier of the sequence number for the message in this stream. If a message is fragmented then this value is maintained for all fragments.:; Payload protocol identifier : Application-specific protocol identifier. SCTP makes no use of this or modification of it. However, devices along the path or the endpoints may use it.:; Data : Application-specific data.

: Optional parameters: none.

INIT chunk

:; Chunk type : always one for initiation (INIT).:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a minimum value of 20 when chunk value is empty and no optional parameters are used

: Fixed parameters have identical meaning as INIT ACK::; Initiate tag : Unsigned 32-bit number that is used in every SCTP packet in the verification tag within the common header.:; Advertised receiver window credit (a_rwnd) : Amount of dedicated buffer space for this association that should never be reduced.:; # of outbound streams : Number of outbound streams (from the sender of the INIT) it wishes to use for this association. Zero is an invalid value and the receiver should ABORT the association upon receiving a zero.:; # of inbound streams : Identical to # of outbound streams but number of inbound streams. No negotiation takes place on the established number but the minimum of requested and offered should be used.:; Initial TSN : Initial transmission sequence number to be used and may be any value.

: Optional parameters appear with alternating background colors of green and blue::; Parameter type = 5 : This parameter lists all the IPv4 addresses used at the sending endpoint. If it is a multihomed connection then the IP address of each may be included.:; Parameter type = 6 : This parameter lists all the IPv6 addresses used at the sending endpoint. If it is a multihomed connection then the IP address of each may be included.:; Parameter type = 9 : This parameter provides a suggested life-span increment the receiver should add to its default cookie life-span (in milliseconds).:; Parameter type = 11 : This parameter is a hostname as defined in RFC 1123, section 2.1. Actual resolution of this name is outside the scope of SCTP. Additionally, a null terminating character must be included and must be included in the parameter length.:; Parameter type = 12 : This parameter lists the address types the sender supports (e.g., IPv4 = 5, IPv6 = 6, hostname = 11).:; Parameter type = 32768 : This parameter is reserved for explicit congestion notification support.

INIT ACK chunk

The INIT ACK chunk replicates the INIT chunk except the chunk type is always two.

: Mandatory parameters, only in INIT ACK::; State Cookie: The state cookie holds the minimal information to recreate the Transmission Control Block, and is signed with the senders private key.

ACK chunk

:; Chunk type : always three for initiation (SACK).:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a minimum value of 16 when no gaps or duplicates are sent.

: Fixed parameters:

:; Cumulative TSN ACK : Acknowledges all sequence numbers received in sequence so is the sequence number of the last received byte. The immediate value after this one has not been received yet.:; Advertised receiver window credit : Amount of dedicated buffer space for this association that should never be reduced.:; Number of gap ACK blocks : Indicates the number of gap ACK block start and gap ACK block end pairs included.:; Number of duplicate TSNs : Indicates the number of duplicate TSNs the endpoint has received.

: Optional parameters appear with alternating background colors of green and blue:

:; Gap ACK block #n start : Indicates the TSN (added to the cumulative TSN ACK) of a block of TSNs to acknowledge.:; Gap ACK block #n end : Indicates the TSN (added to the cumulative TSN ACK) of a block of TSNs to acknowledge.:; Duplicate TSN #x : A TSN that was received more than once. A TSN will appear in this list for each time it is received after the first time.

HEARTBEAT chunk

:; Chunk type : For heartbeat (HEARTBEAT), this value is always four.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a minimum value of 8 with no parameter value added.

: Fixed parameters: None

: Optional parameters are shown with alternating background colors of green and blue:

:; Parameter type = 1 : This parameter contains the sender-specific heartbeat info

HEARTBEAT ACK chunk

:; Chunk type : For heartbeat acknowledgement (HEARTBEAT ACK), this value is always five.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a minimum value of 8 with no parameter value added.

: Fixed parameters: None

: Optional parameters are shown with alternating background colors of green and blue:

:; Parameter type = 1 : This parameter contains the sender-specific heartbeat info received in the request.

ABORT chunk

:; Chunk type : always six for abort (ABORT).:; Chunk flags : There is currently only one flag used:::; T : Set if the sender didn't have a TCB; not set if the sender had one (that it destroyed).:; Chunk length : This is the chunk length which has a minimum value of 4 with no error causes given.

: Optional parameters (the error causes) are defined in the ERROR chunk.

HUTDOWN chunk

:; Chunk type : For shutdown (SHUTDOWN), this value is always seven.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a fixed length of 8.

:Fixed parameters:

:; Cumulative TSN ACK : Contains the last TSN received in sequence by the sender.

SHUTDOWN ACK chunk

:; Chunk type : For shutdown acknowledgement (SHUTDOWN ACK), this value is always eight.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a fixed length of 4.

ERROR chunk

:; Chunk type : For error (ERROR), this value is always nine.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length which has a minimum value of 8 when only one error is sent with no parameter value. The size is 4 bytes plus the size of all error causes.

: Fixed parameters: None.

: Optional parameters are shown with alternating background colors of green and blue:

:; Parameter type = 1 : This parameter identifies that the sender received an invalid stream-identifier.:; Parameter type = 2 : This parameter indicates that the sender received an INIT or INIT ACK chunk with missing mandatory parameters.:; Parameter type = 3 : This parameter indicates receipt of a valid state cookie but it was stale by a given number of microseconds.:; Parameter type = 4 : This parameter indicates the sender is out of resources; this usually accompanies an ABORT chunk.:; Parameter type = 5 : This parameter identifies an address that the sender could not resolve (possibly because it does not support the address type); this usually accompanies an ABORT chunk.:; Parameter type = 6 : This parameter identifies an unrecognized chunk when the chunk type's most-significant bytes are 01 or 11.:; Parameter type = 7 : This parameter identifies a mandatory parameter in an INIT or INIT ACK chunk has an invalid value.:; Parameter type = 8 : This parameter is directed to the originator of an INIT ACK chunk that contained an unrecognized parameter.:; Parameter type = 9 : This parameter indicates a DATA chunk contained no user data; this usually accompanies an ABORT chunk.:; Parameter type = 10 : This parameter indicates the sender received a COOKIE ECHO while the endpoint was in a SHUTDOWN-ACK-SENT state.

COOKIE ECHO chunk

:; Chunk type : always ten for cookie echo (COOKIE ECHO).:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length.:; Chunk value : Contains the cookie data.

COOKIE ACK chunk

:; Chunk type : For cookie acknowledgement (COOKIE ACK), this value is always eleven.:; Chunk flags : There are currently no flags used.:; Chunk length : This is the chunk length and is always 4.

ECNE chunk

Not defined yet.

CWR chunk

Not defined yet.

HUTDOWN COMPLETE chunk

:; Chunk type : For shutdown complete (SHUTDOWN COMPLETE), this value is always fourteen.:; Chunk flags : There is currently only one flag defined::; T : Set if the sender didn't have a TCB; not set if the sender had one (that it destroyed).:; Chunk length : This is the chunk length which has a fixed length of 4.

Notes

References

* 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


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Internetwork Packet eXchange — Pour l IPX defini par la GSM Association Pile de protocoles 7 • Application 6 • Présentation 5 • Session …   Wikipédia en Français

  • Internetwork packet exchange — Pour l IPX defini par la GSM Association Pile de protocoles 7 • Application 6 • Présentation 5 • Session …   Wikipédia en Français

  • Internetwork Packet Exchange — Pour l IPX defini par la GSM Association Pile de protocoles 7.  Application 6.  Présentation 5.  Session 4.  …   Wikipédia en Français

  • TCP/IP model — See also: Internet Protocol Suite The TCP/IP model (Transmission Control Protocol/Internet Protocol) is a descriptive framework for the Internet Protocol Suite of computer network protocols created in the 1970s by DARPA, an agency of the United… …   Wikipedia

  • System Architecture Evolution — (aka SAE) is the core network architecture of 3GPP s LTE wireless communication standard. SAE is the evolution of the GPRS Core Network, with some differences: simplified architecture all IP Network (AIPN) support for higher throughput and lower… …   Wikipedia

  • Stream Control Transmission Protocol — In computer networking, the Stream Control Transmission Protocol (SCTP) is a Transport Layer protocol, serving in a similar role as the popular protocols TCP and UDP. Indeed, it provides some of the same service features of both, ensuring… …   Wikipedia

  • Open Shortest Path First — (OSPF) is an adaptive routing protocol for Internet Protocol (IP) networks. It uses a link state routing algorithm and falls into the group of interior routing protocols, operating within a single autonomous system (AS). It is defined as OSPF… …   Wikipedia

  • Transmission Control Protocol — The Transmission Control Protocol (TCP) is one of the core protocols of the Internet Protocol Suite. TCP is so central that the entire suite is often referred to as TCP/IP. Whereas IP handles lower level transmissions from computer to computer as …   Wikipedia

  • OSI model — 7. Application layer NNTP  · SIP  · SSI  · DNS  · FTP  · Gopher  · …   Wikipedia

  • Point-to-Point Protocol — Internet protocol suite Application layer BGP DHCP DNS FTP HTTP …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”