Re: [OSPF] draft-ietf-ospf-yang-03 questions and doubts

t.petch <ietfc@btconnect.com> Fri, 13 May 2016 16:35 UTC

Return-Path: <ietfc@btconnect.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 6FB1B12D5D1; Fri, 13 May 2016 09:35:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 QqWKDb5NMant; Fri, 13 May 2016 09:35:22 -0700 (PDT)
Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0769.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe04::769]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 17BB012D5CF; Fri, 13 May 2016 09:35:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AeROjXF9MaAOoSODsX9MXGnngKiztJNTDk1qA/O9qFI=; b=WgA7IlhVAuSKhwjVmBEdMi5Q8JQpNDdbVUMMiexnZ+qeuxUPMeyog/IEC1nOIB1c5w8aUjDiGdhqxbHNe27U1QqlnklH8EtkLz8d5LHaucI4RuZDIkJZjkcL5vbj1hXbgB2esS25VqAGPUnp7pe7zHZpTxmm5Z52cHPA3Juml4s=
Authentication-Results: metaswitch.com; dkim=none (message not signed) header.d=none;metaswitch.com; dmarc=none action=none header.from=btconnect.com;
Received: from pc6 (109.145.193.232) by HE1PR07MB1625.eurprd07.prod.outlook.com (10.166.124.21) with Microsoft SMTP Server (TLS) id 15.1.497.12; Fri, 13 May 2016 16:35:02 +0000
Message-ID: <00ef01d1ad34$e0e406c0$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: Alan Davey <Alan.Davey@metaswitch.com>, "Acee Lindem (acee)" <acee@cisco.com>, "Derek Man-Kit Yeung (myeung)" <myeung@cisco.com>, draft-ietf-ospf-yang@ietf.org
References: <C2EE31C852049D499842B19FC01C0804012A72782A@ENFICSMBX1.datcon.co.uk> <D2D8C451.73937%myeung@cisco.com> <CY1PR0201MB1066110895F4C141E7779015F9AF0@CY1PR0201MB1066.namprd02.prod.outlook.com> <D2FDEE96.7531D%myeung@cisco.com> <BN3PR0201MB10597DBA718D60998EA82E0FF9950@BN3PR0201MB1059.namprd02.prod.outlook.com> <BN3PR0201MB10593ECF530B4B73B7EDEA38F9720@BN3PR0201MB1059.namprd02.prod.outlook.com> <01f101d1ac75$8fd66a80$4001a8c0@gateway.2wire.net> <D35B5666.60D24%acee@cisco.com> <BN3PR0201MB1059516477FD53CC451B4CADF9740@BN3PR0201MB1059.namprd02.prod.outlook.com>
Date: Fri, 13 May 2016 17:31:05 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [109.145.193.232]
X-ClientProxiedBy: DB5PR08CA0025.eurprd08.prod.outlook.com (10.163.102.163) To HE1PR07MB1625.eurprd07.prod.outlook.com (10.166.124.21)
X-MS-Office365-Filtering-Correlation-Id: 570b4ca4-9617-44dc-f388-08d37b4c88bc
X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 2:vyyyfpcd6I1OXzB6dogGt6VcV5X59CLVQPG5I1yktnMPWjYooK+hxWWcX++my3zrUZ3jBsl85eta261j3t+/YVt4YgILmi0+Mn3v5v4Vhpz3OTJ4oeciCirbHe03olZvOlnmkp9kycrnSl1IrNefJly+wZknw+JWs5dP/GRA8vdl5Ph4FJDD7NqRdzNbdwgi; 3:MYIhPnjhUZM0o/PNWTRibShe18K0F3HE4tNsu1HzP+mJ5sKfJ85bufdHdvmdhmvmnJCOwclR4jjJuC80yAIfL38i3uisjQhI75Ez9rVZzvtDzitlMnn02vAqtaz/ooNJ; 25:9zV3PPFsoTWOPSQoJOSvDwFlt+1J+SirJ0XaI/z2H3sjOU/Ln8BoEEX6BuR3MlnLxF1DBZG9F0gdt5Ki1O7JUPnEp7Ur7yG+T60STrBCmfgTIkrZV355IZpgSnWecMsKZSv60GYu80TJq5Thcys/tAx2Cw5OpnfEreBQqaTNVp7/XqkBzGJyeYZJl7IsgrpVe73CqjvSOrsxhEopSu/Wa9rmKBQMgofgjKi41dC7E+rPCU2Af5ygAAxei8XQV7svmN4TuPS51HJuGGWejRNan1Na8F7tCOzuqsML7F4W2JsCEBhEf+3WzevgA6jwMAOXeqEsByhFVeKYE4ub1AhgopkPvN10+aYyoWVsObB/dBlVpEozvOubAiGHBF8y9AhOOq5TgG1Km/iWarFEg0BkxdW4pzUY4Qm8AcM1q4XfoIs=
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR07MB1625;
X-Microsoft-Antispam-PRVS: <HE1PR07MB16258C841F4CE382D233E406A0740@HE1PR07MB1625.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(95692535739014);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:HE1PR07MB1625; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB1625;
X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 4:lntWaaLSWCFyDrrJ+y/cq8NpAgGLxlzci2JEnE0j+LnZIme0DEzHZTxyn90XuPxJ25BgrPxvkyRQMWLaheYgBf/AM9DM+ynBxcMAIesNs/UXRcyAG9GEjjuBnkTYvwktoWwdCB0f2Veh0sOGUSYv1xLRCwP/7t2iZQqOppavyXaRcL7RVId82kESO2NnEFOXcThtv5mrjFHB++xvLSyJAyrYei0NqP31S4n2vslKfO0bMP1lTBfL254U67JL3ThmfRFjVaGoRAp/h15/S4RlK6pWdzRAr5TSiv29//b6yeHsouVw6JxbTj0XV5zR1pX7tl8FhEccCL6OUZ3gldYc2B/G9LkwALFlxkIf0K9E6rMUKbTO2zh17iUagPqnV4qgqNQcs+tTNKJ8cRY9EPJ/mXrsa3+racz5SEQ435GD8nE=
X-Forefront-PRVS: 0941B96580
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(76104003)(24454002)(13464003)(377454003)(345774005)(84392002)(4326007)(62236002)(44716002)(2906002)(33646002)(23676002)(14496001)(19580405001)(19580395003)(50466002)(66066001)(6116002)(5820100001)(93886004)(92566002)(3846002)(77096005)(1456003)(586003)(189998001)(81816999)(76176999)(81166006)(81686999)(50986999)(44736004)(8676002)(5008740100001)(5004730100002)(15975445007)(1556002)(47776003)(86362001)(61296003)(116806002)(230700001)(42186005)(5001770100001)(9686002)(50226002)(230783001)(74416001)(7726001)(4720700001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB1625; H:pc6; FPR:; SPF:None; MLV:sfv; LANG:en;
X-Microsoft-Exchange-Diagnostics: 1;HE1PR07MB1625;23:AX2PjR7tRiL6/ymNLJX/IRt8Qd5T793Twl2+2GDD0waSZuFzYzhQO1wYxtkeVKrp6EP7W8hBo+iqZiCH6Gfcqzl5ae7Xxqbi4niw6V+KN43e3KCbw7PbrQpWetI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yvmC0axFaBiW3YZpacYGAXrGRDRV4n4kBgN/INuUnzsSISAWdudKyjd/eiD8GhRydMvLEax6amWV7Y7vQJMJ+xeV8DQuvdgiGuKPoGllha373khfjd9cZrKPqykhM3zlOjy0EYFhEV25NV9hLYGc2r
X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1625; 5:R0qbqO02zBcdeDFWnpkUo0n3R3C3rHkyeJEsdBJwj+dz7xsqjSTWu8nvTLQWhX7oyFb5LOinsV8kZMo/h5FQFN5IinxXrIQVMVkcNKycFWbtgmvGmxPwCrUzgqPX9LH3RPthIUr5bFYLutwpVTaHpQ==; 24:MdImRyv7vl7zgWi16MgsVPZcHGJ68D5eTBCc+6L1ayG9pulxqvBZf7HaKVa1LeUEPZoaF1XkHxT1bIIexzi0wcgGZwYVunKbCeDu2SX7heA=; 7:PegotDc08IvO2rDWcz0fZpRUH6KJxwUKoOqr/hZ9X6hTg0lrpYJHIy8KMzT8pGdGqDuXwLR6i8ZAZU7c6frhcA898CK2GbA7IeZztFJ89W6MRtwQvXhbHh+ikliMHTjNGdV9RcO/ysQbVdlZr/YBg8HkZ6xqJ2/bA64CuSka6Op1OScnni9ETZW3yudiZVSr
SpamDiagnosticOutput: 1:23
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2016 16:35:02.4468 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1625
Archived-At: <http://mailarchive.ietf.org/arch/msg/ospf/gLut_OAkPhXl416bBRJ7jRRTxK4>
Cc: OSPF WG List <ospf@ietf.org>
Subject: Re: [OSPF] draft-ietf-ospf-yang-03 questions and doubts
X-BeenThere: ospf@ietf.org
X-Mailman-Version: 2.1.17
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: Fri, 13 May 2016 16:35:25 -0000

----- Original Message -----
From: "Alan Davey" <Alan.Davey@metaswitch.com>
Sent: Friday, May 13, 2016 3:37 PM


> Hi Tom and Acee
>
> Thank you for getting back to me.  I understand that an "interface" is
identified by its name.  My doubt is about how OSPFv2 configuration
defined for an "interface" is mapped to an internal OSPFv2 interface
object that is indexed on IP address (as per RFC 4750).  Perhaps you
could let me know what you think.
>
> In more detail, consider the case where one interface is assigned
multiple IP addresses.  The OSPFv2 protocol considers these to be
separate networks (as per RFC 2328, section 1.2, for example).  If the
OSPFv2 configuration is defined per interface, is that configuration
applied to all of the separate OSPFv2 interfaces or to one of them?  If
to one of them then how is that one selected?
>

On your first point, RFC4750 defines the appearance of a box to the
outside world, as all MIB modules do; how this is implemented internally
is an implementation decision so internally, there may not be the
concept of an object let alone one that is keyed on IP address!
Equally, a YANG module is a contract between device and NMS; it is the
appearance that matters, the internal implementaton can be quite
different.  YANG requires that interfaces have names but that allows a
lot of choice.

The YANG OSPF module maps configuration information to an interface,
identified by name.  The YANG ip module augments the interface with a
list of IP addresses.  An implementor can choose to have an interface
with one IP address, many interfaces each with one address, many with
many and so on, may be constrained by the protocols in use.

My experience of multiple IPv4 addresses is using them to overcome the
limitations of subnet masks with one as primary, the others as
secondary; I cannot recall configuring OSPF on more than one, the
primary, in which case OSPF configuration would only apply to that.  I
suspect that multicast considerations would make it impossible to run
OSPF over a secondary address but I could be wrong.

The YANG modules allow an implementor to treat each IP address as a
separate named interface, one address per interface, which would allow
each to run OSPF and be configured separately for that.  I do not know
if anyone will implement this - ask your favourite supplier of
hardware:-)

