[Bier] Flow Label [was Re: BIER in IPv6 --- draft-zhang-bier-bierin6-04]

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 23 March 2020 04:03 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: bier@ietfa.amsl.com
Delivered-To: bier@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 61D703A03F4; Sun, 22 Mar 2020 21:03:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, 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 FRt1NmXCjN4v; Sun, 22 Mar 2020 21:03:55 -0700 (PDT)
Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 5823D3A03F2; Sun, 22 Mar 2020 21:03:55 -0700 (PDT)
Received: by mail-pl1-x62c.google.com with SMTP id v23so1303939ply.10; Sun, 22 Mar 2020 21:03:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7QsqWzicY6Cr0MV8Sh8BG5Sm3AXnBbSXJeiei8tOphM=; b=SfuvZHqvfzIXD2of/y0ZTAZOj7krBk6sJ+JnGQp8DTmoSYxmJLGR5d6g6etzuqq0jY hgsf2ZbnAemWxb4k0Q6E+hfk5+/PV/Ia1W3LjDKcChnImVoRay/IngdPYuM1RXQnUefJ dojXRAkcpSTc2TxljOck/BpPJupmU0/Dhez4e2Fgoq+stagYA6JMTz7bEBbWK4wfntCw 5bTketFjayfmyxK7k22q+euaFgeg37D9DDY0v3hB4EzmgBFMCvkv3syWdwRn8f8KE9nW i3yBL2VGG370/jKF3YPXRQZqyjx3Kj9nF3uD0GsPjyfOAvRUeSt9psWQ85FHVMdjcYv8 W5jg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7QsqWzicY6Cr0MV8Sh8BG5Sm3AXnBbSXJeiei8tOphM=; b=k+G1rdJzU5Mj2toNHZI6dLZ6AMw2T0vF3snExkSoZTIIsU+REVh+B/D+2W5TcU09px fXDTcJNbV05aVJ6bBDU4YB+FnMAqlnZGMI0eVFGqm1WxGkNV/FwO9trecab8xy47Zt4Y YsQe5a23ZH88oN/+eMiovz8vGnd1lyT6zqokTcxlQSEoKU42QDR5GTB4ZlEm1frPzasF ahq3l1IwEHFW+/YvHiNSrYbMNnBcU+fRPRCUqt1/CpVLkS8FystnXy6NbftrRs/s/V7N NJAyzFU2S88j5YaYOPGoBK0+36QiGy90Mdg4ue5FlSm9y/U6DSb6J7eRb/b6jTPMrZzY hnSQ==
X-Gm-Message-State: ANhLgQ2NFkPIaKSlcKsMHH187iIZtWaWHS6lGsP9wCkFjCS9DUgNHYXp LhUYC5SNtcSGdYC2zhBQemOkxq7V
X-Google-Smtp-Source: ADFU+vt6DOzI3JUsn06I3V+5EVxhJhXSQJUdrJuqShDjnowYTyqY+CxJ2xUbnSgOr89nrjjHivIacw==
X-Received: by 2002:a17:90a:218e:: with SMTP id q14mr22487116pjc.37.1584936234352; Sun, 22 Mar 2020 21:03:54 -0700 (PDT)
Received: from [192.168.178.30] ([165.84.25.143]) by smtp.gmail.com with ESMTPSA id 17sm11751157pfu.166.2020.03.22.21.03.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Mar 2020 21:03:53 -0700 (PDT)
To: Tony Przygienda <tonysietf@gmail.com>, "zhang.zheng" <zhang.zheng@zte.com.cn>
Cc: BIER WG <bier@ietf.org>, 6MAN <6man@ietf.org>
References: <0aaf9a4e017643af85cd246b04d1858c@huawei.com> <202003231114061611017@zte.com.cn> <CA+wi2hPF0rjn2M80PxspRLXYQWGLj7AhB0m1JJFQ6WN4GU0XLw@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <0369a854-cfde-b0e6-3788-543ab2bea16c@gmail.com>
Date: Mon, 23 Mar 2020 17:03:48 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <CA+wi2hPF0rjn2M80PxspRLXYQWGLj7AhB0m1JJFQ6WN4GU0XLw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/bier/uyR8CfA6TM-LJV-mYYe4gLNg-Sk>
Subject: [Bier] Flow Label [was Re: BIER in IPv6 --- draft-zhang-bier-bierin6-04]
X-BeenThere: bier@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "\"Bit Indexed Explicit Replication discussion list\"" <bier.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bier>, <mailto:bier-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bier/>
List-Post: <mailto:bier@ietf.org>
List-Help: <mailto:bier-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bier>, <mailto:bier-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Mar 2020 04:03:57 -0000

Hi,

I have not read the whole draft but I did notice this:

>    The Flow-ID in the IPv6 packet SHOULD be copied from the entropy
>    field in the BIER encapsulation.

It's good that the BIER entropy field defined in RFC8296 is 20 bits long, but there are a few issues here:

1. Nit: in RFC 8200 the field is named "Flow Label", not "Flow-ID".

2. The text technically violates RFC8200, which states that the flow label is defined by RFC6437. 

3. RFC6437 recommends the flow label generation procedure to follow a certain rule:

   It is therefore RECOMMENDED
   that source hosts support the flow label by setting the flow label
   field for all packets of a given flow to the same value chosen from
   an approximation to a discrete uniform distribution.

but I didn't find any discussion in RFC8296 of how the BIER entropy value is generated. 

I think you could get round these two points by something like:

   The entropy value used in an IPv6 flow label SHOULD be generated
   by a method compatible with [RFC6437].

4. Finally, it seems to me that the flow label is useless by definition for link-local traffic; however, it's harmless. (I never really thought about that before.) Of course, it could be relevant for globally-reachable addresses.

Regards
   Brian Carpenter