idnits 2.17.00 (12 Aug 2021) /tmp/idnits13262/draft-ietf-rohc-ip-only-03.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- ** Looks like you're using RFC 2026 boilerplate. This must be updated to follow RFC 3978/3979, as updated by RFC 4748. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- ** The document seems to lack a 1id_guidelines paragraph about 6 months document validity -- however, there's a paragraph with a matching beginning. Boilerplate error? ** The document seems to lack a 1id_guidelines paragraph about the list of current Internet-Drafts -- however, there's a paragraph with a matching beginning. Boilerplate error? == No 'Intended status' indicated for this document; assuming Proposed Standard Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- ** The document seems to lack separate sections for Informative/Normative References. All references will be assumed normative when checking for downward references. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the RFC 3978 Section 5.4 Copyright Line does not match the current year -- The document seems to lack a disclaimer for pre-RFC5378 work, but may have content which was first submitted before 10 November 2008. If you have contacted all the original authors and they are all willing to grant the BCP78 rights to the IETF Trust, then this is fine, and you can ignore this comment. If not, you may need to add the pre-RFC5378 disclaimer. (See the Legal Provisions document at https://trustee.ietf.org/license-info for more information.) -- The document date (September 12, 2003) is 6825 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) == Missing Reference: 'ROHC' is mentioned on line 501, but not defined ** Obsolete normative reference: RFC 2460 (Obsoleted by RFC 8200) -- Possible downref: Non-RFC (?) normative reference: ref. 'PROTOCOL' Summary: 5 errors (**), 0 flaws (~~), 3 warnings (==), 3 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group Lars-Erik Jonsson, Ericsson 3 INTERNET-DRAFT Ghyslain Pelletier, Ericsson 4 Expires: March 2004 5 September 12, 2003 7 RObust Header Compression (ROHC): 8 A Compression Profile for IP 9 11 Status of this memo 13 This document is an Internet-Draft and is in full conformance with 14 all provisions of Section 10 of RFC2026. 16 Internet-Drafts are working documents of the Internet Engineering 17 Task Force (IETF), its areas, and its working groups. Note that other 18 groups may also distribute working documents as Internet-Drafts. 20 Internet-Drafts are draft documents valid for a maximum of six months 21 and may be updated, replaced, or obsoleted by other documents at any 22 time. It is inappropriate to use Internet-Drafts as reference 23 material or cite them other than as "work in progress". 25 The list of current Internet-Drafts can be accessed at 26 http://www.ietf.org/ietf/lid-abstracts.txt 28 The list of Internet-Draft Shadow Directories can be accessed at 29 http://www.ietf.org/shadow.html 31 This document is a submission of the IETF ROHC WG. Comments should be 32 directed to the ROHC WG mailing list, rohc@ietf.org. 34 Abstract 36 The original RObust Header Compression (ROHC) RFC, RFC 3095, defines 37 a framework for header compression, along with compression protocols 38 (profiles) for IP/UDP/RTP, IP/ESP, IP/UDP, and also a profile for 39 uncompressed packet streams. However, no profile was defined for 40 compression of IP only, which has been identified as a missing piece 41 in RFC 3095. This document defines a ROHC compression profile for IP, 42 similar to the IP/UDP profile defined by RFC 3095, but simplified to 43 exclude UDP, and enhanced to compress IP header chains of arbitrary 44 length. 46 Table of Contents 48 1. Introduction..................................................2 49 2. Terminology...................................................3 50 3. ROHC IP Compression (Profile 0x0004)..........................3 51 3.1. Static chain termination...............................3 52 3.2. Handling multiple levels of IP headers.................3 53 3.3. Constant IP-ID.........................................4 54 3.4. Additional mode transition logic.......................6 55 3.5. Initialization.........................................7 56 3.6. Packet types...........................................8 57 4. Security Considerations.......................................9 58 5. IANA Considerations...........................................9 59 6. Intellectual Property Right Claim Considerations..............9 60 7. Acknowledgements.............................................10 61 8. References...................................................10 62 9. Authors' Addresses...........................................10 63 Appendix A. Detailed procedures for canceling mode transitions..11 64 A.1. Transition from Optimistic to Reliable mode................11 65 A.2. Transition from Unidirectional to Reliable mode............12 66 A.3. Transition from Reliable to Optimistic mode................12 67 A.4. Transition back to Unidirectional mode.....................13 69 1. Introduction 71 The original RObust Header Compression (ROHC) RFC [RFC-3095] defines 72 a framework for header compression, along with compression protocols 73 (profiles) for IP/UDP/RTP, IP/ESP, IP/UDP, and also a profile for 74 uncompressed packet streams. The profile for uncompressed data was 75 defined to provide means to encapsulate all traffic over a link 76 within ROHC packets. Through this profile, the lower layers do not 77 have to provide multiplexing for different packet types, but instead 78 ROHC can handle any packet stream, even if compression profiles for 79 all kinds of packet streams have yet not been defined or implemented 80 over the link. 82 Although the profile without compression is simple and can tunnel 83 arbitrary packets, it has of course a major weakness in that it does 84 not compress the headers at all. When considering that normally all 85 packets are expected to be IP [RFC-791, RFC-2460] packets, and that 86 the IP header often represent a major part of the total header, a 87 useful alternative to no compression would for most packets be 88 compression of the IP header only. Unfortunately, such a profile was 89 not defined in [RFC-3095], and this has thus been identified as an 90 important missing piece in the ROHC toolbox. 92 This document addresses this missing compression support and defines 93 a ROHC compression profile for IP [RFC-791, RFC-2460] only, similar 94 to the IP/UDP profile defined by [RFC-3095], but simplified to 95 exclude UDP. Due to the similarities with the IP/UDP profile, the IP 96 compression profile is described based on the IP/UDP profile, mainly 97 covering differences. The most important differences are a different 98 way of terminating the static header chain, and the capability to 99 compress IP header chains of arbitrary length. 101 2. Terminology 103 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 104 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 105 document are to be interpreted as described in RFC 2119 [RFC-2119]. 107 ROHC UDP 109 "ROHC UDP" in this document refers to the IP/UDP profile 110 (Profile 0x0002) as defined in [RFC-3095]. 112 3. ROHC IP Compression (Profile 0x0004) 114 In general, there are no major difference between the ROHC UDP 115 profile and the IP profile (ROHC IP) defined in this document, since 116 the removal of UDP has no impact on the compression mechanisms. As 117 for ROHC UDP, the compressor generates a 16-bit sequence number which 118 increases by one for each packet compressed in the packet stream, 119 simply called SN below. The most important difference between this 120 profile and ROHC UDP is about static chain termination and handling 121 of multiple IP headers. Unless stated explicitly below, mechanisms 122 and formats are as for ROHC UDP. 124 3.1. Static chain termination 126 One difference for IP-only compression, compared to IP/UDP 127 compression, is related to the termination of the static chain in IR 128 headers. For the UDP profile, the chain always ends with a UDP header 129 part, which per definition provides the boundaries for the chain. The 130 UDP header is also the last header in the uncompressed packet (except 131 for potential application header). For the IP-only profile, there is 132 no single last header that per profile definition terminates the 133 chain. Instead, the static chain is terminated if the "Next Header / 134 Protocol" field of a static IP header part indicates anything but IP 135 (IPinIP or IPv6). 137 3.2. Handling multiple levels of IP headers 139 The ROHC IR and IR-DYN packets defined in [RFC-3095] are used to 140 communicate static and/or dynamic parts of a context. For each of the 141 compression profiles defined in [RFC-3095], there is a single last 142 header in the header chain that clearly marks the termination of the 143 static chain. The length of the dynamic chain is then inferred from 144 the static chain in the IR header itself, or from the static chain in 145 the context for the IR-DYN header. The length of both static and 146 dynamic chains may thus be of arbitrary length and may, in theory, 147 initialize a context with an arbitrary number of IP levels. 149 However, the general compressed header formats defined in [RFC-3095, 150 section 5.7.] specifies that at most two levels of IP headers (the 151 'Inner' and the 'Outer' level of IP headers) may be included in a 152 compressed header. Specifically, the format defined for Extension 3 153 [RFC-3095, section 5.7.5.] can only carry the 'Outer' IP header. In 154 addition, while list compression may be used to compress other types 155 of headers, it cannot be used to compress additional IP headers as IP 156 headers may not be part of an extension header chain in compressed 157 headers [ROHC, section 5.8.]. 159 For the compression profiles defined in [RFC-3095], the consequence 160 is that at most two levels of IP headers can be compressed. In other 161 words, the presence of additional IP headers at best partially 162 disables header compression and compression will not go beyond the IR 163 state (as only IR and IR-DYNs can be used in such case). 165 For the compression of IP headers only, the additional IP headers 166 would however not have to cause header compression to be disabled 167 because there is no single packet type that ends the compressed 168 chain. The excess IP headers could simply be left uncompressed by 169 implicitly terminating the static and dynamic chains after at most 170 two levels of IP headers. 172 The IP-only profile defined in this document takes one step further 173 and supports compression of an arbitrary number of IP levels. This is 174 achieved by adding a dynamic chain to the general format of 175 compressed headers, to include the header part of each IP level in 176 excess of the first two. 178 As explained above, the static chain within IR packets can be of 179 arbitrary length, and the chain is terminated by the presence of a 180 non-IP header (not IPinIP nor IPv6). The dynamic chain is structured 181 analogously. 183 For compressed headers, the information related to the initial two IP 184 headers is carried as for the IP/UDP profile, and a chain of dynamic 185 header information is added to the end of the compressed header for 186 each and every additional IP header. This additional data structure 187 is thus exactly the same as the one used in IR and IR-DYN packets. 188 The length of the chain is inferred from the chain of static 189 parameters in the context. While a dynamic chain carries dynamically 190 changing parameters using an uncompressed representation, this 191 ensures that flows with arbitrary levels of IP headers will not 192 impair compression efficiency. 194 3.3. Constant IP-ID 196 Most IPv4 stacks assigns IP-ID according to the value of a counter 197 increasing by one for each outgoing packet. ROHC UDP compresses the 198 IP-ID field using offset IP-ID encoding based on the UDP SN [RFC- 199 3095]. For stacks generating IP-ID values using a pseudo-random 200 number generator, the field is not compressed and is sent as-is in 201 its entirety as additional octets after the compressed header. 203 Cases have also been found where an IPv4 stack uses a constant value 204 for the IP Identifier. When the IP-ID field is constant, it cannot be 205 compressed using offset IP-ID encoding and the field must be sent in 206 its entirety. This overhead can be avoided with the addition of a 207 flag within the dynamic part of the chain used to initialize the IPv4 208 header, as follow: 210 Dynamic part: 212 +---+---+---+---+---+---+---+---+ 213 | Type of Service | 214 +---+---+---+---+---+---+---+---+ 215 | Time to Live | 216 +---+---+---+---+---+---+---+---+ 217 / Identification / 2 octets 218 +---+---+---+---+---+---+---+---+ 219 | DF|RND|NBO|SID| 0 | 220 +---+---+---+---+---+---+---+---+ 221 / Generic extension header list / variable length 222 +---+---+---+---+---+---+---+---+ 224 SID: Static IP Identifier. 226 For IR and IR-DYN packets, the logic is the same as for ROHC UDP 227 with the addition that field(SID) must be kept in the context. 229 For compressed headers other than IR and IR-DYN: 231 If value(RND) = 0 and context(SID) = 0, hdr(IP-ID) is 232 compressed using Offset IP-ID encoding (see [RFC-3095 section 233 4.5.5]) using p = 0 and default-slope(IP-ID offset) = 0. 235 If value(RND) = 0 and context(SID) = 1, hdr(IP-ID) is constant 236 and compressed away; hdr(IP-ID) is the value of context(IP-ID). 238 If value(RND) = 1, IP-ID is the uncompressed hdr(IP-ID). IP-ID 239 is then passed as additional octets at the end of the 240 compressed header, after any extensions. 242 Note: Only IR and IR-DYN packets can update context(SID). 244 Note: All other fields are the same as for ROHC UDP [RFC-3095]. 246 3.4. Additional mode transition logic 248 The profiles defined in [ROHC] operate using different modes of 249 compression. A mode transition can be requested once a packet has 250 reached the decompressor by sending feedback indicating the desired 251 mode. As per the specifications found in [ROHC], the compressor is 252 compelled to honor such request. 254 For the IP profile defined in this document, the Mode parameter for 255 the value mode = 0 (packet types UOR-2, IR and IR-DYN) is redefined 256 to allow the compressor to decline a mode transition requested by the 257 decompressor: 259 Mode: Compression mode. 0 = (C)ancel Mode Transition 261 Upon receiving the Mode parameter set to '0', the decompressor MUST 262 stay in its current mode of operation and SHOULD refrain from sending 263 further mode transition requests for a certain amount of time. 265 More specifically, with reference to the parameters C_TRANS, C_MODE, 266 D_TRANS and D_MODE defined in [ROHC, section 5.6.1.], the following 267 modifications apply when the compressor cancels a mode transition: 269 Parameters for the compressor side: 271 - C_MODE: 272 This value must not be changed when sending mode information 273 within packets when the mode parameter set to '0' (as a 274 response to a mode transition request from the decompressor). 276 - C_TRANS: 277 C_TRANS is (P)ending when receiving a mode transition request 278 from the decompressor. C_TRANS is set to (D)one when the 279 compressor receives an ACK for a UOR-2, IR-DYN, or IR packet 280 sent with the mode parameter set to the mode in use at the time 281 when the mode transition request was initiated. 283 Parameters for the decompressor side: 285 - D_MODE: 286 D_MODE MUST remain unchanged when receiving a UOR-2, an IR-DYN, 287 or an IR packet sent with the mode parameter set to '0'. 289 - D_TRANS: 290 D_TRANS is (P)ending when a UOR-2, IR-DYN, or IR packet sent 291 with the mode parameter set to '0' is received. It is set to 292 (D)one when a packet of type 1 or 0 corresponding to the 293 unchanged mode is received. 295 The resulting mode transition procedure is described below: 297 Compressor Decompressor 298 ---------------------------------------------- 299 C_MODE = X | | D_MODE = X 300 | Mode Request(Y) +-<-<-<-| D_TRANS = I 301 | +-<-<-<-<-<-<-<-+ | 302 C_TRANS = P |-<-<-<-+ | 303 C_MODE = X | | 304 |->->->-+ IR/IR-DYN/UOR-2(SN,C) | 305 | +->->->->->->->-+ | 306 |->-.. +->->->-| D_TRANS = P 307 |->-.. | D_MODE = X 308 | ACK(SN,X) +-<-<-<-| 309 | +-<-<-<-<-<-<-<-+ | 310 C_TRANS = D |-<-<-<-+ | 311 | | 312 |->->->-+ X-0, X-1* | 313 | +->->->->->->->-+ | 314 | +->->->-| D_TRANS = D 315 | | 317 where X: mode in use before the mode transition was initiated 318 Y: mode requested by the decompressor 319 C: (C)ancel mode transition 321 3.5. Initialization 323 The static context for ROHC IP compression can be initialized in 324 either of two ways: 326 1) By using an IR packet as in ROHC UDP, where the profile is 327 0x0004, and the static chain ends with the static part of an 328 IP header, where the Next Header/Protocol field has any value but 329 IPinIP (4) or IPv6 (41) [PROTOCOL]. At the compressor, SN is 330 initialized to a random value when the first IR packet is sent. 332 2) By reusing an existing context. This is done with an IR-DYN 333 packet, identifying profile 0x0004, where the dynamic chain 334 corresponds to the prefix of the existing static chain, ending 335 with an IP header where the Next Header/Protocol field has any 336 value but IPinIP (4) or IPv6 (41) [PROTOCOL]. At the compressor, 337 SN is initialized to a random value when the first IR-DYN packet 338 is sent. 340 For ROHC IP, the dynamic part of an IR or IR-DYN packet is similar to 341 the one for ROHC UDP, with a two-octet field containing the SN 342 present at the end of the dynamic chain in IR and IR-DYN packets. It 343 should be noted that the static and dynamic chains have an arbitrary 344 length, and the SN is added only once, at the end of the dynamic 345 chain in IR and IR-DYN packets. 347 3.6. Packet types 349 The only packet format that differs from ROHC UDP is the general 350 format for compressed packets, which has no UDP checksum in the end. 351 Instead, it ends with a list of dynamic header portions, one for each 352 IP header above the initial two (if any, as indicated by the presence 353 of corresponding header portions in the static chain). 355 The general format for a compressed header is thus as follows: 357 0 1 2 3 4 5 6 7 358 --- --- --- --- --- --- --- --- 359 : Add-CID octet : | 360 +---+---+---+---+---+---+---+---+ | 361 | first octet of base header | | 362 +---+---+---+---+---+---+---+---+ | 363 : : | 364 / 0, 1, or 2 octets of CID / | 365 : : | 366 +---+---+---+---+---+---+---+---+ | 367 / remainder of base header / | 368 +---+---+---+---+---+---+---+---+ | 369 : : | 370 / Extension / | 371 : : | 372 --- --- --- --- --- --- --- --- | 373 : : | 374 + IP-ID of outer IPv4 header + 375 : : (see section 5.7 of [RFC-3095]) 376 --- --- --- --- --- --- --- --- 377 / AH data for outer list / | 378 --- --- --- --- --- --- --- --- | 379 : : | 380 + GRE checksum + | 381 : : | 382 --- --- --- --- --- --- --- --- | 383 : : | 384 + IP-ID of inner IPv4 header + | 385 : : | 386 --- --- --- --- --- --- --- --- | 387 / AH data for inner list / | 388 --- --- --- --- --- --- --- --- | 389 : : | 390 + GRE checksum + | 391 : : | 392 --- --- --- --- --- --- --- --- 393 : List of : 394 / Dynamic chains / variable, given by static chain 395 : for additional IP headers : (includes no SN) 396 --- --- --- --- --- --- --- --- 398 Note that the list of dynamic chains for the additional IP headers in 399 compressed packets do not have a sequence number at the end of the 400 chain, as SN is present within compressed base headers. 402 4. Security Considerations 404 The security considerations of [RFC-3095] apply equally to this 405 document, without exceptions or additions. 407 5. IANA Considerations 409 ROHC profile identifier 0x0004 has been reserved by the IANA for the 410 profile defined in this document. 412 { NOTE TO IANA - TO BE REMOVED BEFORE PUBLICATION } 414 A ROHC profile identifier must be reserved by the IANA for the 415 profile defined in this document. Profile number 0x0004 has 416 previously been saved for this purpose, and should thus be used. 417 As for previous ROHC profiles, profile numbers 0xnn04 must also be 418 reserved for future variants of this profile. A suggested 419 registration in the "RObust Header Compression (ROHC) Profile 420 Identifiers" name space would then be: 422 OLD: 0xnn04 To be Assigned by IANA 424 NEW: 0x0004 ROHC IP [RFCXXXX (this)] 425 0xnn04 Reserved 427 { END OF NOTE } 429 6. Intellectual Property Right Claim Considerations 431 The IETF has been notified of intellectual property rights claimed in 432 regard to some or all of the specification contained in this 433 document. For more information consult the online list of claimed 434 rights. 436 The IETF takes no position regarding the validity or scope of any 437 intellectual property or other rights that might be claimed to 438 pertain to the implementation or use of the technology described in 439 this document or the extent to which any license under such rights 440 might or might not be available; neither does it represent that it 441 has made any effort to identify any such rights. Information on the 442 IETF's procedures with respect to rights in standards-track and 443 standards-related documentation can be found in BCP-11. Copies of 444 claims of rights made available for publication and any assurances of 445 licenses to be made available, or the result of an attempt made to 446 obtain a general license or permission for the use of such 447 proprietary rights by implementors or users of this specification can 448 be obtained from the IETF Secretariat. 450 The IETF invites any interested party to bring to its attention any 451 copyrights, patents or patent applications, or other proprietary 452 rights which may cover technology that may be required to practice 453 this standard. Please address the information to the IETF Executive 454 Director. 456 7. Acknowledgements 458 The authors would like to thank Carsten Bormann, Fredrik Lindstrom, 459 Kristofer Sandlund and Mark West for valuable input and review. 461 8. References 463 [RFC-2119] Bradner, S., "Key words for use in RFCs to Indicate 464 Requirement Levels", RFC 2119, March 1997. 466 [RFC-3095] Bormann, C., Burmeister, C., Degermark, M., Fukushima, 467 H., Hannu, H., Jonsson, L-E., Hakenberg, R., Koren, T., 468 Le, K., Liu, Z., Martensson, A., Miyazaki, A., Svanbro, 469 K., Wiebke, T., Yoshimura, T. and H. Zheng, "Robust 470 Header Compression (ROHC)", RFC 3095, July 2001. 472 [RFC-791] Postel, J., "Internet Protocol", RFC 791, September 1981. 474 [RFC-2460] Deering, S. and R. Hinden, "Internet Protocol, Version 6 475 (IPv6) Specification", RFC 2460, December 1998. 476 [PROTOCOL] "Assigned Internet Protocol Numbers", IANA registry at: 477 http://www.iana.org/assignments/protocol-numbers 479 9. Authors' Addresses 481 Lars-Erik Jonsson 482 Ericsson AB 483 Box 920 484 SE-971 28 Lulea, Sweden 486 Phone: +46 920 20 21 07 487 Fax: +46 920 20 20 99 488 Email: lars-erik.jonsson@ericsson.com 490 Ghyslain Pelletier 491 Box 920 492 Ericsson AB 493 SE-971 28 Lulea, Sweden 495 Phone: +46 920 20 24 32 496 Fax: +46 920 20 20 99 497 Email: ghyslain.pelletier@ericsson.com 499 Appendix A. Detailed procedures for canceling mode transitions 501 The profiles defined in [ROHC] operate using different modes of 502 compression: Unidirectional (U-Mode), Bi-directional Optimistic (O- 503 Mode) and Bi-directional Reliable (R-Mode). Compression always starts 504 in the U-Mode, and mode transitions can only be initiated by the 505 decompressor [ROHC, section 5.6.]. A mode transition can be requested 506 once a packet has reached the decompressor by sending feedback 507 indicating the desired mode. 509 With reference to the parameters C_TRANS, C_MODE, D_TRANS and D_MODE 510 defined in [ROHC, section 5.6.1.], the following sub-sections 511 describe the resulting procedures when a compressor declines a mode 512 transition request from the decompressor as described in section 3.4. 514 A.1. Transition from Optimistic to Reliable mode 516 When the decompressor initiates a mode transition from Optimistic to 517 Reliable mode, the cancellation of the transition procedure is 518 described as follows: 520 Compressor Decompressor 521 ---------------------------------------------- 522 | | 523 | ACK(R)/NACK(R) +-<-<-<-| D_TRANS = I 524 | +-<-<-<-<-<-<-<-+ | 525 C_TRANS = P |-<-<-<-+ | 526 C_MODE = O | | 527 |->->->-+ IR/IR-DYN/UOR-2(SN,C) | 528 | +->->->->->->->-+ | 529 |->-.. +->->->-| D_TRANS = P 530 |->-.. | D_MODE = O 531 | ACK(SN,O) +-<-<-<-| 532 | +-<-<-<-<-<-<-<-+ | 533 C_TRANS = D |-<-<-<-+ | 534 | | 535 |->->->-+ UO-0, UO-1* | 536 | +->->->->->->->-+ | 537 | +->->->-| D_TRANS = D 539 The compressor must not send packet types 1 or 0 when C_TRANS is P, 540 i.e. not until it has received an ACK for a UOR-2, IR-DYN, or IR 541 packet sent with the mode transition parameter set to C. When the 542 decompressor receives a UOR-2, IR-DYN, or IR packet sent with the 543 mode transition parameter set to C, it must keep the value D_MODE to 544 O and it sets D_TRANS to P. When the decompressor receives packet 545 types 0 or 1, after having ACKed a UOR-2, IR-DYN, or IR packet, it 546 sets D_TRANS to D. 548 A.2. Transition from Unidirectional to Reliable mode 550 The cancellation of a transition from Unidirectional to Reliable mode 551 follows the same procedure as defined in section 4.2 above. 553 A.3. Transition from Reliable to Optimistic mode 555 When the decompressor initiates a mode transition from Reliable to 556 Optimistic mode, the cancellation of the transition procedure is 557 described as follows: 559 Compressor Decompressor 560 ---------------------------------------------- 561 | | 562 | ACK(O)/NACK(O) +-<-<-<-| D_TRANS = I 563 | +-<-<-<-<-<-<-<-+ | 564 C_TRANS = P |-<-<-<-+ | 565 C_MODE = R | | 566 |->->->-+ IR/IR-DYN/UOR-2(SN,C) | 567 | +->->->->->->->-+ | 568 |->-.. +->->->-| D_MODE = R 569 |->-.. | 570 | ACK(SN,R) +-<-<-<-| 571 | +-<-<-<-<-<-<-<-+ | 572 C_TRANS = D |-<-<-<-+ | 573 | | 574 |->->->-+ R-0, R-1* | 575 | +->->->->->->->-+ | 576 | +->->->-| D_TRANS = D 577 | | 579 The compressor must not send packet types 1 or 0 when C_TRANS is P, 580 i.e. not until it has received an ACK for a UOR-2, IR-DYN, or IR 581 packet sent with the mode transition parameter set to C. When the 582 decompressor receives a UOR-2, IR-DYN, or IR packet sent with the 583 mode transition parameter set to C, it must keep the value D_MODE to 584 R. When the decompressor receives packet types 0 or 1, after having 585 ACKed a UOR-2, IR-DYN, or IR packet, it sets D_TRANS to D. 587 A.4. Transition back to Unidirectional mode 589 When the decompressor initiates a mode transition from Reliable or 590 Optimistic mode back to Unidirectional mode, the cancellation of the 591 transition procedure is described as follows: 593 Compressor Decompressor 594 ---------------------------------------------- 595 | | 596 | ACK(U)/NACK(U) +-<-<-<-| D_TRANS = I 597 | +-<-<-<-<-<-<-<-+ | 598 C_TRANS = P |-<-<-<-+ | 599 C_MODE = O/R| | 600 |->->->-+ IR/IR-DYN/UOR-2(SN,C) | 601 | +->->->->->->->-+ | 602 |->-.. +->->->-| 603 |->-.. | 604 | ACK(SN,O/R) +-<-<-<-| 605 | +-<-<-<-<-<-<-<-+ | 606 C_TRANS = D |-<-<-<-+ | 607 | R-0, R-1* or | 608 |->->->-+ UO-0, UO-1* | 609 | +->->->->->->->-+ | 610 | +->->->-| D_TRANS = D 611 D_MODE = O/R 613 When the decompressor receives a UOR-2, IR-DYN, or IR packet sent 614 with the mode transition parameter set to C, it must keep the value 615 D_MODE to the bi-directional mode already in use (either O- or R- 616 mode). After ACKing the first UOR-2(C), IR-DYN(C), or IR(C), the 617 decompressor MUST continue to send feedback with the Mode parameter 618 set to the bi-directional mode in use (either O- or R-mode) until it 619 receives packet types 0 or 1. When the decompressor receives packet 620 types 0 or 1, after having ACKed a UOR-2, IR-DYN, or IR packet, it 621 sets D_TRANS to D. 623 Full Copyright Statement 625 Copyright (C) The Internet Society (2003). All Rights Reserved. 627 This document and translations of it may be copied and furnished to 628 others, and derivative works that comment on or otherwise explain it 629 or assist in its implementation may be prepared, copied, published 630 and distributed, in whole or in part, without restriction of any 631 kind, provided that the above copyright notice and this paragraph are 632 included on all such copies and derivative works. However, this 633 document itself may not be modified in any way, such as by removing 634 the copyright notice or references to the Internet Society or other 635 Internet organizations, except as needed for the purpose of 636 developing Internet standards in which case the procedures for 637 copyrights defined in the Internet Standards process must be 638 followed, or as required to translate it into languages other than 639 English. 641 The limited permissions granted above are perpetual and will not be 642 revoked by the Internet Society or its successors or assigns. 644 This document and the information contained herein is provided on an 645 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 646 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 647 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 648 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 649 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 651 This Internet-Draft expires March 12, 2004.