Re: [v6ops] draft-cc-v6ops-wlcg-flow-label-marking-00.txt

"Dale W. Carder" <dwcarder@es.net> Fri, 07 July 2023 17:27 UTC

Return-Path: <dwcarder@es.net>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 86E2CC1519BF for <v6ops@ietfa.amsl.com>; Fri, 7 Jul 2023 10:27:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=es.net
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 SQwqt8eiv_x0 for <v6ops@ietfa.amsl.com>; Fri, 7 Jul 2023 10:27:44 -0700 (PDT)
Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A289CC1519B1 for <v6ops@ietf.org>; Fri, 7 Jul 2023 10:27:44 -0700 (PDT)
Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-78372b896d0so77140439f.2 for <v6ops@ietf.org>; Fri, 07 Jul 2023 10:27:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es.net; s=esnet-google; t=1688750864; x=1691342864; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8NgR2hysvg+mI4QdNng2cWRNJxOQCnCSjjVUCm7KjSA=; b=OYCb+d8cFQItnDNsZ3XhYYm00IRYG81xJJ48dKsPWyvBAazK9YOYASI3z7sxnvs0Qg Wk0HjOKeZRPJ0nc6gCUB90bmQgQwXX6wsJ/JzpILr2bIMR6JFobHru/427nG4++7WGi4 3jpG9DWwl+n/Fx8KNSKkMn3R0NzdYYAG4P5/NDUM+mDZWibaZvHc1zqb0YKMH0TCYVW3 5GWyKkb82LuzJGD/vzNsOO9gDNTRCpUdAWJqyOUHmSCcaMwTRcyRV27jPtn/V8Fww5Jl e/h/w4HTGd1soBP5k9Bi+SuTX/xmdoq0I5YJ+ty9dwAiVj3+VjLl3GTEKusv27HDdt7n xffg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688750864; x=1691342864; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8NgR2hysvg+mI4QdNng2cWRNJxOQCnCSjjVUCm7KjSA=; b=RuXXBClWZnJRKKOLnQspb4do+4OAd1YrUpwmLGyKoPbl6MP2paZ1z4SCiPanPKLA+M 5533UyaHYCTS0+nJ97H+j84nHdGUf6vh9CHc0aKVW6gmC4w7jjJigIKVeMBTvr6Dz1uB zVnGUGJuA3/C7F0YBbSKy2Evl6MN2FL/OCgZyfQ0LUmAl9YeolKtYdJUEn3zMEYb9IY/ f7HhP+ttrMSHtHftj0uCst1mJtLWWFQ5nIp3hP0fb5BRiOLRyaOchqQCm0rWOxrucSq5 lPEFUbmHl09eLYjzof86yH9JXdk8aiMMXMc7L/Mj2kqoJazo7MSxLCTLL/YuE/hFEpQe yVCQ==
X-Gm-Message-State: ABy/qLZH6XDVmKCw0Q7MbEvIC8ohidF+N5yEa+FYZmrkJuVcEVfpgbyb Flo2lKNDSr34T2FppxQOnzzWjRm35CLbsfRyqnmKfILNxbhKO/9ACEqADAEliFEEu5tVlOGWVKC sL8g3NUjjh8X2S4WbWbn+iLyTAk6lJxKgocJYiJGRLon9paOzxzDpqYXrCdVG4uyKniKSQHqA6w ==
X-Google-Smtp-Source: APBJJlHhSD7QQY7fKbKz+UH+enc2irMYBsl8zMiHaWNiYxx/XRgKXQ0A8SRk3F7GL7c7+/kshTkpQg==
X-Received: by 2002:a6b:6313:0:b0:783:4f8d:4484 with SMTP id p19-20020a6b6313000000b007834f8d4484mr6061773iog.2.1688750863614; Fri, 07 Jul 2023 10:27:43 -0700 (PDT)
Received: from localhost ([2600:6c44:5f7f:b901:70bd:e9cf:77b9:b613]) by smtp.gmail.com with ESMTPSA id x5-20020a02ac85000000b0042b48813a22sm1400003jan.109.2023.07.07.10.27.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 10:27:42 -0700 (PDT)
Date: Fri, 07 Jul 2023 12:27:39 -0500
From: "Dale W. Carder" <dwcarder@es.net>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: v6ops@ietf.org
Message-ID: <ZKhLCw3OB684y_Xh@dwc-desktop.local>
References: <ZJ3g8L16euGgDLuI@dwc-desktop.local> <9e2081c4-896f-9a7b-71e3-5a88457d4659@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <9e2081c4-896f-9a7b-71e3-5a88457d4659@gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/KEZxTtuK9oXsq9kxjI4Dh06d-eY>
Subject: Re: [v6ops] draft-cc-v6ops-wlcg-flow-label-marking-00.txt
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Jul 2023 17:27:48 -0000

Thus spake Brian E Carpenter (brian.e.carpenter@gmail.com) on Fri, Jun 30, 2023 at 10:50:24AM +1200:
> 
> I'd never thought about using a Hamming code to generate flow labels.
> But since a given flow must use the same flow label throughout, you can
> only use the regular 5-tuple as input to the Hamming code. I don't
> believe that a Hamming code will give you a discrete uniform distribution,
> but I'm not an expert in that area. An expert known as ChatGPT says:
> "No, a Hamming code does not produce a discrete uniform distribution...
> The non-uniformity of the distribution arises from the fact that Hamming
> codes prioritize error detection and correction capabilities over
> uniformity of codeword distribution."
> 
> So I think that simply using a stateless hash is the best way. These
> days I like FNV (draft-eastlake-fnv) which is easy and cheap to implement.

I think our idea was that it may be possible to explore other encodings to
do something more best-effort towards a uniform distribution.  As our 
usecase of the flow label is for telemetry, the encoding must be reversible,
which likely rules out a lot of approaches.  It might be good to find someone 
with more knowledge in this area.

Dale