Re: [netmod] [Netconf] Multiple instances configuration issues-//FW: New Version Notification for draft-liu-netconf-multi-instances-00.txt

Andy Bierman <andy@yumaworks.com> Fri, 04 July 2014 15:47 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6EBBA1A0180 for <netmod@ietfa.amsl.com>; Fri, 4 Jul 2014 08:47:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.757
X-Spam-Level:
X-Spam-Status: No, score=0.757 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, LONGWORDS=2.035, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no
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 FApIZ_CSl2um for <netmod@ietfa.amsl.com>; Fri, 4 Jul 2014 08:47:12 -0700 (PDT)
Received: from mail-qg0-f41.google.com (mail-qg0-f41.google.com [209.85.192.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CF301A01EA for <netmod@ietf.org>; Fri, 4 Jul 2014 08:47:12 -0700 (PDT)
Received: by mail-qg0-f41.google.com with SMTP id i50so1634907qgf.0 for <netmod@ietf.org>; Fri, 04 Jul 2014 08:47:11 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=yCOzqi6zIqi88Z/LAVQ0eSZyvWff7Fx3RH3+vTW9Km4=; b=lvEi+oFau5Nplnf2Bl87XRwTxqKXY8sBPW1vPGB7xPeTP+y+xqJ5rHfNgMwcBJtFcg 14ECaCRdg1lNqhEsZ0sEK+OyJTLGmF2Jw0uI3dky08axSTAzShEuH0j2pgWXxhySe5q7 pwcI/jUMzS7Y5E2HWzLCgSlwsy7p4kxPqV9DwfiQocdVh84X8qrUOhGYYZoMy1/v4/5u ftqT/jNbfRZD3wlhdLzskXma0QBzjRTpSt5eyBvm89pkjSp5mnEG6efglxR4f+SVZB1N MpUMKsSK1yKXTrw/rI/yqGQ0OhBX7DGKWQCne1u3j7MwER+G8rYpEpZWVWnUn6BXUVEU NOyg==
X-Gm-Message-State: ALoCoQlA93QahwifLDHhshxFtep9uXnrFYpB/cUI3ZEu/yQMLZrxa7btMGtZITaNby4a1KMMU44z
MIME-Version: 1.0
X-Received: by 10.140.101.115 with SMTP id t106mr18595588qge.91.1404488831329; Fri, 04 Jul 2014 08:47:11 -0700 (PDT)
Received: by 10.140.104.48 with HTTP; Fri, 4 Jul 2014 08:47:11 -0700 (PDT)
In-Reply-To: <8AE0F17B87264D4CAC7DE0AA6C406F453D8F0652@nkgeml506-mbx.china.huawei.com>
References: <8AE0F17B87264D4CAC7DE0AA6C406F453D8ED5BF@nkgeml506-mbx.china.huawei.com> <CABCOCHQx5_=yVG4Kxzw_pD1EJ7SYz+c6gNMRBywQm1-ArVeBpw@mail.gmail.com> <8AE0F17B87264D4CAC7DE0AA6C406F453D8F0652@nkgeml506-mbx.china.huawei.com>
Date: Fri, 04 Jul 2014 08:47:11 -0700
Message-ID: <CABCOCHQyRcw-HCKc0okOGjFK1FTUEWC2+NW3=GrC9q=vBTvV1Q@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: "Liubing (Leo)" <leo.liubing@huawei.com>
Content-Type: multipart/alternative; boundary="001a11c1721ee2011004fd60092c"
Archived-At: http://mailarchive.ietf.org/arch/msg/netmod/OGXdnV2vheYgIeKdAMb6ZnEnixY
Cc: Zhengguangying <zhengguangying@huawei.com>, Netconf <netconf@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, Yangang <yangang@huawei.com>
Subject: Re: [netmod] [Netconf] Multiple instances configuration issues-//FW: New Version Notification for draft-liu-netconf-multi-instances-00.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Fri, 04 Jul 2014 15:47:16 -0000

On Fri, Jul 4, 2014 at 5:43 AM, Liubing (Leo) <leo.liubing@huawei.com>
wrote:

>  Hi Andy,
>
>
>
> Thanks for your comments. Please see replies inline.
>
>
>
> *From:* Andy Bierman [mailto:andy@yumaworks.com <andy@yumaworks.com>]
> *Sent:* Thursday, July 03, 2014 2:36 AM
> *To:* Liubing (Leo)
> *Cc:* Netconf; netmod@ietf.org; Zhengguangying; Yangang
> *Subject:* Re: [Netconf] Multiple instances configuration issues-//FW:
> New Version Notification for draft-liu-netconf-multi-instances-00.txt
>
>
>
> Hi,
>
>
>
> I read your draft and it I can see use-cases for a context-ID.
>
> I prefer to think of named virtual hosts in Apache2, rather than
>
> SNMP contexts.
>
> [Bing] May I ask the specific reasons that you don't prefer SNMP context?
>
> We also had some concern that since context doesn't specify the content,
> it may have problem on standardization. But we just thought it could be a
> familiar concept to the network management people.
>
>
>


I think SNMP Context has been misused.  IMO it is better to have an
explicit index in a data structure schema, rather than add an INDEX on the
side
using the context-ID.



>   I don't think your solution is fully specified, but it is a good start.
>
> [Bing] Yes, the solution part of the document is mostly a hint for further
> discussion. At this stage, we'd like to hear more opinions on the
> problem/gap analysis part.
>
>
>
> I think the following solution could easily work, which is just a
>
> refinement of your solution in sec. 4.1.
>
>
>
>  1) define a 'server-id' XML attribute
>
>  2) define a NETCONF 'virtual-server' capability indicating the server
> supports the 'server-id' attribute
>
>  3) the server is already required to accept all attributes in the <rpc>
> start tag and return
>
>      them in the <rpc-reply> start tag. (So sending the server-id
> attribute is safe in all cases).
>
>  4) If the server supports the capability, then it must check for the
> server-id attribute in each <rpc>
>
>      and use the correct virtual server or else return an error if it is
> an unknown server-id.
>
>
>
> [Bing] We thought your proposal is also a good solution.
>
> If we go this way, then there might be a problem that is a single
> "server-id" sufficient to identify the targeted instance? Since LS and VS
> might co-exist in one device, thus one LS might contain multiple VSes. Then
> there comes a hierarchy of the server-id. Maybe we need a comprehensive
> structure to well express the hierarchical id?
>
>
>


