Re: [6lo] draft-ietf-6lo-fragment-recovery

Michel Veillette <Michel.Veillette@trilliant.com> Wed, 23 January 2019 16:20 UTC

Return-Path: <Michel.Veillette@trilliant.com>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5BA93130E98 for <6lo@ietfa.amsl.com>; Wed, 23 Jan 2019 08:20:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.032
X-Spam-Level:
X-Spam-Status: No, score=-2.032 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=trilliant.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OtLl602-owG6 for <6lo@ietfa.amsl.com>; Wed, 23 Jan 2019 08:20:48 -0800 (PST)
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-eopbgr800092.outbound.protection.outlook.com [40.107.80.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34265130E96 for <6lo@ietf.org>; Wed, 23 Jan 2019 08:20:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-Trilliant-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WQ0qsOMZPDe9HXlxfKnFkm6FCvNAFwqGv7crzVuVxQE=; b=FchbhmY3RUW5NobRvKmWJKBHS7H0sdrB2hmf1DD7U1S/0hO4KOO4CTZ1jz/fVnnUqTzah4Oj5iQ9bd2XW7Bh+SMy92WyKHkH/rd2ebvz5CsKV/5uU3yxWJnuTx3IpXN9id/802tCekgnviGvuyFGhVChHFcyPCrQpjHo2NlWFj8=
Received: from BL0PR06MB5042.namprd06.prod.outlook.com (10.167.240.31) by BL0PR06MB4243.namprd06.prod.outlook.com (10.167.179.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.17; Wed, 23 Jan 2019 16:20:40 +0000
Received: from BL0PR06MB5042.namprd06.prod.outlook.com ([fe80::2dfb:7cf6:d7f0:25ad]) by BL0PR06MB5042.namprd06.prod.outlook.com ([fe80::2dfb:7cf6:d7f0:25ad%5]) with mapi id 15.20.1558.016; Wed, 23 Jan 2019 16:20:40 +0000
From: Michel Veillette <Michel.Veillette@trilliant.com>
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, Dario Tedeschi <dat@exegin.com>
CC: "6lo@ietf.org" <6lo@ietf.org>
Thread-Topic: draft-ietf-6lo-fragment-recovery
Thread-Index: AdSzNOu62WWpp9s/TmSRfaBOaGJBVA==
Date: Wed, 23 Jan 2019 16:20:40 +0000
Message-ID: <BL0PR06MB504231E5622665C0B06CAB569A990@BL0PR06MB5042.namprd06.prod.outlook.com>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michel.Veillette@trilliant.com;
x-originating-ip: [207.96.192.122]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BL0PR06MB4243; 6:dtoGj5eBRU/dXU9kUXz0I+ScEbLMpvfUHDGxQkNkdFAe6CUXJ1/dX8s6kZ6FDa8iwQO6HnTQLQyXrbaelUJiEySHYab0hDaN24i4fts+na8q4ZTs3EWbwFoW47+7wT+RIIPRbk2Cb4N6OpJ6lUjxoO5CAdA3xh+y3o6RCPCeuLR0XUPhyLjn1XQhlgb63F2udVpiuJSIC84UpvrE7I2IerouyDkPMUVKGrmeZn1oqnpS5v0i0MrA3FRJ5vwTOU6h4NAEj0izLVC1mx/PI5vLogSHhmLt5EEKyuveo8BhYmikI6faioRZ0+woJBcYpiw+q4PLNLDuTMUX4xz0ayR0MjpeSvj4ejyHHWQjp2RewjIpDfz8AgUrPyfDiRhRxpuI7rNWbOX19xLJUD6MKkzVLKSRrnNx8WJaBlbGUictUjzYoIZ7iRq6TBlZbqNAuR+EWf+7ulsj3OwK7kwJ3CinBQ==; 5:e2x1QKh1qZhWaSK9t+5KDf43OtWRYuD86ogAWYbYcdCTOztrCLxTOfgn0P0cAlI+Nq2I0t/ICd+sxY91zbMQbwyUBzdEqgCTKXG7UNzNYewMreIednRBzrPUht5vI7eOwNvNc0ze3aI88paIkFlwSeHYlZWEjtvxJb7hdOSLpGTeR6ZZ418NnvXBJ+vGR4HJ32PVoBaMFOwXXZx6mFEXxg==; 7:Lembe9uC0KeMoTjoGmK5hr0l6Ncy2VuE782zpRm4Wn4hKPuNVlFwNzmvmnqyg6G3/07u6H37BO/OPh+A66eyzweYhEeXtScotKgLndhv37oY6UkLO12IVMTzyyHnSjMOFIDl5rvhtfpJO0Ls4Sp4KQ==
x-ms-office365-filtering-correlation-id: 92a95ef3-5058-4bbd-ce0f-08d6814eb764
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BL0PR06MB4243;
x-ms-traffictypediagnostic: BL0PR06MB4243:
x-microsoft-antispam-prvs: <BL0PR06MB42430A202216CB6E1C73943C9A990@BL0PR06MB4243.namprd06.prod.outlook.com>
x-forefront-prvs: 0926B0E013
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(346002)(136003)(396003)(39850400004)(376002)(51444003)(51914003)(189003)(199004)(186003)(53936002)(53546011)(6506007)(7696005)(110136005)(26005)(86362001)(316002)(790700001)(97736004)(6116002)(3846002)(102836004)(6246003)(4326008)(476003)(486006)(25786009)(99286004)(30864003)(71190400001)(66574012)(14444005)(71200400001)(256004)(8936002)(72206003)(81166006)(14454004)(478600001)(81156014)(229853002)(2906002)(6436002)(68736007)(8676002)(53946003)(7736002)(66066001)(55016002)(6306002)(54896002)(236005)(74316002)(9686003)(106356001)(105586002)(561944003)(33656002)(569006); DIR:OUT; SFP:1102; SCL:1; SRVR:BL0PR06MB4243; H:BL0PR06MB5042.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: trilliant.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: CBl40+S3RgXiwM4CvNn8ZEo0Z2yjnPEf8D0KYWJkBN+9sy7L71eTXLh+rrnIRhZoOyvPRZkk32ZMkqgBcy8UM8gMR/Pa8LCOsmxcAUvGwdg09nhLc44mR3gnp4EjS/jXMZuwYB11vjj4izt6tKa3tgi/RG76WKKGoWZ+mQ2O5a7F12fAsjnuevcULeQzF/Pebs3xsjPJfsURftSSHqiTSVec91LGX+rf1K0EvHEbwmAuYok0tDAI3xs7fAbmQWTIIyXzFUfbm4LtCQg4/6p7GhZtHSs247BA1ehH2y+QrIibSNTh8vtVmiVH8I58OaumNDhSuuFu8VNThYTbnLN09yXbvGRsiXecHKnBQRQLHuVIGBhjlgw7vh7pzsYFXoFC1NtrkhPndV4Idsu0BLJn8ikX26iVM8/8DmZHOPoVQfc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BL0PR06MB504231E5622665C0B06CAB569A990BL0PR06MB5042namp_"
MIME-Version: 1.0
X-OriginatorOrg: Trilliant.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 92a95ef3-5058-4bbd-ce0f-08d6814eb764
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jan 2019 16:20:40.2872 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR06MB4243
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/nx_1MfLImZxnuBc_gIw6ESvHzos>
Subject: Re: [6lo] draft-ietf-6lo-fragment-recovery
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Jan 2019 16:20:55 -0000

Hi Pascal

There is a small error in the new version.

The 'X' flag location in "Figure 2: RFRAG Dispatch type and Header" don't match the list
of dispatch types in "Figure 1: Additional Dispatch Value Bit Patterns".
Figure 1 or 2 need to be updated.

              Pattern    Header Type
            +------------+------------------------------------------+
            | 11  101000 | RFRAG       - Recoverable Fragment       |
            | 11  101001 | RFRAG-ARQ   - RFRAG with Ack Request     |
            | 11  101010 | RFRAG-ACK   - RFRAG Acknowledgment       |
            | 11  101011 | RFRAG-ECHO  - RFRAG Ack with ECN Echo    |
            +------------+------------------------------------------+

             Figure 1: Additional Dispatch Value Bit Patterns

                            1                   2                   3
        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
                                       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                       |1 1 1 0 1 0 0|E|  datagram_tag |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |X| sequence|   fragment_size   |       fragment_offset         |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

             Figure 2: RFRAG Dispatch type and Header

Thanks for your quick turnaround to address the fragment size limitations, first fragment slack and first fragment size update issues.

Regards,
Michel

From: Pascal Thubert (pthubert) <pthubert@cisco.com>
Sent: Wednesday, January 23, 2019 2:53 AM
To: Dario Tedeschi <dat@exegin.com>; Michel Veillette <Michel.Veillette@trilliant.com>
Cc: 6lo@ietf.org
Subject: Re: draft-ietf-6lo-fragment-recovery compress size

Hello Dario and Michel

I published 01 with the new format and text explaining the slack and offset management based on our discussion.

Many thanks, this is a much needed improvement !
All the best,

Pascal

Le 22 janv. 2019 à 21:02, Dario Tedeschi <dat@exegin.com<mailto:dat@exegin.com>> a écrit :
Hi Pascal,

Thanks for the clarification.

I agree that offsets in compressed form make more sense, if one considers RFC 8138.

Regards
Dario

On 1/22/19 2:10 AM, Pascal Thubert (pthubert) wrote:
To your last question Michel, also as an answer to Dario:

I think that the biggest contributor is the source and destination address, since the source may be elided on the first hop and the destination may be elided on the last hop. In intermediate hops, the source and destination (that are global addresses as opposed to your example) are not mapped on the MAC addresses thus not compressed, at least statelessly.

Also note vs. your example that I’d use RFC 8138 for the routing header; the cool thing is that the size can only go down. Else you need to allow an additional slack as discussed below.

For Dario: the slack is basically done by leaving enough room for both source and destination to go uncompressed or compressed worst case (e.g., within a subnet the prefix can be coming from the context all the way through). Same goes for hlim if it is compressed on the first hop, which I would not recommend if multihop is expected.

Slack is done by sending a first fragment that  that does not fill the MTU. E.g. if the MTU is 127, and you compressed IID of the source address based on EUI-64 and the hlim, then build the first fragment as if the MTU was 118…

Note that a datagram_offset  based on the uncompressed form expects the exact same packet out of the compressor, and that RFC 8138 removes the consumer routing headers. To Dario’s question this is an exception to RFC 8200. If we use the offset in the original packet and a fragment is routed with source routing, we’ll need to reassemble at each hop, which defeats the purpose.

All the best;

Pascal


From: 6lo <6lo-bounces@ietf.org><mailto:6lo-bounces@ietf.org> On Behalf Of Pascal Thubert (pthubert)
Sent: lundi 21 janvier 2019 22:57
To: Michel Veillette <Michel.Veillette@trilliant.com><mailto:Michel.Veillette@trilliant.com>
Cc: Dario Tedeschi (dat@exegin.com<mailto:dat@exegin.com>) <dat@exegin.com><mailto:dat@exegin.com>; 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: Re: [6lo] draft-ietf-6lo-fragment-recovery compress size

Hello Michel

I already answered that today, actually: )

There is no such assumption but the node that changes the size also needs to change the offset on all fragments.

The expectation is that only the first fragment may change. The delta offset that happens on the first fragment must be applied on all further fragments on both length and offset fields as an additive or substractive constant. I need to write that clearly.

Now if you prefer to go back to using offsets in the uncompressed form please let us know by answering my earlier mail today : )
All the best

