Re: [pim] [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Wed, 10 October 2018 12:52 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: pim@ietfa.amsl.com
Delivered-To: pim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F04A9130EFA; Wed, 10 Oct 2018 05:52:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, 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 Wn_skyiMppBd; Wed, 10 Oct 2018 05:52:41 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5F6E5130EC8; Wed, 10 Oct 2018 05:52:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=48542; q=dns/txt; s=iport; t=1539175961; x=1540385561; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=iD4rjuXzivoJ5vaXBMPbUVrSRHe0PrOULSkGaxwLy9o=; b=SnCm8ThCsQrJWM2W6ERpBf72gZvXsmUaoFQUbURGQm8tNGEIzIvF/E4J QwMiC950Lpcn+0v5jlCClYMyOHfp4GLiL26I3A+VPtclocQMIGS3/NfS9 Fikbpz7e1uriQ1ucvbEpO9MIA1o3luD0I9qPI51MEHM6HhV+06nnJJDfv Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ADAADA9L1b/49dJa1kGQEBAQEBAQEBAQEBAQcBAQEBAQGBUQQBAQEBAQsBgQ53Zn8oCoNriBWMNIFoJZZ+gXoLAQEshEACF4Q5ITQNDQEDAQECAQECbSiFOQEBAQEDI1YQAgEGAhEDAQEBIQEGAwICAjAUCQgCBA4FgyEBgR1kiRCbTYEuihWLOheBQT+BEicME4IeLoUVCRaCSzGCBCICiVaERhWFcYlkCQKQTxeBT4RpiVOVZQIRFIElHTiBVXAVZQGCQQmCRY4Hb4EWihYBgR4BAQ
X-IronPort-AV: E=Sophos;i="5.54,364,1534809600"; d="scan'208,217";a="183966949"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2018 12:52:40 +0000
Received: from XCH-ALN-013.cisco.com (xch-aln-013.cisco.com [173.36.7.23]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id w9ACqeTF008053 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 10 Oct 2018 12:52:40 GMT
Received: from xch-rcd-005.cisco.com (173.37.102.15) by XCH-ALN-013.cisco.com (173.36.7.23) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 10 Oct 2018 07:52:39 -0500
Received: from xch-rcd-005.cisco.com ([173.37.102.15]) by XCH-RCD-005.cisco.com ([173.37.102.15]) with mapi id 15.00.1395.000; Wed, 10 Oct 2018 07:52:39 -0500
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Hongji Zhao <hongji.zhao@ericsson.com>
CC: YANG Doctors <yang-doctors@ietf.org>, "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>, "pim@ietf.org" <pim@ietf.org>, "Acee Lindem (acee)" <acee@cisco.com>
Thread-Topic: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!
Thread-Index: AQHUWZAIg0bAVGEH+UWAo2QEnUAQoqUWPogggAJPWgA=
Date: Wed, 10 Oct 2018 12:52:39 +0000
Message-ID: <559A80C5-DB69-4658-A6B7-82071EB31CF4@cisco.com>
References: <9FBAE41A-6E7A-4240-9372-10656CD1E018@cisco.com> <VI1PR07MB41928C4F8CC4F686205453A096E70@VI1PR07MB4192.eurprd07.prod.outlook.com>
In-Reply-To: <VI1PR07MB41928C4F8CC4F686205453A096E70@VI1PR07MB4192.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.b.0.180311
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [161.44.212.36]
Content-Type: multipart/alternative; boundary="_000_559A80C5DB694658A6B782071EB31CF4ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.23, xch-aln-013.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/Th9WaJ0BPKY4yJmDHss4OsChZVY>
X-Mailman-Approved-At: Thu, 18 Oct 2018 15:10:27 -0700
Subject: Re: [pim] [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!
X-BeenThere: pim@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Protocol Independent Multicast <pim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pim>, <mailto:pim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pim/>
List-Post: <mailto:pim@ietf.org>
List-Help: <mailto:pim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pim>, <mailto:pim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Oct 2018 12:52:45 -0000

Hi Hongji,

This structure looks good to me.

Regards,
Reshad.

From: Hongji Zhao <hongji.zhao@ericsson.com>
Date: Monday, October 8, 2018 at 10:44 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
Cc: YANG Doctors <yang-doctors@ietf.org>, "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>, "pim@ietf.org" <pim@ietf.org>, "Acee Lindem (acee)" <acee@cisco.com>
Subject: RE: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Reshad & Acee,

I see your points and I plan to move the statistics under the snooping instance as below.   Is it ok?   Thanks a lot!


module: ietf-igmp-mld-snooping
    +--rw igmp-snooping-instances
    |  +--rw igmp-snooping-instance* [name]
    |     +--rw name                                 string
    |     ...
    |     +--ro interfaces
          |        +--ro interface* [name]
          |           +--ro name                   if:interface-ref
                      +--ro statistics
                         +--ro received
                         |  +--ro query?                  yang:counter64
                         |  +--ro membership-report-v1?   yang:counter64
                         |  +--ro membership-report-v2?   yang:counter64
                         |  +--ro membership-report-v3?   yang:counter64
                         |  +--ro leave?                  yang:counter64
                         |  +--ro non-member-leave?       yang:counter64
                         |  +--ro pim?                    yang:counter64
                         +--ro sent
                            +--ro query?                  yang:counter64
                           +--ro membership-report-v1?   yang:counter64
                            +--ro membership-report-v2?   yang:counter64
                            +--ro membership-report-v3?   yang:counter64
                            +--ro leave?                  yang:counter64
                            +--ro non-member-leave?       yang:counter64
                            +--ro pim?                    yang:counter64

BR/Hongji
赵宏吉

From: Acee Lindem (acee) <acee@cisco.com>
Sent: Monday, October 01, 2018 10:07 PM
To: Reshad Rahman (rrahman) <rrahman@cisco.com>; Hongji Zhao <hongji.zhao@ericsson.com>
Cc: YANG Doctors <yang-doctors@ietf.org>; draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org; pim@ietf.org
Subject: Re: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Hongji, Reshad,
I agree with Reshad. While both hierarchies have been implemented on various network devices, it is more straight forward to include protocol interface configuration and state in the hierarchy of the protocol instance rather than have it on the interface itself. The only time you want to place it on the interface is when the protocol instance is scoped to a single interface (e.g., VRRP).
Thanks,
Acee

From: yang-doctors <yang-doctors-bounces@ietf.org<mailto:yang-doctors-bounces@ietf.org>> on behalf of "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>
Date: Monday, October 1, 2018 at 9:22 AM
To: Hongji Zhao <hongji.zhao@ericsson.com<mailto:hongji.zhao@ericsson.com>>
Cc: YANG Doctors <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>, "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>>, "pim@ietf.org<mailto:pim@ietf.org>" <pim@ietf.org<mailto:pim@ietf.org>>
Subject: Re: [yang-doctors] Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Hongji,

I understand that these statistics are interface specific, but I still don’t understand why you think augmenting if:interface is better, can you please explain? For me these counts are IGMP/MLD snooping specific, so should be under the snooping instance.

As an example, take a look at section 2.7 of draft-ietf-ospf-yang, the per-interface OSPF counters are under OSPF protocol container, not augment of if:interface.

Regards,
Reshad.

From: Hongji Zhao <hongji.zhao@ericsson.com<mailto:hongji.zhao@ericsson.com>>
Date: Tuesday, September 25, 2018 at 12:30 AM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com<mailto:rrahman@cisco.com>>
Cc: "draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>" <draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>>, "pim@ietf.org<mailto:pim@ietf.org>" <pim@ietf.org<mailto:pim@ietf.org>>, YANG Doctors <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>
Subject: RE: Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot!

Hi Reshad,

The statistics are related with igmp-mld-snooping, not only with mrouter interface.
The query is the number of  igmp query messages. The membership-report-v1/2/3 indicates the number of membership report v1/2/3 messages. The leave indicates the number of leave messages.
The pim is the number of pim hello messages. They are used to generate and maintain the entries for l2 multicast forwarding, multicast router interface, IGMP&MLD snooping membership, etc.

So I think keeping them under augment of if:interface is better.  What do you think of that?
Thanks!

BR/Hongji
赵宏吉

From: Reshad Rahman (rrahman) <rrahman@cisco.com<mailto:rrahman@cisco.com>>
Sent: Thursday, September 20, 2018 8:26 PM
To: Hongji Zhao <hongji.zhao@ericsson.com<mailto:hongji.zhao@ericsson.com>>
Cc: draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org<mailto:draft-ietf-pim-igmp-mld-snooping-yang.all@ietf.org>; pim@ietf.org<mailto:pim@ietf.org>; YANG Doctors <yang-doctors@ietf.org<mailto:yang-doctors@ietf.org>>
Subject: Re: Hi Reshad, the issues about igmp snooping model are addressed. Thanks a lot! Re: [yang-doctors] Yangdoctors early review of draft-ietf-pim-igmp-mld-snooping-yang-03

Hi Hongji,

It looks like those statistics are needed only for interfaces (not for PWs) , so you could keep them under augment of if:interface, or put those stats under bridge-mrouter-interface and l2vpn-mrouter-interface-ac in the snooping-instance. My preference is for the latter.

Regards,
Reshad.