From benoit.claise@huawei.com  Fri Oct 20 06:52:17 2023
Return-Path: <benoit.claise@huawei.com>
X-Original-To: ipfix@ietfa.amsl.com
Delivered-To: ipfix@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id 693CDC14CE55;
 Fri, 20 Oct 2023 06:52:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.984
X-Spam-Level: 
X-Spam-Status: No, score=-1.984 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.091,
 RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01,
 T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001,
 URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001]
 autolearn=unavailable autolearn_force=no
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 BaVHy_aZ0-0m; Fri, 20 Oct 2023 06:52:12 -0700 (PDT)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com
 [185.176.79.56])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by ietfa.amsl.com (Postfix) with ESMTPS id 93622C151077;
 Fri, 20 Oct 2023 06:52:12 -0700 (PDT)
Received: from frapeml500001.china.huawei.com (unknown [172.18.147.200])
 by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4SBmGH2Tc7z6K63D;
 Fri, 20 Oct 2023 21:51:35 +0800 (CST)
Received: from [10.48.214.76] (10.48.214.76) by frapeml500001.china.huawei.com
 (7.182.85.94) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 20 Oct
 2023 15:52:06 +0200
Content-Type: multipart/alternative;
 boundary="------------KLfYAHII9uRf5ZgdzJeN6HI9"
Message-ID: <8e6d192b-eb1a-2753-8441-fdc91cadda86@huawei.com>
Date: Fri, 20 Oct 2023 15:52:02 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Content-Language: en-GB
To: <mohamed.boucadair@orange.com>, "Aitken, Paul" <paitken@ciena.com>
CC: "ipfix@ietf.org" <ipfix@ietf.org>, "Eric Vyncke (evyncke)"
 <evyncke=40cisco.com@dmarc.ietf.org>, "opsawg@ietf.org" <opsawg@ietf.org>
References: <PH0PR11MB496621D4E25B239309406E42A9C9A@PH0PR11MB4966.namprd11.prod.outlook.com>
 <AS8PR02MB101468B8506C0FACE75EF832E88CEA@AS8PR02MB10146.eurprd02.prod.outlook.com>
 <PH0PR11MB49668B23D0D8BCA249D54851A9CDA@PH0PR11MB4966.namprd11.prod.outlook.com>
 <f1a3ab17-2f56-4e86-a765-ed0dc3623f12@ciena.com>
 <DU2PR02MB101609D49E85646F983D06BDE88D5A@DU2PR02MB10160.eurprd02.prod.outlook.com>
 <caa01b73-3062-4cb1-b576-86e50462c708@ciena.com>
 <DU2PR02MB10160BE7E9115FF1AA6D2CC8388D4A@DU2PR02MB10160.eurprd02.prod.outlook.com>
From: Benoit Claise <benoit.claise@huawei.com>
In-Reply-To: <DU2PR02MB10160BE7E9115FF1AA6D2CC8388D4A@DU2PR02MB10160.eurprd02.prod.outlook.com>
X-Originating-IP: [10.48.214.76]
X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To
 frapeml500001.china.huawei.com (7.182.85.94)
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipfix/HiN9YaSSY9SAzdIUNEz0rLVwWaY>
Subject: Re: [IPFIX] Full or Truncated EHs RE: Some comments on
 draft-ietf-opsawg-ipfix-tcpo-v6eh
X-BeenThere: ipfix@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: IPFIX WG discussion list <ipfix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipfix>,
 <mailto:ipfix-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipfix/>
List-Post: <mailto:ipfix@ietf.org>
List-Help: <mailto:ipfix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipfix>,
 <mailto:ipfix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Oct 2023 13:52:17 -0000

--------------KLfYAHII9uRf5ZgdzJeN6HI9
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: 8bit

Hi Paul,

I looked at this one below.

On 10/19/2023 11:02 PM, mohamed.boucadair@orange.com wrote:
>
>
> 3.2 Data Type Semantics:
>
> - this is not an identifier. It seems be a new type consisting of 
> (type, count) tuples.
>
>
> */[Med] Will double check this one. /*
>
>
>
You are right that ipv6ExtensionHeaderCount consists of (type, count) 
tuples.
I tried too look at similar IPFIX IEs in IANA
The closest one I could find might be anonymizationFlags, which 
categorized as "flags"
So which "Data Type Semanitcs" should be have? Flags?

Then I investigated further..._

_1. https://datatracker.ietf.org/doc/html/rfc7012#section-2.1

        dataTypeSemantics - The_integral _types are qualified by additional
           semantic details.  Valid values for the data type semantics are
           either specified inSection 3.2  of this document or will be
           specified in a future extension of the information model.

2. Looking at IPFIX IANA, I saw as series of integral IPFIX IEs with 
"Data Type Semantics" with no value.
See sourceIPv4PrefixLength

3. I see a single integral IPFIX IE, "srhSegmentIPv6LocatorLength" 
(document 
https://datatracker.ietf.org/doc/draft-ietf-opsawg-ipfix-srv6-srh/14/ in 
AUTH48 right now), with "Data Type Semantics" with "default" value.
That seems wrong to me.

Interestingly, I don't see this "Default" in 
https://datatracker.ietf.org/doc/html/rfc7012#section-3.2, as a valid 
Data Type Semantic.
BUT searching around, I found this: 
https://datatracker.ietf.org/doc/html/rfc5610#section-3.6

                              +-------+--------------+
                              | Value | Description  |
                              +-------+--------------+
                              | 0     | default      |
                              | 1     | quantity     |
                              | 2     | totalCounter |
                              | 3     | deltaCounter |
                              | 4     | identifier   |
                              | 5     | flags        |
                              +-------+--------------+

                              Table 2: IE Semantics Values

See how "default" is different than "quantity", which is inconsistent 
with the following text
https://datatracker.ietf.org/doc/html/rfc7012#section-3.2.1


    3.2.1 <https://datatracker.ietf.org/doc/html/rfc7012#section-3.2.1>.
    quantity

        "quantity" is a numeric (integral or floating point) value
        representing a measured value pertaining to the record.  This is
        distinguished from counters that represent an ongoing measured value
        whose "odometer" reading is captured as part of a given record._This is the default semantic type of all numeric data types._


Question:  Data Type Semantic => is "default" different than "quantity"?
Question: if yes, what's the difference?
Question: if not different, errata in RFC5610?
Question: should srhSegmentIPv6LocatorLength be changed to quantity? I 
think so (remember: doc in AUTH48)

4. Then, coming back to ipv6ExtensionHeaderCount , I wonder, is the 
"Data Type Semantics" optional?
https://datatracker.ietf.org/doc/html/rfc7012#section-3

        Abstract data types unsigned8, unsigned16, unsigned32, unsigned64,
        signed8, signed16, signed32, and signed64 are integral data types.
        As described inSection 3.2  <https://datatracker.ietf.org/doc/html/rfc7012#section-3.2>, their data type semantics_can be further specified_, for example, by 'totalCounter', 'deltaCounter',
        'identifier', or 'flags'.

"can be" => seems optional to me.
However, https://datatracker.ietf.org/doc/html/rfc7012#section-3.2 is 
not clear about it

So proposal for ipv6ExtensionHeaderCount => remove the Data Type Semantic.
At least, that would consistent with the current IANA entries.
If not, 
https://datatracker.ietf.org/doc/html/draft-ietf-opsawg-ipfix-fixes 
might need a long series of updates (I am not searching for more work 
:-) ), to add "default" for integral IPFIX IE with no values.

Regards, Benoit





--------------KLfYAHII9uRf5ZgdzJeN6HI9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    Hi Paul,<br>
    <br>
    I looked at this one below.<br>
    <br>
    <div class=3D"moz-cite-prefix">On 10/19/2023 11:02 PM,
      <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:mohamed.boucad=
air@orange.com">mohamed.boucadair@orange.com</a> wrote:<br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:DU2PR02MB10160BE7E9115FF1AA6D2CC8388D4A@DU2PR02MB10160.eurprd=
02.prod.outlook.com">
      <p class=3D"MsoNormal"><span lang=3D"EN-US"><br>
          3.2 Data Type Semantics:<br>
          <br>
          - this is not an identifier. </span>It seems be a new type
        consisting of (type, count) tuples.<br>
      </p>
    </blockquote>
    <blockquote type=3D"cite"
cite=3D"mid:DU2PR02MB10160BE7E9115FF1AA6D2CC8388D4A@DU2PR02MB10160.eurprd=
02.prod.outlook.com">
      <p class=3D"MsoNormal">
        <br>
        <o:p></o:p></p>
      <p class=3D"MsoNormal"><b><i><span style=3D"font-family:&quot;Couri=
er
              New&quot;" lang=3D"EN-US">[Med] Will double check this one.=

              <o:p></o:p></span></i></b></p>
      <br>
      <br>
    </blockquote>
    You are right that ipv6ExtensionHeaderCount consists of (type,
    count) tuples.<br>
    I tried too look at similar IPFIX IEs in IANA<br>
    The closest one I could find might be anonymizationFlags, which
    categorized as "flags"<br>
    So which "Data Type Semanitcs" should be have? Flags?<br>
    <br>
    Then I investigated further...<u><br>
      <br>
    </u>1. <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker=
=2Eietf.org/doc/html/rfc7012#section-2.1">https://datatracker.ietf.org/do=
c/html/rfc7012#section-2.1</a><br>
    <blockquote>
      <pre class=3D"newpage" style=3D"box-sizing: border-box; font-family=
: var(--bs-font-monospace); font-size: 16px; margin: -1.25em 0px 0px; dis=
play: block; overflow: visible; padding: 0px; width: 80ch; white-space: p=
re-wrap; color: rgb(33, 37, 41); font-style: normal; font-variant-ligatur=
es: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: =
none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; backg=
round-color: rgb(255, 255, 255); text-decoration-thickness: initial; text=
-decoration-style: initial; text-decoration-color: initial;">   dataTypeS=
emantics - The <u>integral </u>types are qualified by additional
      semantic details.  Valid values for the data type semantics are
      either specified in <span style=3D"box-sizing: border-box; color: r=
gba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));">Section 3.2</spa=
n> of this document or will be
      specified in a future extension of the information model.</pre>
    </blockquote>
    2. Looking at IPFIX IANA, I saw as series of integral IPFIX IEs with
    "Data Type Semantics" with no value.<br>
    See sourceIPv4PrefixLength <br>
    <br>
    3. I see a single integral IPFIX IE, "srhSegmentIPv6LocatorLength"
    (document
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/draft-ietf-opsawg-ipfix-srv6-srh/14/">https://datatracker.ietf.org=
/doc/draft-ietf-opsawg-ipfix-srv6-srh/14/</a>
    in AUTH48 right now), with "Data Type Semantics" with "default"
    value.<br>
    That seems wrong to me.<br>
    <span style=3D"color: rgb(0, 0, 0); font-family: Noto, &quot;Open
      Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, sans-serif;
      font-size: 13.3333px; font-style: normal; font-variant-ligatures:
      normal; font-variant-caps: normal; font-weight: 400;
      letter-spacing: normal; orphans: 2; text-align: start;
      text-indent: 0px; text-transform: none; widows: 2; word-spacing:
      0px; -webkit-text-stroke-width: 0px; white-space: normal;
      text-decoration-thickness: initial; text-decoration-style:
      initial; text-decoration-color: initial; display: inline
      !important; float: none;"><br>
    </span>Interestingly, I don't see this "Default" in
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/html/rfc7012#section-3.2">https://datatracker.ietf.org/doc/html/rf=
c7012#section-3.2</a>, as a
    valid Data Type Semantic.<br>
    BUT searching around, I found this:
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/html/rfc5610#section-3.6">https://datatracker.ietf.org/doc/html/rf=
c5610#section-3.6</a><br>
    <blockquote>
      <pre class=3D"newpage" style=3D"box-sizing: border-box; font-size: =
16px; margin: -1.25em 0px 0px; display: block; overflow: visible; padding=
: 0px; width: 80ch; white-space: pre-wrap; color: rgb(33, 37, 41); font-s=
tyle: normal; font-variant-ligatures: normal; font-variant-caps: normal; =
font-weight: 400; letter-spacing: normal; text-align: start; text-indent:=
 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width:=
 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: in=
itial; text-decoration-style: initial; text-decoration-color: initial;"> =
                        +-------+--------------+
                         | Value | Description  |
                         +-------+--------------+
                         | 0     | default      |
                         | 1     | quantity     |
                         | 2     | totalCounter |
                         | 3     | deltaCounter |
                         | 4     | identifier   |
                         | 5     | flags        |
                         +-------+--------------+

                         Table 2: IE Semantics Values</pre>
    </blockquote>
    See how "default" is different than "quantity", which is
    inconsistent with the following text<br>
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/html/rfc7012#section-3.2.1">https://datatracker.ietf.org/doc/html/=
rfc7012#section-3.2.1</a><br>
    <blockquote><br>
      <pre class=3D"newpage" style=3D"box-sizing: border-box; font-family=
: var(--bs-font-monospace); font-size: 16px; margin: -1.25em 0px 0px; dis=
play: block; overflow: visible; padding: 0px; width: 80ch; white-space: p=
re-wrap; color: rgb(33, 37, 41); font-style: normal; font-variant-ligatur=
es: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: =
none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; backg=
round-color: rgb(255, 255, 255); text-decoration-thickness: initial; text=
-decoration-style: initial; text-decoration-color: initial;"><span class=3D=
"h4" id=3D"autoid-34" style=3D"box-sizing: border-box; color: var(--bs-he=
ading-color); margin-top: 0px; margin-bottom: 0.5rem; font-weight: 700; l=
ine-height: 1.2; font-size: 1em; white-space: pre; display: inline;"><a c=
lass=3D"selflink" id=3D"section-3.2.1" href=3D"https://datatracker.ietf.o=
rg/doc/html/rfc7012#section-3.2.1" style=3D"box-sizing: border-box; color=
: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1)); text-decoratio=
n: underline;">3.2.1</a>.  quantity</span>

   "quantity" is a numeric (integral or floating point) value
   representing a measured value pertaining to the record.  This is
   distinguished from counters that represent an ongoing measured value
   whose "odometer" reading is captured as part of a given record.  <u>Th=
is
   is the default semantic type of all numeric data types.</u></pre>
    </blockquote>
    <br>
    Question:=C2=A0 Data Type Semantic =3D&gt; is "default" different tha=
n
    "quantity"?<br>
    Question: if yes, what's the difference?<br>
    Question: if not different, errata in RFC5610?<br>
    Question: should srhSegmentIPv6LocatorLength be changed to quantity?
    I think so (remember: doc in AUTH48)<br>
    <br>
    4. Then, coming back to ipv6ExtensionHeaderCount , I wonder, is the
    "Data Type Semantics" optional?<br>
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/html/rfc7012#section-3">https://datatracker.ietf.org/doc/html/rfc7=
012#section-3</a><br>
    <br>
    <blockquote>
      <pre class=3D"newpage" style=3D"box-sizing: border-box; font-family=
: var(--bs-font-monospace); font-size: 16px; margin: -1.25em 0px 0px; dis=
play: block; overflow: visible; padding: 0px; width: 80ch; white-space: p=
re-wrap; color: rgb(33, 37, 41); font-style: normal; font-variant-ligatur=
es: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: =
none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; backg=
round-color: rgb(255, 255, 255); text-decoration-thickness: initial; text=
-decoration-style: initial; text-decoration-color: initial;">   Abstract =
data types unsigned8, unsigned16, unsigned32, unsigned64,
   signed8, signed16, signed32, and signed64 are integral data types.
   As described in <a href=3D"https://datatracker.ietf.org/doc/html/rfc70=
12#section-3.2" style=3D"box-sizing: border-box; color: rgba(var(--bs-lin=
k-color-rgb),var(--bs-link-opacity,1)); text-decoration: underline;">Sect=
ion 3.2</a>, their data type semantics <u>can be further
   specified</u>, for example, by 'totalCounter', 'deltaCounter',
   'identifier', or 'flags'.</pre>
    </blockquote>
    "can be" =3D&gt; seems optional to me.<br>
    However,=C2=A0 <a class=3D"moz-txt-link-freetext" href=3D"https://dat=
atracker.ietf.org/doc/html/rfc7012#section-3.2">https://datatracker.ietf.=
org/doc/html/rfc7012#section-3.2</a>
    is not clear about it<br>
    <br>
    So proposal for ipv6ExtensionHeaderCount =3D&gt; remove the Data Type=

    Semantic.<br>
    At least, that would consistent with the current IANA entries.<br>
    If not,
    <a class=3D"moz-txt-link-freetext" href=3D"https://datatracker.ietf.o=
rg/doc/html/draft-ietf-opsawg-ipfix-fixes">https://datatracker.ietf.org/d=
oc/html/draft-ietf-opsawg-ipfix-fixes</a>
    might need a long series of updates (I am not searching for more
    work :-) ), to add "default" for integral IPFIX IE with no values.<br=
>
    <br>
    Regards, Benoit<br>
    <pre style=3D"box-sizing: border-box; font-family: var(--bs-font-mono=
space); font-size: 0.875em; margin-top: 0px; margin-bottom: 0px; display:=
 block; overflow: auto; white-space: pre-wrap; color: rgb(33, 37, 41); fo=
nt-style: normal; font-variant-ligatures: normal; font-variant-caps: norm=
al; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: sta=
rt; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px;=
 -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); te=
xt-decoration-thickness: initial; text-decoration-style: initial; text-de=
coration-color: initial;">
</pre>
    <br>
    <span style=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-style:=

      normal; font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; text-align: start;
      text-indent: 0px; text-transform: none; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; white-space: normal;
      text-decoration-thickness: initial; text-decoration-style:
      initial; text-decoration-color: initial; display: inline
      !important; float: none;"></span><br>
    <span style=3D"color: rgb(0, 0, 0); font-size: 13.3333px; font-style:=

      normal; font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; text-align: start;
      text-indent: 0px; text-transform: none; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; white-space: normal;
      text-decoration-thickness: initial; text-decoration-style:
      initial; text-decoration-color: initial; display: inline
      !important; float: none;"></span><br>
    <br>
  </body>
</html>

--------------KLfYAHII9uRf5ZgdzJeN6HI9--