Pascal

Le 21 janv. 2019 à 22:43, Michel Veillette <Michel.Veillette@trilliant.com<mailto:Michel.Veillette@trilliant.com>> a écrit :
Hi Pascal

Draft "draft-ietf-6lo-fragment-recovery" seem to assume that the size of the compressed header stay fix while traveling the RPL domain.

For example:
  "In this specification, the size and offset of the fragments are expressed on the compressed packet."
 "The last fragment for a datagram is recognized when its fragment_offset and its fragment_size add up to the datagram_size."

However, fields HLIM [RFC6282], CmprI and CmprE [RFC6554] may have an impact on the compressed header size if the maximum compression is applied at each hop.

Is this problem addressed in the draft?
Are you aware of other IPv6 fields or options which can cause this issue?
How this issue should be addressed?

I tried to illustrate this problem in the example bellow:

IPv6 packet
  - IPv6 packet header
    - Hop limit = 66 (elided)
    - Source Address      = FE80 0000 0000 0000 0201 4200 0000 0000 (elided)
    - Destination Address = FE80 0000 0000 0000 0214 7700 0000 0001 (elided)
  - RPL routing header
    - CmprI = 15
    - CmprE = 9
    - Addresses = FE80 0000 0000 0000 0214 7700 0000 0002, FE80 0000 0000 0000 0214 7700 0000 0003, FE80 0000 0000 0000 0200 0C00 0000 0004

