Re: [dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)

Kangping Dong <wgtdkp@google.com> Fri, 18 December 2020 04:03 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 AE09D3A0EAF for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 20:03:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.256
X-Spam-Level:
X-Spam-Status: No, score=-17.256 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, 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.342, 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 aGKKCl-KBJoC for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 20:03:15 -0800 (PST)
Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) (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 7991D3A0EFA for <dnssd@ietf.org>; Thu, 17 Dec 2020 20:03:11 -0800 (PST)
Received: by mail-yb1-xb32.google.com with SMTP id x2so738799ybt.11 for <dnssd@ietf.org>; Thu, 17 Dec 2020 20:03:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zfHKWzuwtMJenIdUJC+ngFzsGMddGJ0FTnn7o6xqwkc=; b=g2bxDswbEXQOm9h6xfmfBW7ZVhAddlD2+8qMZUfroIYjtie6eNbF5SSOf9BJVzbMTw fkuxGxqCer2j+laxoZmiWqx9HBKaFjVKgYLueHJZk7gRaMfc5iTIp8f7px6lRFTKMFSX uj2RYwh3cS1SNlOqVuPRgf6u0Q1NWpi2lQ0dxvhswdc9Ywxcc0UcqN0sxJCtZrSOs50l o5z0qUkIfL/Uax1i8nVmt9qC2iPkTXlCVwEZZtUeH75yd0u0Lg5QKsX/VP/FL5Vy/Xqv Grr2uDYRaQk/W1X1iZMlD5fzKJ7TuBQmBQhJvGOPq6Pid7DMTl/fPiS2aasP86KJNQQ/ P9Vg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zfHKWzuwtMJenIdUJC+ngFzsGMddGJ0FTnn7o6xqwkc=; b=GFBhCrjkdApLe2VAPXZHEl+D1e8hZXllZhq8FAEW+xWldf2fC79KM4ufQvhbPOPtek HthnB5urt/j1FqmpLZgF4/APgPubsgukEWuNb2ahfRGA+UVfp8YJa7KxekMm9SX3BAH8 UtxICGxJcqBolwBScS1YE+uweV589zXZITZdXnOhtKMPIDba5J7hRTyCpoSN3ThYjFiu dUuNsf4lijDamhBDoYk4rqvWx0ynMcgz5Sw9Ne7XUDJ/nngByGJJxX8aMAX2gz0RpInf G4h0ijUpfzpnkw1NgLqhRuyNmn+VgVu+/tgzHyN1pApLqt7mxM9a4pSudizBwNjDB/Tv cdLw==
X-Gm-Message-State: AOAM531NAOZchN+jpOQfbIYY8iw/zPdlad2gAY7HwRUNaDBA1kVbtd5J dsmc5Ct7L6PrMFYLutXHH8vX+qEkiVaEYICs8ALymQ==
X-Google-Smtp-Source: ABdhPJyVPqPrl0g2At6AUbAo+Lr2KK7DLwoI8IvxnfcYEVFhEssSsKxDINHKZfje31ljC6aAlnUbmlAaf7p4VHKag1o=
X-Received: by 2002:a05:6902:706:: with SMTP id k6mr3865676ybt.232.1608264190318; Thu, 17 Dec 2020 20:03:10 -0800 (PST)
MIME-Version: 1.0
References: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com> <031C980F-D8B6-4051-8DC0-D8417FDBBD0F@fugue.com> <CACce4dQZ708aaMdvmwhEurHDSdFAvLbzwpDWz=viig_2cX75Dw@mail.gmail.com> <680A60B6-BD88-475E-91ED-48F23036A7C8@fugue.com>
In-Reply-To: <680A60B6-BD88-475E-91ED-48F23036A7C8@fugue.com>
From: Kangping Dong <wgtdkp@google.com>
Date: Fri, 18 Dec 2020 12:02:34 +0800
Message-ID: <CAJ5Rr7bDSMv1uPDPXppG9e4OUEU7oriK9tVKD20=P3Kgb2q=0g@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
Cc: Abtin Keshavarzian <abtink@google.com>, dnssd@ietf.org, Jonathan Hui <jonhui@google.com>, Rongli Sun <rongli@google.com>
Content-Type: multipart/alternative; boundary="000000000000c535da05b6b52f2d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/qjFtIYLVNBB-dOHXLZOC26OjU4Q>
Subject: Re: [dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)
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: Sat, 19 Dec 2020 13:44:56 -0000

Hi Ted,

I'd like to summary my understanding of what current SRP-draft-06 is
doing/allowing:

   1. We can add services separately. like, we can add "service-1" and in
   the first SRP update and "service-2" in the second SRP update.
   2. We can only remove all the services together with its host because
   "exactly one Host Description Instruction" is a MUST for each SRP update.

But the spec seems, is not enforcing this behavior:

> Therefore, SRP servers MAY remove all
> service instances pointing to a host when a host is removed, even if
> the SRP client doesn't remove them explicitly.
>
> If we cannot remove individual service without removing the host, should
the "MAY" be a MUST?
Otherwise, there may be no efficient way to clean up the service until the
lease time expires.

To remove a service registration, the SRP client retransmits its most
> recent update with an Update Lease option that has a LEASE value of
> zero.
>
> Does it remove only the services in my most recent update or all services
I have ever registered? This is what
I was confused about and thought we can remove individual service. As we
cannot remove individual service,
I think we don't need to retransmit the most recent update: It may be more
efficient to always transmit a
SRP update with only Host Description Instruction and zero lease time.
Thoughts?

For the current use model, I agree it will work for most cases and removing
individual service may be rare
(even there are, it can be done with a "removing all" and an add). So I
don't have a strong opinion to support it.

BRs,
Kangping

On Fri, Dec 18, 2020 at 10:07 AM Ted Lemon <mellon@fugue.com> wrote:

> On Dec 17, 2020, at 7:40 PM, Abtin Keshavarzian <abtink@google.com> wrote:
>
> - In "Service Description Instruction", we allow a "Delete all RRSet from
> a name", with possibly no follow-up adds.
>
>
> Yes.
>
> - When a service is being deleted, we can consider allowing KEY RR "Add to
> an RRSet" for instance name to be optionally included, to have the server
> keep the instance name reserved (if desired).  Does it make sense?
>
>
> We could allow this, but KEY RRs are large, so we might prefer not to.
>
> - In "Service Discovery Instruction" I think we need to allow delete as
> well (I guess "Delete an RR from an RR set" for PTR RR)?
>
>
> Yes, and the RR has to be pointing to a Service Description Instruction
> which is also being deleted.
>
> - We continue to require SRP Update msg to always include exactly one
> "Host Description".
>
>
> Yes.
>
> Does this all sound good/reasonable? Anything I may have missed?
>
>
> It sounds fine. I’m curious what others think about this.
>
>