[lisp] Re: Paul Wouters' Discuss on draft-ietf-lisp-name-encoding-11: (with DISCUSS)

Dino Farinacci <farinacci@gmail.com> Wed, 07 August 2024 22:36 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 0C6EDC169415; Wed, 7 Aug 2024 15:36:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MzkjqyjYLFGF; Wed, 7 Aug 2024 15:36:08 -0700 (PDT)
Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D0395C137363; Wed, 7 Aug 2024 15:36:08 -0700 (PDT)
Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-7104f93a20eso342028b3a.1; Wed, 07 Aug 2024 15:36:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723070168; x=1723674968; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Upc8jVD2QIO67GCiGxfB6OyidZf7Nd/8HZFn6CXjcks=; b=GSSUE6vsUyM/5wyOccc03e5+i6BqKt+VRfnWW9rM/zJvimWA0eiCxL33U/i0l4tNxl T21IaT75NxJipN+mQxHZM+YCO+AgK+wpFjy45OL4gd0SLqsNbXunkQ8zqY5/IdSeE0pV hkA4S8xhSMpmXQfnqowrBh6RZRo9x//XUH8f8oIHZva5F1c0OFjm+sU2Zo+sxDhJSmsb VO5qnuSqlzvhEmWZdz23fEVlD5nTDnAQFMKGHW4XIV+E66YRW7EbP/yelFj7qYh+RaaK zzpNsjf+z8Jwi78/tdFMviVL+2BZxKGXMbNgSzuSNpKOSbAoNErZfI9B69flt/ep6MhO G0fA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723070168; x=1723674968; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Upc8jVD2QIO67GCiGxfB6OyidZf7Nd/8HZFn6CXjcks=; b=LtzEV5lK5kozbkS3ZRYK5YG6jMq37BLNdOOm/ibaoRQ9dMChrm4/rmPaNux3FuC2gB jlRQlA6QaAkoy29UPQ81st/ehPjp1WFny4z94XoFWtEwCkITVKvhgEQhAEiCGimsEIXj iec2EtCbJOILNbh8EIVx3fyJTPC4WuEVANmO4M3YIoI7yunYes/5VEEnWvYUimfQoxSH UcAzZ+TNUq9cLXHCiRVoiJQYD/dSX4hqo1gLDqhB8fW723BGJ5eLuqeP/14tNaLeQlDb oovTqH2xv3oA6iPsfsujC/I382o6+3SXoFozhKP8W5cRfUtKggoXACTG7vf1Wq2oE5Fn cSBA==
X-Forwarded-Encrypted: i=1; AJvYcCWJQDZh6vC+ENS5EWBb+GBHjoOn/5nM9XL/wWUI/AR0CguydQgga8G8zIYLjlmu9BPL9GmVx8YQdeKcIzOo0GNHMqEi3OKqo7MKiLS+uoh4tQMIeNEVk0GeKBjk8LIQBYfzzgHIknqQSI10CJOEI0g4VCCVZYouUbF2Ab8=
X-Gm-Message-State: AOJu0YxBU7CFoEJcnu6wF01VVBh/YC8RJUvVRB1E8jMvxNySKTXFdK0p N6FoFkiwNKhZX+aN5eSPxzjjZBFEAL5lBMW36jobn0+5cUohypwI0cK9vQ==
X-Google-Smtp-Source: AGHT+IERp8dKQ/bgajWXnqwg+h2DW6NWJZp1XHqkF3goPsHe0gEyYt2k/mWNJMWevRpCebY6L1xyZQ==
X-Received: by 2002:a05:6a00:139e:b0:706:34f3:7b60 with SMTP id d2e1a72fcca58-710cae1fdf4mr167401b3a.23.1723070167921; Wed, 07 Aug 2024 15:36:07 -0700 (PDT)
Received: from smtpclient.apple (c-24-5-184-219.hsd1.ca.comcast.net. [24.5.184.219]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-710cb228d37sm13443b3a.46.2024.08.07.15.36.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2024 15:36:07 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
From: Dino Farinacci <farinacci@gmail.com>
In-Reply-To: <172304459941.1013121.11937367259711040068@dt-datatracker-6dd76c4557-2mkrj>
Date: Wed, 07 Aug 2024 15:35:56 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F7AC9B9D-1CB3-4D94-A0D7-42CB10F54753@gmail.com>
References: <172304459941.1013121.11937367259711040068@dt-datatracker-6dd76c4557-2mkrj>
To: Paul Wouters <paul.wouters@aiven.io>
X-Mailer: Apple Mail (2.3774.600.62)
Message-ID-Hash: QQHBT27GRESVORJNI3MILRULUHVFVEKY
X-Message-ID-Hash: QQHBT27GRESVORJNI3MILRULUHVFVEKY
X-MailFrom: farinacci@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-lisp.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: The IESG <iesg@ietf.org>, draft-ietf-lisp-name-encoding@ietf.org, lisp-chairs@ietf.org, LISP mailing list list <lisp@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [lisp] Re: Paul Wouters' Discuss on draft-ietf-lisp-name-encoding-11: (with DISCUSS)
List-Id: List for the discussion of the Locator/ID Separation Protocol <lisp.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/lisp/rBiRZ_Q-27CrzvTAfZbns298y_4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lisp>
List-Help: <mailto:lisp-request@ietf.org?subject=help>
List-Owner: <mailto:lisp-owner@ietf.org>
List-Post: <mailto:lisp@ietf.org>
List-Subscribe: <mailto:lisp-join@ietf.org>
List-Unsubscribe: <mailto:lisp-leave@ietf.org>

Thanks for your comment Paul. See my responses inline.

> ----------------------------------------------------------------------
> DISCUSS:
> ----------------------------------------------------------------------
> 
> Thanks to Rich Salz for his SecDir review. I strongly agree with his comments.
> 
> The core problem of this document is that it specifies a namespace without
> specifying the rules of the namespace. Saying "ASCII" is not a proper specification.

The document specifies and design how LISP can encode strings. The rules are in this spec. The content of each byte are ASCII bytes.

> Is Distinguished Name (DN) the same as the X.509 meaning? I cannot tell
> from its IANA registry allocation as all that is listed there is an email
> address? :/

It is the one that that is refereneced in the document.

> If so, their format is not "ASCII", eg it is more something
> like:
> 
> "a string consisting of a sequence of attribute type/value pairs
> separated by a semicolon (';' U+003B)'.
> 
> Sometimes comma's are also considered. It also allows non-ASCII
> values. What about unprintable ASCII values, eg value 0x07 which
> is "audible bell" ? Is "ietf.name" the same as "IETF.name" ?
> 
> Why not UTF8? Or if this is deemed to have the "hierarchical properties"
> of DNS names, why not Punycode ?

I am pausing to address this since the reviewers can't agree what to reference.

> Diagram section 3 is wrongly formatted. It shows a two octet AFI field,
> followed by a two octet ASCII field, followed by a 23 bit ASCII field,
> followed by a 9 bit "0" field ? But the description and text does not
> support this.

No it doesn't it shows a "…" indicating that the ASCII string is variable length.

> Is the "." a special character ? Or "," or ";" (both used as separators
> of DNs in X.509), how about a space/tab? Or a dot (") ? Is backslash (\)
> used for masking? Is \\ supported to denote a backslash?

It means variable length and are used in many packet diagrams.

> "There are no security considerations."
> 
> What about mask-len's outside the ASCII string?

> What about mask-len pointing at the 0 octet?
> What about strings without trailing 0 octet?

Where we describe encoding, I will add text to indicate if the mask-len and null byte are not consistent and what to do.

> What about similar looking strings?

Don't know what you mean. If there are multiple encodings of DNs in the packet, the strings can be the same.

> What about privacy concerns for strings?
> What about indistinguishable Distinguished Name?
> What about a NULL name of length 1?

What about them? They are stored as they are received in the packet.

> What about an invalid length 0 that cannot include the 0 octet ?

Then the parser will jump over the AFI value. I will make that more clear.

> What about excessively long length or mask specifications?
> What about matching case sensitive or insensitive?

Well since I say ASCII encoding it is case senstive and don't need specifiy it. It would be redundant specificaiton.

> What about special ASCII characters?

What about them?

Thanks again,
Dino