IPv6 packet
  - IPv6 packet header
    - Hop limit = 65 (elided)
    - Source Address      = FE80 0000 0000 0000 0201 4200 0000 0000 (elided)
    - Destination Address = FE80 0000 0000 0000 0214 7700 0000 0002 (elided)
  - RPL routing header
    - CmprI = 15
    - CmprE = 9
    - Addresses = FE80 0000 0000 0000 0214 7700 1234 0001, FE80 0000 0000 0000 0214 7700 1234 0003, FE80 0000 0000 0000 0201 42AB CDEF 0004

IPv6 packet
  - IPv6 packet header
    - Hop limit = 64 (in line)
    - Source Address      = FE80 0000 0000 0000 0201 4200 0000 0000 (elided)
    - Destination Address = FE80 0000 0000 0000 0214 7700 0000 0003 (elided)
  - RPL routing header
    - CmprI = 9
    - CmprE = 9
    - Addresses = FE80 0000 0000 0000 0214 7700 1234 0001, FE80 0000 0000 0000 0214 7700 0000 0002, FE80 0000 0000 0000 0201 42AB CDEF 0004

IPv6 packet
  - IPv6 packet header
    - Hop limit = 63 (elided)
    - Source Address      = FE80 0000 0000 0000 0201 4200 0000 0000 (elided)
    - Destination Address = FE80 0000 0000 0000 0200 0C00 0000 0004 (elided)
  - RPL routing header
    - CmprI = 9
    - CmprE = 9
    - Addresses = FE80 0000 0000 0000 0214 7700 1234 0001, FE80 0000 0000 0000 0214 7700 0000 0002, FE80 0000 0000 0000 0214 7700 0000 0003

