[dnssd] Some feedback on draft-tllq-tsr-00 (A 'Time Since Registration' Resource Record for Multicast DNS)

Liang qin <leonqin0101@gmail.com> Fri, 05 November 2021 21:56 UTC

Return-Path: <leonqin0101@gmail.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 6EF063A1056 for <dnssd@ietfa.amsl.com>; Fri, 5 Nov 2021 14:56:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.847
X-Spam-Level:
X-Spam-Status: No, score=-1.847 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_ENVFROM_END_DIGIT=0.25, 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 qEe7Q1HaTJ6g for <dnssd@ietfa.amsl.com>; Fri, 5 Nov 2021 14:55:57 -0700 (PDT)
Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (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 070A33A106A for <dnssd@ietf.org>; Fri, 5 Nov 2021 14:55:57 -0700 (PDT)
Received: by mail-yb1-xb34.google.com with SMTP id v138so26154033ybb.8 for <dnssd@ietf.org>; Fri, 05 Nov 2021 14:55:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=05KrSeYD+3WLFxvTl1/wtGu5UJHCCpp2sw9zJhyfnGk=; b=m4iyt10YYZCL4zrIvR4UQ/bynYBUUVl9mET8Fwoaa8kU02KRBLbaZsT8GMjI/HNLfF nog7tPGRHuJz4lplXQVgjaDAbkgtG57PJGSWN+MH5ooU2yaUluoI5NqVJs1qT27DQj5l 2KqUgAdIKgyan7ZFF9l2bewoorBdwpg0DI28gIB4XrbFKpTn1g1ofYOw1AmoThGkmtf7 UAYLJGNYhVrl1SE+kkeKhzOyhRp2gomw25CQ2UNhalPxR87ovbnnxJ7h00FfUqYU0nYJ 24Xqiw6zDI8cZ9EZD1SxvQahbANiVT7lwMkvttBSgfYbTNOF8ohaklsRWM57jEpQjFkE RoJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=05KrSeYD+3WLFxvTl1/wtGu5UJHCCpp2sw9zJhyfnGk=; b=H2Ba0UGBBjtdSINzVvyB6Wyccy6Jr+PdAqVHEQAchCdShDecnlzHoTyMm7Dm1C6cWv iKupPKLedcChSaPFDNhaoN4M9IDXImxtY4DOIgXzrHTAfn1yipCxdF0ajYrMOWzMAaaF eWwrE6qXFkIZTMb3akiHEthDUxsCTJYo0onNzHCPZ1rgaNwBKJB3u8hvfLqP3jVUbh44 2PUZWfMHhJjIGjzO3yoGA4qS0dv73NUwGbJ1uHS7dTzHsuMVoB8Kq3UrKngla6ZLE3N0 WEbgJxQrwa4t0EIb/qqPquVpsFXOwNLwIIrxtkF7ibvitMoU++3/7fNuwt27Rq/uksk6 /thQ==
X-Gm-Message-State: AOAM533njRRHnmu4Dd10M2g/3NMjV2ha23IjyxDuLv0pFsaxgF+vWAyB dyRRAwVOfYfj0YNARaFbK1pWZMIzS1fjf4jtlkV1g6pjgss=
X-Google-Smtp-Source: ABdhPJyebxemMeWyk0UV9lqaI7EFgW6hA8a/UPmtlkN3MqzmCrKJhjZ3pJXTrvUNe+DnHJWtKcppO2Yoz6vokc/kizk=
X-Received: by 2002:a25:5557:: with SMTP id j84mr68500790ybb.426.1636149354879; Fri, 05 Nov 2021 14:55:54 -0700 (PDT)
MIME-Version: 1.0
From: Liang qin <leonqin0101@gmail.com>
Date: Fri, 05 Nov 2021 14:55:44 -0700
Message-ID: <CAM=N=PF8ViJ6KTQrY371CrQMUS=0U+sG0NUJDCqqKwZpWv7AbQ@mail.gmail.com>
To: dnssd@ietf.org
Content-Type: multipart/alternative; boundary="00000000000018dc9d05d011b58d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/RwX-43W-omENkmZN-JifOpv_jlI>
Subject: [dnssd] Some feedback on draft-tllq-tsr-00 (A 'Time Since Registration' Resource Record for Multicast DNS)
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: Fri, 05 Nov 2021 21:56:02 -0000

I have some feedback on draft-tllq-tsr-00
<https://datatracker.ietf.org/doc/draft-tllq-tsr/> (A 'Time Since
Registration' Resource Record for Multicast DNS).

I'm working on implementing and unit testing the proposal in this draft, it
works well and fulfills the purpose of this record, it also fits well into
the existing multicast DNS and DNSSD framework.

I have two interesting observations though:

1.The TSR record will conflict with itself and sometimes lose to itself;
Since probe is multicast, prober will receive probe packet from itself and
compare the tsr value with itself, most of the time these two values are
equal, but in some corner case, it will lose to itself, for example:
In our TSR record, tsr value is 1636142582;
In packet record, tsr value is 0(notice that the tsr value in packet is
relative time) which means now;
Then when we get the absolute tsr value for the packet, it can become
1636142583, it may be because the original timestamp is generated very
close to 1636142583 and there is some delay when transmitting the packet.
In this case if we compare the tsr value in our record with the tsr value
in packet sent by ourselves, we will lose.
We probably want to add a `MinTSRInterval` value to make sure prober needs
to be at least `MinTSRInterval` seconds more recent to win in conflict, for
example `MinTSRInterval` can be set to 10 seconds.

2.TSR does not work with auto rename in some implementations;
In some implementations, when auto rename happens, only the name of the
service is changed, other data structures are reused including the TSR
record attached to the name.
This will cause the losing side in conflict to keep renaming because it's
tsr value is not changed.

Since TSR is not designed to work with auto rename, it's the client's
responsibility to make sure auto rename is disabled when the TSR record is
used.

Thanks
-Liang