Re: [6lo] Router reboot - loss of state

Klaus Hueske <Klaus.Hueske@renesas.com> Thu, 12 May 2022 08:56 UTC

Return-Path: <Klaus.Hueske@renesas.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 404C7C14F733 for <6lo@ietfa.amsl.com>; Thu, 12 May 2022 01:56:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=renesas.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KPS6xtszNbOM for <6lo@ietfa.amsl.com>; Thu, 12 May 2022 01:56:32 -0700 (PDT)
Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on20718.outbound.protection.outlook.com [IPv6:2a01:111:f403:700c::718]) (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 922E4C14F73B for <6lo@ietf.org>; Thu, 12 May 2022 01:56:32 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JgbpAqpc6Jds3ZDEdHG4KEmUYGjlBEK/XLTHlFeQfPMzbEJz/KegkBQZakTLh6Xb4DMZ454dyAXZ+7ZhPXHh4nyWnZiYfihiMdOsu8vYgqjITMsmDfX9CtFHsucrODSRf7Wj4ves5GYLea9tQJ2HF/GG3XONIInVhcuQjaJEfpHWhV9Wpgac2feannhWAjVHZw0swUMX0+Y8Bl3DGEB+bs4koTIEeU46s1I2khxuyNuDngQJQcRl/oP6NMToajXj+GD2vBWzp6PjqwnTKscOL85UvXQnnPPZx04WM6ne5AYrVpidzE9dgSp+46tZS+EasmDn5BwQs1nWK4DRhGtpEw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7iC3n2ntZb46CTwE95tKDheG0D+6UuL7GfTRCan7trI=; b=SXS1QKf7+zZ56n+ZbPa+pNTVrKHHzPXMGwxYXNWuQlrtGwIUJ/1hLUb8g5UxyZMc/nN89DQSoz4b70JTB8yvXFIodbC/Oh3ufPDsziGq0p4fMi1V3hRobsqvmFWWNQ3x34ZTllFVKtMzFjmIUyGs+X4I2hIVXUQLvEr9lFUqqKEflVP4kX0mXwbtmX6r5alcamrm65dUdcpYTqqyNJ1j/B4+4bnk/ZaoPKpBwK5mPKJNgQxeakRTWurLADeyS+cWAlL/jAiA5a38G71OAqqXLcT5EDrIeRAGJfuMI8mYJTohtsDTS7YZU5i2qP+X3TwQFZO+rX7ki7j6qO5AOP20Rg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7iC3n2ntZb46CTwE95tKDheG0D+6UuL7GfTRCan7trI=; b=LDKl114zF8ZGVI3Fg+ShLg8HB0BaHSRYmCCTsX3IMGs8nP1JWkRaYdOBrRIgA7uFoQph9gO9KLDW5FNJLPFSjosLEdBc/x2gRTjo9PGrLVnd3Pal5mTorRyMcEbxVKgoXl/9uYL9GsJUsHLZkBL8asWYyvtD2IMAPnGM2WXorAw=
Received: from OSZPR01MB7844.jpnprd01.prod.outlook.com (2603:1096:604:1b8::11) by TYXPR01MB1693.jpnprd01.prod.outlook.com (2603:1096:403:12::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.14; Thu, 12 May 2022 08:56:25 +0000
Received: from OSZPR01MB7844.jpnprd01.prod.outlook.com ([fe80::84bf:543e:5bd3:3aac]) by OSZPR01MB7844.jpnprd01.prod.outlook.com ([fe80::84bf:543e:5bd3:3aac%5]) with mapi id 15.20.5250.014; Thu, 12 May 2022 08:56:24 +0000
From: Klaus Hueske <Klaus.Hueske@renesas.com>
To: "6lo@ietf.org" <6lo@ietf.org>
CC: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, "Hett, Chris" <chris.hett@landisgyr.com>, Paul Duffy <paduffy@cisco.com>
Thread-Topic: [6lo] Router reboot - loss of state
Thread-Index: AQHYYXuB260kOLuUl0q3xv8FGEnEQK0a8SVw
Date: Thu, 12 May 2022 08:56:24 +0000
Message-ID: <OSZPR01MB7844934534006D41397CB87F83CB9@OSZPR01MB7844.jpnprd01.prod.outlook.com>
References: <CO1PR11MB488121616933B52593AE04DFD8C59@CO1PR11MB4881.namprd11.prod.outlook.com>
In-Reply-To: <CO1PR11MB488121616933B52593AE04DFD8C59@CO1PR11MB4881.namprd11.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e3b1bf43-7872-4f88-780b-08da33f54b02
x-ms-traffictypediagnostic: TYXPR01MB1693:EE_
x-ld-processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr
x-microsoft-antispam-prvs: <TYXPR01MB1693E8B979495483839755E983CB9@TYXPR01MB1693.jpnprd01.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 2L54EQt9BKzmIm9o5fbjs0PAwdKA8dGzxsG2uQQECiNUDl6iuP2zN8fbLXX8tkOPdbv5S8Myi+yk4WBXwjoX/VNPMc3NACPfYso8sfaeH1O21sU9GQFzrZ5V1i85j0g+2Y5Ina0I0W/s/AjYQqa8HlZIs29b3IigEU5SacRNPMB+mvTv0TSnZEKTCJ/jlvs1Cz5UEMbEUVsPQvqzm49oAAwn4XSYTCUwgQt/q2Y170Hi4iPe3P3WQrUfkjMJaHPNo37OB4mzArWUpUhoyZiQSfELUr0JHOkR5qnduHzwCubit1/78bRfujKuVv21kDveTF1YvNVMG1ahKpu/xjjyRThnpBi06+vkWxtlUZyv7YkCaDpKq62vsl2g9hOgZRkMoVId8UQPnIRtk5tz/grBVRhvJXBPj/RAVz/b3uNGuWXpc/dZd2s2WVbdK6TUmDYwZBiv1VvSdTHIklco2T15pOoI8Y71b54erX3FdXDkmLj9fw8oqPl5QP5Yi/PnMSXkzK6HC1n3nMpHjHAknAYM6xWkhpiQVTS9riMt2AtYAQo1vt6TjJPi9fcsBygpPKQKrypuf5ckIWTfeK/qua6gAu57q1vHe4Jn4GvAdfbPGVt99wpabBKb42F46OlDtB39OvOrqQJH7TuqmbXF16ypoE4zSXawji5H3yeMnKyfjxRZRXkHVhm7ZYcwhGKRzvMNiEXqrYLthPqcyc+BxH5Xm++ul1HLWDaW3dYdZaFwBNvEtrvj2hI7yqDHRsDXMFyt0GSUAVoke+x0EU7g7Z9OSDt8A5861Pu7MAjEPwSGdw3/W8p03Ql/riGG797sIY13y92VDtqt7QIPTMRZFxt4IQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OSZPR01MB7844.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(38100700002)(53546011)(6506007)(83380400001)(38070700005)(7696005)(122000001)(66574015)(186003)(54906003)(6916009)(52536014)(8936002)(26005)(9326002)(5660300002)(66946007)(76116006)(166002)(2906002)(66476007)(316002)(9686003)(66556008)(66446008)(64756008)(33656002)(4326008)(8676002)(55016003)(966005)(71200400001)(86362001)(508600001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: BwcT0xeg7xSA6LqkbmZ5CdaBflfrKypEZNmk3W4WGhUKL13JakhWyVVP+rgnEH6vP+88nY4/0x6+IEPtiXuul8ipslzgpFqDMU9518QB9lpPlHLVtJdawC6dGkL6T4MSKAV2UDbInYpazo+l0UIti9G30r2FCSH8L0qHrGGtSguE89hq0YdeGHNXzKkm7er6oWNWLYgf3Wdq3F25w3ufVAMXMixWXenHdyWPIOZr26Na2qQDwz0yMb4uwlmr8R2Tvyxzh1w1yN8pLY22xl6uLaUy+AYr5sexWFI3dCNdn2/qhsXPD6f7FO0WRPLwKv9NrW1pisbA2Z27vTEYkXlJMR8kZORxwH8kkQrYoHOKBN2dBSgyajv/c7mcK6sIOwidUas3lU99jwqE0VbTGmFVxDSuffkICuDu2SnOb5ZfFw6HfScE7iuucax7mUXqRifYC6+QBLxKsHSHK2RjSidezZVkwrEKZKk/VFMg/vR7bFyElwjcR19oMkE1cy3strsHUsWGbHbf5h2i0jVG1s+qfSPj9LSwrNwh5gAww4lquc8q8uieik7vx9rL4IY751sSBgbk8xLtfgukBbilJ/60I1UjR1x3yjwWA+jpktqCJ4FySjPL1sbBmdM8cfHy6zTiVfgUpl8aYtTAfzs6PgpgQRMnLRSeAmwTP+0uKGSwCMSGdISzvqQt4WoFZ1mdLU9r4urbJFyKpgD1sqRTGHdUIcJ+26kWKRI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MB7844934534006D41397CB87F83CB9OSZPR01MB7844jpnp_"
MIME-Version: 1.0
X-OriginatorOrg: renesas.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: OSZPR01MB7844.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e3b1bf43-7872-4f88-780b-08da33f54b02
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 May 2022 08:56:24.4178 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: zOFBh9aya7zShcMZhIZ6B5YzqHoQ5k6YVd9N/xH0Jpo+lkoOFZIW1r7m/+5LarXjiqpt4nnfT4f8cdvF9KJBDKrGLE427gt5/K6/tlhc3pU=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYXPR01MB1693
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/UfNWChVhPyC05IyEe89JVu6FvLE>
Subject: Re: [6lo] Router reboot - loss of state
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.34
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: Thu, 12 May 2022 08:56:37 -0000

Hi Pascal,

Thanks for pointing this out! Indeed, the problem is not limited to sleepy devices, but relevant for all nodes that expect address registration according to RFC6775 Section 3.3. The mechanism assumes that hosts actively register their address with the router using NS with ARO and that the hosts are responsible for maintaining the registration depending on the configured lifetime. However, if the router is rebooted unexpectedly (e.g. due to a power outage) it will lose its neighbor cache information. This may not even be noticed by the connected hosts, so they will assume their address registration at the router is still okay, which is not the case. Considering the possible long registration lifetime, this would lead the connected nodes unreachable for a long period of time.

The DTSN present in DIO messages can be used to refresh routing information by triggering DAO transmissions, but it will not trigger any address re-registration. What we need then is kind of an advertisement issued by the router after reboot that asks the connected hosts to send another NS with ARO to refresh their neighbor cache registration at the router. Probably this could be done by creating a dedicated option to be used in an unsolicited NA send to link local multicast after reboot. This option could be conceptually similar to the DTSN, just for ARO.

The lack of such a feature has clearly been identified as a gap, especially when operating mains powered nodes in unstable grids. Hence, I'd prefer to extend the scope of the existing multicast draft to get this fixed as soon as possible. Happy to contribute to a new version of the draft if desired.

Best regards,

Klaus

From: Pascal Thubert (pthubert) <pthubert@cisco.com>
Sent: Freitag, 6. Mai 2022 11:11
To: 6lo@ietf.org
Subject: [6lo] Router reboot - loss of state

Dear all :

There's one thing that was left unspecified in the RFC chain from RFC 6775, 8505, and 9010.  That's the case where the 6LR reboots and the 6LN is not aware of the event, maybe it was sleeping. In that case the 6LR forgets the registration and the 6LN might become unreachable till it reregisters. A router that knows the event will happen  goes could send a final RA but the 6LN might not hear it either, so the result is not deterministic. Anyway that does not cover the unintended reboot.

Usually the L2 detects a loss of association or something, that triggers the 6LN to reparent.  But that is not guaranteed to be available in all networks.
RPL has a method, the DTSN in the DIO (https://datatracker.ietf.org/doc/html/rfc6550#section-6.3.1<https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc6550%23section-6.3.1&data=05%7C01%7Cklaus.hueske%40renesas.com%7Cc6095f0e524742e74d5108da2de3ab9f%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C1%7C637872753125005927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5PLxb2Vqb3sMtbjFx7onAM8eT1CP1Uqhf3Cc%2FmnpAEI%3D&reserved=0>). A new sequence indicates that the child that sees it needs to send its state, DAO in this case. The child will eventually see a DIO, and when it sees it, the child will know that the sequence was incremented. Though the text in RFC 6550 does not list all the cases when that is useful, a reboot in storing mode is certainly one.

But this only requires resending  DAO messages and has no effect on ND. https://datatracker.ietf.org/doc/html/draft-chakrabarti-nordmark-6man-efficient-nd-07#section-6.3<https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Fdraft-chakrabarti-nordmark-6man-efficient-nd-07%23section-6.3&data=05%7C01%7Cklaus.hueske%40renesas.com%7Cc6095f0e524742e74d5108da2de3ab9f%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C1%7C637872753125005927%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7L53ZM1wt%2BMbYAZEoMPssWOBXiDpi9XlNjGBCx%2Bu2iY%3D&reserved=0> has the same operation with a new RA option, the RAO, which also has a sequence counter, the router epoch; but the draft was stalled at 6MAN and the function is still missing. My suggestion is to fix that gap sooner than later.

The fast path is to integrate the option in the multicast draft. The slow path is to make yet another RFC. What would you guys prefer?

Keep safe

Pascal




Renesas Electronics Europe GmbH, Geschaeftsfuehrer/President: Carsten Jauch, Sitz der Gesellschaft/Registered office: Duesseldorf, Arcadiastrasse 10, 40472 Duesseldorf, Germany, Handelsregister/Commercial Register: Duesseldorf, HRB 3708 USt-IDNr./Tax identification no.: DE 119353406 WEEE-Reg.-Nr./WEEE reg. no.: DE 14978647