This issue, of multiple addresses on an interface, was discussed on the
netmod list in 2011/2012.

Tom Petch

> Regards
> Alan
>
>
> -----Original Message-----
> From: Acee Lindem (acee) [mailto:acee@cisco.com]
> Sent: 13 May 2016 15:02
> To: t.petch <ietfc@btconnect.com>; Alan Davey
<Alan.Davey@metaswitch.com>; Derek Man-Kit Yeung (myeung)
<myeung@cisco.com>; draft-ietf-ospf-yang@ietf.org
> Cc: OSPF WG List <ospf@ietf.org>
> Subject: Re: [OSPF] draft-ietf-ospf-yang-03 questions and doubts
>
> Hi Tom,
>
> On 5/12/16, 1:41 PM, "OSPF on behalf of t.petch"
<ospf-bounces@ietf.org on behalf of ietfc@btconnect.com> wrote:
>
> >----- Original Message -----
> >From: "Alan Davey" <Alan.Davey@metaswitch.com>
> >To: "Derek Man-Kit Yeung (myeung)" <myeung@cisco.com>;
> ><draft-ietf-ospf-yang@ietf.org>
> >Cc: "OSPF WG List" <ospf@ietf.org>
> >Sent: Wednesday, May 11, 2016 5:40 PM
> >
> >Hi Derek
> >
> >A question about the key for OSPF interfaces in the Yang draft.
Please
> >let me know what you think.
> >
> >The background is that the Management Information Base definitions
> >define indices for OSPF interfaces as follows.
> >
> >
> >-          For OSPFv2, RFC 4750 defines the index as ospfIfIpAddress,
> >ospfAddressLessIf.
> >
> >-          For OSPFv3, RFC 5643 defines the index as ospfv3IfIndex,
> >ospfv3IfInstId.
> >
> >However, in the OSPF Yang draft, the key is defined as "interface",
> >which I believe is a name of the interface.
> >
> >How does "interface" map to the indices defined in RFCs 4750 and
5643?
> >
> ><tp>
> >
> >It doesn't (IMHO).  You have two lists of interfaces in this I-D
> >
> >container interfaces { description "All interfaces."; list interface
{
> >key "interface"; description "List of OSPF interfaces.";
> >
> >container interfaces { description "All interfaces in the area.";
list
> >interface { key "interface"; description "List of OSPF interfaces.";
> >
> >both keyed on 'interface' (which is two separate lists so two
separate
> >'interface' leaf, different sets of key objects.).
>
> These are basically the same lists - one is for operational state and
the other is for configuration.
>
>
> >
> >Both are defined as
> >
> >     type if:interface-ref;
> >
> >and the if: harks back to
> >     import ietf-interfaces {prefix "if"; and ietf-interfaces is in
> >RFC7223 where interface-ref is defined as
> >"   An interface is identified by its name, which is unique within
the
> >   server.  This property is captured in the "interface-ref" and
> >   "interface-state-ref" typedefs, which other YANG modules SHOULD
use
> >   when they need to reference a configured interface or
operationally
> >   used interface, respectively."
> >
> >So both lists are keyed on a name which is unique within the server
and
> >can be anything, such as 'lan0' or 'fast-ethernet-23/7' or
> >'hotplug23/6/15' or... It all depends; names may be dictated by the
> >hardware with no choice, or they may be dictated by the software to
> >compliant hardware or ...
> >
> >Underlying this is the thought that we have no good definition of an
> >interface, one that works across all protocols and other aspects of a
> >configuration; an interface is like a blob of jelly and pinning it
down
> >to be a name is about as good a grasp of it as we will get (IMO).
>
> Agreed.
>
> Thanks,
> Acee
>
>
>
> >
> >Tom Petch
> >
> >Thanks
> >Alan
> >
> >_______________________________________________
> >OSPF mailing list
> >OSPF@ietf.org
> >https://www.ietf.org/mailman/listinfo/ospf
>
>