Regards,
Michel


From: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>
Sent: Monday, January 21, 2019 6:58 AM
To: Michel Veillette <Michel.Veillette@trilliant.com<mailto:Michel.Veillette@trilliant.com>>; Dario Tedeschi (dat@exegin.com<mailto:dat@exegin.com>) <dat@exegin.com<mailto:dat@exegin.com>>
Cc: 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Works for me Michel :

So we need answers from the list. The choice on the table is either to reduce the datagram_tag field to 256 as illustrated below or to use a 4 bytes unit for links with large MTUs (more than 127 octets).

What do people think is more appropriate to their needs?

Pascal

From: Michel Veillette <Michel.Veillette@trilliant.com<mailto:Michel.Veillette@trilliant.com>>
Sent: jeudi 17 janvier 2019 18:56
To: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>; Dario Tedeschi (dat@exegin.com<mailto:dat@exegin.com>) <dat@exegin.com<mailto:dat@exegin.com>>
Cc: 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Hi Pascal

I'm sorry, the propose format in my last email doesn't fix the datagram total length limitation.
32 fragments of 512 bytes still limit the datagram to 16 kB.

Based on the following constraints:

  *   Up to 256 active datagram
  *   Up to 32 fragments
  *   Up to  64kB datagram
  *   Up to 2kB fragment (32 fragments of 2 kB = 64 kB datagram)

I recommend the following Dispatch type formats.

Alternatively, the original format with a 4 bytes unit will work for us but doesn't seem to address all potential issues.

                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 0|X|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |E| sequence|   fragment_size   |       fragment_offset         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 1 Y|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          RFRAG Acknowledgment Bitmap (32 bits)                |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Regards,
