idnits 2.17.00 (12 Aug 2021) /tmp/idnits24857/draft-ietf-6lo-fragment-recovery-18.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- No issues found here. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The exact meaning of the all-uppercase expression 'NOT REQUIRED' is not defined in RFC 2119. If it is intended as a requirements expression, it should be rewritten using one of the combinations defined in RFC 2119; otherwise it should not be all-uppercase. (Using the creation date from RFC4944, updated by this document, for RFC5378 checks: 2005-07-13) -- 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 (19 March 2020) is 793 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) ** Downref: Normative reference to an Informational RFC: RFC 4919 ** Downref: Normative reference to an Informational RFC: RFC 6606 == Outdated reference: draft-ietf-6lo-minimal-fragment has been published as RFC 8930 == Outdated reference: A later version (-02) exists of draft-ietf-lwig-6lowpan-virtual-reassembly-01 == Outdated reference: draft-ietf-intarea-frag-fragile has been published as RFC 8900 == Outdated reference: draft-ietf-6tisch-architecture has been published as RFC 9030 Summary: 2 errors (**), 0 flaws (~~), 5 warnings (==), 3 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 6lo P. Thubert, Ed. 3 Internet-Draft Cisco Systems 4 Updates: 4944 (if approved) 19 March 2020 5 Intended status: Standards Track 6 Expires: 20 September 2020 8 6LoWPAN Selective Fragment Recovery 9 draft-ietf-6lo-fragment-recovery-18 11 Abstract 13 This draft updates RFC 4944 with a simple protocol to recover 14 individual fragments across a route-over mesh network, with a minimal 15 flow control to protect the network against bloat. 17 Status of This Memo 19 This Internet-Draft is submitted in full conformance with the 20 provisions of BCP 78 and BCP 79. 22 Internet-Drafts are working documents of the Internet Engineering 23 Task Force (IETF). Note that other groups may also distribute 24 working documents as Internet-Drafts. The list of current Internet- 25 Drafts is at https://datatracker.ietf.org/drafts/current/. 27 Internet-Drafts are draft documents valid for a maximum of six months 28 and may be updated, replaced, or obsoleted by other documents at any 29 time. It is inappropriate to use Internet-Drafts as reference 30 material or to cite them other than as "work in progress." 32 This Internet-Draft will expire on 20 September 2020. 34 Copyright Notice 36 Copyright (c) 2020 IETF Trust and the persons identified as the 37 document authors. All rights reserved. 39 This document is subject to BCP 78 and the IETF Trust's Legal 40 Provisions Relating to IETF Documents (https://trustee.ietf.org/ 41 license-info) in effect on the date of publication of this document. 42 Please review these documents carefully, as they describe your rights 43 and restrictions with respect to this document. Code Components 44 extracted from this document must include Simplified BSD License text 45 as described in Section 4.e of the Trust Legal Provisions and are 46 provided without warranty as described in the Simplified BSD License. 48 Table of Contents 50 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 51 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4 52 2.1. BCP 14 . . . . . . . . . . . . . . . . . . . . . . . . . 4 53 2.2. References . . . . . . . . . . . . . . . . . . . . . . . 4 54 2.3. Other Terms . . . . . . . . . . . . . . . . . . . . . . . 5 55 3. Updating RFC 4944 . . . . . . . . . . . . . . . . . . . . . . 6 56 4. Extending draft-ietf-6lo-minimal-fragment . . . . . . . . . . 6 57 4.1. Slack in the First Fragment . . . . . . . . . . . . . . . 6 58 4.2. Gap between frames . . . . . . . . . . . . . . . . . . . 7 59 4.3. congestion Control . . . . . . . . . . . . . . . . . . . 7 60 4.4. Modifying the First Fragment . . . . . . . . . . . . . . 8 61 5. New Dispatch types and headers . . . . . . . . . . . . . . . 8 62 5.1. Recoverable Fragment Dispatch type and Header . . . . . . 9 63 5.2. RFRAG Acknowledgment Dispatch type and Header . . . . . . 11 64 6. Fragment Recovery . . . . . . . . . . . . . . . . . . . . . . 12 65 6.1. Forwarding Fragments . . . . . . . . . . . . . . . . . . 15 66 6.1.1. Receiving the first fragment . . . . . . . . . . . . 15 67 6.1.2. Receiving the next fragments . . . . . . . . . . . . 16 68 6.2. Receiving RFRAG Acknowledgments . . . . . . . . . . . . . 16 69 6.3. Aborting the Transmission of a Fragmented Packet . . . . 17 70 6.4. Applying Recoverable Fragmentation along a Diverse 71 Path . . . . . . . . . . . . . . . . . . . . . . . . . . 18 72 7. Management Considerations . . . . . . . . . . . . . . . . . . 18 73 7.1. Protocol Parameters . . . . . . . . . . . . . . . . . . . 19 74 7.2. Observing the network . . . . . . . . . . . . . . . . . . 21 75 8. Security Considerations . . . . . . . . . . . . . . . . . . . 22 76 9. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 23 77 10. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 23 78 11. Normative References . . . . . . . . . . . . . . . . . . . . 23 79 12. Informative References . . . . . . . . . . . . . . . . . . . 25 80 Appendix A. Rationale . . . . . . . . . . . . . . . . . . . . . 27 81 Appendix B. Requirements . . . . . . . . . . . . . . . . . . . . 28 82 Appendix C. Considerations on Flow Control . . . . . . . . . . . 29 83 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 30 85 1. Introduction 87 In most Low Power and Lossy Network (LLN) applications, the bulk of 88 the traffic consists of small chunks of data (on the order of a few 89 bytes to a few tens of bytes) at a time. Given that an IEEE Std. 90 802.15.4 [IEEE.802.15.4] frame can carry a payload of 74 bytes or 91 more, fragmentation is usually not required. However, and though 92 this happens only occasionally, a number of mission critical 93 applications do require the capability to transfer larger chunks of 94 data, for instance to support the firmware upgrade of the LLN nodes 95 or the extraction of logs from LLN nodes. 97 In the former case, the large chunk of data is transferred to the LLN 98 node, whereas in the latter, the large chunk flows away from the LLN 99 node. In both cases, the size can be on the order of 10 kilobytes or 100 more and an end-to-end reliable transport is required. 102 "Transmission of IPv6 Packets over IEEE 802.15.4 Networks" [RFC4944] 103 defines the original 6LoWPAN datagram fragmentation mechanism for 104 LLNs. One critical issue with this original design is that routing 105 an IPv6 [RFC8200] packet across a route-over mesh requires the 106 reassembly of the packet at each hop. The "6TiSCH Architecture" 107 [I-D.ietf-6tisch-architecture] indicates that this may cause latency 108 along a path and impact critical resources such as memory and 109 battery; to alleviate those undesirable effects it recommends using a 110 6LoWPAN Fragment Forwarding (6FF) technique . 112 "LLN Minimal Fragment Forwarding" [FRAG-FWD] specifies the generic 113 behavior that all 6FF techniques including this specification follow, 114 and presents the associated caveats. In particular, the routing 115 information is fully indicated in the first fragment, which is always 116 forwarded first. With this specification, the first fragment is 117 identified by a Sequence of 0 as opposed to a dispatch type in 118 [RFC4944]. A state is formed and used to forward all the next 119 fragments along the same path. The Datagram_Tag is locally 120 significant to the Layer-2 source of the packet and is swapped at 121 each hop, more in Section 6. This specification encodes the 122 Datagram_Tag in one byte, which will saturate if more than 256 123 datagrams transit in fragmented form over a single hop at the same 124 time. This is not realistic at the time of this writing. Should 125 this happen in a new 6LoWPAN technology, a node will need to use 126 several Link-Layer addresses to increase its indexing capacity. 128 "Virtual reassembly buffers in 6LoWPAN" [LWIG-FRAG](VRB) proposes a 129 6FF technique that is compatible with [RFC4944] without the need to 130 define a new protocol. However, adding that capability alone to the 131 local implementation of the original 6LoWPAN fragmentation would not 132 address the inherent fragility of fragmentation (see [FRAG-ILE]) in 133 particular the issues of resources locked on the reassembling 134 endpoint and the wasted transmissions due to the loss of a single 135 fragment in a whole datagram. [Kent] compares the unreliable 136 delivery of fragments with a mechanism it calls "selective 137 acknowledgements" that recovers the loss of a fragment individually. 138 The paper illustrates the benefits that can be derived from such a 139 method in figures 1, 2 and 3, on pages 6 and 7. [RFC4944] has no 140 selective recovery and the whole datagram fails when one fragment is 141 not delivered to the reassembling endpoint. Constrained memory 142 resources are blocked on the reassembling endpoint until it times 143 out, possibly causing the loss of subsequent packets that cannot be 144 received for the lack of buffers. 146 That problem is exacerbated when forwarding fragments over multiple 147 hops since a loss at an intermediate hop will not be discovered by 148 either the fragmenting and reassembling endpoints, and the source 149 will keep on sending fragments, wasting even more resources in the 150 network since the datagram cannot arrive in its entirety, and 151 possibly contributing to the condition that caused the loss. 152 [RFC4944] is lacking a congestion control to avoid participating in a 153 saturation that may have caused the loss of the fragment. It has no 154 signaling to abort a multi-fragment transmission at any time and from 155 either end, and, if the capability to forward fragments is 156 implemented, clean up the related state in the network. 158 This specification provides a method to forward fragments over 159 typically a few hops in a route-over 6LoWPAN mesh, and a selective 160 acknowledgment to recover individual fragments between 6LoWPAN 161 endpoints. The method can help limit the congestion loss in the 162 network and addresses the requirements in Appendix B. Flow Control 163 is out of scope since the endpoints are expected to be able to store 164 the full datagram. Deployments are expected to be managed and 165 homogeneous, and an incremental transition requires a flag day. 167 2. Terminology 169 2.1. BCP 14 171 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 172 "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and 173 "OPTIONAL" in this document are to be interpreted as described in BCP 174 14 [RFC2119][RFC8174] when, and only when, they appear in all 175 capitals, as shown here. 177 2.2. References 179 This document uses 6LoWPAN terms and concepts that are presented in 180 "IPv6 over Low-Power Wireless Personal Area Networks (6LoWPANs): 181 Overview, Assumptions, Problem Statement, and Goals" [RFC4919], 182 "Transmission of IPv6 Packets over IEEE 802.15.4 Networks" [RFC4944], 183 and "Problem Statement and Requirements for IPv6 over Low-Power 184 Wireless Personal Area Network (6LoWPAN) Routing" [RFC6606]. 186 "LLN Minimal Fragment Forwarding" [FRAG-FWD] discusses the generic 187 concept of a Virtual Reassembly Buffer (VRB) and specifies behaviors 188 and caveats that are common to a large family of 6FF techniques 189 including the mechanism specified by this document, which fully 190 inherits from that specification. It also defines terms used in this 191 document: Compressed Form, Datagram_Tag, Datagram_Size, 192 Fragment_Offset, and 6LoWPAN Fragment Forwarding endpoint (commonly 193 abbreviated as only "endpoint"). 195 Past experience with fragmentation has shown that misassociated or 196 lost fragments can lead to poor network behavior and, occasionally, 197 trouble at the application layer. The reader is encouraged to read 198 "IPv4 Reassembly Errors at High Data Rates" [RFC4963] and follow the 199 references for more information. That experience led to the 200 definition of "Path MTU discovery" [RFC8201] (PMTUD) protocol that 201 limits fragmentation over the Internet. Specifically in the case of 202 UDP, valuable additional information can be found in "UDP Usage 203 Guidelines for Application Designers" [RFC8085]. 205 "The Benefits of Using Explicit Congestion Notification (ECN)" 206 [RFC8087] provides useful information on the potential benefits and 207 pitfalls of using ECN. 209 Quoting the "Multiprotocol Label Switching (MPLS) Architecture" 210 [RFC3031]: with MPLS, 'packets are "labeled" before they are 211 forwarded' along a Label Switched Path (LSP). At subsequent hops, 212 there is no further analysis of the packet's network layer header. 213 Rather, the label is used as an index into a table which specifies 214 the next hop, and a new label". [FRAG-FWD] leverages MPLS to forward 215 fragments that actually do not have a network layer header, since the 216 fragmentation occurs below IP, and this specification makes it 217 reversible so the reverse path can be followed as well. 219 2.3. Other Terms 221 This specification uses the following terms: 223 RFRAG: Recoverable Fragment 225 RFRAG-ACK: Recoverable Fragment Acknowledgement 227 RFRAG Acknowledgment Request: An RFRAG with the Acknowledgement 228 Request flag ('X' flag) set. 230 NULL bitmap: Refers to a bitmap with all bits set to zero. 232 FULL bitmap: Refers to a bitmap with all bits set to one. 234 Reassembling endpoint: The receiving endpoint 236 Fragmenting endpoint: The sending endpoint 238 Forward direction: The direction of a path, which is followed by the 239 RFRAG. 241 Reverse direction: The reverse direction of a path, which is taken 242 by the RFRAG-ACK. 244 3. Updating RFC 4944 246 This specification updates the fragmentation mechanism that is 247 specified in "Transmission of IPv6 Packets over IEEE 802.15.4 248 Networks" [RFC4944] for use in route-over LLNs by providing a model 249 where fragments can be forwarded end-to-end across a 6LoWPAN LLN, and 250 where fragments that are lost on the way can be recovered 251 individually. A new format for fragments is introduced and new 252 dispatch types are defined in Section 5. 254 [RFC8138] allows modifying the size of a packet en route by removing 255 the consumed hops in a compressed Routing Header. This requires that 256 Fragment_Offset and Datagram_Size (see Section 2.3) are also modified 257 en route, which is difficult to do in the uncompressed form. This 258 specification expresses those fields in the Compressed Form and 259 allows modifying them en route (see Section 4.4) easily. 261 Consistently with Section 2 of [RFC6282], for the fragmentation 262 mechanism described in Section 5.3 of [RFC4944], any header that 263 cannot fit within the first fragment MUST NOT be compressed when 264 using the fragmentation mechanism described in this specification. 266 4. Extending draft-ietf-6lo-minimal-fragment 268 This specification implements the generic 6FF technique defined in 269 "LLN Minimal Fragment Forwarding" [FRAG-FWD], provides end-to-end 270 fragment recovery and congestion control mechanisms. 272 4.1. Slack in the First Fragment 274 [FRAG-FWD] allows for refragmenting in intermediate nodes, meaning 275 that some bytes from a given fragment may be left in the VRB to be 276 added to the next fragment. The need for more space in the outgoing 277 fragment than was needed for the incoming fragment arises when the 278 6LoWPAN Header Compression is not as efficient on the outgoing link 279 or the Link MTU is reduced. 281 This specification cannot allow such a refragmentation operation 282 since the fragments are recovered end-to-end based on a sequence 283 number. The Fragment_Size MUST be tailored to fit the minimal MTU 284 along the path, and the first fragment that contains a 6LoWPAN- 285 compressed header MUST have enough slack to enable a less efficient 286 compression in the next hops to still fits within the Link MTU. If 287 the fragmenting endpoint is also the 6LoWPAN compression endpoint, it 288 will elide the IID of the source IPv6 address if it matches the Link- 289 Layer address [RFC6282]. In a network with a consistent MTU, it MUST 290 compute the Fragment_Size as if the MTU was 8 bytes less, so the next 291 hop can expand the IID within the same fragment. 293 4.2. Gap between frames 295 [FRAG-FWD] requires that a configurable interval of time is inserted 296 between transmissions to the same next hop and in particular between 297 fragments of a same datagram. In the case of half duplex interfaces, 298 this inter-frame gap ensures that the next hop is done forwarding the 299 previous frame and is capable of receiving the next one. 301 In the case of a mesh operating at a single frequency with 302 omnidirectional antennas, a larger inter-frame gap is required to 303 protect the frame against hidden terminal collisions with the 304 previous frame of the same flow that is still progressing along a 305 common path. 307 The inter-frame gap is useful even for unfragmented datagrams, but it 308 becomes a necessity for fragments that are typically generated in a 309 fast sequence and are all sent over the exact same path. 311 4.3. congestion Control 313 The inter-frame gap is the only protection that [FRAG-FWD] imposes by 314 default. This document enables to group fragments in windows and 315 request intermediate acknowledgements so the number of in-flight 316 fragments can be bounded. This document also adds an ECN mechanism 317 that can be used to to protect the network by adapting the size of 318 the window, the size of the fragments, and/or the inter-frame gap. 320 This specification enables the fragmenting endpoint to apply a 321 congestion control mechanism to tune those parameters, but the 322 mechanism itself is out of scope. In most cases, the expectation is 323 that most datagrams will require only a few fragments, and that only 324 the last fragment will be acknowledged. A basic implementation of 325 the fragmenting endpoint is NOT REQUIRED to vary the size of the 326 window, the duration of the inter-frame gap or the size of a fragment 327 in the middle of the transmission of a datagram, and it MAY ignore 328 the ECN signal or simply reset the window to 1 (see Appendix C for 329 more) until the end of this datagram upon detecting a congestion. 331 An intermediate node that experiences a congestion MAY set the ECN 332 bit in a fragment, and the reassembling endpoint echoes the ECN bit 333 at most once at the next opportunity to acknowledge back. 335 The size of the fragments is typically computed from the Link MTU to 336 maximize the size of the resulting frames. The size of the window 337 and the duration of the inter-frame gap SHOULD be configurable, to 338 reduce the chances of congestion and to follow the general 339 recommendations in [FRAG-FWD], respectively. 341 4.4. Modifying the First Fragment 343 The compression of the Hop Limit, of the source and destination 344 addresses in the IPv6 Header, and of the Routing Header may change en 345 route in a Route-Over mesh LLN. If the size of the first fragment is 346 modified, then the intermediate node MUST adapt the Datagram_Size, 347 encoded in the Fragment_Size field, to reflect that difference. 349 The intermediate node MUST also save the difference of Datagram_Size 350 of the first fragment in the VRB and add it to the Fragment_Offset of 351 all the subsequent fragments that it forwards for that datagram. 353 5. New Dispatch types and headers 355 This document specifies an alternative to the 6LoWPAN fragmentation 356 sublayer [RFC4944] to emulate an Link MTU up to 2048 bytes for the 357 upper layer, which can be the 6LoWPAN Header Compression sublayer 358 that is defined in the "Compression Format for IPv6 Datagrams" 359 [RFC6282] specification. This specification also provides a reliable 360 transmission of the fragments over a multihop 6LoWPAN route-over mesh 361 network and a minimal congestion control to reduce the chances of 362 congestion loss. 364 A 6LoWPAN Fragment Forwarding [FRAG-FWD] technique derived from MPLS 365 enables the forwarding of individual fragments across a 6LoWPAN 366 route-over mesh without reassembly at each hop. The Datagram_Tag is 367 used as a label; it is locally unique to the node that owns the 368 source Link-Layer address of the fragment, so together the Link-Layer 369 address and the label can identify the fragment globally within the 370 lifetime of the datagram. A node may build the Datagram_Tag in its 371 own locally-significant way, as long as the chosen Datagram_Tag stays 372 unique to the particular datagram for its lifetime. The result is 373 that the label does not need to be globally unique but also that it 374 must be swapped at each hop as the source Link-Layer address changes. 376 In the following sections, a "Datagram_Tag" extends the semantics 377 defined in [RFC4944] Section 5.3."Fragmentation Type and Header". 378 The Datagram_Tag is a locally unique identifier for the datagram from 379 the perspective of the sender. This means that the Datagram_Tag 380 identifies a datagram uniquely in the network when associated with 381 the source of the datagram. As the datagram gets forwarded, the 382 source changes and the Datagram_Tag must be swapped as detailed in 383 [FRAG-FWD]. 385 This specification extends RFC 4944 [RFC4944] with 2 new Dispatch 386 types, for Recoverable Fragment (RFRAG) and for the RFRAG 387 Acknowledgment back. The new 6LoWPAN Dispatch types are taken from 388 Page 0 [RFC8025] as indicated in Table 1 in Section 9. 390 5.1. Recoverable Fragment Dispatch type and Header 392 In this specification, if the packet is compressed then the size and 393 offset of the fragments are expressed with respect to the Compressed 394 Form of the packet form as opposed to the uncompressed (native) form. 396 The format of the fragment header is shown in Figure 1. It is the 397 same for all fragments though the Fragment_Offset is overloaded. The 398 format has a length and an offset, as well as a Sequence field. This 399 would be redundant if the offset was computed as the product of the 400 Sequence by the length, but this is not the case. The position of a 401 fragment in the reassembly buffer is neither correlated with the 402 value of the Sequence field nor with the order in which the fragments 403 are received. This enables refragmenting to cope with an MTU 404 deduction, see the example of the fragment seq. 5 that is retried 405 end-to-end as smaller fragments seq. 13 and 14 in Section 6.2. 407 The first fragment is recognized by a Sequence of 0; it carries its 408 Fragment_Size and the Datagram_Size of the compressed packet before 409 it is fragmented, whereas the other fragments carry their 410 Fragment_Size and Fragment_Offset. The last fragment for a datagram 411 is recognized when its Fragment_Offset and its Fragment_Size add up 412 to the stored Datagram_Size of the packet identified by the sender 413 Link-Layer address and the Datagram_Tag. 415 1 2 3 416 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 417 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 418 |1 1 1 0 1 0 0|E| Datagram_Tag | 419 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 420 |X| Sequence| Fragment_Size | Fragment_Offset | 421 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 423 X set == Ack-Request 425 Figure 1: RFRAG Dispatch type and Header 427 X: 1 bit; Ack-Request: when set, the fragmenting endpoint requires 428 an RFRAG Acknowledgment from the reassembling endpoint. 430 E: 1 bit; Explicit Congestion Notification; the "E" flag is cleared 431 by the source of the fragment and set by intermediate routers to 432 signal that this fragment experienced congestion along its path. 434 Fragment_Size: 10-bit unsigned integer; the size of this fragment in 435 a unit that depends on the Link-Layer technology. Unless 436 overridden by a more specific specification, that unit is the 437 byte, which allows fragments up to 1024 bytes. 439 Datagram_Tag: 8 bits; an identifier of the datagram that is locally 440 unique to the Link-Layer sender. 442 Sequence: 5-bit unsigned integer; the sequence number of the 443 fragment in the acknowledgement bitmap. Fragments are numbered 444 [0..N] where N is in [0..31]. A Sequence of 0 indicates the first 445 fragment in a datagram, but non-zero values are not indicative of 446 the position in the reassembly buffer. 448 Fragment_Offset: 16-bit unsigned integer. 450 When the Fragment_Offset is set to a non-0 value, its semantics 451 depend on the value of the Sequence field as follows: 453 * For a first fragment (i.e., with a Sequence of 0), this field 454 indicates the Datagram_Size of the compressed datagram, to help 455 the reassembling endpoint allocate an adapted buffer for the 456 reception and reassembly operations. The fragment may be 457 stored for local reassembly. Alternatively, it may be routed 458 based on the destination IPv6 address. In that case, a VRB 459 state must be installed as described in Section 6.1.1. 460 * When the Sequence is not 0, this field indicates the offset of 461 the fragment in the Compressed Form of the datagram. The 462 fragment may be added to a local reassembly buffer or forwarded 463 based on an existing VRB as described in Section 6.1.2. 465 A Fragment_Offset that is set to a value of 0 indicates an abort 466 condition and all state regarding the datagram should be cleaned 467 up once the processing of the fragment is complete; the processing 468 of the fragment depends on whether there is a VRB already 469 established for this datagram, and the next hop is still 470 reachable: 472 * if a VRB already exists and the next hop is still reachable, 473 the fragment is to be forwarded along the associated Label 474 Switched Path (LSP) as described in Section 6.1.2, without 475 checking the value of the Sequence field; 476 * else, if the Sequence is 0, then the fragment is to be routed 477 as described in Section 6.1.1, but no state is conserved 478 afterwards. In that case, the session if it exists is aborted 479 and the packet is also forwarded in an attempt to clean up the 480 next hops along the path indicated by the IPv6 header (possibly 481 including a routing header). 482 * else (the Sequence is nonzero and either no VRB exists or the 483 next hop is unavailable), the fragment cannot be forwarded or 484 routed; the fragment is discarded and an abort RFRAG-ACK is 485 sent back to the source as described in Section 6.1.2. 487 There is no requirement on the reassembling endpoint to check that 488 the received fragments are consecutive and non-overlapping. The 489 fragmenting endpoint knows that the datagram is fully received when 490 the acknowledged fragments cover the whole datagram, which is always 491 the case with a FULL bitmap. This may be useful in particular in the 492 case where the MTU changes and a fragment Sequence is retried with a 493 smaller Fragment_Size, the remainder of the original fragment being 494 retried with new Sequence values. 496 Recoverable Fragments are sequenced and a bitmap is used in the RFRAG 497 Acknowledgment to indicate the received fragments by setting the 498 individual bits that correspond to their sequence. 500 5.2. RFRAG Acknowledgment Dispatch type and Header 502 This specification also defines a 4-byte RFRAG Acknowledgment bitmap 503 that is used by the reassembling endpoint to confirm selectively the 504 reception of individual fragments. A given offset in the bitmap maps 505 one-to-one with a given sequence number and indicates which fragment 506 is acknowledged as follows: 508 1 2 3 509 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 510 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 511 | RFRAG Acknowledgment Bitmap | 512 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 513 ^ ^ 514 | | bitmap indicating whether: 515 | +----- Fragment with Sequence 9 was received 516 +----------------------- Fragment with Sequence 0 was received 518 Figure 2: RFRAG Acknowledgment Bitmap Encoding 520 Figure 3 shows an example Acknowledgment bitmap which indicates that 521 all fragments from Sequence 0 to 20 were received, except for 522 fragments 1, 2 and 16 were lost and must be retried. 524 1 2 3 525 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 526 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 527 |1|0|0|1|1|1|1|1|1|1|1|1|1|1|1|1|0|1|1|1|1|0|0|0|0|0|0|0|0|0|0|0| 528 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 530 Figure 3: Example RFRAG Acknowledgment Bitmap 532 The RFRAG Acknowledgment Bitmap is included in an RFRAG 533 Acknowledgment header, as follows: 535 1 2 3 536 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 537 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 538 |1 1 1 0 1 0 1|E| Datagram_Tag | 539 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 540 | RFRAG Acknowledgment Bitmap (32 bits) | 541 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 543 Figure 4: RFRAG Acknowledgment Dispatch type and Header 545 E: 1 bit; Explicit Congestion Notification Echo 547 When set, the fragmenting endpoint indicates that at least one of 548 the acknowledged fragments was received with an Explicit 549 Congestion Notification, indicating that the path followed by the 550 fragments is subject to congestion. More in Appendix C. 552 Datagram_Tag: 8 bits; an identifier of the datagram that is locally 553 unique to the Link-Layer recipient. 555 RFRAG Acknowledgment Bitmap: An RFRAG Acknowledgment Bitmap, whereby 556 setting the bit at offset x indicates that fragment x was 557 received, as shown in Figure 2. A NULL bitmap indicates that the 558 fragmentation process is aborted. A FULL bitmap indicates that 559 the fragmentation process is complete; all fragments were received 560 at the reassembly endpoint. 562 6. Fragment Recovery 564 The Recoverable Fragment header RFRAG is used to transport a fragment 565 and optionally request an RFRAG Acknowledgment RFRAG_ACK that 566 confirms the reception of one or more fragments. An RFRAG_ACK is 567 carried as a standalone fragment header (i.e., with no 6LoWPAN 568 payload) in a message that is propagated back to the fragmenting 569 endpoint. To achieve this, each hop that performed an MPLS-like 570 operation on fragments reverses that operation for the RFRAG_ACK by 571 sending a frame from the next hop to the previous hop as known by its 572 Link-Layer address in the VRB. The Datagram_Tag in the RFRAG_ACK is 573 unique to the reassembling endpoint and is enough information for an 574 intermediate hop to locate the VRB that contains the Datagram_Tag 575 used by the previous hop and the Layer-2 information associated with 576 it (interface and Link-Layer address). 578 The fragmenting endpoint (i.e., the node fragments the packets at the 579 6LoWPAN level) also controls the number of acknowledgments by setting 580 the Ack-Request flag in the RFRAG packets. 582 The fragmenting endpoint may set the Ack-Request flag on any fragment 583 to perform congestion control by limiting the number of outstanding 584 fragments, which are the fragments that have been sent but for which 585 reception or loss was not positively confirmed by the reassembling 586 endpoint. The maximum number of outstanding fragments is controlled 587 by the Window-Size. It is configurable and may vary in case of ECN 588 notification. When the endpoint that reassembles the packets at the 589 6LoWPAN level receives a fragment with the Ack-Request flag set, it 590 MUST send an RFRAG_ACK back to the originator to confirm reception of 591 all the fragments it has received so far. 593 The Ack-Request ('X') set in an RFRAG marks the end of a window. 594 This flag MUST be set on the last fragment if the fragmenting 595 endpoint wishes to perform an automatic repeat request (ARQ) process 596 for the datagram, and it MAY be set in any intermediate fragment for 597 the purpose of congestion control. 599 This ARQ process MUST be protected by a Retransmission Time Out (RTO) 600 timer, and the fragment that carries the 'X' flag MAY be retried upon 601 a time out for a configurable number of times (see Section 7.1) with 602 an exponential backoff. Upon exhaustion of the retries the 603 fragmenting endpoint may either abort the transmission of the 604 datagram or resend the first fragment with an 'X' flag set in order 605 to establish a new path for the datagram and obtain the list of 606 fragments that were received over the old path in the acknowledgment 607 bitmap. When the knows that an underlying link-layer mechanism 608 protects the fragments, it may refrain from using the RFRAG 609 Acknowledgment mechanism, and never set the Ack-Request bit. 611 The reassembling endpoint MAY issue unsolicited acknowledgments. An 612 unsolicited acknowledgment signals to the fragmenting endpoint that 613 it can resume sending in case it has reached its maximum number of 614 outstanding fragments. Another use is to inform the fragmenting 615 endpoint that the reassembling endpoint aborted the processing of an 616 individual datagram. 618 The RFRAG Acknowledgment carries an ECN indication for congestion 619 control (see Appendix C). The reassembling endpoint of a fragment 620 with the 'E' (ECN) flag set MUST echo that information at most once 621 by setting the 'E' (ECN) flag in the next RFRAG_ACK. 623 In order to protect the datagram, the fragmenting endpoint transfers 624 a controlled number of fragments and flags the last fragment of a 625 window with an RFRAG Acknowledgment Request. The reassembling 626 endpoint MUST acknowledge a fragment with the acknowledgment request 627 bit set. If any fragment immediately preceding an acknowledgment 628 request is still missing, the reassembling endpoint MAY intentionally 629 delay its acknowledgment to allow in-transit fragments to arrive. 631 Because it might defeat the round-trip time computation, delaying the 632 acknowledgment should be configurable and not enabled by default. 634 When enough fragments are received to cover the whole datagram, the 635 reassembling endpoint reconstructs the packet, passes it to the upper 636 layer, sends an RFRAG_ACK on the reverse path with a FULL bitmap, and 637 arms a short timer, e.g., on the order of an average round-trip time 638 in the network. The FULL bitmap is used as opposed to a bitmap that 639 acknowledges only the received fragments to let the intermediate 640 nodes know that the datagram is fully received. As the timer runs, 641 the reassembling endpoint absorbs the fragments that were still in 642 flight for that datagram without creating a new state, acknowledging 643 the ones that that bear an Ack-Request with an FRAG Acknowledgment 644 and the FULL bitmap. The reassembling endpoint aborts the 645 communication if fragments with matching source and Datagram-Tag 646 continue to be received after the timer expires. 648 Note that acknowledgments might consume precious resources so the use 649 of unsolicited acknowledgments SHOULD be configurable and not enabled 650 by default. 652 An observation is that streamlining forwarding of fragments generally 653 reduces the latency over the LLN mesh, providing room for retries 654 within existing upper-layer reliability mechanisms. The fragmenting 655 endpoint protects the transmission over the LLN mesh with a retry 656 timer that is configured for a use case and may be adapted 657 dynamically, e.g., according to the method detailed in [RFC6298]. It 658 is expected that the upper layer retries obey the recommendations in 659 [RFC8085], in which case a single round of fragment recovery should 660 fit within the upper layer recovery timers. 662 Fragments MUST be sent in a round-robin fashion: the sender MUST send 663 all the fragments for a first time before it retries any lost 664 fragment; lost fragments MUST be retried in sequence, oldest first. 665 This mechanism enables the receiver to acknowledge fragments that 666 were delayed in the network before they are retried. 668 When a single radio frequency is used by contiguous hops, the 669 fragmenting endpoint SHOULD insert a delay between the frames (e.g., 670 carrying fragments) that are sent to the same next hop. The delay 671 SHOULD cover multiple transmissions so as to let a frame progress a 672 few hops and avoid hidden terminal issues. This precaution is not 673 required on channel hopping technologies such as Time Slotted Channel 674 Hopping (TSCH) [RFC6554], where nodes that communicate at Layer-2 are 675 scheduled to send and receive respectively, and different hops 676 operate on different channels. 678 6.1. Forwarding Fragments 680 This specification inherits from [FRAG-FWD] and proposes a Virtual 681 Reassembly technique to forward fragments with no intermediate 682 reconstruction of the entire datagram. 684 The IPv6 Header MUST be placed in full in the first fragment to 685 enable the routing decision. The first fragment is routed and 686 creates an LSP from the fragmenting endpoint to the reassembling 687 endpoint. The next fragments are label-switched along that LSP. As 688 a consequence, the next fragments can only follow the path that was 689 set up by the first fragment and cannot follow an alternate route. 690 The Datagram_Tag is used to carry the label, which is swapped in each 691 hop. 693 If the first fragment is too large for the path MTU, it will 694 repeatedly fail and never establish an LSP. In that case, the 695 fragmenting endpoint MAY retry the same datagram with a smaller 696 Fragment_Size, in which case it MUST abort the original attempt and 697 use a new Datagram_Tag for the new attempt. 699 6.1.1. Receiving the first fragment 701 In Route-Over mode, the source and destination Link-Layer addresses 702 in a frame change at each hop. The label that is formed and placed 703 in the Datagram_Tag by the sender is associated with the source Link- 704 Layer address and only valid (and temporarily unique) for that source 705 Link-Layer address. 707 Upon receiving the first fragment (i.e., with a Sequence of 0), an 708 intermediate router creates a VRB and the associated LSP state 709 indexed by the incoming interface, the previous-hop Link-Layer 710 address, and the Datagram_Tag, and forwards the fragment along the 711 IPv6 route that matches the destination IPv6 address in the IPv6 712 header until it reaches the reassembling endpoint, as prescribed by 713 [FRAG-FWD]. The LSP state enables to match the next incoming 714 fragments of a datagram to the abstract forwarding information of 715 next interface, source and next-hop Link-Layer addresses, and swapped 716 Datagram_Tag. 718 In addition, the router also forms a reverse LSP state indexed by the 719 interface to the next hop, the Link-Layer address the router uses as 720 source for that datagram, and the swapped Datagram_Tag. This reverse 721 LSP state enables matching the tuple (interface, destination Link- 722 Layer address, Datagram_Tag) found in an RFRAG_ACK to the abstract 723 forwarding information (previous interface, previous Link-Layer 724 address, Datagram_Tag) used to forward the RFRAG-ACK back to the 725 fragmenting endpoint. 727 6.1.2. Receiving the next fragments 729 Upon receiving the next fragment (i.e., with a non-zero Sequence), an 730 intermediate router looks up a LSP indexed by the tuple (incoming 731 interface, previous-hop Link-Layer address, Datagram_Tag) found in 732 the fragment. If it is found, the router forwards the fragment using 733 the associated VRB as prescribed by [FRAG-FWD]. 735 If the VRB for the tuple is not found, the router builds an RFRAG-ACK 736 to abort the transmission of the packet. The resulting message has 737 the following information: 739 * The source and destination Link-Layer addresses are swapped from 740 those found in the fragment and the same interface is used 741 * The Datagram_Tag is set to the Datagram_Tag found in the fragment 742 * A NULL bitmap is used to signal the abort condition 744 At this point the router is all set and can send the RFRAG-ACK back 745 to the previous router. The RFRAG-ACK should normally be forwarded 746 all the way to the source using the reverse LSP state in the VRBs in 747 the intermediate routers as described in the next section. 749 [FRAG-FWD] indicates that the reassembling endpoint stores "the 750 actual packet data from the fragments received so far, in a form that 751 makes it possible to detect when the whole packet has been received 752 and can be processed or forwarded". How this is computed is 753 implementation specific but relies on receiving all the bytes up to 754 the Datagram_Size indicated in the first fragment. An implementation 755 may receive overlapping fragments as the result of retries after an 756 MTU change. 758 6.2. Receiving RFRAG Acknowledgments 760 Upon receipt of an RFRAG-ACK, the router looks up a reverse LSP 761 indexed by the interface and destination Link-Layer address of the 762 received frame and the received Datagram_Tag in the RFRAG-ACK. If it 763 is found, the router forwards the fragment using the associated VRB 764 as prescribed by [FRAG-FWD], but using the reverse LSP so that the 765 RFRAG-ACK flows back to the fragmenting endpoint. 767 If the reverse LSP is not found, the router MUST silently drop the 768 RFRAG-ACK message. 770 Either way, if the RFRAG-ACK indicates that the fragment was entirely 771 received (FULL bitmap), it arms a short timer, and upon timeout, the 772 VRB and all the associated state are destroyed. Until the timer 773 elapses, fragments of that datagram may still be received, e.g. if 774 the RFRAG-ACK was lost on the path back and the source retried the 775 last fragment. In that case, the router generates an RFRAG-ACK with 776 a FULL bitmap back to the fragmenting endpoint if an acknowledgement 777 was requested, else it silently drops the fragment. 779 This specification does not provide a method to discover the number 780 of hops or the minimal value of MTU along those hops. In a typical 781 case, the MTU is constant and the same across the network. But 782 should the minimal MTU along the path decrease, it is possible to 783 retry a long fragment (say Sequence of 5) with several shorter 784 fragments with a Sequence that was not used before (e.g., 13 and 14). 785 Fragment 5 is marked as abandoned and will not be retried anymore. 786 Note that when this mechanism is in place, it is hard to predict the 787 total number of fragments that will be needed or the final shape of 788 the bitmap that would cover the whole packet. This is why the FULL 789 bitmap is used when the reassembling endpoint gets the whole datagram 790 regardless of which fragments were actually used to do so. 791 Intermediate nodes will unabiguously know that the process is 792 complete. Note that Path MTU Discovery is out of scope for this 793 document. 795 6.3. Aborting the Transmission of a Fragmented Packet 797 A reset is signaled on the forward path with a pseudo fragment that 798 has the Fragment_Offset set to 0. The sender of a reset SHOULD also 799 set the Sequence and Fragment_Size field to 0. 801 When the fragmenting endpoint or a router on the path decides that a 802 packet should be dropped and the fragmentation process aborted, it 803 generates a reset pseudo fragment and forwards it down the fragment 804 path. 806 Each router next along the path the way forwards the pseudo fragment 807 based on the VRB state. If an acknowledgment is not requested, the 808 VRB and all associated state are destroyed. 810 Upon reception of the pseudo fragment, the reassembling endpoint 811 cleans up all resources for the packet associated with the 812 Datagram_Tag. If an acknowledgment is requested, the reassembling 813 endpoint responds with a NULL bitmap. 815 The other way around, the reassembling endpoint might need to abort 816 the processing of a fragmented packet for internal reasons, for 817 instance if it is out of reassembly buffers, already uses all 256 818 possible values of the Datagram_Tag, or if it keeps receiving 819 fragments beyond a reasonable time while it considers that this 820 packet is already fully reassembled and was passed to the upper 821 layer. In that case, the reassembling endpoint SHOULD indicate so to 822 the fragmenting endpoint with a NULL bitmap in an RFRAG_ACK. 824 The RFRAG_ACK is forwarded all the way back to the source of the 825 packet and cleans up all resources on the path. Upon an 826 acknowledgment with a NULL bitmap, the fragmenting endpoint MUST 827 abort the transmission of the fragmented datagram with one exception: 828 In the particular case of the first fragment, it MAY decide to retry 829 via an alternate next hop instead. 831 6.4. Applying Recoverable Fragmentation along a Diverse Path 833 The text above can be read with the assumption of a serial path 834 between a source and a destination. Section 4.5.3 of the "6TiSCH 835 Architecture" [I-D.ietf-6tisch-architecture] defines the concept of a 836 Track that can be a complex path between a source and a destination 837 with Packet ARQ, Replication, Elimination and Overhearing (PAREO) 838 along the Track. This specification can be used along any subset of 839 the complex Track where the first fragment is flooded. The last 840 RFRAG Acknowledgment is flooded on that same subset in the reverse 841 direction. Intermediate RFRAG Acknowledgments can be flooded on any 842 sub-subset of that reverse subset that reach back to the source. 844 7. Management Considerations 846 This specification extends "On Forwarding 6LoWPAN Fragments over a 847 Multihop IPv6 Network" [FRAG-FWD] and requires the same parameters in 848 the reassembling endpoint and on intermediate nodes. There is no new 849 parameter as echoing ECN is always on. These parameters typically 850 include the reassembly timeout at the reassembling endpoint and an 851 inactivity clean-up timer on the intermediate nodes, and the number 852 of messages that can be processed in parallel in all nodes. 854 The configuration settings introduced by this specification only 855 apply to the fragmenting endpoint, which is in full control of the 856 transmission. LLNs vary a lot in size (there can be thousands of 857 nodes in a mesh), in speed (from 10 Kbps to several Mbps at the PHY 858 layer), in traffic density, and in optimizations that are desired 859 (e.g., the selection of a RPL [RFC6550] Objective Function [RFC6552] 860 impacts the shape of the routing graph). 862 For that reason, only a very generic guidance can be given on the 863 settings of the fragmenting endpoint and on whether complex 864 algorithms are needed to perform congestion control or estimate the 865 round-trip time. To cover the most complex use cases, this 866 specification enables the fragmenting endpoint to vary the fragment 867 size, the window size, and the inter-frame gap, based on the number 868 of losses, the observed variations of the round-trip time and the 869 setting of the ECN bit. 871 7.1. Protocol Parameters 873 The management system SHOULD be capable of providing the parameters 874 listed in this section and an implementation MUST abide by those 875 parameters and in particular never exceed the minimum and maximum 876 configured boundaries. 878 An implementation must control the rate at which it sends packets 879 over the same path to allow the next hop to forward a packet before 880 it gets the next. In a wireless network that uses the same frequency 881 along a path, more time must be inserted to avoid hidden terminal 882 issues between fragments (more in Section 4.2). An implementation 883 should consider the generic recommendations from the IETF in the 884 matter of congestion control and rate management in [RFC5033]. An 885 implementation may perform a congestion control by using a dynamic 886 value of the window size (Window_Size), adapting the fragment size 887 (Fragment_Size), and may reduce the load by inserting an inter-frame 888 gap that is longer than necessary. In a large network where nodes 889 contend for the bandwidth, a larger Fragment_Size consumes less 890 bandwidth but also reduces fluidity and incurs higher chances of loss 891 in transmission. 893 This is controlled by the following parameters: 895 inter-frame gap: Indicates the minimum amount of time between 896 transmissions. The inter-frame gap protects the propagation of 897 one transmission before the next one is triggered and creates a 898 duty cycle that controls the ratio of air time and memory in 899 intermediate nodes that a particular datagram will use. The 900 inter-frame gap controls the rate at which fragments are sent and 901 SHOULD be selected large enough to protect the network. 903 MinFragmentSize: The MinFragmentSize is the minimum value for the 904 Fragment_Size. It MUST be lower than the minimum value of 905 smallest 1-hop MTU that can be encountered along the path. 907 OptFragmentSize: The OptFragmentSize is the value for the 908 Fragment_Size that the fragmenting endpoint should use to start 909 with. It is greater than or equal to MinFragmentSize. It is less 910 than or equal to MaxFragmentSize. For the first fragment, it must 911 account for the expansion of the IPv6 addresses and of the Hop 912 Limit field within MTU. For all fragments, it is a balance 913 between the expected fluidity and the overhead of Link-Layer and 914 6LoWPAN headers. For a small MTU, the idea is to keep it close to 915 the maximum, whereas for larger MTUs, it might makes sense to keep 916 it short enough, so that the duty cycle of the transmitter is 917 bounded, e.g., to transmit at least 10 frames per second. 919 MaxFragmentSize: The MaxFragmentSize is the maximum value for the 920 Fragment_Size. It MUST be lower than the maximum value of 921 smallest 1-hop MTU that can be encountered along the path. A 922 large value augments the chances of buffer bloat and transmission 923 loss. The value MUST be less than 512 if the unit that is defined 924 for the PHY layer is the byte. 926 Window_Size: The Window_Size MUST be at least 1 and less than 33. 928 * If the round-trip time is known, the Window_Size SHOULD be set 929 to the round-trip time divided by the time per fragment, that 930 is the time to transmit a fragment plus the inter-frame gap. 932 Otherwise: 934 * Setting the window_size to 32 is to be understood as only the 935 last Fragment is acknowledged in each round. This is the 936 RECOMMENDED value in a half-duplex LLN where the fragment 937 acknowledgement consumes roughly the same bandwidth on the same 938 links as the fragments themselves 940 * If it is set to a smaller value, more acks are generated. In a 941 full-duplex network, the load on the forward path will be 942 lower, and a small value of 3 SHOULD be configured. 944 An implementation may perform its estimate of the RTO or use a 945 configured one. The ARQ process is controlled by the following 946 parameters: 948 MinARQTimeOut: The minimum amount of time a node should wait for an 949 RFRAG Acknowledgment before it takes the next action. It MUST be 950 more than the maximum expected round-trip time in the respective 951 network. 953 OptARQTimeOut: The initial value of the RTO, which is the amount of 954 time that a fragmenting endpoint should wait for an RFRAG 955 Acknowledgment before it takes the next action. It is greater 956 than or equal to MinARQTimeOut. It is less than or equal to 957 MaxARQTimeOut. See Appendix C for recommendations on computing 958 the round-trip time. By default a value of 3 times the maximum 959 expected round-trip time in the respective network is RECOMMENDED. 961 MaxARQTimeOut: The maximum amount of time a node should wait for the 962 RFRAG Acknowledgment before it takes the next action. It must 963 cover the longest expected round-trip time, and be several times 964 less than the timeout that covers the recomposition buffer at the 965 reassembling endpoint, which is typically on the order of the 966 minute. An upper bound can be estimated to ensure that the 967 datagram is either fully transmitted or dropped before an upper 968 layer decides to retry it. 970 MaxFragRetries: The maximum number of retries for a particular 971 fragment. A default value of 3 is RECOMMENDED. An upper bound 972 can be estimated to ensure that the datagram is either fully 973 transmitted or dropped before an upper layer decides to retry it. 975 MaxDatagramRetries: The maximum number of retries from scratch for a 976 particular datagram. A default value of 1 is RECOMMENDED. An 977 upper bound can be estimated to ensure that the datagram is either 978 fully transmitted or dropped before an upper layer decides to 979 retry it. 981 An implementation may be capable of performing flow control based on 982 ECN; see in Appendix C. This is controlled by the following 983 parameter: 985 UseECN: Indicates whether the fragmenting endpoint should react to 986 ECN. The fragmenting endpoint may react to ECN by varying the 987 Window_Size between MinWindowSize and MaxWindowSize, varying the 988 Fragment_Size between MinFragmentSize and MaxFragmentSize, and/or 989 by increasing or reducing the inter-frame gap. With this 990 specification, if UseECN is set and a fragmenting endpoint detects 991 a congestion, it may apply a congestion control method until the 992 end of the datagram, whereas if UseECN is reset, the endpoint does 993 not react to congestion. Future specifications may provide 994 additional parameters and capabilities. 996 7.2. Observing the network 998 The management system should monitor the number of retries and of ECN 999 settings that can be observed from the perspective of both the 1000 fragmenting endpoint and the reassembling endpoint with regards to 1001 the other endpoint. It may then tune the optimum size of 1002 Fragment_Size and of Window_Size, OptFragmentSize, and OptWindowSize, 1003 respectively, at the fragmenting endpoint towards a particular 1004 reassembling endpoint, applicable to the next datagrams. It will 1005 preferably tune the inter-frame gap to increase the spacing between 1006 fragments of the same datagram and reduce the reduce the buffer bloat 1007 in intermediate node that holds one or more fragments of that 1008 datagram. 1010 8. Security Considerations 1012 This document specifies an instantiation of a 6FF technique and 1013 inherits from the generic description in [FRAG-FWD]. The 1014 considerations in the Security Section of [FRAG-FWD] equally apply to 1015 this document. 1017 In addition to the threats detailed therein, an attacker that is on- 1018 path can prematurely end the transmission of a datagram by sending a 1019 RFRAG Acknowledgment to the fragmenting endpoint. It can also cause 1020 extra transmissions of fragments by resetting bits in the RFRAG 1021 Acknowledgment bitmap, and of RFRAG Acknowledgments by forcing the 1022 Ack-Request bit in fragments that it forwards. 1024 As indicated in [FRAG-FWD], Secure joining and the Link-Layer 1025 security are REQUIRED to protect against those attacks, as the 1026 fragmentation protocol does not include any native security 1027 mechanisms. 1029 This specification does not recommend a particular algorithm for the 1030 estimation of the duration of the RTO that covers the detection of 1031 the loss of a fragment with the 'X' flag set; regardless, an attacker 1032 on the path may slow down or discard packets, which in turn can 1033 affect the throughput of fragmented packets. 1035 Compared to "Transmission of IPv6 Packets over IEEE 802.15.4 1036 Networks" [RFC4944], this specification reduces the Datagram_Tag to 8 1037 bits and the tag wraps faster than with [RFC4944]. But for a 1038 constrained network where a node is expected to be able to hold only 1039 one or a few large packets in memory, 256 is still a large number. 1040 Also, the acknowledgement mechanism allows cleaning up the state 1041 rapidly once the packet is fully transmitted or aborted. 1043 The abstract Virtual Recovery Buffer inherited from [FRAG-FWD] may be 1044 used to perform a Denial-of-Service (DoS) attack against the 1045 intermediate Routers since the routers need to maintain a state per 1046 flow. The particular VRB implementation technique described in 1047 [LWIG-FRAG] allows realigning which data goes in which fragment, 1048 which causes the intermediate node to store a portion of the data, 1049 which adds an attack vector that is not present with this 1050 specification. With this specification, the data that is transported 1051 in each fragment is conserved and the state to keep does not include 1052 any data that would not fit in the previous fragment. 1054 9. IANA Considerations 1056 This document allocates 2 patterns for a total of 4 dispatch values 1057 in Page 0 for recoverable fragments from the "Dispatch Type Field" 1058 registry that was created by "Transmission of IPv6 Packets over IEEE 1059 802.15.4 Networks" [RFC4944] and reformatted by "6LoWPAN Paging 1060 Dispatch" [RFC8025]. 1062 The suggested patterns (to be confirmed by IANA) are indicated in 1063 Table 1. 1065 +-------------+------+----------------------------------+-----------+ 1066 | Bit Pattern | Page | Header Type | Reference | 1067 +=============+======+==================================+===========+ 1068 | 11 10100x | 0 | RFRAG - Recoverable Fragment | THIS RFC | 1069 +-------------+------+----------------------------------+-----------+ 1070 | 11 10100x | 1-14 | Unassigned | | 1071 +-------------+------+----------------------------------+-----------+ 1072 | 11 10100x | 15 | Reserved for Experimental Use | RFC 8025 | 1073 +-------------+------+----------------------------------+-----------+ 1074 | 11 10101x | 0 | RFRAG-ACK - RFRAG | THIS RFC | 1075 | | | Acknowledgment | | 1076 +-------------+------+----------------------------------+-----------+ 1077 | 11 10101x | 1-14 | Unassigned | | 1078 +-------------+------+----------------------------------+-----------+ 1079 | 11 10101x | 15 | Reserved for Experimental Use | RFC 8025 | 1080 +-------------+------+----------------------------------+-----------+ 1082 Table 1: Additional Dispatch Value Bit Patterns 1084 10. Acknowledgments 1086 The author wishes to thank Michel Veillette, Dario Tedeschi, Laurent 1087 Toutain, Carles Gomez Montenegro, Thomas Watteyne, and Michael 1088 Richardson for in-depth reviews and comments. Also many thanks to 1089 Roman Danyliw, Peter Yee, Colin Perkins, Tirumaleswar Reddy Konda, 1090 Eric Vyncke, Warren Kumari, Magnus Westerlund, Erik Nordmark, and 1091 especially Benjamin Kaduk and Mirja Kuhlewind for their careful 1092 reviews and for helping through the IETF Last Call and IESG review 1093 process, and to Jonathan Hui, Jay Werb, Christos Polyzois, Soumitri 1094 Kolavennu, Pat Kinney, Margaret Wasserman, Richard Kelsey, Carsten 1095 Bormann, and Harry Courtice for their various contributions in the 1096 long process that lead to this document. 1098 11. Normative References 1100 [RFC6298] Paxson, V., Allman, M., Chu, J., and M. Sargent, 1101 "Computing TCP's Retransmission Timer", RFC 6298, 1102 DOI 10.17487/RFC6298, June 2011, 1103 . 1105 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 1106 Requirement Levels", BCP 14, RFC 2119, 1107 DOI 10.17487/RFC2119, March 1997, 1108 . 1110 [RFC4944] Montenegro, G., Kushalnagar, N., Hui, J., and D. Culler, 1111 "Transmission of IPv6 Packets over IEEE 802.15.4 1112 Networks", RFC 4944, DOI 10.17487/RFC4944, September 2007, 1113 . 1115 [RFC4919] Kushalnagar, N., Montenegro, G., and C. Schumacher, "IPv6 1116 over Low-Power Wireless Personal Area Networks (6LoWPANs): 1117 Overview, Assumptions, Problem Statement, and Goals", 1118 RFC 4919, DOI 10.17487/RFC4919, August 2007, 1119 . 1121 [RFC6282] Hui, J., Ed. and P. Thubert, "Compression Format for IPv6 1122 Datagrams over IEEE 802.15.4-Based Networks", RFC 6282, 1123 DOI 10.17487/RFC6282, September 2011, 1124 . 1126 [RFC6606] Kim, E., Kaspar, D., Gomez, C., and C. Bormann, "Problem 1127 Statement and Requirements for IPv6 over Low-Power 1128 Wireless Personal Area Network (6LoWPAN) Routing", 1129 RFC 6606, DOI 10.17487/RFC6606, May 2012, 1130 . 1132 [RFC8025] Thubert, P., Ed. and R. Cragie, "IPv6 over Low-Power 1133 Wireless Personal Area Network (6LoWPAN) Paging Dispatch", 1134 RFC 8025, DOI 10.17487/RFC8025, November 2016, 1135 . 1137 [RFC8138] Thubert, P., Ed., Bormann, C., Toutain, L., and R. Cragie, 1138 "IPv6 over Low-Power Wireless Personal Area Network 1139 (6LoWPAN) Routing Header", RFC 8138, DOI 10.17487/RFC8138, 1140 April 2017, . 1142 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 1143 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, 1144 May 2017, . 1146 [RFC8200] Deering, S. and R. Hinden, "Internet Protocol, Version 6 1147 (IPv6) Specification", STD 86, RFC 8200, 1148 DOI 10.17487/RFC8200, July 2017, 1149 . 1151 [FRAG-FWD] Watteyne, T., Thubert, P., and C. Bormann, "On Forwarding 1152 6LoWPAN Fragments over a Multihop IPv6 Network", Work in 1153 Progress, Internet-Draft, draft-ietf-6lo-minimal-fragment- 1154 13, 5 March 2020, . 1157 12. Informative References 1159 [RFC8201] McCann, J., Deering, S., Mogul, J., and R. Hinden, Ed., 1160 "Path MTU Discovery for IP version 6", STD 87, RFC 8201, 1161 DOI 10.17487/RFC8201, July 2017, 1162 . 1164 [RFC7567] Baker, F., Ed. and G. Fairhurst, Ed., "IETF 1165 Recommendations Regarding Active Queue Management", 1166 BCP 197, RFC 7567, DOI 10.17487/RFC7567, July 2015, 1167 . 1169 [RFC3031] Rosen, E., Viswanathan, A., and R. Callon, "Multiprotocol 1170 Label Switching Architecture", RFC 3031, 1171 DOI 10.17487/RFC3031, January 2001, 1172 . 1174 [RFC5681] Allman, M., Paxson, V., and E. Blanton, "TCP Congestion 1175 Control", RFC 5681, DOI 10.17487/RFC5681, September 2009, 1176 . 1178 [RFC2914] Floyd, S., "Congestion Control Principles", BCP 41, 1179 RFC 2914, DOI 10.17487/RFC2914, September 2000, 1180 . 1182 [RFC3168] Ramakrishnan, K., Floyd, S., and D. Black, "The Addition 1183 of Explicit Congestion Notification (ECN) to IP", 1184 RFC 3168, DOI 10.17487/RFC3168, September 2001, 1185 . 1187 [RFC4963] Heffner, J., Mathis, M., and B. Chandler, "IPv4 Reassembly 1188 Errors at High Data Rates", RFC 4963, 1189 DOI 10.17487/RFC4963, July 2007, 1190 . 1192 [RFC6550] Winter, T., Ed., Thubert, P., Ed., Brandt, A., Hui, J., 1193 Kelsey, R., Levis, P., Pister, K., Struik, R., Vasseur, 1194 JP., and R. Alexander, "RPL: IPv6 Routing Protocol for 1195 Low-Power and Lossy Networks", RFC 6550, 1196 DOI 10.17487/RFC6550, March 2012, 1197 . 1199 [RFC6552] Thubert, P., Ed., "Objective Function Zero for the Routing 1200 Protocol for Low-Power and Lossy Networks (RPL)", 1201 RFC 6552, DOI 10.17487/RFC6552, March 2012, 1202 . 1204 [RFC6554] Hui, J., Vasseur, JP., Culler, D., and V. Manral, "An IPv6 1205 Routing Header for Source Routes with the Routing Protocol 1206 for Low-Power and Lossy Networks (RPL)", RFC 6554, 1207 DOI 10.17487/RFC6554, March 2012, 1208 . 1210 [RFC7554] Watteyne, T., Ed., Palattella, M., and L. Grieco, "Using 1211 IEEE 802.15.4e Time-Slotted Channel Hopping (TSCH) in the 1212 Internet of Things (IoT): Problem Statement", RFC 7554, 1213 DOI 10.17487/RFC7554, May 2015, 1214 . 1216 [RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage 1217 Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085, 1218 March 2017, . 1220 [RFC8087] Fairhurst, G. and M. Welzl, "The Benefits of Using 1221 Explicit Congestion Notification (ECN)", RFC 8087, 1222 DOI 10.17487/RFC8087, March 2017, 1223 . 1225 [RFC5033] Floyd, S. and M. Allman, "Specifying New Congestion 1226 Control Algorithms", BCP 133, RFC 5033, 1227 DOI 10.17487/RFC5033, August 2007, 1228 . 1230 [LWIG-FRAG] 1231 Bormann, C. and T. Watteyne, "Virtual reassembly buffers 1232 in 6LoWPAN", Work in Progress, Internet-Draft, draft-ietf- 1233 lwig-6lowpan-virtual-reassembly-01, 11 March 2019, 1234 . 1237 [FRAG-ILE] Bonica, R., Baker, F., Huston, G., Hinden, R., Troan, O., 1238 and F. Gont, "IP Fragmentation Considered Fragile", Work 1239 in Progress, Internet-Draft, draft-ietf-intarea-frag- 1240 fragile-17, 30 September 2019, 1241 . 1244 [I-D.ietf-6tisch-architecture] 1245 Thubert, P., "An Architecture for IPv6 over the TSCH mode 1246 of IEEE 802.15.4", Work in Progress, Internet-Draft, 1247 draft-ietf-6tisch-architecture-28, 29 October 2019, 1248 . 1251 [IEEE.802.15.4] 1252 IEEE, "IEEE Standard for Low-Rate Wireless Networks", 1253 IEEE Standard 802.15.4, DOI 10.1109/IEEE 1254 P802.15.4-REVd/D01, 1255 . 1257 [Kent] Kent, C. and J. Mogul, ""Fragmentation Considered 1258 Harmful", In Proc. SIGCOMM '87 Workshop on Frontiers in 1259 Computer Communications Technology", 1260 DOI 10.1145/55483.55524, August 1987, 1261 . 1264 Appendix A. Rationale 1266 There are a number of uses for large packets in Wireless Sensor 1267 Networks. Such usages may not be the most typical or represent the 1268 largest amount of traffic over the LLN; however, the associated 1269 functionality can be critical enough to justify extra care for 1270 ensuring effective transport of large packets across the LLN. 1272 The list of those usages includes: 1274 Towards the LLN node: Firmware update: For example, a new version 1275 of the LLN node software is downloaded from a system manager 1276 over unicast or multicast services. Such a reflashing 1277 operation typically involves updating a large number of similar 1278 LLN nodes over a relatively short period of time. 1280 Packages of Commands: A number of commands or 1281 a full configuration can be packaged as a single message to 1282 ensure consistency and enable atomic execution or complete roll 1283 back. Until such commands are fully received and interpreted, 1284 the intended operation will not take effect. 1286 From the LLN node: Waveform captures: A number of consecutive 1287 samples are measured at a high rate for a short time and then 1288 transferred from a sensor to a gateway or an edge server as a 1289 single large report. 1291 Data logs: LLN nodes may generate large logs of 1292 sampled data for later extraction. LLN nodes may also generate 1293 system logs to assist in diagnosing problems on the node or 1294 network. 1296 Large data packets: Rich data types might 1297 require more than one fragment. 1299 Uncontrolled firmware download or waveform upload can easily result 1300 in a massive increase of the traffic and saturate the network. 1302 When a fragment is lost in transmission, the lack of recovery in the 1303 original fragmentation system of RFC 4944 implies that all fragments 1304 would need to be resent, further contributing to the congestion that 1305 caused the initial loss, and potentially leading to congestion 1306 collapse. 1308 This saturation may lead to excessive radio interference, or random 1309 early discard (leaky bucket) in relaying nodes. Additional queuing 1310 and memory congestion may result while waiting for a low power next 1311 hop to emerge from its sleeping state. 1313 Considering that RFC 4944 defines an MTU is 1280 bytes and that in 1314 most incarnations (except 802.15.4g) a IEEE Std. 802.15.4 frame can 1315 limit the Link-Layer payload to as few as 74 bytes, a packet might be 1316 fragmented into at least 18 fragments at the 6LoWPAN shim layer. 1317 Taking into account the worst-case header overhead for 6LoWPAN 1318 Fragmentation and Mesh Addressing headers will increase the number of 1319 required fragments to around 32. This level of fragmentation is much 1320 higher than that traditionally experienced over the Internet with 1321 IPv4 fragments. At the same time, the use of radios increases the 1322 probability of transmission loss and Mesh-Under techniques compound 1323 that risk over multiple hops. 1325 Mechanisms such as TCP or application-layer segmentation could be 1326 used to support end-to-end reliable transport. One option to support 1327 bulk data transfer over a frame-size-constrained LLN is to set the 1328 Maximum Segment Size to fit within the link maximum frame size. 1329 Doing so, however, can add significant header overhead to each 1330 802.15.4 frame and cause extraneous acknowledgements across the LLN 1331 compared to the method in this specification. 1333 Appendix B. Requirements 1335 For one-hop communications, a number of Low Power and Lossy Network 1336 (LLN) link-layers propose a local acknowledgment mechanism that is 1337 enough to detect and recover the loss of fragments. In a multihop 1338 environment, an end-to-end fragment recovery mechanism might be a 1339 good complement to a hop-by-hop MAC recovery. This draft introduces 1340 a simple protocol to recover individual fragments between 6FF 1341 endpoints that may be multiple hops away. 1343 The method addresses the following requirements of an LLN: 1345 Number of fragments: The recovery mechanism must support highly 1346 fragmented packets, with a maximum of 32 fragments per packet. 1348 Minimum acknowledgment overhead: Because the radio is half duplex, 1349 and because of silent time spent in the various medium access 1350 mechanisms, an acknowledgment consumes roughly as many resources 1351 as a data fragment. 1353 The new end-to-end fragment recovery mechanism should be able to 1354 acknowledge multiple fragments in a single message and not require 1355 an acknowledgment at all if fragments are already protected at a 1356 lower layer. 1358 Controlled latency: The recovery mechanism must succeed or give up 1359 within the time boundary imposed by the recovery process of the 1360 Upper Layer Protocols. 1362 Optional congestion control: The aggregation of multiple concurrent 1363 flows may lead to the saturation of the radio network and 1364 congestion collapse. 1366 The recovery mechanism should provide means for controlling the 1367 number of fragments in transit over the LLN. 1369 Appendix C. Considerations on Flow Control 1371 Considering that a multi-hop LLN can be a very sensitive environment 1372 due to the limited queuing capabilities of a large population of its 1373 nodes, this draft recommends a simple and conservative approach to 1374 Congestion Control, based on TCP congestion avoidance. 1376 Congestion on the forward path is assumed in case of packet loss, and 1377 packet loss is assumed upon time out. The draft allows controlling 1378 the number of outstanding fragments that have been transmitted but 1379 for which an acknowledgment was not received yet and are still 1380 covered by the ARQ timer. 1382 Congestion on the forward path can also be indicated by an Explicit 1383 Congestion Notification (ECN) mechanism. Though whether and how ECN 1384 [RFC3168] is carried out over the LoWPAN is out of scope, this draft 1385 provides a way for the destination endpoint to echo an ECN indication 1386 back to the fragmenting endpoint in an acknowledgment message as 1387 represented in Figure 4 in Section 5.2. While the support of echoing 1388 the ECN at the reassembling endpoint is mandatory, this specification 1389 only provides a minimalistic behaviour on the fragmenting endpoint, 1390 that is to reset the window to 1 so the fragments are sent and 1391 acknowledged one by one till the end of the datagram. 1393 It must be noted that congestion and collision are different topics. 1394 In particular, when a mesh operates on the same channel over multiple 1395 hops, then the forwarding of a fragment over a certain hop may 1396 collide with the forwarding of the next fragment that is following 1397 over a previous hop but in the same interference domain. This draft 1398 enables end-to-end flow control, but leaves it to the fragmenting 1399 endpoint stack to pace individual fragments within a transmit window, 1400 so that a given fragment is sent only when the previous fragment has 1401 had a chance to progress beyond the interference domain of this hop. 1402 In the case of 6TiSCH [I-D.ietf-6tisch-architecture], which operates 1403 over the TimeSlotted Channel Hopping [RFC7554] (TSCH) mode of 1404 operation of IEEE802.14.5, a fragment is forwarded over a different 1405 channel at a different time and it makes full sense to transmit the 1406 next fragment as soon as the previous fragment has had its chance to 1407 be forwarded at the next hop. 1409 From the standpoint of a source 6LoWPAN endpoint, an outstanding 1410 fragment is a fragment that was sent but for which no explicit 1411 acknowledgment was received yet. This means that the fragment might 1412 be on the path, received but not yet acknowledged, or the 1413 acknowledgment might be on the path back. It is also possible that 1414 either the fragment or the acknowledgment was lost on the way. 1416 From the fragmenting endpoint standpoint, all outstanding fragments 1417 might still be in the network and contribute to its congestion. 1418 There is an assumption, though, that after a certain amount of time, 1419 a frame is either received or lost, so it is not causing congestion 1420 anymore. This amount of time can be estimated based on the round- 1421 trip time between the 6LoWPAN endpoints. For the lack of a more 1422 adapted technique, the method detailed in "Computing TCP's 1423 Retransmission Timer" [RFC6298] may be used for that computation. 1425 The reader is encouraged to read through "Congestion Control 1426 Principles" [RFC2914]. Additionally [RFC7567] and [RFC5681] provide 1427 deeper information on why this mechanism is needed and how TCP 1428 handles Congestion Control. Basically, the goal here is to manage 1429 the number of fragments present in the network; this is achieved by 1430 to reducing the number of outstanding fragments over a congested path 1431 by throttling the sources. 1433 Author's Address 1435 Pascal Thubert (editor) 1436 Cisco Systems, Inc 1437 Building D 1438 45 Allee des Ormes - BP1200 1439 06254 MOUGINS - Sophia Antipolis 1440 France 1442 Phone: +33 497 23 26 34 1443 Email: pthubert@cisco.com