Re: [netmod] [802.1 - 12909] IETF Sub-interface VLAN YANG Data Models - draft-ietf-netmod-sub-intf-vlan-model-04

Robert Wilton <rwilton@cisco.com> Tue, 13 November 2018 16:54 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D85F128B14 for <netmod@ietfa.amsl.com>; Tue, 13 Nov 2018 08:54:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.971
X-Spam-Level:
X-Spam-Status: No, score=-14.971 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.47, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 JrA3hS9pgnVb for <netmod@ietfa.amsl.com>; Tue, 13 Nov 2018 08:54:29 -0800 (PST)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2C2E9127333 for <netmod@ietf.org>; Tue, 13 Nov 2018 08:54:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=7590; q=dns/txt; s=iport; t=1542128069; x=1543337669; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=sSourWOTM5qw/lKJwXiaFKTnm67rUjQXCO+OcVgbqHE=; b=h3xNJgBsVb22TGearbxDpiWcDH/IkgORICUSkPQ3YZuCQjrKyXeOmX9t x3twrdz1SBr52nuBIhTwVrGoLodAgIngC9ze+mDrZrXf8M7C+f/bLzNDR as+qt9259pkLPwWHQnrnh+I9l2IaPJ56TAm/qrIqIxf39yg/hHlpJyc1S w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AEAABUAOtb/xbLJq1kGgEBAQEBAgEBAQEHAgEBAQGBUQUBAQEBCwGCaU8hEieDeIgYX40GJZc1FIFmDRgLhEkCg140DQ0BAwEBAgEBAm0cDIU6AQEBAwEBASEPAQURBSsMBAkCDgMEAQEBAgIfBAMCAigJFQkIBQEBDAYCAQEZBIMAAYF5CA+MT5tQgS+EAgEuAgKBC4RlgQuHKYIxgTSBQD+BEScMgg8iLoFBgSAvCwEBAQKBJgUBCwYCAQYYgwSCVwKJIIt+ijgJhneGFDODXgYYgVgihGKCfCaEC4JqgnSGZoNOg3yECIJRgUM4ZHEzGggbFTuCbAmCKh2ITIUIATU/AzABi1OCTQEB
X-IronPort-AV: E=Sophos;i="5.56,228,1539648000"; d="scan'208";a="7962396"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 16:54:26 +0000
Received: from [10.63.23.62] (dhcp-ensft1-uk-vla370-10-63-23-62.cisco.com [10.63.23.62]) by aer-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id wADGsPsK004963; Tue, 13 Nov 2018 16:54:25 GMT
To: Lou Berger <lberger@labn.net>, John Messenger <jmessenger@advaoptical.com>, "Holness, Marc" <mholness@ciena.com>, "STDS-802-1-L@LISTSERV.IEEE.ORG" <STDS-802-1-L@LISTSERV.IEEE.ORG>, "netmod@ietf.org" <netmod@ietf.org>
References: <14a5c6fd-b24a-9669-7701-75dd822f95e2@cisco.com> <9485c56783074f19b4fbf357e5e82946@advaoptical.com> <bd991915-4670-fe52-f1aa-2c05f528b0ef@labn.net>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <6475190b-3e7b-bf8c-5536-3a9cc10c8436@cisco.com>
Date: Tue, 13 Nov 2018 16:54:24 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0
MIME-Version: 1.0
In-Reply-To: <bd991915-4670-fe52-f1aa-2c05f528b0ef@labn.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Outbound-SMTP-Client: 10.63.23.62, dhcp-ensft1-uk-vla370-10-63-23-62.cisco.com
X-Outbound-Node: aer-core-2.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/XK-DSaoL64k5WNn9NKpCI1Dd05E>
Subject: Re: [netmod] [802.1 - 12909] IETF Sub-interface VLAN YANG Data Models - draft-ietf-netmod-sub-intf-vlan-model-04
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Nov 2018 16:54:33 -0000

Hi John, Lou,

Thank you both for your comments and helping to get the necessary 
visibility and review from 802.1 WG.

On 13/11/2018 07:03, Lou Berger wrote:
> Hi John,
>
>     Thank you (and Janos, the group) for the agenda time and the 
> message.  There was also a request for a single c-type vlan example.  
> I see that there is already one on page 22 as part of the match 
> container.

I will add an explicit example for a single tag L3 sub-interface c-vlan 
match as well.

>
> See below for inline responses.
>
> Rob/WG,
>     The plan is to address the comments raised in this mail, update 
> the draft and then go to LC.  Please note that the document status 
> should be changed Informational to Standards Track.

OK.


>
> On 11/13/2018 11:55 AM, John Messenger wrote:
>> Hi,
>>
>> At the 802.1 TSN meeting this morning, Lou Berger made a presentation 
>> on behalf of Rob Wilton summarising the recent changes in this 
>> draft.  I like the changes to the structure which are intended to 
>> align the VLAN tag structure to that specified in 802.1Q.  I notice 
>> that the draft retains clause 2.2 (Extensibility) but I think that's 
>> a bug, because it's not reflected in the model (which is a fixed 
>> structure of one or two tags).
> I agree.

I agree, I think that this section can be deleted.


>> Right now, it says that the Ethertypes are taken from 
>> dot1q-tag-type.  Would this allow tags other than 802.1QTagType 
>> (81-00) and 802.1QSTagType (88-A8)?  That shouldn't be allowed.
> I read this as just trying to use the IEEE defined types.  We 
> certainly can restrict this to just c-vlan and s-vlan values, but 
> perhaps you want to consider defining an enumeration for this case 
> (valid-qtag-types).
>
> Rob (wg)
>
>     Do you see any issue with restricting tag-types to 
> dot1q-types:c-vlan and dot1q-types:s-vlan?
I quite like the model being tied to the IEEE defined type and 
associated identities, that only currently defines "c-vlan" and 
"s-vlan".  However, since they are identities it is possible for anyone 
to augment new identities in new YANG modules.

