Re: [i2rs] [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Qin Wu <bill.wu@huawei.com> Thu, 09 July 2020 03:06 UTC

Return-Path: <bill.wu@huawei.com>
X-Original-To: i2rs@ietfa.amsl.com
Delivered-To: i2rs@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2BCDD3A0D76; Wed, 8 Jul 2020 20:06:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 PNv5_8G06fD9; Wed, 8 Jul 2020 20:06:36 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DFEA3A0DE6; Wed, 8 Jul 2020 20:06:35 -0700 (PDT)
Received: from lhreml715-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id F42289DF21335B51CDB3; Thu, 9 Jul 2020 04:06:33 +0100 (IST)
Received: from lhreml715-chm.china.huawei.com (10.201.108.66) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Thu, 9 Jul 2020 04:06:33 +0100
Received: from DGGEML423-HUB.china.huawei.com (10.1.199.40) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.1.1913.5 via Frontend Transport; Thu, 9 Jul 2020 04:06:32 +0100
Received: from DGGEML531-MBS.china.huawei.com ([169.254.5.228]) by dggeml423-hub.china.huawei.com ([10.1.199.40]) with mapi id 14.03.0487.000; Thu, 9 Jul 2020 11:06:30 +0800
From: Qin Wu <bill.wu@huawei.com>
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>, Susan Hares <shares@ndzh.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "i2rs@ietf.org" <i2rs@ietf.org>
CC: "martin.vigoureux@nokia.com" <martin.vigoureux@nokia.com>, 'Benjamin Kaduk' <kaduk@mit.edu>
Thread-Topic: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology
Thread-Index: AdZVneb9ZktPNNJ4RNKAyfuQ38AKWQ==
Date: Thu, 09 Jul 2020 03:06:29 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABAAD819140@dggeml531-mbs.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.164.123.162]
Content-Type: multipart/alternative; boundary="_000_B8F9A780D330094D99AF023C5877DABAAD819140dggeml531mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2rs/FjkwInexdUqgTvTEiosoFBP684Y>
Subject: Re: [i2rs] [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology
X-BeenThere: i2rs@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Interface to The Internet Routing System \(IRS\)" <i2rs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2rs>, <mailto:i2rs-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2rs/>
List-Post: <mailto:i2rs@ietf.org>
List-Help: <mailto:i2rs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2rs>, <mailto:i2rs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Jul 2020 03:06:46 -0000

Good, will see how to tweak on this.

-Qin
发件人: Reshad Rahman (rrahman) [mailto:rrahman@cisco.com]
发送时间: 2020年7月9日 10:52
收件人: Qin Wu <bill.wu@huawei.com>; Susan Hares <shares@ndzh.com>; yang-doctors@ietf.org; i2rs@ietf.org
抄送: martin.vigoureux@nokia.com; 'Benjamin Kaduk' <kaduk@mit.edu>
主题: Re: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Hi Qin,

I don’t think this needs feature since it’s pretty common. It’s just IP address (L3) in l2-attributes grouping that I found odd, maybe that grouping should have different name (i.e. not L2 specific). But since I haven’t been involved with this document at all, I probably shouldn’t be making suggestions.

Regards,
Reshad.

From: Qin Wu <bill.wu@huawei.com<mailto:bill.wu@huawei.com>>
Date: Wednesday, July 8, 2020 at 10:39 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>, Susan Hares <shares@ndzh.com<mailto:shares@ndzh.com>>, "yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>" <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "i2rs@ietf.org<mailto:i2rs@ietf.org>" <i2rs@ietf.org<mailto:i2rs@ietf.org>>
Cc: "martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>" <martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>>, 'Benjamin Kaduk' <kaduk@mit.edu<mailto:kaduk@mit.edu>>
Subject: RE: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Reshad:
The management IP address is used by the administrator to get access to L2 device. It is just listed as a node attribute. We could add feature to make it optional if you think needed.

-Qin
发件人: i2rs [mailto:i2rs-bounces@ietf.org] 代表 Reshad Rahman (rrahman)
发送时间: 2020年7月9日 0:20
收件人: Susan Hares <shares@ndzh.com<mailto:shares@ndzh.com>>; yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>; i2rs@ietf.org<mailto:i2rs@ietf.org>
抄送: martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>; 'Benjamin Kaduk' <kaduk@mit.edu<mailto:kaduk@mit.edu>>
主题: Re: [i2rs] [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Thanks Sue. I wasn’t questioning the need for multiple IP addresses, I just found it odd to have IP address(es) in an L2 grouping.

Regards,
Reshad.

From: Susan Hares <shares@ndzh.com<mailto:shares@ndzh.com>>
Date: Wednesday, July 8, 2020 at 12:16 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>, "yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>" <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "i2rs@ietf.org<mailto:i2rs@ietf.org>" <i2rs@ietf.org<mailto:i2rs@ietf.org>>
Cc: "martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>" <martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>>, 'Benjamin Kaduk' <kaduk@mit.edu<mailto:kaduk@mit.edu>>
Subject: RE: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Reshad:

Juregen indicates my questions are not for IETF but for IEEE, and that multiple system-macs may be implemented as a list.

I’m looking at the IEEE  yang model for 802-1Qcp (2018 update to IEEE 802.1Q), but you can get the pre-release draft at (only editorial nits are missing) at:

http://www.ieee802.org/1/files/private/cp-drafts/d2/802-1Qcp-d2-2.pdf

The reason there are multiple IP addresses is that the single LAN can have multiple IP addresses assigned to it.
In may routers/switches the single MAC port will have multiple virtual ports.  (cisco started this concept in the 1990s).

Thanks for the help!

Sue

From: Reshad Rahman (rrahman) [mailto:rrahman@cisco.com]
Sent: Wednesday, July 8, 2020 12:09 PM
To: Susan Hares; yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>; i2rs@ietf.org<mailto:i2rs@ietf.org>
Cc: martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>; 'Benjamin Kaduk'
Subject: Re: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Hi,

I was referring to management-address leaf-list in the same grouping (see below).

I don’t have the expertise to answer your questions below, maybe some YDs do.

Regards,
Reshad.

     grouping l2-node-attributes {
       description
         "L2 node attributes";
       container l2-node-attributes {
         description
           "Contains L2 node attributes.";
<snip>
         leaf-list management-address {
           type inet:ip-address;
           description
             "System management address.";
         }
         leaf sys-mac-address {
           type yang:mac-address;
           description
             "System MAC address.";
         }


From: Susan Hares <shares@ndzh.com<mailto:shares@ndzh.com>>
Date: Wednesday, July 8, 2020 at 11:48 AM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>, "yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>" <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "i2rs@ietf.org<mailto:i2rs@ietf.org>" <i2rs@ietf.org<mailto:i2rs@ietf.org>>
Cc: "martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>" <martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>>, 'Benjamin Kaduk' <kaduk@mit.edu<mailto:kaduk@mit.edu>>
Subject: RE: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Reshad:

Thank you for quick response.   However, I’m confused.   Where do you see the IP address in the Yang snippet I sent?  It is a MAC Address (type yang:mac-address)?  If the system port allows IP, it will respond to the ARP request with the appropriate IP/MAC match in an ARP reply.

In real implementations I2rs implementers examined,

  *   L2 port with mgmt-mac-address seems to be used to only send LLDP packets,
  *   L2 port with sys-mac-address seems to be used for management using TCP/IP.



If we swap the names, it did not work with the initial implementers of the yang model.  The  I2RS Topology models are used for operational management of switches and routers as logical units.



Also, your response does not seem to match my questions:


1) Is this the normal assumption for yang models?
2) If not, what is the normal assumption on system mac addresses?
3) Am I correct that switches with more than 1 system MAC will augment their basic yang model with the second system MAC Address?

I’m sorry to bother you but this document is being reviewed by the IESG  tomorrow (Thursday) and
I am the shepherd.  I do not know how to answer some of the yang related questions regarding multiple system ports to exchange management configuration on.

I had thought that netconf/restconf would be exchanged over the same ports so the yang doctors would know what the normal custom should be.

Thanks again!

Sue










From: Reshad Rahman (rrahman) [mailto:rrahman@cisco.com]
Sent: Wednesday, July 8, 2020 11:27 AM
To: Susan Hares; yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>; i2rs@ietf.org<mailto:i2rs@ietf.org>
Cc: martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>; 'Benjamin Kaduk'
Subject: Re: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

Hi,

So sys-mac-address is supposed to be the MAC address of the mgmt port, i.e. the device would respond to an ARP request for management-address with sys-mac-address? I think use of term system might be a bit misleading if that’s the case, mgmt-mac-address might be better.

Also, it is odd to have an IP address in an L2 grouping.

Disclaimer: not familiar with that draft at all, just took a look at the L2 grouping.

Regards,
Reshad.

From: yang-doctors <yang-doctors-bounces@ietf.org<mailto:yang-doctors-bounces@ietf.org>> on behalf of Susan Hares <shares@ndzh.com<mailto:shares@ndzh.com>>
Date: Wednesday, July 8, 2020 at 11:12 AM
To: "yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>" <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "i2rs@ietf.org<mailto:i2rs@ietf.org>" <i2rs@ietf.org<mailto:i2rs@ietf.org>>
Cc: "martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>" <martin.vigoureux@nokia.com<mailto:martin.vigoureux@nokia.com>>, 'Benjamin Kaduk' <kaduk@mit.edu<mailto:kaduk@mit.edu>>
Subject: [yang-doctors] draft-ietf-i2rs-yang-l2-network-topology

The following question was asked by Ben Kaduk during IESG review of the following document:

https://datatracker.ietf.org/doc/draft-ietf-i2rs-yang-l2-network-topology/


     grouping l2-node-attributes {

         [...]

         leaf sys-mac-address {

           type yang:mac-address;

           description

             "System MAC address.";

         }

If there are more than 1 system mac address in a switch, how would this model handle it.

My understanding is that most switches have 1 system mac address for network management.  Therefore, the L2 topology model supports one.

Question for Yang Doctors:

1) Is this the normal assumption for yang models?
2) If not, what is the normal assumption on system mac addresses?

3) Am I correct that switches with more than 1 system MAC will augment their basic yang model with the second system MAC Address.

Thank you, Susan Hares