Re: [lisp] Request for WG document - draft-farinacci-lisp-name-encoding
Dino Farinacci <farinacci@gmail.com> Tue, 29 September 2020 20:56 UTC
Return-Path: <farinacci@gmail.com>
X-Original-To: lisp@ietfa.amsl.com
Delivered-To: lisp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 257033A118C for <lisp@ietfa.amsl.com>; Tue, 29 Sep 2020 13:56:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 Jz5eemzYWJxw for <lisp@ietfa.amsl.com>; Tue, 29 Sep 2020 13:56:49 -0700 (PDT)
Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9F1A03A118B for <lisp@ietf.org>; Tue, 29 Sep 2020 13:56:49 -0700 (PDT)
Received: by mail-pf1-x42a.google.com with SMTP id d6so5904742pfn.9 for <lisp@ietf.org>; Tue, 29 Sep 2020 13:56:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=Y89x7uAGG9UbI+ryBX7Ce9Al4kfoMlnRFdZN3eAKqYw=; b=VOr6vLVZLmMi25VNNnl46BeHIKzQNHLiHEObIyO19OdVcjFOmmsAFvdb70rLOrAj/b X2mSpbCMvg5QUfgER6a+cHeK8QC3vzoeN+qC5PgnKDv+KALKTGB+4gt8s799tkf5fMYO A+wOY2cawbwTE9gIm1k1rbc9BohK3ZVVmmxzS186WCMPpkuq3BJBXBo/a077B+CTKHKF 8T4S46d4oTIKxfmfKZ9bxY5nMXkln8glfqA1yTo275OXu6/GoOHd4FSTyuVHnOiYLx1W 2HZRci2+SiPodvdOAlJUIbpALWBCG8yVYjSvHbst396gI4Ge85AS38zgEVXMm43eiqlh zfBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Y89x7uAGG9UbI+ryBX7Ce9Al4kfoMlnRFdZN3eAKqYw=; b=V7vp0XeM9Bfreuc/wD33TFtBbWj+qT3kuV6dV99NRSYgTLU+F5gGMNUteGH5Gi89DQ hE3HqwrMKFTXdz+u5KewwlU4SXViWehqUeXvJ6GGmbluq9+Cw5Ee3gTfttKctJktTEHV HnYUhyP6IHWmB+UCYwa8WZLtfrDg7eCHzpFj+AlTl/uILSrL66V8z1F3AjzdBEiyuA/A fs2zXU9xASzWfJ6rJMwugO2CJ678UlhBj5p8x6/0/4guB80HalPhJvrBXZq2UPZaWtF+ xHSrMNZCn4+fmkHJvHlYYgwO75BjF3MrC7C8poNjaVasRcEMcI+15U4eVE02+2ULalFe 6zFw==
X-Gm-Message-State: AOAM531j+nNXw764vnE8VJFK5h7ftHMEoN92yH6A25MfToa9ReBErxnM T8VaHXlFX2685HGFohNPkHWtBygkVRfl4w==
X-Google-Smtp-Source: ABdhPJycgJZZtEmEuSUCmwnPqDcZtnhlwEt9SksNJ+i/qkbdcYK+vYCdogEaUpe4HPKlEyScO8yH4Q==
X-Received: by 2002:a17:902:424:b029:d0:cb2d:f26f with SMTP id 33-20020a1709020424b02900d0cb2df26fmr6098034ple.8.1601413008849; Tue, 29 Sep 2020 13:56:48 -0700 (PDT)
Received: from localhost.localdomain (c-73-71-108-5.hsd1.ca.comcast.net. [73.71.108.5]) by smtp.gmail.com with ESMTPSA id u27sm5569095pgm.60.2020.09.29.13.56.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2020 13:56:48 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: Dino Farinacci <farinacci@gmail.com>
Mime-Version: 1.0 (1.0)
Date: Tue, 29 Sep 2020 13:56:45 -0700
Message-Id: <A5FF74F2-C099-45D9-AEB5-459C3D451786@gmail.com>
References: <921b82e9-ea40-bab9-eb3e-809375528741@joelhalpern.com>
Cc: "lisp@ietf.org list" <lisp@ietf.org>
In-Reply-To: <921b82e9-ea40-bab9-eb3e-809375528741@joelhalpern.com>
To: "Joel M. Halpern" <jmh@joelhalpern.com>
X-Mailer: iPhone Mail (18A373)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/uT1bgwRpum9yRnay-6KLEwbgXc4>
Subject: Re: [lisp] Request for WG document - draft-farinacci-lisp-name-encoding
X-BeenThere: lisp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lisp>, <mailto:lisp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lisp/>
List-Post: <mailto:lisp@ietf.org>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lisp>, <mailto:lisp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2020 20:56:51 -0000
Well I have seen these sorts of issues come up before and it usually is not as bad as designers think they are. In practice, people make up there own rules and out checks and balances in to verify collisions. Dino > On Sep 29, 2020, at 1:23 PM, Joel M. Halpern <jmh@joelhalpern.com> wrote: > > Another way of looking at my issue here is the many problems the DNS folks have had with tXT records. They are free-form text. Making them useful has proven to be a major challenge. hence, even as RLOCs rather than EIDs (where the collision problem is not an issue), I am concerned that adding this is opening a can of worms. > > Yours, > Joel > > PS: Dino, youa re correct that the hash probably won't collide with anything else. But for anything that is not cryptographically random, collision seems a major risk. > > PPS: Even for you hash case, you concluded that you needed a type discriminator (hash:). Presumably so taht you would know which one you needed for the ECDSA operation. Sensible. But if we need that, probably eveyrone needs that. At which point it should be part of the definition. At which point we get into defining the structure of these naems with sufficient uniqueness. Or sub-typing, Or something. > > On 9/29/2020 3:58 PM, Dino Farinacci wrote: >>> I think it really needs more structure. One does not say "here is a shared database; use any key you like and hope not to collide with other users." >> I can add that to the draft. >>> >>>>> If there is to be standard usage of this, and if there is to be more than one such usage, how are collisions avoided? It is not sufficient to say "just don't" as different problems may end up needing overlapping name spaces. The hash usage (below) assumes that the solution is to prepend the string "hash:' on the front. But that is not formally defined, and as such is not actually a reliable mechanism. >>>>> (Frankly, for the hashes I would prefer to use a different EID LCAF that carries the binary hash.) >>>> The ecdsa-auth use-case assumes that the hash length is largest where collisions won’t happen. There are applications that use UUIDs and encodes them in distinguished-name EIDs. UUIDs do not have an allocation authority. And: >>> >>> the ECDSA draft assumes that no other uses will begin with hash:. This has nothing to do with length. My concern is not collision amon hashes. It is collision between hashes and other uses of the "distinguished name" LCAF. >> If the hash avoids collisions, then anything you put before it, in totality makes the name unique. >>> I suspect that the people supporting this have expectations on how this will work. But it seems sufficiently basic that the semantics, rather than the encoding, is where I would expect the WG to start. Encodings are easy. >>>> So lets have a look at each Internet Draft that references draft-farinacci-lisp-name-encoding and lets review those semantic encodings. >>> >>> Looking at the couple of places you have chosen to use this, and have therefore been careful not to collide with yourself really does not tell us much. >> If you connect two IPv4 islands behind NATs and register their addresses to the same instance-ID to the same mapping system, those addresses will collide. The same goes for these names. That is what VPNs are used for and hence instance-IDs allows the registering entities to agree to not collide names. >> This is a general principle for the LISP mapping system for all EIDs being used. And note for RLOC-names, they do not have to be unique. They are free-form documentation based names. >>> If you want a sub-type under LCAF, then let's do that. trying to pretend arbitrary strings have distinguishable semantics is asking for trouble. >> The AFI encoding is tigher and save less space in the packet and hence why it was chosen. Plus if you use it in LCAFs, there is less LCAF nesting. I'm sure many coders appreceiate this. >> Dino
- [lisp] Request for WG document - draft-farinacci-… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Sharon
- Re: [lisp] Request for WG document - draft-farina… Lori Jakab (lojakab)
- Re: [lisp] Request for WG document - draft-farina… Albert López
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Albert López
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Luigi Iannone
- Re: [lisp] Request for WG document - draft-farina… Luigi Iannone
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel Halpern Direct
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci
- Re: [lisp] Request for WG document - draft-farina… Joel M. Halpern
- Re: [lisp] Request for WG document - draft-farina… Dino Farinacci