But you had a single context-id.  How is that any different?

Named virtual hosts are useful in Apache2 because allocating an IP address
to
each WEB server is not always possible.  Each virtual server is its own
instance and
content is independent across virtual servers.  Each HTTP request is routed
from the
real server to the correct virtual server, based on the hostname in the URL.

A hierarchy would have to be based on content, and in that case,
a data modeling solution is needed, not nested virtual servers.





>   I don't really understand Gap-2 and Gap-3 so I am not addressing that.
>  It looks like
>
> it might overlap the "YANG mount" draft (draft-clemm-netmod-mount-01).
>
> IMO that is a completely different problem -- configuration of a
> mid-level-manager.
>
>
>
> [Bing] Gap-2 and Gap-3 are indeed regarding to YANG rather than NETCONF.
> Let me explain them with some examples.
>
>
>
> Req-2/Gap-2: a YANG model itself needs to support multiple instances, for
> example:
>
> -        the routing model (draft-ietf-netmod-routing-cfg) clearly
> defines "routing instance" to support VRF instances
>
> -        the OSPF model (draft-yeung-netmod-ospf) defines "ospf:ospf-af
> [vrf-name afi safi]" to support multiple OSPF engines (instances).
>
> Say, if an existing model doesn't support multiple instances, and in the
> future for some reason we need to manage them as multiple instances. How do
> we extend the existing model?
>

Republish the model with the new key.


