Re: [6lo] draft-gomez-6lo-optimized-fragmentation-header-00

"Pascal Thubert (pthubert)" <pthubert@cisco.com> Wed, 26 October 2016 11:23 UTC

Return-Path: <pthubert@cisco.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 B5883129A9F for <6lo@ietfa.amsl.com>; Wed, 26 Oct 2016 04:23:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.953
X-Spam-Level:
X-Spam-Status: No, score=-14.953 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.431, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 J3Lk8fjph8Qj for <6lo@ietfa.amsl.com>; Wed, 26 Oct 2016 04:23:48 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8A1CD129AA3 for <6lo@ietf.org>; Wed, 26 Oct 2016 04:23:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=195894; q=dns/txt; s=iport; t=1477481028; x=1478690628; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=SfMy2G43rfe6TXfeo/MajS4io7RLaqQhq3p9y4P5trU=; b=aQhsg/8JKuw2i+JHATkMNRkBb8OJL7drWZR9Urb4tKbaGZmxNav9PPWB SIi1I+3vbW0ZwyEW2NHgf6q0yurwYPioBwxSefMX54tPkntyAF1PGJ6uL fkzhWDc1fb2jxVvm8nlHfmggw2yHSxjqIESgvlrRuo1TRcckyICqhlgis g=;
X-Files: 6lo Fragment forwarding IETF 88 pthubert .pdf : 140117
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CBAQA2kRBY/5pdJa1cDgwBAQEBAgEBAQEIAQEBAYMqAQEBAQEdWH0HjS6Wf5Q/ggYDHAuFewKCAT8UAQIBAQEBAQEBYiiEYgEBAQQBAQFCKQsMBAIBCBEEAQEoBwIYDQsUCQgCBAENBQgGiEYOwD8BAQEBAQEBAQEBAQEBAQEBAQEBAQEOCQWGPYRVhCOGAwWaFgGDQYJqiW2QC40KhAABHjZeLoQeO3KGLoEvgQkBAQE
X-IronPort-AV: E=Sophos;i="5.31,550,1473120000"; d="pdf'?scan'208";a="167571253"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Oct 2016 11:23:47 +0000
Received: from XCH-RCD-003.cisco.com (xch-rcd-003.cisco.com [173.37.102.13]) by rcdn-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u9QBNlx7008747 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 26 Oct 2016 11:23:47 GMT
Received: from xch-rcd-001.cisco.com (173.37.102.11) by XCH-RCD-003.cisco.com (173.37.102.13) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 26 Oct 2016 06:23:46 -0500
Received: from xch-rcd-001.cisco.com ([173.37.102.11]) by XCH-RCD-001.cisco.com ([173.37.102.11]) with mapi id 15.00.1210.000; Wed, 26 Oct 2016 06:23:46 -0500
From: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
To: "Dale R. Worley" <worley@ariadne.com>, Carles Gomez Montenegro <carlesgo@entel.upc.edu>
Thread-Topic: [6lo] draft-gomez-6lo-optimized-fragmentation-header-00
Thread-Index: AQHSLuWSOU0vz6J9d0CnmJkPQCHDqKC6lUwA
Date: Wed, 26 Oct 2016 11:22:35 +0000
Deferred-Delivery: Wed, 26 Oct 2016 11:22:11 +0000
Message-ID: <c38b451dc407418491514cf303964562@XCH-RCD-001.cisco.com>
References: <d70db6c4f616ed8555b34375e97d6545.squirrel@webmail.entel.upc.edu> (carlesgo@entel.upc.edu) <87twc0nxoa.fsf@hobgoblin.ariadne.com>
In-Reply-To: <87twc0nxoa.fsf@hobgoblin.ariadne.com>
Accept-Language: fr-FR, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.55.22.4]
Content-Type: multipart/mixed; boundary="_002_c38b451dc407418491514cf303964562XCHRCD001ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/mnDQjK5jx_WGdhBuZlh56F5zBVM>
Cc: Thomas Watteyne <thomas.watteyne@inria.fr>, "6lo@ietf.org" <6lo@ietf.org>
Subject: Re: [6lo] draft-gomez-6lo-optimized-fragmentation-header-00
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.17
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, 26 Oct 2016 11:23:51 -0000

Hello Dale:

I agree... I think that the idea was to make sure that the buffer you prepare is big enough for the uncompressed form.

When Jonathan and I wrote a proposed rework we changed that as you suggest:
https://tools.ietf.org/html/draft-thubert-6lo-forwarding-fragments-02 
"
   In the following sections, the semantics of "datagram_tag,"
   "datagram_offset" and "datagram_size" and the reassembly process are
   changed from [RFC4944] Section 5.3.  "Fragmentation Type and Header."
   The size and offset are expressed on the compressed packet per
   [RFC6282] as opposed to the uncompressed - native packet - form.
"
The rework addressed the problems discussed in the attached slides, and which are still fully present today.
The work needs support to move on. Last I checked interest was really limited.

Note also this text in RFC 6282:
"

   Section 5.3 of [RFC4944] also defines how to fragment compressed IPv6
   datagrams that do not fit within a single link frame.  Section 5.3 of
   [RFC4944] defines the fragment header's datagram_size and
   datagram_offset values as the size and offset of the IPv6 datagram
   before compression.  As a result, all fragment payload outside the
   first fragment must carry their respective portions of the IPv6
   datagram before compression.  This document does not change that
   requirement.  When using the fragmentation mechanism described in
   Section 5.3 of [RFC4944], any header that cannot fit within the first
   fragment MUST NOT be compressed.

"



Regards;

Pascal

-----Original Message-----
From: 6lo [mailto:6lo-bounces@ietf.org] On Behalf Of Dale R. Worley
Sent: mardi 25 octobre 2016 19:31
To: Carles Gomez Montenegro <carlesgo@entel.upc.edu>
Cc: 6lo@ietf.org
Subject: [6lo] draft-gomez-6lo-optimized-fragmentation-header-00

"Carles Gomez Montenegro" <carlesgo@entel.upc.edu> writes:
> This document proposes a more lightweight and compact 6LoWPAN 
> fragmentation header, compared with the one defined in RFC 4944.

This seems like an improvement to me, though I'm new here.

But this is a good time to ask my newbie question:  I see this definition of the "datagram size" field:

   datagram_size: This 11-bit field encodes the size of the entire IP
   packet before link-layer fragmentation (but after IP layer
   fragmentation).  For IPv6, the datagram size SHALL be 40 octets (the
   size of the uncompressed IPv6 header) more than the value of Payload
   Length in the IPv6 header [RFC4944] of the packet.  Note that this
   packet may already be fragmented by hosts involved in the
   communication, i.e., this field needs to encode a maximum length of
   1280 octets (the required by IPv6).

Naively, it seems to me that link fragmentation is at a layer lower than link compression (e.g., LOWPAN_IPHC), so this datagram_size value is the length of the IPv6 packet (possibly an IPv6 fragment) as compressed by LOWPAN_IPHC.  If that is so, the above text isn't quite right, as e.g. the compressed packet might be shorter than the (reconstructed) Payload Length in the IPv6 header.

Now maybe I'm wrong, and "datagram size" is the length of the uncompressed IPv6 packet, but then I don't see how the receiver is to know when all of the fragments have arrived.

Dale

_______________________________________________
6lo mailing list
6lo@ietf.org
https://www.ietf.org/mailman/listinfo/6lo