Re: [lisp] Request for WG document - draft-farinacci-lisp-name-encoding

Dino Farinacci <farinacci@gmail.com> Tue, 29 September 2020 19:42 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 982713A110C for <lisp@ietfa.amsl.com>; Tue, 29 Sep 2020 12:42:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=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 OnuBV6I4BqfK for <lisp@ietfa.amsl.com>; Tue, 29 Sep 2020 12:42:08 -0700 (PDT)
Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 BEA983A110A for <lisp@ietf.org>; Tue, 29 Sep 2020 12:42:08 -0700 (PDT)
Received: by mail-pj1-x1030.google.com with SMTP id jw11so3258996pjb.0 for <lisp@ietf.org>; Tue, 29 Sep 2020 12:42:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=ELvChqogmfDlI/q03K/g+aKWoQXt+0XtjiPc33JKky8=; b=PdjDMQ/TWduWPo7NKHr4mY1ZfQB0hEKs+bhqg5X6IOjqJIgJis+V6OLlFF8/2GPwd6 a3n/G3N3ApUDl55sQIFlgBLZazzCyq0gmX0m1rPLrvuR/bLiefNX/F1PoIf55bcUSGdV n0C1xVUBlNIHzfrLhRHtUxZYuyUCl4NwxeJJ3qLzQy+gnm/z9Z54haPh9ReKYPog66El Nqfow0ifIzw/ZTa0bIMMWMUEiDS9CVL3wLANIoRWKFCPgkD2RamHz0DjzI8SWZ/Y0FGu AQUSsZxc1fDCbHFUa7ig6AQZoapIwMl3kBCV8iTqrsepCfMCEEr05XqxsughKSpAcZis hAVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=ELvChqogmfDlI/q03K/g+aKWoQXt+0XtjiPc33JKky8=; b=HsSjpPlvuBomMsl+ONN2U3tZv+3INSp7fbNpvE54u9RMXOL1Ac0K7S+DhrkP5/ljFn kH6SWh2OX/IZC7wLizb789ngRQFlfSIE0eeM9hqnXvEDgfRt1Tc4xCDAacId30mi3dg7 ZpglpveSSjPgIlLwlwXBjloYYj2739itxHx6Ko+5jEZeMMHP/+aitJFUKEfIyoXLNrJd YAuHOdpWYUnm4E7rS1yoalI20jvWT1u2NobEvF2dhy66qRRfjxlWtmLdxf5DwEDPRmnm oONnnhJd/1hr3lkslUOobC5s8BBC/yuRZ/kBtM06EGWtbjSESS+5j9Eb61T4HdliifKy v73A==
X-Gm-Message-State: AOAM533ndCcmGw9EOYP/IPu84sx5dVCjnb7Fd67pmGq8/DsqVRjEoTCw lDhCUPq1SHbhFDzGOKga9QqCGVsc6l2yug==
X-Google-Smtp-Source: ABdhPJxJZZ/yTTfFPs+I3hEqaWyaOJ3Osz1NoP7gDbdiVbEj0ZiAHMaIN6up/CVfTOrveRyfsEOvSw==
X-Received: by 2002:a17:90a:ce95:: with SMTP id g21mr5262590pju.175.1601408528197; Tue, 29 Sep 2020 12:42:08 -0700 (PDT)
Received: from ?IPv6:2601:646:9600:af10:60f4:288b:9c9:4794? ([2601:646:9600:af10:60f4:288b:9c9:4794]) by smtp.gmail.com with ESMTPSA id z63sm5975673pfz.187.2020.09.29.12.42.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2020 12:42:07 -0700 (PDT)
From: Dino Farinacci <farinacci@gmail.com>
Message-Id: <5B6F5137-C628-459A-9EB0-767635D5A622@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_91FD9201-6202-4D7C-AAF6-3022EA2DEBC3"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
Date: Tue, 29 Sep 2020 12:42:06 -0700
In-Reply-To: <f6e19069-7df6-8507-67de-194edd9f625a@joelhalpern.com>
Cc: "lisp@ietf.org list" <lisp@ietf.org>
To: "Joel M. Halpern" <jmh@joelhalpern.com>
References: <8ab7a055-3615-cf04-2749-446ecde2cc38@joelhalpern.com> <8A777782-AF51-48CA-936A-B6BD68C98334@gmail.com> <f6e19069-7df6-8507-67de-194edd9f625a@joelhalpern.com>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/4jGCRw-4cEnycx7boVAUxK6sVvc>
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 19:42:11 -0000

> Looking again at this draft, and at the example Dino points to, I think there is a basic problem with the work and the usage.
> 
> the problem is not a problem for the mapping system per se.  It is a problem for usage.
> 
> The draft does not define any mechanism for structuring, allocating, or otherwise managing the space of names.  It does not say "URIs".  It does not say "DNS names"  It syas "ASCII string, terminated by 0".

Because it is designed as a non-structured field where a deployment can decide what the structure is based on the mapping system it uses, or the instance-ID within a mapping system it uses.

The draft’s intent is to define a general encoding for LISP messages. How it will be used is left to other documents.

> 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:



> 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.

For draft-farinacci-lisp-simple-nat-00, the RLOCs are encoded with human readable RLOC-names so you can distinguish a multi-homed interface through NATs. That has proved useful for my lispers.net implementation.

> I will also acknowledge that as chair I have concerns about turning LISP into an arbitrary database system.  Our charter is a mapping system in support of routing.  I understand why the ECDSA keys need to be in there.  But I do not want to fall into the BGP trap of trying to solve every problem with the hammer in my hand.

I could encode anything I want in an IPv6 EID and make the LISP mapping system an arbitrary database. I don’t think anyone wants to do this. The mapping system is used for routing, addressing, identity, and location problems (at the network layer).

Dino