Re: Opsdir last call review of draft-kucherawy-dispatch-zstd-01

"Murray S. Kucherawy" <superuser@gmail.com> Mon, 30 April 2018 16:03 UTC

Return-Path: <superuser@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80B4B12DB6E; Mon, 30 Apr 2018 09:03:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 T6N8LgmMMabf; Mon, 30 Apr 2018 09:03:48 -0700 (PDT)
Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (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 21A5D1241F5; Mon, 30 Apr 2018 09:03:48 -0700 (PDT)
Received: by mail-lf0-x244.google.com with SMTP id b23-v6so12834483lfg.4; Mon, 30 Apr 2018 09:03:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dfu/gKr3zElJBNPClIgQx4zRswLTk4Rih2e98BdjFrQ=; b=oAsLuK8jaARmSZef84RqHHt7ZHI27IuBmFTu6Y8YJUCt57L1e3BOJ4qN8oXXhxy6Rb CerEyChxbr43diFBHPJXVe86GCNC8fy5MYFE2sf1vUftWD7+lcc7kAZec4025XlL8zjY 0NwizNLSVQawVmq/rC4VLr0HsYDFfuIfgisZkd4iaRtNrHghAsJoM6/ozifs5e5ovcuI BzAgHAWhO6zKy3N7UKK8LGHMArj2OmDhGQfkrW8r51bEgnTZClLXbkF7ahPD81jFSkWN KQkIcmw8LT6SITgdaV/10uUuaBsOg7lnYK9xdZTWoCCD4j6oP8tur7tcqG4XteWRQazV TxEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dfu/gKr3zElJBNPClIgQx4zRswLTk4Rih2e98BdjFrQ=; b=DIY8rb+mXpfhFNpcjNyph6cIwcUlhM8SArfZ+K63x3Qp9weRTmL5aReNDmtr751RMH xVoz5zwwH2Sa46SV3ltFwzYqNF1K7qy9EdgfVba63zKmN74xIiHTT1XvJqtTOVhGYHnm X3yBIqSJ8pe7KkIkBAjKBAEFqIJ7WrT8ue22RJT9nfZSex1qLJ9cQHMD5Pp8RdVmVa4F 5l+h1yF7hq3R3JpKs3+amLcczEYd0JK6g2N4nbY36RiKQKna4Kqop20uu6VuZM9Oq5mY /Oz9/oGwvIqni+lh6se+01XUXNLjSil6W+rSha/5yL5CTkFgfoyQWCkA3cPBkI5EMLR0 QVMg==
X-Gm-Message-State: ALQs6tCwQ5qXVMVhbLHmbFqYq0sOzHzns657TZC+pTBmPfOSFHOiSitA asNYp5JfkAqidcJ72LkFVGvQnZJimVSCxiT4WPw=
X-Google-Smtp-Source: AB8JxZrX9pLjeb7A5e12iVsImIWxfvUcl7UTjLnvnJQdgkXsNlp214pTKkK3fhekX6PNts7GxwEHgWXA878DayUG2OI=
X-Received: by 2002:a2e:97d6:: with SMTP id m22-v6mr8786227ljj.102.1525104226040; Mon, 30 Apr 2018 09:03:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.46.131.71 with HTTP; Mon, 30 Apr 2018 09:03:45 -0700 (PDT)
In-Reply-To: <152475038517.22908.5747850950765267663@ietfa.amsl.com>
References: <152475038517.22908.5747850950765267663@ietfa.amsl.com>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Mon, 30 Apr 2018 09:03:45 -0700
Message-ID: <CAL0qLwYtuTkFCKwEqX7R2Bc9e0s2nwrYjG7+i3mTrUJPqvQQrw@mail.gmail.com>
Subject: Re: Opsdir last call review of draft-kucherawy-dispatch-zstd-01
To: Susan Hares <shares@ndzh.com>
Cc: ops-dir@ietf.org, ietf <ietf@ietf.org>, draft-kucherawy-dispatch-zstd.all@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a384c6056b12ff12"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf/4U1ZkDiBhFHbrKVUigVPe5BXhnk>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2018 16:03:51 -0000

On Thu, Apr 26, 2018 at 6:46 AM, Susan Hares <shares@ndzh.com> wrote:

> Error code issues:  Compression/Decompression is normally a specific
> library
> function.  As a library function, it is often tested with reference test
> suites
> against a referece implementation.  What I do not undersatnd form this
> specification is how errors get passed to the calling program.
>
> A face book implementation of this zstd return errors codes:
> (https://facebook.github.io/zstd/zstd_manual.html)
> #define ZSTD_CONTENTSIZE_UNKNOWN (0ULL - 1)
> #define ZSTD_CONTENTSIZE_ERROR   (0ULL - 2)
>
> Should this type of operational information be included in the compression
> specification?  It seems like common error codes would help the
> interoperability of different implementations  so that compression by one
> implementation would correctly be decompressed by a second.
>

Hi Susan, thanks for the review.

The material you're asking for strikes me as the kind of thing that is
chosen within a particular implementation and test framework, not something
the protocol document needs to specify globally.  Interoperability can
instead be verified using, for example, a hash function, e.g., "the SHA256
of the payload you get out of decompression should be X", or to test
self-symmetry, "the SHA256 of the payload you get out of decompression
should be the same as that of what was fed to compression".  That the
Facebook implementation chose those codes isn't an indication that a
standard set of such codes is necessary for interoperability with other
implementations.

In another working group where I'm participating (DMARC) we had the same
kind of discussion about stipulating a specific ordering for parameters in
order to make test frameworks simpler and more universal, and consensus
there was also not to impose constraints like this where other more
flexible options are available.

-MSK