Re: [L2tpext] Comments on l2tpv3-yang-model: Covering keyed-v6-tunnel?

Qi Sun <sunqi.csnet.thu@gmail.com> Wed, 04 February 2015 11:06 UTC

Return-Path: <sunqi.csnet.thu@gmail.com>
X-Original-To: l2tpext@ietfa.amsl.com
Delivered-To: l2tpext@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D75C1A86FE for <l2tpext@ietfa.amsl.com>; Wed, 4 Feb 2015 03:06:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, SPF_PASS=-0.001] autolearn=ham
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 zEhmTVXLb3av for <l2tpext@ietfa.amsl.com>; Wed, 4 Feb 2015 03:06:25 -0800 (PST)
Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) (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 61ABC1A1A92 for <l2tpext@ietf.org>; Wed, 4 Feb 2015 03:06:25 -0800 (PST)
Received: by mail-wi0-f177.google.com with SMTP id r20so2759388wiv.4 for <l2tpext@ietf.org>; Wed, 04 Feb 2015 03:06:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=mSvXqhYLDI3T4eFBvKCkPhVJ08zDtxWsszOt3nYcjtg=; b=LjL0J1fP8+blG+Z+upxIRMEBDP1s9Qg+qVlU6wP/QtnhMVEd3Yf9B5/1MbnwQk4SI8 QpWmNLP6xfLZxYYz1aFAaxlfLoNBgbqC+jDY0nKZL0RXC465GCJZAC+r55WgBvobBauN aqJ2Q+wP6WDqvbkSgvqm9ZcvQVQ11YQmK8UkDqwUohU8LTNY9edZLjDUWpkeAZciUoMR Dm+1K4rPi9u9fh3c+aXfYNnE4yTDIT61ITHlv126viT+lTIyijxPjL+ub2ClL0W/AUmu 1iMVva7wT/I+dG/hQSu8QQsX70b1LrhJIbw/cAvnN7b4KLhWPziCz5d8/5tUD2jAoAJF uk4A==
X-Received: by 10.180.102.69 with SMTP id fm5mr34125141wib.61.1423047984165; Wed, 04 Feb 2015 03:06:24 -0800 (PST)
Received: from sunqideair.lan ([62.225.30.33]) by mx.google.com with ESMTPSA id p6sm2711902wia.14.2015.02.04.03.06.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Feb 2015 03:06:23 -0800 (PST)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\))
From: Qi Sun <sunqi.csnet.thu@gmail.com>
In-Reply-To: <8AE0F17B87264D4CAC7DE0AA6C406F457CEA12A7@nkgeml506-mbx.china.huawei.com>
Date: Wed, 04 Feb 2015 12:06:21 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <F513F78F-114A-4E52-B1C2-41DB1893D136@gmail.com>
References: <16AF5805-BD81-49E4-A49E-6E8C696B07B8@gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F457CE97C31@nkgeml506-mbx.china.huawei.com> <446EC7DF-6FB7-422B-8355-9171AD2ACC13@gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F457CE99369@nkgeml506-mbx.china.huawei.com> <0AC612BA-5C9A-42F4-98B4-CB831772BEE5@gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F457CE9A8E0@nkgeml506-mbx.china.huawei.com> <4BE66EF7-6936-4FED-BD68-4D88A5B1543C@gmail.com> <CAAtO+X=cZWF72=ywF6Pu1AJrJk8H+aVf7733H856y7s24wrEcw@mail.gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F457CEA12A7@nkgeml506-mbx.china.huawei.com>
To: "Liubing (Leo)" <leo.liubing@huawei.com>
X-Mailer: Apple Mail (2.1874)
Archived-At: <http://mailarchive.ietf.org/arch/msg/l2tpext/cPOeLgc4IgUxjNJZPOzTZp6vgoY>
Cc: "draft-shen-l2tpext-l2tpv3-yang-model@tools.ietf.org" <draft-shen-l2tpext-l2tpv3-yang-model@tools.ietf.org>, "l2tpext@ietf.org" <l2tpext@ietf.org>
Subject: Re: [L2tpext] Comments on l2tpv3-yang-model: Covering keyed-v6-tunnel?
X-BeenThere: l2tpext@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Layer Two Tunneling Protocol Extensions <l2tpext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/l2tpext>, <mailto:l2tpext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/l2tpext/>
List-Post: <mailto:l2tpext@ietf.org>
List-Help: <mailto:l2tpext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/l2tpext>, <mailto:l2tpext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Feb 2015 11:06:28 -0000

Hi Bing, 

Thanks for responses. 

> For SeesionID&Cookies as operational parameters, we also talked this issue when writing the draft. We didn't have a strong feeling of including them or excluding them, since we didn't figure out whether they would be necessary management objects. Maybe it's no harm to include them? I'll re-consider it in the next version.

The reason I bring up this is that, for the static mode (keyed v6 tunnel) the NC client knows the SessionID & the Cookies since it configures it. However, for the auto mode, the SessionID & Cookies are generated locally or through negotiation, which might be unknown by the NC client (I think). 

Yes, please consider whether it’s necessary to include the paras as operational paras.

Thanks,
Qi

On Feb 4, 2015, at 11:41 AM, Liubing (Leo) <leo.liubing@huawei.com> wrote:

> Hi Qi,
> 
> Thanks much for your contribution! Please see replies inline. (Tips: using ******to seperate the former mails.)
> 
> ************************* quoting former mails*************************
> From: Qi Sun [mailto:sunqi.csnet.thu@gmail.com] 
> Sent: Friday, January 30, 2015 6:47 PM
> To: Liubing (Leo)
> Cc: draft-shen-l2tpext-l2tpv3-yang-model@tools.ietf.org; l2tpext@ietf.org
> Subject: Re: [L2tpext] Comments on l2tpv3-yang-model: Covering keyed-v6-tunnel?
> 
> Hi Bing, 
>  
> Some further replies. Please see inline. Thanks. 
>  
> 
> On Fri, Jan 23, 2015 at 12:37 PM, Qi Sun <sunqi.csnet.thu@gmail.com> wrote:
>  
>  
> [Qi] One thing you might miss in the current YANG model is that, the Local session ID should be a list instead of a node. I think it should look like this:
> [Bing3] If supporting multiple sessions per tunnel, it should be a list.
>           ...
>           +--rw localCookies
>           |  +--rw localCookie* [cookieName]
>           |     +--rw cookieName            enumeration // "new"/“old"
>           |     +--rw cookieLength           enumeration // 4, 8      
>           |     +--rw localHighCookie       hexBinary
>           |     +--rw localLowCookie        hexBinary
>          …
>  
> (Actually, for keyed-v6-tunnel, the cookieLength is always 8 octets.)
> [Bing3] It’s true if the static tunnel object is defined dedicated for keyed-ipv6-tunnel, but then the above mentioned Local session ID should be a node?
> 
> [Qi] Yes, the Local Session ID should be a node, since it’s “one session per tunnel” as you mentioned earlier.
>  
> [Qi] I was wrong here. As described in the keyed-v6-tunnel draft (https://tools.ietf.org/html/draft-ietf-l2tpext-keyed-ipv6-tunnel-01#section-3 , the last paragraph): 
> <quote>
>    The value of the cookie MUST be
>    able to be changed at any time in a manner that does not drop any
>    legitimate tunneled packets - i.e. the receiver must be willing to
>    accept both "old" and "new" cookie values during a change of cookie
>    value.  Cookie values SHOULD be changed periodically.
> </quote>
> I think as a general point for static tunnel mode, this is necessary for security reasons. So the localCookies should be a list (with only two items at a time, old and new), instead of being a node.
>  
> Sorry for the confusion.
> ************************* quoting ends*************************
> 
> [Bing4] Thanks for your explanation. 
>  
> 
> 
> ************************* quoting former mails************************* 
> Here is the reference for this design:
> https://tools.ietf.org/html/draft-ietf-l2tpext-keyed-ipv6-tunnel-01#section-3 , the last paragraph.
>  
> I can help to provide some text about the keyed-v6-tunnel, if you like.
> [Bing3] That would be good, thanks in advance.
> Here is the suggested text:
>  
> 1. Section 1, Introduction
> [OLD]
>    This document defines a YANG [RFC6020] [RFC6021] data model for
>    L2TPv3 tunnels.
> [NEW]
>    This document defines a YANG [RFC6020] data model for L2TPv3
>    tunnels [RFC3931], which also covers the management for the Keyed 
>    IPv6 Tunnel mechanism [I.D.ietf-l2tpext-keyed-ipv6-tunnel].
>  
> //AND, add normal references to both RFC3931 and I.D.ietf-l2tpext-keyed-ipv6-tunnel
>  
> 2. Section 3.2, l2tpv3TunnelInstances
> I suggest to add two subsections to this section, describing the automatic tunnel mode and the 
> static tunnel mode, respectively.
> [NEW]
> 3.2.1 Automatic tunnel mode
>     L2TPv3 tunnels defined in [RFC3931] are dynamically built, with the Session ID 
>     and Cookie dynamically assigned.Tunnel instances working in this mode
>     only need to be configured with the ctrlName refering to related control instances. 
> 3.2.2 Static tunnel mode
>     In the static tunnel mode, the layer 2 attachment circuits are identified through 
>     IP addresses. The Session IDs and Cookie are pre-configured so that the parameters
>     in the control plan are not needed for tunnels establishment. The Keyed IPv6 tunnel 
>     [I.D.ietf-l2tpext-keyed-ipv6-tunnel] describes such a mechanism. The static 
>     mode is designed to manage L2TPv3 tunnel instances following 
>     [I.D.ietf-l2tpext-keyed-ipv6-tunnel]. In this mode, tunnel instances are configured 
>     to be "one session per tunnel". The Cookie length SHOULD be 64-bit and the 
>     Local Cookie is a list so that the tunnel endpoint can accept both "old" and 
>     "new" cookies during a change of cookie value 
>     [I.D.ietf-l2tpext-keyed-ipv6-tunnel-01#section-4].
>     
>     
> //DISCUSS: Would it be reasonable to retrieve the Session ID and Cookie as operational 
> state parameters both in the aotu and static mode? If so, then a separate "state" subtree
> should include these parameters despite of the modes. 
> ************************* quoting ends*************************
> 
> [Bing4] Thanks for the texts, I'll try to include them in the next version.
> For SeesionID&Cookies as operational parameters, we also talked this issue when writing the draft. We didn't have a strong feeling of including them or excluding them, since we didn't figure out whether they would be necessary management objects. Maybe it's no harm to include them? I'll re-consider it in the next version.
> 
> Best regards,
> Bing
> 
> //NOTE: The text should be updated according to the evolving of the YANG model.
>  
> Hope it helps. And please feel free to re-edit the text if there is any issue there. 
>  
> Best Regards,
> Qi