We could block other types by using must statements.  In fact, in the 
case that they are double tagged then the model already enforces that 
outer-tag is s-vlan and inner-tag is c-vlan.  So covering the single tag 
case also makes sense.


>
>> My preference would be to remove the forward-looking statement quoted 
>> here because it implies a willingness to extend to 3 tags:
>>     The structure of the model is currently limited to matching or
>>     rewriting a maximum of two 802.1Q tags in the frame header but has
>>     been designed to be easily extensible to matching/rewriting three or
>>     more VLAN tags in future, if required.
>
> sure. (at least from my perspective.)

Agreed.  This statement is now wrong and should be removed.


>
>> It looks like you could parse an untagged frame as either :(untagged) 
>> or :(dot1q-vlan-tagged) (without either of the optional tags).  Is 
>> that a bug?

Yes, that is a bug.  I will fix this.  dot1q-vlan-tagged should only be 
allowed to match on outer-tag or outer-tag & second-tag.  So, I probably 
need to mark outer-tag as mandatory.

Thanks again for your help.

I'll post an updated draft shortly.

Thanks,
Rob


>
> I may be missing something, but I think you're right - i,e., why would 
> dot1q-vlan-tagged be present without an outer-tag, but I may be 
> missing something...
>
> Thanks again.
>
> Lou
>
>> Thanks,
>>     -- John
>>
>> -----Original Message-----
>> From: List HELP only <hdk.1-oeyo8vs4@hjkeen.net> On Behalf Of Robert 
>> Wilton
>> Sent: 05 November 2018 16:16
>> To: STDS-802-1-L@LISTSERV.IEEE.ORG
>> Subject: [802.1 - 12909] IETF Sub-interface VLAN YANG Data Models - 
>> draft-ietf-netmod-sub-intf-vlan-model-04
>>
>> Ballot due Nov. 6: P802.1Qcx/D0.4
>> For particulars see
>>    https://1.ieee802.org/active-ballots/
>> 802.1 list help: https://1.ieee802.org/email-lists/
>> List archives (access-controlled) by date:
>>                 www.ieee802.org/1/private/email2/mail1.html
>> -----
>>
>> Dear esteemed 802.1 WG members,
>>
>> A few years back, at the start of my IETF and IEEE standards journey 
>> I wrote a draft defining a sub-interface based VLAN termination YANG 
>> model.  After discussion and presentations in both IETF NETMOD WG and 
>> IEEE 802.1 WG, there was a general agreement that it would be 
>> acceptable for IETF to publish this YANG model as an informational 
>> RFC, with the acknowledgement that 802.1Q VLAN technology is owned by 
>> IEEE, and in future the IEEE 802.1 WG may choose to publish a VLAN 
>> termination model.
>>
>> As part of that IETF NETMOD WG process, and after IEEE 802.1 WG had 
>> reviewed the model, I made a small change in structure of the YANG 
>> model with the sole aim of making the model simpler to use. In 
>> particular, the older model required a slightly clunky indexed list 
>> of VLAN tags, and that is replaced with a simpler structure 
>> supporting two explicit named VLAN tags ('outer-tag' and 
>> 'second-tag').  A while back, Glenn requested that I pass these 
>> changes by the IEEE 802.1 WG to ensure that the changes are 
>> acceptable to the IEEE 802.1 WG, hence this email.
>>
>> The change is perhaps best illustrated via the following change in 
>> the YANG tree output.
>>
>> The*older format* of the YANG model (that members of the 802.1Q WG 
>> previously saw) was like this:
>>
>> *if-cmn:encaps-type: +--:(vlan) +--rw vlan +--rw tags +--rw tag* [index]
>> +--rw index uint8 +--rw dot1q-tag +--rw tag-type dot1q-tag-type +--rw
>> vlan-id dot1q-vlan-id*
>>
>> The *updated format *of YANG model in the current draft is like this:
>>
>>          +--:(dot1q-vlan)
>>             +--rw dot1q-vlan
>>                +--rw outer-tag!
>>                |  +--rw tag-type    dot1q-tag-type
>>                |  +--rw vlan-id     ieee:vlanid
>>                +--rw second-tag!
>>                   +--rw tag-type    dot1q-tag-type
>>                   +--rw vlan-id     ieee:vlanid
>>
>> The same equivalent change has been made for L2 sub-interfaces as well.
>>
>> The latest internet draft is
>> https://tools.ietf.org/html/draft-ietf-netmod-sub-intf-vlan-model-04
>>
>> In particular, it may also be useful to look at the instance data
>> examples in chapter 7, that give a couple of examples of how the YANG
>> model is expected to be used both for L3 termination, and also when used
>> in conjunction with the IETF L2VPN YANG model to provision a
>> point-to-point L2 service.
>>
>> I hope to submit this draft to the NETMOD WG chairs for WG last call
>> after the current IETF 103 meeting.  So if anyone has any concerns then
>> please may I ask that you raise them.  ideally I would like to get them
>> informally addressed before this document progresses. Alternatively if
>> you need more time to review this change, or need this as a formal
>> liaison then please let me know, and I'll do my best.
>>
>> Thank you for your time,
>> Rob Wilton
>>
>>
>> ===
>> Unsubscribe link: mailto:STDS-802-1-L-SIGNOFF-REQUEST@LISTSERV.IEEE.ORG
>> IEEE. Fostering technological innovation and excellence for the 
>> benefit of humanity.
> .
>