[dnssd] SRP - supports subtype

Kangping Dong <wgtdkp@google.com> Mon, 11 January 2021 03:57 UTC

Return-Path: <wgtdkp@google.com>
X-Original-To: dnssd@ietfa.amsl.com
Delivered-To: dnssd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADB2A3A1532 for <dnssd@ietfa.amsl.com>; Sun, 10 Jan 2021 19:57:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -16.972
X-Spam-Level:
X-Spam-Status: No, score=-16.972 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.373, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.998, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 HEBLBvDaVMrC for <dnssd@ietfa.amsl.com>; Sun, 10 Jan 2021 19:57:03 -0800 (PST)
Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (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 4A92B3A1530 for <dnssd@ietf.org>; Sun, 10 Jan 2021 19:57:03 -0800 (PST)
Received: by mail-yb1-xb2a.google.com with SMTP id d37so15639295ybi.4 for <dnssd@ietf.org>; Sun, 10 Jan 2021 19:57:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Du766rlykuj/ZNEe1H8AlcURmv6mZi+8XMzF4Hrj5sI=; b=nft9n/NJu0yyTL/vHQIltiI8kfd5NFBnmJUq8/7Cyz1hDCx1BRPaohQvvFBczx6kSA mxj2zVnWeNF317hWw28vVH01bxY55hZdJhrjtudFFOSnr/Y6Dilm5qfnccxe+p8OdyZJ IQ8LmevwBfMWeZ9Q7vGc+CUwfJ4fx5bJGktpmMrsgzmaWsp+qP3IAYloHuwhNtxOkAIB WkprhB0WdPchC+0S4do5K1ERlOXcWrkaANleis0lFnF3GKIyWMCewYd3Fx6Z6RRhJETC Pt+rb0EcGSeXk3fQe4h/r9rA1+Tbe197QQb2yq37tKDrdTLze2puo+XiEBb0MzFsZuvO Yn9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Du766rlykuj/ZNEe1H8AlcURmv6mZi+8XMzF4Hrj5sI=; b=hKZ4kjkAbL5rprJU1eOgzXas16q1zgKMtx2jEjNdsUUXDZ8h+BSG2kreS57kaTaPIn dnQ6Vv2yKGTqIn72LnzaDDiqLeLNmA3axwBw0kesoOlz2JPo6U6KL8xhJa64NySSzfL1 0pHKBxXoW9M2RlmSqx8BEqkn33VYfFo3R/zNoNnTOJM4ebxcWcxwT5ZJFNkRIjjXhM01 Ny1NfP+c6vXM2VcHyQKlInwjWgkk9jR4rPUSP9f6LfuHSmgx8tY+X81fWR2YQkbuGDao 2ApXvl/bXQt+j/1RwOr3Pm/9m6IxgkE7VeQ1RZW0TAROpwRWsfLiXXZHhYdVge9karbL dCyA==
X-Gm-Message-State: AOAM5306k9c80T9pSiGJxhbL5VfPkw/SqXCA3x8nqdqqq6Z9/X1hZnKn ukiv50WwiPUk0MgjHTnl+ADBlwD/SDiCrMN3/fvOJ3pw2hBTO0/h
X-Google-Smtp-Source: ABdhPJzAEcx8jS9Q0SC7kmtbcsrjR3B++jRC7dE5GthZ0sWxA7AKKKAUSCpHjjkkSVRiF1JWUyynApVkX3sAGSXihIM=
X-Received: by 2002:a25:d753:: with SMTP id o80mr20401111ybg.169.1610337422050; Sun, 10 Jan 2021 19:57:02 -0800 (PST)
MIME-Version: 1.0
From: Kangping Dong <wgtdkp@google.com>
Date: Mon, 11 Jan 2021 11:56:25 +0800
Message-ID: <CAJ5Rr7brniEox-vX9iwRHTgDdbY_xt=HD9U6wh7-JinB5X-=JA@mail.gmail.com>
To: DNSSD <dnssd@ietf.org>, Jonathan Hui <jonhui@google.com>, Abtin Keshavarzian <abtink@google.com>, Rongli Sun <rongli@google.com>, Simon Lin <simonlin@google.com>, Ted Lemon <mellon@fugue.com>
Content-Type: multipart/alternative; boundary="00000000000002fd2e05b897e6ce"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/Xrvb09F631QhQaCqx1HLQh3nOvE>
Subject: [dnssd] SRP - supports subtype
X-BeenThere: dnssd@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of extensions to DNS-based service discovery for routed networks." <dnssd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnssd>, <mailto:dnssd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnssd/>
List-Post: <mailto:dnssd@ietf.org>
List-Help: <mailto:dnssd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnssd>, <mailto:dnssd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jan 2021 03:57:05 -0000

Hi,

Seems project CHIP
<https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/secure_channel/Discovery.adoc>
needs support of "subtype":
>
> Three subtypes for CHIP Commissioning Discovery are defined:
>
>    1.
>
>    Sddd (eight-bit short discriminator, encoded as a three-digit decimal
>    number in ASCII (UTF-8) text, with leading zeroes as necessary)
>    2.
>
>    Ldddd (twelve-bit long discriminator, encoded as a four-digit decimal
>    number in ASCII (UTF-8) text, with leading zeroes as necessary)
>    3.
>
>    Vddd (optional vendor id, encoded as a variable-length decimal number
>    in ASCII (UTF-8) text, without leading zeroes)
>
> (Please search "subtype" in this doc
<https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/master/src/secure_channel/Discovery.adoc>
to
find the source

But current SRP spec seems not supporting multiple PTRs (Service Discovery
Instructions):

> An SRP Update MUST include at zero or more Service Discovery
>    Instructions, the same number of Service Description Instructions,
>    and exactly one Host Description Instruction.
>
> (https://tools.ietf.org/html/draft-ietf-dnssd-srp-08#section-2.3.2

I think multiple Service Discovery Instructions need to be allowed for a
single Service Description Instruction, if we want to support subtype.
Thoughts?

BRs,
Kangping