blob: 4b9b241c2e6a7d0aa0ceb8c178efe08e7dec4d6c [file] [log] [blame]
Austin Schuh8d0a2852019-12-28 22:54:28 -08001
2
3
4
5
6
7Network Working Group M. Tuexen
8Request for Comments: 4820 Muenster Univ. of Applied Sciences
9Category: Standards Track R. Stewart
10 P. Lei
11 Cisco Systems, Inc.
12 March 2007
13
14
15 Padding Chunk and Parameter
16 for the Stream Control Transmission Protocol (SCTP)
17
18Status of This Memo
19
20 This document specifies an Internet standards track protocol for the
21 Internet community, and requests discussion and suggestions for
22 improvements. Please refer to the current edition of the "Internet
23 Official Protocol Standards" (STD 1) for the standardization state
24 and status of this protocol. Distribution of this memo is unlimited.
25
26Copyright Notice
27
28 Copyright (C) The IETF Trust (2007).
29
30Abstract
31
32 This document defines a padding chunk and a padding parameter and
33 describes the required receiver side procedures. The padding chunk
34 is used to pad a Stream Control Transmission Protocol (SCTP) packet
35 to an arbitrary size. The padding parameter is used to pad an SCTP
36 INIT chunk to an arbitrary size.
37
38Table of Contents
39
40 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
41 2. Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . 2
42 3. Padding Chunk (PAD) . . . . . . . . . . . . . . . . . . . . . . 2
43 4. Padding Parameter (PAD) . . . . . . . . . . . . . . . . . . . . 3
44 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4
45 5.1. A New Chunk Type . . . . . . . . . . . . . . . . . . . . . 4
46 5.2. A New Parameter Type . . . . . . . . . . . . . . . . . . . 4
47 6. Security Considerations . . . . . . . . . . . . . . . . . . . . 4
48 7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . 4
49 8. References . . . . . . . . . . . . . . . . . . . . . . . . . . 5
50 8.1. Normative References . . . . . . . . . . . . . . . . . . . 5
51 8.2. Informative References . . . . . . . . . . . . . . . . . . 5
52
53
54
55
56
57
58Tuexen, et al. Standards Track [Page 1]
59
60RFC 4820 Padding Chunk and Parameter for SCTP March 2007
61
62
631. Introduction
64
65 This document defines a padding chunk and a padding parameter and
66 describes the required receiver side procedures. The padding chunk
67 is used to pad an SCTP packet to an arbitrary size. The padding
68 parameter is used to pad an SCTP INIT chunk to an arbitrary size.
69 The usage of the PAD chunk for path MTU discovery is described in
70 PMTU [4]. The inappropriate usage of the PAD parameter or PAD chunk
71 can result in wasted bandwidth.
72
732. Conventions
74
75 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
76 "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
77 "OPTIONAL", when they appear in this document, are to be interpreted
78 as described in RFC 2119 [1].
79
803. Padding Chunk (PAD)
81
82 This chunk is used to pad an SCTP packet. A PAD chunk can be used to
83 enlarge the packet by 4 to 65536 bytes in steps of 4 bytes. An SCTP
84 packet MAY contain multiple PAD chunks.
85
86 0 1 2 3
87 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
88 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
89 | Type = 0x84 | Flags=0 | Length |
90 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
91 | |
92 \ Padding Data /
93 / \
94 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
95
96 Figure 1
97
98 Type: 1 byte (unsigned integer)
99 This value MUST be set to 0x84 for all PAD chunks.
100
101 Flags: 1 byte (unsigned integer)
102 This value SHOULD be set to zero on transmit and MUST be ignored
103 on receipt.
104
105 Length: 2 bytes (unsigned integer)
106 This value holds the length of the Padding Data plus 4.
107
108
109
110
111
112
113
114Tuexen, et al. Standards Track [Page 2]
115
116RFC 4820 Padding Chunk and Parameter for SCTP March 2007
117
118
119 Padding Data: n bytes (unsigned integer)
120 This holds the Padding Data. The Padding Data MUST be ignored by
121 the receiver.
122
123 The receiver of the PAD chunk MUST discard this chunk and continue
124 processing the rest of the chunks in the packet. Please note that
125 this is also the required processing behavior for any unknown chunk
126 having the same highest-order two bits of the type as the PAD chunk.
127
1284. Padding Parameter (PAD)
129
130 This parameter is used to pad an INIT chunk. A PAD parameter can be
131 used to enlarge the INIT chunk by 4 bytes as the minimum to the
132 maximum size of the INIT chunk in steps of 4 bytes. An INIT chunk
133 MAY contain multiple PAD parameters.
134
135 0 1 2 3
136 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
137 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
138 | Parameter Type = 0x8005 | Parameter Length |
139 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
140 / /
141 \ Padding Data \
142 / /
143 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
144
145 Figure 2
146
147 Parameter Type: 2 bytes (unsigned integer)
148 This value MUST be set to 0x8005.
149
150 Parameter Length: 2 bytes (unsigned integer)
151 This value holds the length of the Padding Data plus 4.
152
153 The PAD parameter MAY be included only in the INIT chunk. It MUST
154 NOT be included in any other chunk. The receiver of the PAD
155 parameter MUST silently discard this parameter and continue
156 processing the rest of the INIT chunk. This means that the size of
157 the generated COOKIE parameter in the INIT-ACK MUST NOT depend on the
158 existence of the PAD parameter in the INIT chunk. A receiver of a
159 PAD parameter MUST NOT include the PAD parameter within any State
160 Cookie parameter it generates.
161
162
163
164
165
166
167
168
169
170Tuexen, et al. Standards Track [Page 3]
171
172RFC 4820 Padding Chunk and Parameter for SCTP March 2007
173
174
1755. IANA Considerations
176
177 This document is the reference for all registrations described in
178 this section. All registrations have been listed in the document
179 available at sctp-parameters [3]. The changes are described below.
180
1815.1. A New Chunk Type
182
183 A chunk type for the PAD chunk has been assigned by IANA. The value
184 has been assigned as described in Figure 1. The following has been
185 added to the "CHUNK TYPES" table of sctp-parameters [3]:
186
187 CHUNK TYPES
188
189 ID Value Chunk Type Reference
190 -------- ---------- ---------
191 132(0x84) Padding Chunk (PAD) [RFC4820]
192
1935.2. A New Parameter Type
194
195 A parameter type has been assigned for the PAD parameter by IANA.
196 The value has been assigned as described in Figure 2. The following
197 has been added to the "CHUNK PARAMETER TYPES" table in sctp-
198 parameters [3]:
199
200 INIT Chunk Parameter Types
201
202 Chunk Parameter Type Value
203 -------------------- -----
204 Padding 32773(0x8005)
205
2066. Security Considerations
207
208 This document does not add any additional security considerations to
209 the ones given in RFC 2960 [2].
210
2117. Acknowledgments
212
213 The authors wish to thank Matthew J. Zekauskas and Lars Eggert for
214 their invaluable comments.
215
216
217
218
219
220
221
222
223
224
225
226Tuexen, et al. Standards Track [Page 4]
227
228RFC 4820 Padding Chunk and Parameter for SCTP March 2007
229
230
2318. References
232
2338.1. Normative References
234
235 [1] Bradner, S., "Key words for use in RFCs to Indicate Requirement
236 Levels", BCP 14, RFC 2119, March 1997.
237
238 [2] Stewart, R., Xie, Q., Morneault, K., Sharp, C., Schwarzbauer,
239 H., Taylor, T., Rytina, I., Kalla, M., Zhang, L., and V. Paxson,
240 "Stream Control Transmission Protocol", RFC 2960, October 2000.
241
2428.2. Informative References
243
244 [3] "IANA registry",
245 <http://www.iana.org/assignments/sctp-parameters>.
246
247 [4] Mathis, M. and J. Heffner, "Packetization Layer Path MTU
248 Discovery", RFC 4821, March 2007.
249
250Authors' Addresses
251
252 Michael Tuexen
253 Muenster Univ. of Applied Sciences
254 Stegerwaldstr. 39
255 48565 Steinfurt
256 Germany
257
258 EMail: tuexen@fh-muenster.de
259
260
261 Randall R. Stewart
262 Cisco Systems, Inc.
263 4875 Forest Drive
264 Suite 200
265 Columbia, SC 29206
266 USA
267
268 EMail: rrs@cisco.com
269
270
271 Peter Lei
272 Cisco Systems, Inc.
273 955 Happfield Dr.
274 Arlington Heights, IL 60004
275 US
276
277 Phone: +1 773 695-8201
278 EMail: peterlei@cisco.com
279
280
281
282Tuexen, et al. Standards Track [Page 5]
283
284RFC 4820 Padding Chunk and Parameter for SCTP March 2007
285
286
287Full Copyright Statement
288
289 Copyright (C) The IETF Trust (2007).
290
291 This document is subject to the rights, licenses and restrictions
292 contained in BCP 78, and except as set forth therein, the authors
293 retain all their rights.
294
295 This document and the information contained herein are provided on an
296 "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
297 OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
298 THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
299 OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
300 THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
301 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
302
303Intellectual Property
304
305 The IETF takes no position regarding the validity or scope of any
306 Intellectual Property Rights or other rights that might be claimed to
307 pertain to the implementation or use of the technology described in
308 this document or the extent to which any license under such rights
309 might or might not be available; nor does it represent that it has
310 made any independent effort to identify any such rights. Information
311 on the procedures with respect to rights in RFC documents can be
312 found in BCP 78 and BCP 79.
313
314 Copies of IPR disclosures made to the IETF Secretariat and any
315 assurances of licenses to be made available, or the result of an
316 attempt made to obtain a general license or permission for the use of
317 such proprietary rights by implementers or users of this
318 specification can be obtained from the IETF on-line IPR repository at
319 http://www.ietf.org/ipr.
320
321 The IETF invites any interested party to bring to its attention any
322 copyrights, patents or patent applications, or other proprietary
323 rights that may cover technology that may be required to implement
324 this standard. Please address the information to the IETF at
325 ietf-ipr@ietf.org.
326
327Acknowledgement
328
329 Funding for the RFC Editor function is currently provided by the
330 Internet Society.
331
332
333
334
335
336
337
338Tuexen, et al. Standards Track [Page 6]
339