Re: [OSPF] Suresh Krishnan's Discuss on draft-ietf-ospf-encapsulation-cap-06: (with DISCUSS and COMMENT)
Suresh Krishnan <suresh.krishnan@gmail.com> Mon, 18 September 2017 20:21 UTC
Return-Path: <suresh.krishnan@gmail.com>
X-Original-To: ospf@ietfa.amsl.com
Delivered-To: ospf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 2CB2013308D;
Mon, 18 Sep 2017 13:21:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
RCVD_IN_DNSWL_LOW=-0.7, 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 xY-AUnu8Fa2F; Mon, 18 Sep 2017 13:21:46 -0700 (PDT)
Received: from mail-yw0-x22e.google.com (mail-yw0-x22e.google.com
[IPv6:2607:f8b0:4002:c05::22e])
(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 8F63512421A;
Mon, 18 Sep 2017 13:21:46 -0700 (PDT)
Received: by mail-yw0-x22e.google.com with SMTP id r85so1181330ywg.1;
Mon, 18 Sep 2017 13:21:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:message-id:mime-version:subject:date:in-reply-to:cc:to
:references; bh=bestp95MJ6gma4DWsSkH5Hkb9GLFj4aGx0ZRpVQtDMs=;
b=B7CyOK+jPBdZJaPYZB6WhasbjPVb/w7kH6zKlhzmaSlgJKgfMfF1D/wb8mwZPIa2M+
bPaPLKbxTstxtvDbd4woIMyMEHATgcs21tMZ74xAFlXHGjjSz6KlbAeieLvzXahF4CuX
YFONDilOQiT2Ig4QwzF6qg9I3DLpXNbdWqK4vNWGH4otPqZgWH0lGlGTMsPmqOZwx2Mh
sa0YAWIYTqZ+MuiYmErACpvNOa7R+zwhDgQr7bIMqv0wb91pnn9r7WVMhmCgRzeihvXO
V+EAzeIAJelKBk29hTrJnwI1W47BR9FMCO4NaXzXzddyROzw2G/N/Jm77jfXknkgLaxR
7j/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:message-id:mime-version:subject:date
:in-reply-to:cc:to:references;
bh=bestp95MJ6gma4DWsSkH5Hkb9GLFj4aGx0ZRpVQtDMs=;
b=sqSlPEnXrUrHHNbdascA4LOfAu0ekjiWZ1MQvixe5EV6AaKe9cTch4AdF3VaZX9Pwk
tekynYRN/j95noGNxPvBNyox0BRcyhE4nujaPULZy+Dxisy9nIkQ18ZtpYuEs5eF3pIg
O/ev9txE5LE9IX+VVh4afgInE9Ght0O19Exbngqgz0Xzbow0xSBdFq+th4HCpCkwEcZv
TuQ6C9wnUpxSEc3/JUODgjz2kkmcZriMbhgZcz0VCm6hVbQCp5kPAiBDL8rwoLIUo2ua
06XOd653ZJJmB055cna0SeeWpmI0DQBvVV+E3zyDjAItIt15fEbkQvyXNV2H12WL8qCy
TXgA==
X-Gm-Message-State: AHPjjUj3sCXpDmPbZgmOrA/qRPAy+fL3GUsUfijega+MaBFdIcW4EDYw
YxymO7V4LSXKGQ==
X-Google-Smtp-Source: ADKCNb4xzpETWkT7GvdZlslhj7eeKjiRXTKY38yB/8gp0qee2C219zt/ZqwdM+dulauVya9EWboRDA==
X-Received: by 10.129.91.196 with SMTP id p187mr29253436ywb.101.1505766105726;
Mon, 18 Sep 2017 13:21:45 -0700 (PDT)
Received: from [10.0.0.12] (45-19-110-76.lightspeed.tukrga.sbcglobal.net.
[45.19.110.76])
by smtp.gmail.com with ESMTPSA id f184sm3321029ywc.19.2017.09.18.13.21.44
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 18 Sep 2017 13:21:44 -0700 (PDT)
From: Suresh Krishnan <suresh.krishnan@gmail.com>
Message-Id: <0548F269-E268-474F-99D7-64FFE050D0A8@gmail.com>
Content-Type: multipart/alternative;
boundary="Apple-Mail=_F544476A-7102-4645-89F7-E5CED41714D1"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Mon, 18 Sep 2017 16:21:44 -0400
In-Reply-To: <D5CD96E9.C54B8%acee@cisco.com>
Cc: The IESG <iesg@ietf.org>, "draft-ietf-ospf-encapsulation-cap@ietf.org"
<draft-ietf-ospf-encapsulation-cap@ietf.org>,
"ospf-chairs@ietf.org" <ospf-chairs@ietf.org>,
"ospf@ietf.org" <ospf@ietf.org>
To: "Acee Lindem (acee)" <acee@cisco.com>
References: <150414779958.16833.5322499494351720362.idtracker@ietfa.amsl.com>
<D5CD5190.C53B6%acee@cisco.com>
<A8E185FB-AF0A-4B1A-8015-6B14B07645E5@gmail.com>
<D5CD96E9.C54B8%acee@cisco.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ospf/HD6CFXaVUO0A7r-tMQ4daWTK9Y8>
Subject: Re: [OSPF] Suresh Krishnan's Discuss on
draft-ietf-ospf-encapsulation-cap-06: (with DISCUSS and COMMENT)
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: The Official IETF OSPG WG Mailing List <ospf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ospf>,
<mailto:ospf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ospf/>
List-Post: <mailto:ospf@ietf.org>
List-Help: <mailto:ospf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ospf>,
<mailto:ospf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Sep 2017 20:21:49 -0000
Hi all, Just closing the loop on this. Acee and I had a phone call to discuss this issue. It looks like Acee was thinking that I was talking about the value in the TLV while I was talking about the type and the length (as per my DISCUSS text). We agreed that the type and length will be encoded as per this document and the value as per the referred documents. The new text from Bruno resolves my issues. Regards Suresh > On Aug 31, 2017, at 10:39 AM, Acee Lindem (acee) <acee@cisco.com> wrote: > > Hi Suresh, > > From: Suresh Krishnan <suresh.krishnan@gmail.com <mailto:suresh.krishnan@gmail.com>> > Date: Thursday, August 31, 2017 at 10:06 AM > To: Acee Lindem <acee@cisco.com <mailto:acee@cisco.com>> > Cc: The IESG <iesg@ietf.org <mailto:iesg@ietf.org>>, "draft-ietf-ospf-encapsulation-cap@ietf.org <mailto:draft-ietf-ospf-encapsulation-cap@ietf.org>" <draft-ietf-ospf-encapsulation-cap@ietf.org <mailto:draft-ietf-ospf-encapsulation-cap@ietf.org>>, "ospf-chairs@ietf.org <mailto:ospf-chairs@ietf.org>" <ospf-chairs@ietf.org <mailto:ospf-chairs@ietf.org>>, OSPF WG List <ospf@ietf.org <mailto:ospf@ietf.org>> > Subject: Re: Suresh Krishnan's Discuss on draft-ietf-ospf-encapsulation-cap-06: (with DISCUSS and COMMENT) > > Hi Acee, > Thanks for the quick reply. Please find comments inline. > >> On Aug 31, 2017, at 5:50 AM, Acee Lindem (acee) <acee@cisco.com <mailto:acee@cisco.com>> wrote: >> >> Hi Suresh, >> >> On 8/30/17, 10:49 PM, "Suresh Krishnan" <suresh.krishnan@gmail.com <mailto:suresh.krishnan@gmail.com>> wrote: >> >> Suresh Krishnan has entered the following ballot position for >> draft-ietf-ospf-encapsulation-cap-06: Discuss >> >> When responding, please keep the subject line intact and reply to all >> email addresses included in the To and CC lines. (Feel free to cut this >> introductory paragraph, however.) >> >> >> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html <https://www.ietf.org/iesg/statement/discuss-criteria.html> >> for more information about IESG DISCUSS and COMMENT positions. >> >> >> The document, along with other ballot positions, can be found here: >> https://datatracker.ietf.org/doc/draft-ietf-ospf-encapsulation-cap/ <https://datatracker.ietf.org/doc/draft-ietf-ospf-encapsulation-cap/> >> >> >> >> ---------------------------------------------------------------------- >> DISCUSS: >> ---------------------------------------------------------------------- >> >> * There seems to be an difference between this document's definition of >> sub-TLVs (with 2 octet types and lengths) and those of RFC5512 (with 1 octet >> types and lengths). So I am surprised to see the document point to the RFC5512 >> based TLVs for both syntax and semantics (Sections 5.1, 5.2, 5.3 ...) . Can you >> please explain how these sub-TLVs are encoded on the wire to be compatible with >> this draft? >> >> I can answer this one since I specifically told the authors to use this format. If you look at RFC 7770, you’ll see that all OSPF Router Information (RI) LSA TLVs and Sub-TLVs have 2 octet types and lengths. >> >> 2.3. OSPF Router Information LSA TLV Format >> >> The format of the TLVs within the body of an RI LSA is the same as >> the format used by the Traffic Engineering Extensions to OSPF [TE]. >> The LSA payload consists of one or more nested Type/Length/Value >> (TLV) triplets. The format of each TLV is: >> >> 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 | >> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ >> | Value... | >> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ >> >> Figure 3. TLV Format >> >> >> Additionally, if you look at https://www.ietf.org/id/draft-ietf-idr-tunnel-encaps-07.txt <https://www.ietf.org/id/draft-ietf-idr-tunnel-encaps-07.txt> (which obsoletes RFC 5512), you’ll see that the 1 octet length with insufficient. >> >> Each sub-TLV consists of three fields: a 1-octet type, a 1-octet or >> 2-octet length field (depending on the type), and zero or more octets >> of value. A sub-TLV is structured as shown in Figure 2: >> >> +-----------------------------------+ >> | Sub-TLV Type (1 Octet) | >> +-----------------------------------+ >> | Sub-TLV Length (1 or 2 Octets)| >> +-----------------------------------+ >> | Sub-TLV Value (Variable) | >> | | >> +-----------------------------------+ >> >> Figure 2: Tunnel Encapsulation Sub-TLV Format >> >> o Sub-TLV Type (1 octet): each sub-TLV type defines a certain >> property about the tunnel TLV that contains this sub-TLV. >> >> >> >> >> >> Rosen, et al. Expires January 18, 2018 [Page 7] >> ? >> Internet-Draft Tunnel Encapsulation Attribute July 2017 >> >> >> o Sub-TLV Length (1 or 2 octets): the total number of octets of the >> sub-TLV value field. The Sub-TLV Length field contains 1 octet if >> the Sub-TLV Type field contains a value in the range from 1-127. >> The Sub-TLV Length field contains two octets if the Sub-TLV Type >> field contains a value in the range from 128-254. >> >> o Sub-TLV Value (variable): encodings of the value field depend on >> the sub-TLV type as enumerated above. The following sub-sections >> define the encoding in detail. > I did read the draft-ietf-idr-tunnel-encaps-07 draft (following it from the references) and I do understand why the document made the switch to 2 octets for the length. The part that threw me off is that this document (ospf-encapsulation) mandates *2 Octet* sub-TLV types which are not even mentioned in draft-ietf-idr-tunnel-encaps-07. Similarly this document mandates 2 octet lengths without nuancing the length based on sub-TLV type (>127 or not). And then it states that the syntax is specified in the documents that use 1 octet types. This is the discrepancy that needs addressing. > > No it doesn’t… The OSPF RI TLVs and Sub-TLVs have uniform 2 octet types and lengths as specified in RFC 7770. If all the routing protocols had exactly the same encodings, we’d only have one ;^) > > Thanks, > Acee > > > Thanks > Suresh >
- [OSPF] Suresh Krishnan's Discuss on draft-ietf-os… Suresh Krishnan
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… Acee Lindem (acee)
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… Suresh Krishnan
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… Acee Lindem (acee)
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… bruno.decraene
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… Suresh Krishnan
- Re: [OSPF] Suresh Krishnan's Discuss on draft-iet… Suresh Krishnan