Debian Codegraph @

rfc5858.html

raw
1 <pre>Internet Engineering Task Force (IETF) E. Ertekin
2 Request for Comments: 5858 C. Christou
3 Category: Standards Track Booz Allen Hamilton
4 ISSN: 2070-1721 C. Bormann
5 Universitaet Bremen TZI
6 May 2010
7
8
9 <span class="h1">IPsec Extensions to Support Robust Header Compression over IPsec</span>
10
11 Abstract
12
13 Integrating Robust Header Compression (ROHC) with IPsec (ROHCoIPsec)
14 offers the combined benefits of IP security services and efficient
15 bandwidth utilization. However, in order to integrate ROHC with
16 IPsec, extensions to the Security Policy Database (SPD) and Security
17 Association Database (SAD) are required. This document describes the
18 IPsec extensions required to support ROHCoIPsec.
19
20 Status of This Memo
21
22 This is an Internet Standards Track document.
23
24 This document is a product of the Internet Engineering Task Force
25 (IETF). It represents the consensus of the IETF community. It has
26 received public review and has been approved for publication by the
27 Internet Engineering Steering Group (IESG). Further information on
28 Internet Standards is available in <a href="./rfc5741#section-2">Section&nbsp;2 of RFC 5741</a>.
29
30 Information about the current status of this document, any errata,
31 and how to provide feedback on it may be obtained at
32 <a href="http://www.rfc-editor.org/info/rfc5858">http://www.rfc-editor.org/info/rfc5858</a>.
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 <span class="grey">Ertekin, et al. Standards Track [Page 1]</span></pre>
53 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
54 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
55
56
57 Copyright Notice
58
59 Copyright (c) 2010 IETF Trust and the persons identified as the
60 document authors. All rights reserved.
61
62 This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
63 Provisions Relating to IETF Documents
64 (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
65 publication of this document. Please review these documents
66 carefully, as they describe your rights and restrictions with respect
67 to this document. Code Components extracted from this document must
68 include Simplified BSD License text as described in Section 4.e of
69 the Trust Legal Provisions and are provided without warranty as
70 described in the Simplified BSD License.
71
72 This document may contain material from IETF Documents or IETF
73 Contributions published or made publicly available before November
74 10, 2008. The person(s) controlling the copyright in some of this
75 material may not have granted the IETF Trust the right to allow
76 modifications of such material outside the IETF Standards Process.
77 Without obtaining an adequate license from the person(s) controlling
78 the copyright in such materials, this document may not be modified
79 outside the IETF Standards Process, and derivative works of it may
80 not be created outside the IETF Standards Process, except to format
81 it for publication as an RFC or to translate it into languages other
82 than English.
83
84 Table of Contents
85
86 <a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
87 <a href="#section-2">2</a>. Terminology .....................................................<a href="#page-3">3</a>
88 <a href="#section-3">3</a>. Extensions to IPsec Databases ...................................<a href="#page-3">3</a>
89 <a href="#section-3.1">3.1</a>. Security Policy Database (SPD) .............................<a href="#page-4">4</a>
90 <a href="#section-3.2">3.2</a>. Security Association Database (SAD) ........................<a href="#page-5">5</a>
91 <a href="#section-4">4</a>. Extensions to IPsec Processing ..................................<a href="#page-6">6</a>
92 <a href="#section-4.1">4.1</a>. Identification of Header-Compressed Traffic ................<a href="#page-6">6</a>
93 <a href="#section-4.2">4.2</a>. Verifying the Integrity of Decompressed Packet Headers .....<a href="#page-6">6</a>
94 <a href="#section-4.2.1">4.2.1</a>. ICV Computation and Integrity Verification ..........<a href="#page-7">7</a>
95 <a href="#section-4.3">4.3</a>. ROHC Segmentation and IPsec Tunnel MTU .....................<a href="#page-8">8</a>
96 <a href="#section-4.4">4.4</a>. Nested IPComp and ROHCoIPsec Processing ....................<a href="#page-9">9</a>
97 <a href="#section-5">5</a>. Security Considerations ........................................<a href="#page-10">10</a>
98 <a href="#section-6">6</a>. IANA Considerations ............................................<a href="#page-10">10</a>
99 <a href="#section-7">7</a>. Acknowledgments ................................................<a href="#page-11">11</a>
100 <a href="#appendix-A">Appendix A</a>. ASN.1 Representation for ROHCoIPsec ...................<a href="#page-12">12</a>
101 <a href="#section-8">8</a>. References .....................................................<a href="#page-14">14</a>
102 <a href="#section-8.1">8.1</a>. Normative References ......................................<a href="#page-14">14</a>
103 <a href="#section-8.2">8.2</a>. Informative References ....................................<a href="#page-14">14</a>
104
105
106
107
108 <span class="grey">Ertekin, et al. Standards Track [Page 2]</span></pre>
109 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
110 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
111
112
113 <span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
114
115 Using IPsec ([<a href="#ref-IPSEC" title="&quot;Security Architecture for the Internet Protocol&quot;">IPSEC</a>]) protection offers various security services for
116 IP traffic. However, these benefits come at the cost of additional
117 packet headers, which increase packet overhead. By compressing the
118 inner headers of these packets, the integration of Robust Header
119 Compression (ROHC, [<a href="#ref-ROHC" title="&quot;The RObust Header Compression (ROHC) Framework&quot;">ROHC</a>]) with IPsec (ROHCoIPsec, [<a href="#ref-ROHCOIPSEC" title="&quot;Integration of Header Compression over IPsec Security Associations&quot;">ROHCOIPSEC</a>]) can
120 reduce the packet overhead associated with IPsec-protected flows.
121
122 IPsec-protected traffic is carried over Security Associations (SAs),
123 whose parameters are negotiated on a case-by-case basis. The
124 Security Policy Database (SPD) specifies the services that are to be
125 offered to IP datagrams, and the parameters associated with SAs that
126 have been established are stored in the Security Association Database
127 (SAD). For ROHCoIPsec, various extensions to the SPD and SAD that
128 incorporate ROHC-relevant parameters are required.
129
130 In addition, three extensions to IPsec processing are required.
131 First, a mechanism for identifying ROHC packets must be defined.
132 Second, a mechanism to ensure the integrity of the decompressed
133 packet is needed. Finally, the order of the inbound and outbound
134 processing must be enumerated when nesting IP Compression (IPComp
135 [<a href="#ref-IPCOMP" title="&quot;IP Payload Compression Protocol (IPComp)&quot;">IPCOMP</a>]), ROHC, and IPsec processing.
136
137 <span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
138
139 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
140 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
141 document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-BRA97" title="&quot;Key words for use in RFCs to Indicate Requirement Levels&quot;">BRA97</a>].
142
143 <span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Extensions to IPsec Databases</span>
144
145 The following subsections specify extensions to the SPD and the SAD
146 that MUST be supported for ROHCoIPsec. The ROHCoIPsec fields in the
147 SPD are used to populate the ROHCoIPsec parameters in the SAD during
148 the initialization or rekey of a child SA.
149
150 It is noted that these extensions do not have any implications on
151 existing SPD fields or SAD parameters. Therefore, a ROHCoIPsec
152 implementation is backwards-compatible with an IPsec implementation
153 that does not support header compression.
154
155 <a href="#appendix-A">Appendix A</a> provides an example ASN.1 representation of an SPD that is
156 extended to support ROHC.
157
158
159
160
161
162
163
164 <span class="grey">Ertekin, et al. Standards Track [Page 3]</span></pre>
165 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
166 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
167
168
169 <span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Security Policy Database (SPD)</span>
170
171 In general, the SPD is responsible for specifying the security
172 services that are offered to IP datagrams. Entries in the SPD
173 specify how to derive the corresponding values for SAD entries. To
174 support ROHC, the SPD is extended to include per-channel ROHC
175 parameters. Together, the existing IPsec SPD parameters and the ROHC
176 parameters will dictate the security and header compression services
177 that are provided to packets.
178
179 The fields contained within each SPD entry are defined in <a href="./rfc4301">RFC 4301</a>
180 [<a href="#ref-IPSEC" title="&quot;Security Architecture for the Internet Protocol&quot;">IPSEC</a>], Section 4.4.1.2. To support ROHC, several processing info
181 fields are added to the SPD; these fields contain information
182 regarding the ROHC profiles and channel parameters supported by the
183 local ROHC instance.
184
185 If the processing action associated with the selector sets is
186 PROTECT, then the processing info must be extended with the following
187 ROHC channel parameters:
188
189 MAX_CID: This field indicates the highest context ID that will be
190 decompressed by the local decompressor. MAX_CID MUST be at least
191 0 and at most 16383 (the value 0 implies having one context).
192
193 MRRU: The MRRU parameter indicates the size of the largest
194 reconstructed unit (in octets) that the local decompressor is
195 expected to reassemble from ROHC segments. This size includes the
196 Cyclic Redundancy Check (CRC) and the ROHC Integrity Check Value
197 (ICV). NOTE: Since in-order delivery of ROHC packets cannot be
198 guaranteed, the MRRU parameter SHOULD be set to 0 (as stated in
199 <a href="./rfc5795#section-5.2.5.1">Section&nbsp;5.2.5.1 of RFC 5795</a> [<a href="#ref-ROHC" title="&quot;The RObust Header Compression (ROHC) Framework&quot;">ROHC</a>] and <a href="./rfc5225#section-6.1">Section&nbsp;6.1 of RFC 5225</a>
200 [<a href="#ref-ROHCV2" title="&quot;RObust Header Compression Version 2 (ROHCv2): Profiles for RTP, UDP, IP, ESP and UDP-Lite&quot;">ROHCV2</a>]), which indicates that no segment headers are allowed on
201 the ROHCoIPsec channel.
202
203 PROFILES: This field is a list of ROHC profiles supported by the
204 local decompressor. Possible values for this list are contained
205 in the "RObust Header Compression (ROHC) Profile Identifiers"
206 registry [<a href="#ref-ROHCPROF" title="&quot;RObust Header Compression (ROHC) Profile Identifiers&quot;">ROHCPROF</a>].
207
208 In addition to these ROHC channel parameters, a ROHC integrity
209 algorithm and a ROHC ICV Length field MUST be included within the
210 SPD:
211
212 ROHC INTEGRITY ALGORITHM: This field is a list of integrity
213 algorithms supported by the ROHCoIPsec instance. This will be
214 used by the ROHC process to ensure that packet headers are
215 properly decompressed (see <a href="#section-4.2">Section 4.2</a>). Authentication
216 algorithms that MUST be supported are specified in the
217
218
219
220 <span class="grey">Ertekin, et al. Standards Track [Page 4]</span></pre>
221 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
222 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
223
224
225 "Authentication Algorithms" table in <a href="#section-3.1.1">Section 3.1.1</a> ("ESP
226 Encryption and Authentication Algorithms") of <a href="./rfc4835">RFC 4835</a>
227 [<a href="#ref-CRYPTO-ALG" title="&quot;Cryptographic Algorithm Implementation Requirements for Encapsulating Security Payload (ESP) and Authentication Header (AH)&quot;">CRYPTO-ALG</a>] (or its successor).
228
229 ROHC ICV LENGTH: This field specifies the length of the ICV that
230 is used in conjunction with the ROHC integrity algorithm.
231
232 Several other ROHC channel parameters are omitted from the SPD,
233 because they are set implicitly. The omitted channel parameters are
234 LARGE_CIDS and FEEDBACK_FOR. The LARGE_CIDS channel parameter MUST
235 be set based on the value of MAX_CID (i.e., if MAX_CID is &lt;= 15,
236 LARGE_CIDS is assumed to be 0). Finally, the ROHC FEEDBACK_FOR
237 channel parameter MUST be set to the ROHC channel associated with the
238 SA in the reverse direction. If an SA in the reverse direction does
239 not exist, the FEEDBACK_FOR channel parameter is not set, and ROHC
240 MUST NOT operate in bi-directional Mode.
241
242 <span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Security Association Database (SAD)</span>
243
244 Each entry within the SAD defines the parameters associated with each
245 established SA. Unless the "populate from packet" (PFP) flag is
246 asserted for a particular field, SAD entries are determined by the
247 corresponding SPD entries during the creation of the SA.
248
249 The data items contained within the SAD are defined in <a href="./rfc4301">RFC 4301</a>
250 [<a href="#ref-IPSEC" title="&quot;Security Architecture for the Internet Protocol&quot;">IPSEC</a>], Section 4.4.2.1. To support ROHC, the SAD must include a
251 "ROHC Data Item"; this data item contains parameters used by ROHC
252 instance. The ROHC Data Item exists for both inbound and outbound
253 SAs.
254
255 The ROHC Data Item includes the ROHC channel parameters for the SA.
256 These channel parameters (i.e., MAX_CID, PROFILES, MRRU) are
257 enumerated above in <a href="#section-3.1">Section 3.1</a>. For inbound SAs, the ROHC Data Item
258 MUST specify the ROHC channel parameters that are used by the local
259 decompressor instance; conversely, for outbound SAs, the ROHC Data
260 Item MUST specify the ROHC channel parameters that are used by local
261 compressor instance.
262
263 In addition to these ROHC channel parameters, the ROHC Data Item for
264 both inbound and outbound SAs MUST include three additional
265 parameters. Specifically, these parameters store the integrity
266 algorithm, the algorithm's respective key, and the ICV length that is
267 used by the ROHC process (see <a href="#section-3.2">Section 3.2</a>). The integrity algorithm
268 and its associated key are used to calculate a ROHC ICV of the
269 specified length; this ICV is used to verify the packet headers post-
270 decompression.
271
272
273
274
275
276 <span class="grey">Ertekin, et al. Standards Track [Page 5]</span></pre>
277 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
278 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
279
280
281 Finally, for inbound SAs, the ROHC Data Item MUST include a
282 FEEDBACK_FOR parameter. The parameter is a reference to a ROHC
283 channel in the opposite direction (i.e., the outbound SA) between the
284 same compression endpoints. A ROHC channel associated with an
285 inbound SA and a ROHC channel associated with an outbound SA MAY be
286 coupled to form a bi-directional ROHC channel as defined in Sections
287 6.1 and 6.2 in <a href="./rfc3759">RFC 3759</a> [<a href="#ref-ROHC-TERM" title="&quot;Robust Header Compression (ROHC): Terminology and Channel Mapping Examples&quot;">ROHC-TERM</a>].
288
289 "ROHC Data Item" values MAY be initialized manually (i.e.,
290 administratively configured for manual SAs), or initialized via a key
291 exchange protocol (e.g., IKEv2 [<a href="#ref-IKEV2" title="&quot;Internet Key Exchange (IKEv2) Protocol&quot;">IKEV2</a>]) that has been extended to
292 support the signaling of ROHC parameters [<a href="#ref-IKE-ROHC" title="&quot;IKEv2 Extensions to Support Robust Header Compression over IPsec&quot;">IKE-ROHC</a>].
293
294 <span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Extensions to IPsec Processing</span>
295
296 <span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Identification of Header-Compressed Traffic</span>
297
298 A "ROHC" protocol identifier is used to identify header-compressed
299 traffic on a ROHC-enabled SA. If an outbound packet has a compressed
300 header, the Next Header field of the security protocol header (e.g.,
301 Authentication Header (AH) [<a href="#ref-AH" title="&quot;IP Authentication Header&quot;">AH</a>], Encapsulating Security Payload (ESP)
302 [<a href="#ref-ESP" title="&quot;IP Encapsulating Security Payload (ESP)&quot;">ESP</a>]) MUST be set to the "ROHC" protocol identifier. If the packet
303 header has not been compressed by ROHC, the Next Header field does
304 not contain the "ROHC" protocol identifier. Conversely, for an
305 inbound packet, the value of the security protocol Next Header field
306 MUST be checked to determine if the packet includes a ROHC header, in
307 order to determine if it requires ROHC decompression.
308
309 Use of the "ROHC" protocol identifier for purposes other than
310 ROHCoIPsec is currently not defined. Future protocols that make use
311 of the allocation (e.g., other applications of ROHC in multi-hop
312 environments) require specification of the logical compression
313 channel between the ROHC compressor and decompressor. In addition,
314 these specifications will require the investigation of the security
315 considerations associated with use of the "ROHC" protocol identifier
316 outside the context of the Next Header field of security protocol
317 headers.
318
319 <span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Verifying the Integrity of Decompressed Packet Headers</span>
320
321 As documented in Section 6.1.4 of [<a href="#ref-ROHCOIPSEC" title="&quot;Integration of Header Compression over IPsec Security Associations&quot;">ROHCOIPSEC</a>], ROHC is inherently a
322 lossy compression algorithm: the consequences of significant packet
323 reordering or loss between ROHC peers may include undetected
324 decompression failures, where erroneous packets are forwarded into
325 the protected domain.
326
327
328
329
330
331
332 <span class="grey">Ertekin, et al. Standards Track [Page 6]</span></pre>
333 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
334 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
335
336
337 To ensure that a decompressed header is identical to the original
338 header, ROHCoIPsec MAY use an additional integrity algorithm (and
339 respective key) to compute a second Integrity Check Value (ICV).
340 This ROHC ICV MUST be computed over the uncompressed IP header, as
341 well at the higher-layer headers and the packet payload. When
342 computed, the ICV is appended to the ROHC-compressed packet. At the
343 decompressor, the decompressed packet (including the uncompressed IP
344 header, higher-layer headers, and packet payload; but not including
345 the authentication data) will be used with the integrity algorithm
346 (and its respective key) to compute a value that will be compared to
347 the appended ICV. If these values are not identical, the
348 decompressed packet MUST be dropped.
349
350 Figure 1 illustrates the composition of a ROHCoIPsec-processed IPv4
351 packet. In the example, TCP/IP compression is applied, and the
352 packet is processed with tunnel mode ESP.
353
354 BEFORE COMPRESSION AND APPLICATION OF ESP
355 ----------------------------
356 IPv4 |orig IP hdr | | |
357 |(any options)| TCP | Data |
358 ----------------------------
359
360 AFTER ROHCOIPSEC COMPRESSION AND APPLICATION OF ESP
361 ------------------------------------------------------
362 IPv4 | new IP hdr | | Cmpr. | | ROHC | ESP | ESP|
363 |(any options)| ESP | Hdr. |Data| ICV |Trailer| ICV|
364 ------------------------------------------------------
365
366 Figure 1. Example of a ROHCoIPsec-Processed Packet
367
368 Note: At the decompressor, the ROHC ICV field is not included in the
369 calculation of the ROHC ICV.
370
371 <span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a>. ICV Computation and Integrity Verification</span>
372
373 In order to correctly verify the integrity of the decompressed
374 packets, the processing steps for ROHCoIPsec MUST be implemented in a
375 specific order, as given below.
376
377 For outbound packets that are processed by ROHC and are IPsec-
378 protected:
379
380 o Compute an ICV for the uncompressed packet with the negotiated
381 (ROHC) integrity algorithm and its respective key.
382
383 o Compress the packet headers (as specified by the ROHC process).
384
385
386
387
388 <span class="grey">Ertekin, et al. Standards Track [Page 7]</span></pre>
389 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
390 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
391
392
393 o Append the ICV to the compressed packet.
394
395 o Apply AH or ESP processing to the packet, as specified in the
396 appropriate SAD entry.
397
398 For inbound packets that are to be decompressed by ROHC:
399
400 o Apply AH or ESP processing, as specified in the appropriate SAD
401 entry.
402
403 o Remove the ICV from the packet.
404
405 o Decompress the packet header(s).
406
407 o Compute an ICV for the decompressed packet with the negotiated
408 (ROHC) integrity algorithm and its respective key.
409
410 o Compare the computed ICV to the original ICV calculated at the
411 compressor: if these two values differ, the packet MUST be
412 dropped; otherwise, resume IPsec processing.
413
414 <span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. ROHC Segmentation and IPsec Tunnel MTU</span>
415
416 In certain scenarios, a ROHCoIPsec-processed packet may exceed the
417 size of the IPsec tunnel MTU. <a href="./rfc4301">RFC 4301</a> [<a href="#ref-IPSEC" title="&quot;Security Architecture for the Internet Protocol&quot;">IPSEC</a>] currently stipulates
418 the following for outbound traffic that exceeds the SA Path MTU
419 (PMTU):
420
421 Case 1: Original (cleartext) packet is IPv4 and has the Don't
422 Fragment (DF) bit set. The implementation should
423 discard the packet and send a PMTU ICMP message.
424
425 Case 2: Original (cleartext) packet is IPv4 and has the DF
426 bit clear. The implementation should fragment (before or
427 after encryption per its configuration) and then forward
428 the fragments. It should not send a PMTU ICMP message.
429
430 Case 3: Original (cleartext) packet is IPv6. The implementation
431 should discard the packet and send a PMTU ICMP message.
432
433 For the ROHCoIPsec processing model, there is one minor change to the
434 procedure stated above. This change applies to pre-encryption
435 fragmentation for Case 2. Since current ROHC compression profiles do
436 not support compression of IP packet fragments, pre-encryption
437 fragmentation MUST NOT occur before ROHC processing.
438
439
440
441
442
443
444 <span class="grey">Ertekin, et al. Standards Track [Page 8]</span></pre>
445 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
446 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
447
448
449 If the compressed packet exceeds the SA PMTU, and the MRRU is non-
450 zero, ROHC segmentation MAY be used to divide the packet, where each
451 segment conforms to the tunnel MTU. ROHC segmentation MUST occur
452 before AH or ESP processing. Because in-order delivery of ROHC
453 segments is not guaranteed, the use of ROHC segmentation is not
454 recommended.
455
456 If segmentation is applied, the process MUST account for the
457 additional overhead imposed by the IPsec process (e.g., AH or ESP
458 overhead, crypto synchronization data, the additional IP header,
459 etc.) such that the final IPsec-processed segments are less than the
460 tunnel MTU. After segmentation, each ROHC segment is consecutively
461 processed by the appropriate security protocol (e.g., AH, ESP)
462 instantiated on the ROHC-enabled SA. Since ROHC segments are
463 processed consecutively, the associated AH/ESP sequence number MUST
464 be incremented by one for each segment transmitted over the ROHC
465 channel. As such, after all ROHC segments receive AH/ESP processing,
466 these segments can be identified (at the remote IPsec implementation)
467 by a range of contiguous AH/ESP sequence numbers.
468
469 For channels where the MRRU is non-zero, the ROHCoIPsec decompressor
470 MUST re-assemble the ROHC segments that are received. To accomplish
471 this, the decompressor MUST identify the ROHC segments (as documented
472 in <a href="./rfc5795#section-5.2">Section&nbsp;5.2 of RFC 5795</a> [<a href="#ref-ROHC" title="&quot;The RObust Header Compression (ROHC) Framework&quot;">ROHC</a>]), and attempt reconstruction using
473 the ROHC segmentation protocol (<a href="./rfc5795#section-5.2.5">Section&nbsp;5.2.5 of RFC 5795</a> [<a href="#ref-ROHC" title="&quot;The RObust Header Compression (ROHC) Framework&quot;">ROHC</a>]).
474 To assist the reconstruction process, the AH/ESP sequence number
475 SHOULD be used to identify segments that may have been subject to
476 reordering. If reconstruction fails, the packet MUST be discarded.
477
478 As stated in <a href="#section-3.2.1">Section 3.2.1</a>, if the ROHC integrity algorithm is used
479 to verify the decompression of packet headers, this ICV is appended
480 to the compressed packet. If ROHC segmentation is performed, the
481 segmentation algorithm is executed on the compressed packet and the
482 appended ICV. Note that the ICV is not appended to each ROHC
483 segment.
484
485 Under certain circumstances, IPsec implementations will not process
486 (or receive) unprotected ICMP messages, or they will not have a Path
487 MTU estimated value. In these cases, the IPsec implementation SHOULD
488 NOT attempt to segment the ROHC-compressed packet, as it does not
489 have full insight into the path MTU in the unprotected domain.
490
491 <span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Nested IPComp and ROHCoIPsec Processing</span>
492
493 IPComp ([<a href="#ref-IPCOMP" title="&quot;IP Payload Compression Protocol (IPComp)&quot;">IPCOMP</a>]) is another mechanism that can be implemented to
494 reduce the size of an IP datagram. If IPComp and ROHCoIPsec are
495 implemented in a nested fashion, the following steps MUST be followed
496 for outbound and inbound packets.
497
498
499
500 <span class="grey">Ertekin, et al. Standards Track [Page 9]</span></pre>
501 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
502 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
503
504
505 For outbound packets that are to be processed by IPComp and ROHC:
506
507 o The ICV is computed for the uncompressed packet, and the
508 appropriate ROHC compression profile is applied to the packet.
509
510 o IPComp is applied, and the packet is sent to the IPsec process.
511
512 o The security protocol is applied to the packet.
513
514 Conversely, for inbound packets that are to be both ROHC- and IPComp-
515 decompressed:
516
517 o A packet received on a ROHC-enabled SA is IPsec-processed.
518
519 o The datagram is decompressed based on the appropriate IPComp
520 algorithm.
521
522 o The packet is sent to the ROHC module for header decompression and
523 integrity verification.
524
525 <span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
526
527 A ROHCoIPsec implementer should consider the strength of protection
528 provided by the integrity check algorithm used to verify decompressed
529 headers. Failure to implement a strong integrity check algorithm
530 increases the probability for an invalidly decompressed packet to be
531 forwarded by a ROHCoIPsec device into a protected domain.
532
533 The implementation of ROHCoIPsec may increase the susceptibility for
534 traffic flow analysis, where an attacker can identify new traffic
535 flows by monitoring the relative size of the encrypted packets (i.e.,
536 a group of "long" packets, followed by a long series of "short"
537 packets may indicate a new flow for some ROHCoIPsec implementations).
538 To mitigate this concern, ROHC padding mechanisms may be used to
539 arbitrarily add padding to transmitted packets to randomize packet
540 sizes. This technique, however, reduces the overall efficiency
541 benefit offered by header compression.
542
543 <span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. IANA Considerations</span>
544
545 IANA has allocated the value 142 to "ROHC" within the "Protocol
546 Numbers" registry [<a href="#ref-PROTOCOL" title="&quot;Assigned Internet Protocol Numbers&quot;">PROTOCOL</a>]. This value will be used to indicate
547 that the next-level protocol header is a ROHC header.
548
549
550
551
552
553
554
555
556 <span class="grey">Ertekin, et al. Standards Track [Page 10]</span></pre>
557 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
558 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
559
560
561 <span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Acknowledgments</span>
562
563 The authors would like to thank Sean O'Keeffe, James Kohler, Linda
564 Noone of the Department of Defense, and Rich Espy of OPnet for their
565 contributions and support for developing this document.
566
567 The authors would also like to thank Yoav Nir and Robert A Stangarone
568 Jr.: both served as committed document reviewers for this
569 specification.
570
571 Finally, the authors would like to thank the following for their
572 numerous reviews and comments to this document:
573
574 o Magnus Westerlund
575
576 o Stephen Kent
577
578 o Lars-Erik Jonsson
579
580 o Carl Knutsson
581
582 o Pasi Eronen
583
584 o Jonah Pezeshki
585
586 o Tero Kivinen
587
588 o Joseph Touch
589
590 o Rohan Jasani
591
592 o Elwyn Davies
593
594 o Bert Wijnen
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612 <span class="grey">Ertekin, et al. Standards Track [Page 11]</span></pre>
613 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
614 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
615
616
617 <span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. ASN.1 Representation for ROHCoIPsec</span>
618
619 This appendix is included as an additional way to describe the
620 ROHCoIPsec parameters that are included in the IPsec SPD. It uses
621 portions of the ASN.1 syntax provided in <a href="./rfc4301#appendix-C">Appendix&nbsp;C of RFC 4301</a>
622 [<a href="#ref-IPSEC" title="&quot;Security Architecture for the Internet Protocol&quot;">IPSEC</a>]. In addition, several new structures are defined.
623
624 This syntax has been successfully compiled. However, it is merely
625 illustrative and need not be employed in an implementation to achieve
626 compliance.
627
628 The "Processing" data structure, defined in <a href="./rfc4301#appendix-C">Appendix&nbsp;C of RFC 4301</a>,
629 is augmented to include a ROHC parameters element as follows:
630
631 Processing ::= SEQUENCE {
632 extSeqNum BOOLEAN, -- TRUE 64 bit counter, FALSE 32 bit
633 seqOverflow BOOLEAN, -- TRUE rekey, FALSE terminate &amp; audit
634 fragCheck BOOLEAN, -- TRUE stateful fragment checking,
635 -- FALSE no stateful fragment checking
636 lifetime SALifetime,
637 spi ManualSPI,
638 algorithms ProcessingAlgs,
639 tunnel TunnelOptions OPTIONAL,
640 rohc [7] RohcParams OPTIONAL
641
642 }
643
644 The following data structures describe these ROHC parameters:
645
646 RohcParams ::= SEQUENCE {
647 rohcEnabled BOOLEAN, -- TRUE, hdr compr. is enabled
648 -- FALSE, hdr compr. is disabled
649 maxCID INTEGER (0..16383),
650 mrru INTEGER,
651 profiles RohcProfiles,
652 rohcIntegAlg RohcIntegAlgs,
653 rohcIntegICVLength INTEGER
654 }
655
656 RohcProfiles ::= SET OF RohcProfile
657
658
659
660
661
662
663
664
665
666
667
668 <span class="grey">Ertekin, et al. Standards Track [Page 12]</span></pre>
669 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
670 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
671
672
673 RohcProfile ::= INTEGER {
674 rohcv1-rtp (1),
675 rohcv1-udp (2),
676 rohcv1-esp (3),
677 rohcv1-ip (4),
678
679 rohcv1-tcp (6),
680 rohcv1-rtp-udpLite (7),
681 rohcv1-udpLite (8),
682
683 rohcv2-rtp (257),
684 rohcv2-udp (258),
685 rohcv2-esp (259),
686 rohcv2-ip (260),
687
688 rohcv2-rtp-udpLite (263),
689 rohcv2-udpLite (264)
690
691 -- values taken from [<a href="#ref-ROHCPROF" title="&quot;RObust Header Compression (ROHC) Profile Identifiers&quot;">ROHCPROF</a>]
692
693 }
694
695 RohcIntegAlgs ::= SEQUENCE {
696 algorithm RohcIntegAlgType,
697 parameters ANY -- DEFINED BY algorithm -- OPTIONAL }
698
699 RohcIntegAlgType ::= INTEGER {
700 none (0),
701 auth-HMAC-MD5-96 (1),
702 auth-HMAC-SHA1-96 (2),
703 auth-DES-MAC (3),
704 auth-KPDK-MD5 (4),
705 auth-AES-XCBC-96 (5),
706 auth-HMAC-MD5-128 (6),
707 auth-HMAC-SHA1-160 (7),
708 auth-AES-CMAC-96 (8),
709 auth-AES-128-GMAC (9),
710 auth-AES-192-GMAC (10),
711 auth-AES-256-GMAC (11),
712 auth-HMAC-SHA2-256-128 (12),
713 auth-HMAC-SHA2-384-192 (13),
714 auth-HMAC-SHA2-512-256 (14)
715 -- tbd (15..65535)
716
717 -- values taken from "Transform Type 3 - Integrity
718 -- Algorithm Transform IDs" at [<a href="#ref-IKEV2-PARA" title="&quot;Internet Key Exchange Version 2 (IKEv2) Parameters&quot;">IKEV2-PARA</a>]
719
720 }
721
722
723
724 <span class="grey">Ertekin, et al. Standards Track [Page 13]</span></pre>
725 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
726 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
727
728
729 <span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
730
731 <span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
732
733 [<a id="ref-IPSEC">IPSEC</a>] Kent, S. and K. Seo, "Security Architecture for the
734 Internet Protocol", <a href="./rfc4301">RFC 4301</a>, December 2005.
735
736 [<a id="ref-ROHC">ROHC</a>] Sandlund, K., Pelletier, G., and L-E. Jonsson, "The
737 RObust Header Compression (ROHC) Framework", <a href="./rfc5795">RFC 5795</a>,
738 March 2010.
739
740 [<a id="ref-IPCOMP">IPCOMP</a>] Shacham, A., Monsour, B., Pereira, R., and M. Thomas,
741 "IP Payload Compression Protocol (IPComp)", <a href="./rfc3173">RFC 3173</a>,
742 September 2001.
743
744 [<a id="ref-BRA97">BRA97</a>] Bradner, S., "Key words for use in RFCs to Indicate
745 Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
746
747 [<a id="ref-ROHCV2">ROHCV2</a>] Pelletier, G. and K. Sandlund, "RObust Header
748 Compression Version 2 (ROHCv2): Profiles for RTP, UDP,
749 IP, ESP and UDP-Lite", <a href="./rfc5225">RFC 5225</a>, April 2008.
750
751 [<a id="ref-IKEV2">IKEV2</a>] Kaufman, C., "Internet Key Exchange (IKEv2) Protocol",
752 <a href="./rfc4306">RFC 4306</a>, December 2005.
753
754 [<a id="ref-IKE-ROHC">IKE-ROHC</a>] Ertekin, E., Christou, C., Jasani, R., Kivinen, T., and
755 C. Bormann, "IKEv2 Extensions to Support Robust Header
756 Compression over IPsec", <a href="./rfc5857">RFC 5857</a>, May 2010.
757
758 [<a id="ref-AH">AH</a>] Kent, S., "IP Authentication Header", <a href="./rfc4302">RFC 4302</a>,
759 December 2005.
760
761 [<a id="ref-ESP">ESP</a>] Kent, S., "IP Encapsulating Security Payload (ESP)",
762 <a href="./rfc4303">RFC 4303</a>, December 2005.
763
764 <span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
765
766 [<a id="ref-ROHCOIPSEC">ROHCOIPSEC</a>] Ertekin, E., Jasani, R., Christou, C., and C. Bormann,
767 "Integration of Header Compression over IPsec Security
768 Associations", <a href="./rfc5856">RFC 5856</a>, May 2010.
769
770 [<a id="ref-ROHCPROF">ROHCPROF</a>] IANA, "RObust Header Compression (ROHC) Profile
771 Identifiers", &lt;<a href="http://www.iana.org">http://www.iana.org</a>&gt;.
772
773 [<a id="ref-CRYPTO-ALG">CRYPTO-ALG</a>] Manral, V., "Cryptographic Algorithm Implementation
774 Requirements for Encapsulating Security Payload (ESP)
775 and Authentication Header (AH)", <a href="./rfc4835">RFC 4835</a>, April 2007.
776
777
778
779
780 <span class="grey">Ertekin, et al. Standards Track [Page 14]</span></pre>
781 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
782 <span class="grey"><a href="./rfc5858">RFC 5858</a> IPsec Extensions to Support ROHCoIPsec may 2010</span>
783
784
785 [<a id="ref-ROHC-TERM">ROHC-TERM</a>] Jonsson, L-E., "Robust Header Compression (ROHC):
786 Terminology and Channel Mapping Examples", <a href="./rfc3759">RFC 3759</a>,
787 April 2004.
788
789 [<a id="ref-PROTOCOL">PROTOCOL</a>] IANA, "Assigned Internet Protocol Numbers",
790 &lt;<a href="http://www.iana.org">http://www.iana.org</a>&gt;.
791
792 [<a id="ref-IKEV2-PARA">IKEV2-PARA</a>] IANA, "Internet Key Exchange Version 2 (IKEv2)
793 Parameters", &lt;<a href="http://www.iana.org">http://www.iana.org</a>&gt;.
794
795 Authors' Addresses
796
797 Emre Ertekin
798 Booz Allen Hamilton
799 5220 Pacific Concourse Drive, Suite 200
800 Los Angeles, CA 90045
801 US
802
803 EMail: [email protected]
804
805
806 Chris Christou
807 Booz Allen Hamilton
808 13200 Woodland Park Dr.
809 Herndon, VA 20171
810 US
811
812 EMail: [email protected]
813
814
815 Carsten Bormann
816 Universitaet Bremen TZI
817 Postfach 330440
818 Bremen D-28334
819 Germany
820
821 EMail: [email protected]
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836 Ertekin, et al. Standards Track [Page 15]
837 </pre>