Michel

From: Michel Veillette
Sent: Wednesday, January 16, 2019 9:04 PM
To: 'Pascal Thubert (pthubert)' <pthubert@cisco.com<mailto:pthubert@cisco.com>>; Dario Tedeschi (dat@exegin.com<mailto:dat@exegin.com>) <dat@exegin.com<mailto:dat@exegin.com>>
Cc: 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Using a 4 bytes unit for size and offset doesn't seem to fully solve all issues, this solution is still limited to 8 kB datagram.
About the dual formats proposal, I'm not convinced this problem is such we can't find a single format acceptable for everyone.
If maintaining an overhead of 6 bytes is a must, the solution below might be the best compromise.

                           1                   2                   3
       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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |1 1 1 0 1 0 0| fragment_size   |X|E| sequence|  datagram_tag   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |         fragment_offset       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


                           1                   2                   3

       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

                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                      |1 1 1 0 1 0 1 0|Y| Reserved  |  datagram_tag   |

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      |          RFRAG Acknowledgment Bitmap (32 bits)                |

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Regards,
Michel


From: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>
Sent: Wednesday, January 16, 2019 9:59 AM
To: Michel Veillette <Michel.Veillette@trilliant.com<mailto:Michel.Veillette@trilliant.com>>
Cc: 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Hello Michel

I have not seen a strong argument against saying that the unit for size and offset is 4 bytes if the MTU is larger than 127 bytes. This keeps classical 802.15.4 with 1 octet and allows fragments of 512 with 802.15.4g. that would be the simplest and most economical way of doing it. The only issue is that the last fragment might be less than the fragment_size, but that can be found based on the frame size. This seems to be the best tradeoff to me.

As an alternate we could define both of the formats that you copied below, one as 1 1 1 0 1 0  and the other as 1 1 1 0 1 1 as follows:


                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 0|X|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |E| sequence|   fragment_size   |       fragment_offset         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 1 Y|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          RFRAG Acknowledgment Bitmap (32 bits)                |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

vs.

                           1                   2                   3
       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
                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                      |1 1 1 0 1 1 0|X|         datagram_tag          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |E| sequence|   fragment_size   |       fragment_offset         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           1                   2                   3
       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
                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                      |1 1 1 0 1 1 1 Y|         datagram_tag          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          RFRAG Acknowledgment Bitmap (32 bits)                |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


what do you think?

Pascal



From: Michel Veillette <Michel.Veillette@trilliant.com<mailto:Michel.Veillette@trilliant.com>>
Sent: mardi 15 janvier 2019 20:14
To: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Hi Pascal

Did we reach any consensus about the RFRAG Dispatch type format?
See the last two formats proposed bellow.

Regards,
Michel

From: Michel Veillette
Sent: Tuesday, January 8, 2019 2:28 PM
To: Pascal Thubert (pthubert) <pthubert@cisco.com<mailto:pthubert@cisco.com>>
Cc: 6lo@ietf.org<mailto:6lo@ietf.org>
Subject: RE: draft-ietf-6lo-fragment-recovery maximum fragment size too small

Hi Pascal

A 8 bits "datagram_tag" is a strict minimum in our case and peoples might have good arguments to keep this field aligned with RFC4944.
I also don't see how to implement a 10 bits or 12 bits "datagram_tag" without adding an octet.

I can go either way but my preference are:
- 16 bits datagram_tag
- 10 bits fragment_size
- 16 bits fragment_offset


                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 0|X|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |E| sequence|   fragment_size   |       fragment_offset         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           1                   2                   3
       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
                                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                                      |1 1 1 0 1 0 1 Y|  datagram_tag |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          RFRAG Acknowledgment Bitmap (32 bits)                |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

vs.

                           1                   2                   3
       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
                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                      |1 1 1 0 1 0 0|X|         datagram_tag          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |E| sequence|   fragment_size   |       fragment_offset         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                           1                   2                   3
       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
                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
                      |1 1 1 0 1 0 1 Y|         datagram_tag          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |          RFRAG Acknowledgment Bitmap (32 bits)                |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Regards,
Michel