>
>
> Req-3a/Gap-3a: Configuring a service under another
>
> E.g., the above mentioned OSPF module is defined under the routing
> instance (VRF) defined in routing model through augment:
>
> augment "/rt:routing/rt:routing-instance/rt:routing-protocols/"
>
>          + "rt:routing-protocol" {
>
>      list ospf-router {
>
>      ...
>
> Then, we could configure the OSPF under the routing data model, there is
> no problem/gap with this example. However, consider another example: if
> we're going to write a new model, say, L3VPN, can we just re-use the whole
> routing model also through augment? (Just to confirm, I'm not sure whether
> YANG is able to do this or not. If YANG is already be able to do it, then
> maybe we should remove the gap.)
>
>
>
> Req-3b/Gap-3b: a YANG model needs to be aware of the other's multiple
> instances
>
> E.g., when the above mentioned OSPF model defines "ospf:ospf-af [vrf-name
> afi safi]" to support multiple OSPF engines (instances), it means the OSPF
> model be aware of the VRF multiple instances, and there is an implication
> that the OSPF instance is binding to the VRF instance. This kind of
> awareness/binding might face the scalability issue. Say, if something like
> VRF comes out in the future, how does current OSPF model to support that
> new kind of instance?
>
>
>
> For "YANG mount" draft, my personal understanding is that it is a
> container to collect different modules in other location together in one
> place. While the above gaps are more regarding to relationships between
> different models. I think they have different scopes.
>
>
>
> Best regards,
>
> Bing
>
>
>
>
>

Andy


>
>
>
>
> On Wed, Jul 2, 2014 at 2:51 AM, Liubing (Leo) <leo.liubing@huawei.com>
> wrote:
>
> Hi all in Netconf & Netmod,
>
> In last Netconf meeting in London, my colleague Guangying Zheng raised a
> question at the mike about how to distinguish multiple VRFs when using
> NETCONF to configure a device.
> And then in the mailing list, David Lamparter led a very good discussion
> of the problem.
>
> As discussed in the mailing list, it is not only regarding to VRF, rather,
> it is quite a general issue.
> So we wrote a draft to try to make a comprehensive discussion of the
> issue. The draft analyzes the management requirements for multiple
> instances like VRF, and pointed out some gaps in current NETCONF protocol
> and YANG models. At last, the draft briefly discuss some possible solutions
> to fill the gaps.
>
> Please review the draft and comment.
> Many thanks!
>
> Best regards,
> Bing
>
>
> -----Original Message-----
> From: internet-drafts@ietf.org [mailto:internet-drafts@ietf.org]
> Sent: Wednesday, July 02, 2014 4:48 PM
> To: Liubing (Leo); Liubing (Leo); Yangang; Yangang
> Subject: New Version Notification for
> draft-liu-netconf-multi-instances-00.txt
>
>
> A new version of I-D, draft-liu-netconf-multi-instances-00.txt
> has been successfully submitted by Bing Liu and posted to the IETF
> repository.
>
> Name:           draft-liu-netconf-multi-instances
> Revision:       00
> Title:          Multi-Instances Configuration Issue in NETCONF
> Document date:  2014-07-02
> Group:          Individual Submission
> Pages:          10
> URL:
> http://www.ietf.org/internet-drafts/draft-liu-netconf-multi-instances-00.txt
> Status:
> https://datatracker.ietf.org/doc/draft-liu-netconf-multi-instances/
> Htmlized:
> http://tools.ietf.org/html/draft-liu-netconf-multi-instances-00
>
>
> Abstract:
>    This document puts together the NETCONF issues of configuring
>    multiple instances including configuring multiple network element
>    instances and multiple service instances. The main problem is how to
>    configure the multiple instances in one NETCONF channel.
>
>
>
>
> Please note that it may take a couple of minutes from the time of
> submission until the htmlized version and diff are available at
> tools.ietf.org.
>
> The IETF Secretariat
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>
>
>