[Roll] 6LoRH type in useofRPLinfo

"Pascal Thubert (pthubert)" <pthubert@cisco.com> Tue, 02 July 2019 14:07 UTC

Return-Path: <pthubert@cisco.com>
X-Original-To: roll@ietfa.amsl.com
Delivered-To: roll@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85CD51200FF for <roll@ietfa.amsl.com>; Tue, 2 Jul 2019 07:07:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.499
X-Spam-Level:
X-Spam-Status: No, score=-14.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=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 header.b=f7PfSGm/; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=XvPZ+av8
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 XJVRxh-Izivk for <roll@ietfa.amsl.com>; Tue, 2 Jul 2019 07:07:43 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70F221200F1 for <roll@ietf.org>; Tue, 2 Jul 2019 07:07:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8086; q=dns/txt; s=iport; t=1562076463; x=1563286063; h=from:to:subject:date:message-id:mime-version; bh=QWEDzAz+gXD4DxyB598Kd1xEG5GnN78f+xkB1OoeoBE=; b=f7PfSGm/SiUbx3N5YcpoxkwrAXOq4jCDqw8NWmM5h3NRp+FDNjOOOKe0 MCB13yvU1Efa3ufji/lhuP91mfE3fOtqIENBClsGeq+gx39/HlN5m5qrl xWDTLJIHamF6jhID0VzpsBtZD0Ejtgs/vNH/PiQrubz9mGmZ4mgHmf6q6 A=;
IronPort-PHdr: 9a23:bM4n1B01hqrfvpEwsmDT+zVfbzU7u7jyIg8e44YmjLQLaKm44pD+JxKGt+51ggrPWoPWo7JfhuzavrqoeFRI4I3J8RVgOIdJSwdDjMwXmwI6B8vQEVH7MfTndTASF8VZX1gj9Ha+YgBY
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BMAAD7Yxtd/4sNJK1lGgEBAQEBAgEBAQEHAgEBAQGBVQMBAQEBCwGBFC9QA2pVIAQLKAqHWQOOXUyRf4MAgleBfYEuFIEQA1QJAQEBDAEBIwoCAQGBKgGDFQKCGSM2Bw4BAwEBBAEBAgEFbYo3DIVjFQYTAQE4EQGBACYBBBsagwGBHU0DHQECDJlbAoE4iGCBcDOCeQEBBYE2AoNVGIISAwaBNAGBD4pPF4FAP4FXhWsBAQOBJhIOGiuDD4ImjBWHTYhAjhcJAoIWhlSGdoZOj1CIHZRsj3ACBAIEBQIOAQEFgVcDLoFYcBWDJ4JBg3GFFIU/coEpizGBMAGBIAEB
X-IronPort-AV: E=Sophos;i="5.63,443,1557187200"; d="scan'208,217";a="290892037"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Jul 2019 14:07:42 +0000
Received: from XCH-ALN-008.cisco.com (xch-aln-008.cisco.com [173.36.7.18]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id x62E7gWu029795 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <roll@ietf.org>; Tue, 2 Jul 2019 14:07:42 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-008.cisco.com (173.36.7.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jul 2019 09:07:41 -0500
Received: from xhs-aln-002.cisco.com (173.37.135.119) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jul 2019 10:07:40 -0400
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 2 Jul 2019 09:07:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8UkVR6rzgc5OV+xdjDYSJRiQPetQiYXHKWQlhGTeh3c=; b=XvPZ+av8qWm4BbEGwfv3PWIgi0nRPFthZcRxUO0eMfqyCmXZMPeCDuZdPJkswku+7zzv+jfhE93IiUY7voMQJhPz/ZuAZE2OJFlz/YsqrLnHbgDGaqyMHCaxK1zt3e8teNPcSRtFE6SL9QrpOTlbOiGOOUY36tQPTSfcCZfFs54=
Received: from MN2PR11MB3565.namprd11.prod.outlook.com (20.178.250.159) by MN2PR11MB3854.namprd11.prod.outlook.com (20.178.252.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Tue, 2 Jul 2019 14:07:39 +0000
Received: from MN2PR11MB3565.namprd11.prod.outlook.com ([fe80::1ce9:1582:146c:c50a]) by MN2PR11MB3565.namprd11.prod.outlook.com ([fe80::1ce9:1582:146c:c50a%6]) with mapi id 15.20.2032.019; Tue, 2 Jul 2019 14:07:39 +0000
From: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
To: Routing Over Low power and Lossy networks <roll@ietf.org>
Thread-Topic: 6LoRH type in useofRPLinfo
Thread-Index: AdUw3XSCsslxmm7SSOSYMeH+zXkgcQ==
Date: Tue, 02 Jul 2019 14:06:33 +0000
Deferred-Delivery: Tue, 2 Jul 2019 14:03:08 +0000
Message-ID: <MN2PR11MB35652590F29701C0F9097C1FD8F80@MN2PR11MB3565.namprd11.prod.outlook.com>
Accept-Language: fr-FR, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pthubert@cisco.com;
x-originating-ip: [173.38.220.52]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 56b03679-694e-4ec4-90a1-08d6fef6a489
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB3854;
x-ms-traffictypediagnostic: MN2PR11MB3854:
x-ms-exchange-purlcount: 4
x-microsoft-antispam-prvs: <MN2PR11MB3854572D9DEC494D2C8E1F3ED8F80@MN2PR11MB3854.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 008663486A
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(366004)(346002)(39860400002)(396003)(199004)(189003)(6506007)(66066001)(53936002)(6116002)(790700001)(66446008)(8936002)(26005)(66946007)(76116006)(186003)(99286004)(7696005)(64756008)(66556008)(66476007)(102836004)(6666004)(71190400001)(33656002)(6436002)(256004)(71200400001)(6916009)(52536014)(73956011)(5660300002)(3846002)(55016002)(6306002)(54896002)(236005)(9686003)(316002)(14454004)(606006)(8676002)(81156014)(81166006)(478600001)(86362001)(966005)(2906002)(68736007)(74316002)(7736002)(486006)(25786009)(14444005)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3854; H:MN2PR11MB3565.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: cXzHqgeU2bVuWP246kexkqFkgOOw2AYD7Q7e0xsW2diGtOQ/o/owdYLfl/cGMm0MYL6L/7/DJSKmbkN3Y0ldr4jnNTEowFkBZU3ouHMSBBFSX8CUf4sxaGtpxvztDJZ7Bkul1q9n+3OurbZhESdgLzzOVv2uvRxsy4BLojQ3WKprpY6NXvQYNz5a85RyqfvUGlTpeG4SsD+5VtWWkcbFZDRV/GN9cMjwOKdmoZTt/UYQLFwM+8+Bqe5oNaFlYiCj7stCXp0Ck2T/P1F/vGM3s28LefPwU2g8TZaaOwQ4PvbZA1BqgPLD38fiLBxCTCw5hfc3HhByRyPf2vj4CWPZSKxERFpAFkcFKNPzlkwhaOOs4+7H8a0mG/PNCL1z8luvONK7Pb754vvGeHTv9NaXmBuUMK2LEvv/agwy/da7SDo=
Content-Type: multipart/alternative; boundary="_000_MN2PR11MB35652590F29701C0F9097C1FD8F80MN2PR11MB3565namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 56b03679-694e-4ec4-90a1-08d6fef6a489
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2019 14:07:39.3633 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: pthubert@cisco.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3854
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.18, xch-aln-008.cisco.com
X-Outbound-Node: alln-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/roll/x-In5LMhWtDI-AEnGt0kiCXUyj4>
Subject: [Roll] 6LoRH type in useofRPLinfo
X-BeenThere: roll@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Routing Over Low power and Lossy networks <roll.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/roll>, <mailto:roll-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/roll/>
List-Post: <mailto:roll@ietf.org>
List-Help: <mailto:roll-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/roll>, <mailto:roll-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2019 14:07:45 -0000

Dear all

Reviewing again https://tools.ietf.org/html/draft-ietf-roll-useofrplinfo-25 I think we made a mistake in Fig 3:

The format of RFC 8138 compressed packet is presented as:

   +--+-----+---+--------------+-----------+-----------+-----------+
   |1 | 0|0 |TSE| 6LoRH Type 6 | Hop Limit | RPI-6LoRH |LOWPAN IPHC|
   +--+-----+---+--------------+-----------+-----------+-----------+

But it should really be as fig 20 in RFC 8138, meaning the RPI is before the IP-in-IP:




+-+ ... -+-+ ... +-+- ... -+-+- ... +-+-+-+ ... +-+-+ ... -+ ... +-...

 |11110001|SRH-6LoRH| RPI-  | IP-in-IP | NH=1      |11110CPP| UDP | UDP

 |Page 1  |Type1 S=2| 6LoRH |  6LoRH   |LOWPAN_IPHC| UDP    | hdr |Payld

 +-+ ... -+-+ ... +-+- ... -+-+-- ... -+-+-+ ... +-+-+ ... -+ ... +-...

            <-8bytes->                  <-        RFC 6282<https://tools.ietf.org/html/rfc6282>      ->

                                                No RPL artifact



               Figure 20: Example Compressed Packet with SRH

Data is removed from the left as consumed. Removing the IP-in-IP removes everything left of it including RPI.
What gets forwarded to the unaware leaf starts at the LOWPAN_IPHC.
What's worth noting is that in Storing Mode the SRH contains the address of the 6LR that decapsulates.
IOW the SRH encodes the destination of IP-in-IP, whereas the root is the source so the encapsulator in the IP-in-IP 6LoRH is elided...

All the best,

Pascal