Re: [6lo] ND cache entries creation on first-hop routers

"Pascal Thubert (pthubert)" <pthubert@cisco.com> Wed, 03 July 2019 08:13 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 93E4812069D; Wed, 3 Jul 2019 01:13:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 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, 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=dL7mHtBW; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=r2e4/bxx
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 dI68wlfcPjOr; Wed, 3 Jul 2019 01:13:54 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDD0F1204E0; Wed, 3 Jul 2019 01:13:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3969; q=dns/txt; s=iport; t=1562141633; x=1563351233; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=bI2Pj3V1pAP9pU6pvLZCaBKrMR6Xp8ayxbug/02yrhA=; b=dL7mHtBWOZa4sQscy1IacyIyYlrtt2KczeXmzuEpa5rww3CunD/7UIHj r/D7SElx4SgPBGSzdf/o4KI4w++wrCrQgTsIddzQs/f+2t9ZIeanxIwLz e9ULOxLMsQXPhLPPxQ7/nXcOup/wwx/PJwJGnIbu0zChC76wXqhcF4wjn Y=;
IronPort-PHdr: 9a23:iXB7sh1hEIaQOkCcsmDT+zVfbzU7u7jyIg8e44YmjLQLaKm44pD+JxKGt+51ggrPWoPWo7JfhuzavrqoeFRI4I3J8RVgOIdJSwdDjMwXmwI6B8vQEVH7MfTndTASF8VZX1gj9Ha+YgBY
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ALAAC9Yhxd/5JdJa1lGgEBAQEBAgEBAQEHAgEBAQGBUwUBAQEBCwGBQ1ADalUgBAsoCodZA4RSigyCW4lNjXmBLhSBEANUCQEBAQwBARgLCgIBAYFLgnUCgh8jNAkOAQMBAQQBAQIBBW2KNwyFSgEBAQQBARAoBgEBLAsBCwQCAQgRBAEBARUJECEGCx0IAgQBDQUIEweDAYFqAx0BAgyZPAKBOIhggiOCeQEBBYFGQYMNDQuCEgMGgTQBhHGEJIJJF4FAP4ERRoFOfj6CGkcBAQMBgRgJPj2CfYImjBWdZ0AJAoIWhlaJNoQOl22NMIc8gXKOAAIEAgQFAg4BAQWBUDiBWHAVO4JsgkGDcYUUhT9ygSmLeAGBIAEB
X-IronPort-AV: E=Sophos;i="5.63,446,1557187200"; d="scan'208";a="590799039"
Received: from rcdn-core-10.cisco.com ([173.37.93.146]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 03 Jul 2019 08:13:52 +0000
Received: from XCH-ALN-008.cisco.com (xch-aln-008.cisco.com [173.36.7.18]) by rcdn-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id x638DqvX027033 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 3 Jul 2019 08:13:52 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-ALN-008.cisco.com (173.36.7.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Jul 2019 03:13:52 -0500
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 3 Jul 2019 03:13:51 -0500
Received: from NAM05-BY2-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 3 Jul 2019 03:13:51 -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=tUYVw6w/Q+VCqMUMDBBlTGPQM2Hc40W5RbgkDQQ0l0Y=; b=r2e4/bxxZKj9pT6H9+0okSG+ZhiYe3KJGMkVCdhCL88OkwxjWKKclmLEX73He0ICLCGnalGCC2i/Qyrj1rwY7Evh3dkoewC6rRVJuJucruBzcofOXBpwJRqyEDKcQCU0mC1bjpud5LssqSNXliSmCedDvxHaqHQRw85xOTW+Www=
Received: from MN2PR11MB3565.namprd11.prod.outlook.com (20.178.250.159) by MN2PR11MB4096.namprd11.prod.outlook.com (20.179.150.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Wed, 3 Jul 2019 08:13:50 +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; Wed, 3 Jul 2019 08:13:50 +0000
From: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "6lo@ietf.org" <6lo@ietf.org>, Jen Linkova <furry13@gmail.com>, "6tisch@ietf.org" <6tisch@ietf.org>
CC: V6 Ops List <v6ops@ietf.org>, 6man <6man@ietf.org>
Thread-Topic: [6lo] ND cache entries creation on first-hop routers
Thread-Index: AQHVMOxYqZ+Ae5ReXkiJP5a4XqZLuaa4gaXg
Date: Wed, 03 Jul 2019 08:13:34 +0000
Deferred-Delivery: Wed, 3 Jul 2019 08:12:49 +0000
Message-ID: <MN2PR11MB35652B81658AF0E9F718CD52D8FB0@MN2PR11MB3565.namprd11.prod.outlook.com>
References: <CAFU7BAQ4xrjNn9-EUyRhyHKDDT=f381Z4T6x6qJ=ftm2D2K4cw@mail.gmail.com> <5377.1562081856@localhost>
In-Reply-To: <5377.1562081856@localhost>
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: e052d524-e024-45e2-7741-08d6ff8e615d
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB4096;
x-ms-traffictypediagnostic: MN2PR11MB4096:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <MN2PR11MB40960F599447E01BD497A5DDD8FB0@MN2PR11MB4096.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 00872B689F
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(396003)(376002)(346002)(136003)(189003)(199004)(13464003)(51444003)(476003)(76116006)(3846002)(6116002)(66946007)(2906002)(486006)(73956011)(110136005)(14454004)(66476007)(256004)(2501003)(4326008)(316002)(54906003)(66066001)(478600001)(52536014)(66574012)(66446008)(966005)(8676002)(68736007)(53546011)(446003)(64756008)(66556008)(11346002)(74316002)(86362001)(71200400001)(6246003)(6306002)(71190400001)(76176011)(8936002)(7696005)(9686003)(305945005)(55016002)(6506007)(6436002)(25786009)(33656002)(5660300002)(81166006)(81156014)(102836004)(186003)(99286004)(229853002)(26005)(7736002)(14444005)(6666004)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4096; H:MN2PR11MB3565.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: RzOLfYa3gwsoBVuv5jePaamvIzHkf0JY4YL4ld++V2QygGYCAhd0590mItlE+of2MG9J2uBvRLrtTtNnlJJ/WTBfAt1vHeIuAdTisqlHeBss9APH83Tov/EGIDlDVkFP8OnBT8nYPhMqLvId5vj4TJ+6cnhJmAJJhRgBqh8L9guxbte5BOkMJxpE2I2yJLeB3rXsQMXNqg+SEkUfz19xvsxle14cVmQvzfQoBrfquwV2+Uo5umaViNcAsHJafXJusDalRXd6k1O5ABauWfgssH8qcpe7YlmnJlxW5e4RQ7bgZBMVvBwomoxvfC9nztx1pOKYL5WA5G+t95OtSfNvGD+Km1YSgBt5QbX3k1kwMPqaklbGwdFFnCSz+Gj80WM5SlXtKV4WDUlrAtGNQ1gaNLLF83Ui8kkcg82SmKnMh8o=
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: e052d524-e024-45e2-7741-08d6ff8e615d
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2019 08:13:50.1779 (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: MN2PR11MB4096
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.18, xch-aln-008.cisco.com
X-Outbound-Node: rcdn-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/3qc8qbyGMuBSkY8_-vpAzCfUo4M>
Subject: Re: [6lo] ND cache entries creation on first-hop routers
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, 03 Jul 2019 08:13:56 -0000

Hello Michael

6LoWPAN ND is immune to the remote DOS attacks on the ND cache, the ones coming from the outside of the subnet, i.e., from a place that is out of touch and virtually nowhere.
This is because in an RFC 6775/8505-only network, there is no reactive operation, a packet coming from the outside of the subnet for a node that is not registered to the router is just dropped. Just like an AP does not copy a packet on the wireless for a MAC that is not associated.

I'm baffled that the reactive ND is still the official technique for IPv6 lookup at 6MAN. The operations that you have to do in an enterprise-class router on a data packet, punt the packet to software, run ND, program the hardware, protect ND cache and CPU against DOS, are just from another age. So we have to run our own things (e.g., a LISP MSMR) on our fabrics when modernizing ND would do the trick in a standard fashion (see draft-thubert-6lo-unicast-lookup) .

Your point below remains correct, since the attack you describe is from a node that reaches the router at L2. Arguably, that attack is physically much harder to perform than the DOS packet from outer space.

All the best,

Pascal

> -----Original Message-----
> From: 6lo <6lo-bounces@ietf.org> On Behalf Of Michael Richardson
> Sent: mardi 2 juillet 2019 17:38
> To: 6lo@ietf.org; Jen Linkova <furry13@gmail.com>; 6tisch@ietf.org
> Cc: V6 Ops List <v6ops@ietf.org>; 6man <6man@ietf.org>
> Subject: Re: [6lo] ND cache entries creation on first-hop routers
> 
> 
> I think that the discussion here is particularly relevant to constrained
> devices/routers on route-over MESH(RPL,etc.) networks.
> 
> I also think that for L=0 networks, which RPL creates with RPL DIO messages
> rather than (just) RAs, and 6LRs that need to support join operations (like
> draft-ietf-6tisch-minimal-security) this may matter.
> 
> In particular, in the minimal-security case, we need to partition the ND cache
> such that untrusted (unverified) malicious pledge nodes can not attack the ND
> cache.
> 
> The behaviour 2.2.1.  Host Sending Unsolicited NA, should probably never flush
> an old entry out of the ND.  I think that under attack (whether from untrusted
> pledges, or from p0woned devices already on the network), it is better to
> prefer communication from existing nodes rather than new ones.  2.2.1.2
> mentions this.
> 
> {typo:
>       -It's recommended that thsi functionality is configurable and
>       +It's recommended that this functionality is configurable and }
> 
> I didn't really understand 2.2.2: is it exploiting some corner case in the spec, or
> maybe just some part I am not well clued in about.  So maybe an extra
> paragraph to explain things.
> 
> I kinda like the ping all routers trick.
> 
> 
> Jen Linkova <furry13@gmail.com> wrote:
>     > I wrote a short draft to discuss and document an operational issue
>     > related to the ND state machine and packet loss caused by how routers
>     > create ND cache entries for new host addressed:
> 
>     > https://datatracker.ietf.org/doc/draft-linkova-v6ops-nd-cache-init/
> 
>     > (taking into account some vendors have implemented one of the proposed
>     > solution already, I guess it's a well-known problem but it might still
>     > worth documenting)
> 
>     > Comments are appreciated!
> 
>     > --
>     > SY, Jen Linkova aka Furry
> 
>     > --------------------------------------------------------------------
>     > IETF IPv6 working group mailing list
>     > ipv6@ietf.org
>     > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>     > --------------------------------------------------------------------
> 
> 
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works  -
> = IPv6 IoT consulting =-
> 
>