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

Tim Chown <tjc.ietf@gmail.com> Fri, 30 June 2023 09:02 UTC

Return-Path: <tjc.ietf@gmail.com>
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 AF1AEC151099 for <v6ops@ietfa.amsl.com>; Fri, 30 Jun 2023 02:02:30 -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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=gmail.com
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 xuV6sNzzgQGH for <v6ops@ietfa.amsl.com>; Fri, 30 Jun 2023 02:02:28 -0700 (PDT)
Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 8627BC15108D for <v6ops@ietf.org>; Fri, 30 Jun 2023 02:02:28 -0700 (PDT)
Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3fb4146e8deso20405525e9.0 for <v6ops@ietf.org>; Fri, 30 Jun 2023 02:02:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688115747; x=1690707747; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+2q0XrbZQFD8ZAwwDHdJ/MRh119+dx77/WIOZBADeXA=; b=BmL/YYkkCF966dwCdg24jOMOvE2IkwSlgKZJDkjwHjGc2nZSUzvWqbKORBuyYsQrIr GQeTD7fiFHZNO0BDOXztXhI+3QCmjcCkKkLoujjbjRqqt6BfOdftZ+xgc0WOqUGhdDUm VrR2P0LOOjT7+tCFR9/0K/S4hXA6UhoaDFCzRmDcWymZo4NFy0Ky8P0S0pUTQ+Dvbqka 4iUvjRekIy40njQZ/h2phyVHwBh+bqfU8U0hh8hV6lEdkD6lT76QflK5wx5yvDdRTh1U 6kKTfuw/23m7ETw9ihJ93hVBTpTF0r5fJlI45t1fDHBl9h5Cw1jyoKTOAA+Tb9BDO0Qe +xWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688115747; x=1690707747; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+2q0XrbZQFD8ZAwwDHdJ/MRh119+dx77/WIOZBADeXA=; b=WRQrmHC5PiHCxOoSnojAFnZJ29hGKV05qY4XTLNwgx6oH70uTacFECZNq5l3Ll0XM0 5/PWtsemq1HftOKNGCyHs9rNYqE8rmr+qZlVsuPm3oxQqNF6QCaeZXaXMd+YZNXeN24a 7jjHvkLmrEqJqEgjjKrJ4fWDof1uWEypjMKf94RZtpixbykOTlDam5F+lTth1N0jJczP 6mrhGSX9mCe/EyVuNHdQKTn1ZGmFEdXv2Kqzx0H+C4T1yKbZeFXCE2Daf3IBoEFMIsbJ OFcJuG2jKv1sy1QbI5BvTX0eHS/jqOcpfGBn39kS+yiQK+Rp4/t5vhQsiq3cdKiv/uBD s0gw==
X-Gm-Message-State: AC+VfDzh0MqeXRn0+37JkUuCN4KyZPKjl+Ga+kf5px0FFo2topbFkSD6 yRZcAYGtq6yaxNHCzCnWs+sZ4vLUbMg=
X-Google-Smtp-Source: ACHHUZ7Un0Xj7wSVvIRJVeVz6vT9CdmM8AO+tPFnqbecqXVD7w9abAsCV+rBTUexZWkMjE7nPIDK0Q==
X-Received: by 2002:a05:600c:b47:b0:3fb:b618:f7b3 with SMTP id k7-20020a05600c0b4700b003fbb618f7b3mr1847822wmr.21.1688115746637; Fri, 30 Jun 2023 02:02:26 -0700 (PDT)
Received: from smtpclient.apple ([2a02:8012:351e:0:78d2:8ddf:4060:f67a]) by smtp.gmail.com with ESMTPSA id z2-20020a5d6542000000b00313eee8c080sm14174163wrv.98.2023.06.30.02.02.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2023 02:02:26 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.3\))
From: Tim Chown <tjc.ietf@gmail.com>
In-Reply-To: <9e2081c4-896f-9a7b-71e3-5a88457d4659@gmail.com>
Date: Fri, 30 Jun 2023 10:02:25 +0100
Cc: "Dale W. Carder" <dwcarder@es.net>, v6ops <v6ops@ietf.org>, Shawn McKee <smckee@umich.edu>
Content-Transfer-Encoding: quoted-printable
Message-Id: <1237C505-BE2F-4025-A29E-25B1E4B7C8E5@gmail.com>
References: <ZJ3g8L16euGgDLuI@dwc-desktop.local> <9e2081c4-896f-9a7b-71e3-5a88457d4659@gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
X-Mailer: Apple Mail (2.3696.120.41.1.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/AqqIaMJYJ-8JdwaZlnsGus8DZtk>
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, 30 Jun 2023 09:02:30 -0000

Hi Brian,

> On 29 Jun 2023, at 23:50, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
> 
> Hi Dale,
> 
> Thanks for documenting this.
> 
> As well as the impact on ECMP/LAG (where you might add a reference to
> RFC 6438), could you also mention the impact on server load balancing
> (RFC 7098)? The real issue here is that with only 5 random bits, the
> probability of two very large flows hashing to the same path or server
> is higher than we'd like.

We can add that pointer.

> But since the WLCG flows are *all* very large,
> this presumably doesn't matter so much in your use case?

Well, actually they’re not. Many transfers are aggregates of a high number of lower throughout flows, moreso perhaps that there’s been a shift away from GridFTP to XRootD.

> 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.

This would be good to get some expert feedback on.

Note that traffic for a single excitement (community) and application will share 15 common bits, so it’s the other 5 bits we would like to see as effectively randomised and distributed as possible.

> 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.

This is all good discussion, more feedback very welcome.

We’d like to produce a -01 before the cutoff.

Thanks,
Tim

> Regards
>   Brian Carpenter
> 
> On 30-Jun-23 07:52, Dale W. Carder wrote:
>> Hi folks,
>> We have submitted this draft documenting our experimental use of the
>> IPv6 flow label for packet marking and the considerations we had made
>> along the way that sort of got us to this point.
>> I'm hoping we could get some initial discussion underway here before
>> IETF 117.  Thanks!
>> Dale
>> ----- Forwarded message from internet-drafts@ietf.org -----
>>> Date: Thu, 29 Jun 2023 12:18:53 -0700
>>> From: internet-drafts@ietf.org
>>> Subject: New Version Notification for draft-cc-v6ops-wlcg-flow-label-marking-00.txt
>>> 
>>> 
>>> A new version of I-D, draft-cc-v6ops-wlcg-flow-label-marking-00.txt
>>> has been successfully submitted by Dale W. Carder and posted to the
>>> IETF repository.
>>> 
>>> Name:		draft-cc-v6ops-wlcg-flow-label-marking
>>> Revision:	00
>>> Title:		Use of the IPv6 Flow Label for WLCG Packet Marking
>>> Document date:	2023-06-29
>>> Group:		Individual Submission
>>> Pages:		15
>>> URL:            https://www.ietf.org/archive/id/draft-cc-v6ops-wlcg-flow-label-marking-00.txt
>>> Status:         https://datatracker.ietf.org/doc/draft-cc-v6ops-wlcg-flow-label-marking/
>>> Html:           https://www.ietf.org/archive/id/draft-cc-v6ops-wlcg-flow-label-marking-00.html
>>> Htmlized:       https://datatracker.ietf.org/doc/html/draft-cc-v6ops-wlcg-flow-label-marking
>>> 
>>> 
>>> Abstract:
>>>    This document describes an experimentally deployed approach currently
>>>    used within the Worldwide Large Hadron Collider Computing Grid (WLCG)
>>>    to mark packets with their project (experiment) and application.  The
>>>    marking uses the 20-bit IPv6 Flow Label in each packet, with 15 bits
>>>    used for semantics and 5 bits for entropy.  Alternatives, in
>>>    particular use of IPv6 Extension Headers (EH), were considered but
>>>    found to not be practical.  The WLCG is one of the largest worldwide
>>>    research communities and has adopted IPv6 heavily for movement of
>>>    many tens of PB of data annually, with the ultimate goal of running
>>>    IPv6 only.
>>> 
>>>                                                                                   
>>> 
>>> The IETF Secretariat
>>> 
>>> 
>> ----- End forwarded message -----
>> _______________________________________________
>> v6ops mailing list
>> v6ops@ietf.org
>> https://www.ietf.org/mailman/listinfo/v6ops
> 
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops