Re: [Pce] Query regarding draft-ietf-pce-binding-label-sid-02

stefano previdi <stefano@previdi.net> Wed, 25 March 2020 10:26 UTC

Return-Path: <stefano@previdi.net>
X-Original-To: pce@ietfa.amsl.com
Delivered-To: pce@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F2A0A3A0CCC for <pce@ietfa.amsl.com>; Wed, 25 Mar 2020 03:26:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=previdi-net.20150623.gappssmtp.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 ElBJ45DPSCtS for <pce@ietfa.amsl.com>; Wed, 25 Mar 2020 03:26:10 -0700 (PDT)
Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 DCCE03A0CC8 for <pce@ietf.org>; Wed, 25 Mar 2020 03:26:09 -0700 (PDT)
Received: by mail-wr1-x42c.google.com with SMTP id 65so2297387wrl.1 for <pce@ietf.org>; Wed, 25 Mar 2020 03:26:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=previdi-net.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tbD7BXJ0lhhpk3KnNiLCOWA3+qjZbrUgqp7BElwxvIc=; b=OwI58UIImvTWrnEMqMESS2TN+ZyKMcKBzNniyqxKGUEJtRPBV9wZzl+W0gCzfqhuRr xYK+gzmxYZsfopPGRBhRS3KbYQcE+rPX9gcimjXrHjivaZ7/nWvf7gTecSgi62GvqfRm g11UCeWH04rVgPihTwp4usnZfvG0RPD9MCuGzR4YZQC0n2rmE3DBG6qBkPXD3bf46L2m SJRc2nVfZqez7K+hRQaPJOe0GnOmRfrxTGmWf/hJX/jc/a97/XzBDkpT8qBWiwwsY9Bm 4qrgB/ilNVfuqtpNeMErdNRaPIMxfoI9JcI1aHjJ+g8gqzhA6Ma5sSwib3mG8epvMcPL pUXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=tbD7BXJ0lhhpk3KnNiLCOWA3+qjZbrUgqp7BElwxvIc=; b=B0Y1+Wz8BXzDtroDuLz6LjXHIKBp+bQ3ggs28EIeiLoWgX/CHDe7FYRpXrfan5c82u ZsBEJWKRwVKpUXRPiL0B4W9BDqTLC4gMR3Qzl29vPiIIg05fA8XR5eVZxOzHNeBCpVV7 DTXAdyMD+dNk3pzQLdJlgd2rbh3v3dH6RYZvMybcWnmaAOQv/iX9hfJC8/FqwaoZ/V4M gZcBWlyWO4GgV44BtaLC6xxV/tK2C2bZPodkR1RBzSiSN8TNU8hx6Tt8uShoNL5sGXuj RphxpB8EkVpmcYG6EPGsgUzord8MB97nPMcd30QdOpoH5tlgy2UYM2EeUK/v6YbrhwH+ prMw==
X-Gm-Message-State: ANhLgQ11+6lL/+dA4fk8zi+ZDn9El5kl2iY3wynsNV9nXiF1FERD/KhO U8DlF5hZ2u5UgNLspdux8JRrUQ==
X-Google-Smtp-Source: ADFU+vvz6009Xlz1CbM3V1UC6CBX2vjf1Fguqkgnh6vOXQHXS6Y3ZVrA2wNWvEawHdsWjNiyfq7/oQ==
X-Received: by 2002:a5d:5408:: with SMTP id g8mr2631467wrv.82.1585131967970; Wed, 25 Mar 2020 03:26:07 -0700 (PDT)
Received: from [192.168.1.5] (net-5-95-15-24.cust.vodafonedsl.it. [5.95.15.24]) by smtp.gmail.com with ESMTPSA id c85sm8578395wmd.48.2020.03.25.03.26.06 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2020 03:26:07 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: text/plain; charset="us-ascii"
From: stefano previdi <stefano@previdi.net>
In-Reply-To: <CAB75xn4g7ja=Ej6+Dwiw2STZk9Ch7p_Ss9ht+UQ2JwPjuL7qfg@mail.gmail.com>
Date: Wed, 25 Mar 2020 11:26:07 +0100
Cc: Mrinmoy Das <mrinmoy.ietf@gmail.com>, Mahend Negi <mahend.ietf@gmail.com>, "Siva Sivabalan (msiva)" <msiva@cisco.com>, "Clarence Filsfils (cfilsfil)" <cfilsfil@cisco.com>, Jeff Tantsura <jefftant.ietf@gmail.com>, Jonathan Hardwick <Jonathan.Hardwick@metaswitch.com>, "Chengli (Cheng Li)" <chengli13@huawei.com>, pce-chairs <pce-chairs@ietf.org>, pce@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <C43EB1B9-623F-42E7-8E2D-DDC40AB2CA28@previdi.net>
References: <CANVfNKrsBpCOgi1F8abPutz3g7CvyDGU+kJwnfD9tHxvk6orSg@mail.gmail.com> <CAB75xn7jH=U_ZyptfHjsUQw5p=g+g27gtz=bdPbAb6yGykjsDg@mail.gmail.com> <CANVfNKootEiJnvug_GnMZoT5_TZvT-4QnM39rA=a3pxmaD_PRA@mail.gmail.com> <CAB75xn4g7ja=Ej6+Dwiw2STZk9Ch7p_Ss9ht+UQ2JwPjuL7qfg@mail.gmail.com>
To: Dhruv Dhody <dhruv.ietf@gmail.com>
X-Mailer: Apple Mail (2.2104)
Archived-At: <https://mailarchive.ietf.org/arch/msg/pce/uCst59v0fgGRSvyRAz8OnSSAYwE>
X-Mailman-Approved-At: Wed, 25 Mar 2020 03:26:46 -0700
Subject: Re: [Pce] Query regarding draft-ietf-pce-binding-label-sid-02
X-BeenThere: pce@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Path Computation Element <pce.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pce>, <mailto:pce-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pce/>
List-Post: <mailto:pce@ietf.org>
List-Help: <mailto:pce-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pce>, <mailto:pce-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Mar 2020 10:26:12 -0000

Hi Dhruv, 

I agree with your proposed changes:

1. only mention the 20 bits label value
2. fix the length to 4.


Thanks.
s.


> On Mar 24, 2020, at 3:14 PM, Dhruv Dhody <dhruv.ietf@gmail.com> wrote:
> 
> Hi Mrinmoy,
> 
> I will give authors some time to respond and confirm (and spin a new
> update). I have noted this in the PCE WG wiki [
> https://trac.ietf.org/trac/pce/wiki/WikiStart ] to make sure we could
> track this to closure.
> 
> Thanks!
> Dhruv
> 
> On Tue, Mar 24, 2020 at 7:11 PM Mrinmoy Das <mrinmoy.ietf@gmail.com> wrote:
>> 
>> Hi Dhruv,
>> 
>> Thanks for your quick reply.
>> 
>> I have added PCE WG in this mail. More inline.
>> 
>> Thanks & Regards,
>> Mrinmoy
>> 
>> On Tue, Mar 24, 2020 at 6:00 PM Dhruv Dhody <dhruv.ietf@gmail.com> wrote:
>>> 
>>> Hi Mrinmoy,
>>> 
>>> I was suggest you to also include pce@ietf.org; WG could benefit from
>>> the discussion in future. More inline.
>>> 
>>> On Tue, Mar 24, 2020 at 5:08 PM Mrinmoy Das <mrinmoy.ietf@gmail.com> wrote:
>>>> 
>>>> Respected Authors and Contributors,
>>>> 
>>>> Hope you all are doing well and safe in this tough times of Corona Virus Outbreak.
>>>> 
>>>> I like to draw your attention regarding some parts of draft-ietf-pce-binding-label-sid-02 which I didn't able to understand properly.
>>>> 
>>>> 1. BT = 0: The binding value is an MPLS label carried in the format
>>>> 
>>>>  specified in [RFC5462] where only the label value is valid, and
>>>>  other fields (TC, S, and TTL) fields MUST be considered invalid.
>>>>  The Length MUST be set to 7.
>>>> 
>>>> 
>>>>    Previous versions of private draft uses 4 byte to store MPLS 20 Bit label and ignores TC, S & TTL fields.
>>> 
>>> The length in the previous version was 6, which was incorrect. The TLV
>>> length is as per https://tools.ietf.org/html/rfc5440#section-7.1
>>> Which didnt make sense and your calculation below is correct!
>>> 
>>>>    But in IETF draft after TLV structure redefinition, total length of the TLV becomes 7, i.e. BT(1 Byte)+Reserved(3 Byte)+MPLS 20bit Label(3 Byte) = 7 Byte
>>> 
>>> Yes
>>> 
>>>>    So, now MPLS 20 Bit Labelwill be stored in 3 byte. Is it correct?
>>> 
>>> You can consider it a case of rounding up 20 bits to 3 bytes.
>>> 
>>> 
>>>>    If this is correct then I feel the wording of the above paragraph needs to be more specific, meaning in 3 Byte Label there will be no space for TTL, so
>>>>    my suggestion is to make below correction:
>>>> 
>>>>    BT = 0: The binding value is an MPLS label carried in the format
>>>> 
>>>>  specified in [RFC5462] where only the label value is valid, and
>>>>  other fields (TC, S, and TTL) fields MUST be considered invalid.
>>>>  The Length MUST be set to 7.
>>>> 
>>> 
>>> My suggestion would be not mention any of the other fields and talk
>>> only of 20 bits of Label. I see other SR RFCs take similar approach.
>> 
>> 
>> Sounds Good. I'm agree with you.
>> 
>>> 
>>>> 
>>>> 2. In some cases, a stateful PCE can request the PCC to allocate a
>>>> 
>>>>  binding value.  It may do so by sending a PCUpd message containing an
>>>>  empty TE-PATH-BINDING TLV, i.e., no binding value is specified
>>>>  (making the length field of the TLV as 2).  A PCE can also make the
>>>>  request PCC to allocate a binding at the time of initiation by
>>>>  sending a PCInitiate message with an empty TE-PATH-BINDING TLV.
>>>> 
>>>> 
>>>>  As per new Binding TLV Structure below, BT is of 1 Byte and there will be 3 Byte Reserved.
>>>> 
>>>>         0                   1                   2                   3
>>>> 
>>>>       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>>>>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>      |             Type              |             Length            |
>>>>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>      |      BT       |                 Reserved                      |
>>>>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>      ~            Binding Value (variable length)                    ~
>>>>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>> 
>>>> 
>>>>   Now, an empty Binding TLV should have length of BT(1 Byte) + Reserved (3 Byte) = 4 Byte instead of 2 Byte.
>>>> 
>>>>   So, I do not understand how in the draft it is calculated as 2 Byte. Could you please give me some clue?
>>> 
>>> 
>>> This seems to be an error IMHO. 4 seems to be correct.
>> 
>> 
>> Okay. So what would  be your suggestion to developer who is implementing this draft? Should it be taken as 4? If draft needs correction
>> when will that be published?
>>> 
>>> 
>>> Thanks!
>>> Dhruv
>>> 
>>>> 
>>>> Thanks & Regards,
>>>> Mrinmoy