Re: [Yot] YANG notification within CoMI

Michel Veillette <Michel.Veillette@trilliant.com> Mon, 11 June 2018 21:12 UTC

Return-Path: <Michel.Veillette@trilliant.com>
X-Original-To: yot@ietfa.amsl.com
Delivered-To: yot@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4BABC130ED0; Mon, 11 Jun 2018 14:12:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=trilliant.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 Lt-hjGIH7av5; Mon, 11 Jun 2018 14:12:55 -0700 (PDT)
Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720115.outbound.protection.outlook.com [40.107.72.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4FF6127598; Mon, 11 Jun 2018 14:12:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-Trilliant-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m6hKWu5UE0ALrHLysO2QsGpJkm8sGSN17BgXSUl5YWY=; b=xEvBEust3Sv0lkbvKmpFnuHwd0DVtJgafUWTBvIzYV7up7cfcoLIIu1vl4T+yxL60Mb1vFywHi7K3za8YAizsE83IT917l2odExTGrWgQr8yBUjXYtbQJVbKwqnjGf3Ld74J3S1slvAoEe//B3soLnF+8yKrkz6qUz4XblejAkg=
Received: from DM5PR06MB2777.namprd06.prod.outlook.com (10.175.107.139) by DM5PR06MB2586.namprd06.prod.outlook.com (10.168.198.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.18; Mon, 11 Jun 2018 21:12:52 +0000
Received: from DM5PR06MB2777.namprd06.prod.outlook.com ([fe80::f8bd:cd7c:eb9e:b248]) by DM5PR06MB2777.namprd06.prod.outlook.com ([fe80::f8bd:cd7c:eb9e:b248%10]) with mapi id 15.20.0841.019; Mon, 11 Jun 2018 21:12:52 +0000
From: Michel Veillette <Michel.Veillette@trilliant.com>
To: "consultancy@vanderstok.org" <consultancy@vanderstok.org>
CC: Andy Bierman <andy@yumaworks.com>, Alexander Pelov <a@ackl.io>, "Eric Voit (evoit)" <evoit@cisco.com>, Henk Birkholz <henk.birkholz@sit.fraunhofer.de>, "yot@ietf.org" <yot@ietf.org>, Core <core@ietf.org>
Thread-Topic: YANG notification within CoMI
Thread-Index: AdP/UVBv6lm2EKsrSzmsBpb94+0wbgCA0LQAABtlnFA=
Date: Mon, 11 Jun 2018 21:12:51 +0000
Message-ID: <DM5PR06MB2777CD78D86BC74876ED7F059A780@DM5PR06MB2777.namprd06.prod.outlook.com>
References: <DM5PR06MB2777CAB016D2789C4F1DD67F9A7B0@DM5PR06MB2777.namprd06.prod.outlook.com> <cac589a63e8864913ccd4aac6cddbf66@bbhmail.nl>
In-Reply-To: <cac589a63e8864913ccd4aac6cddbf66@bbhmail.nl>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michel.Veillette@trilliant.com;
x-originating-ip: [207.96.192.122]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR06MB2586; 7:c+WgcgAvPjz+Vv63+yYpMflNhYXd4mKiSifvRT9bf2ULYjC2igxmca3edZnX65zoukDqDj0Puj7PmhTQL87qv0ZNIG+Rdu55dmNhW1BvnKyTRsQl6IAJx9Hgfekts0gW4b+7RZqFtzm3RymCoiI8QYIlas3PossMfbaClhXZK/b+3jahvUf5rKp9tnX8o+XaQjmBPCHCNiGbbjhuYYEHXNHF8b8A9+BSlcRdM5MWBMsd5EoOFm0Pb5gGdYNj8OLU
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR06MB2586;
x-ms-traffictypediagnostic: DM5PR06MB2586:
x-microsoft-antispam-prvs: <DM5PR06MB258678349C56C71E77888E599A780@DM5PR06MB2586.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(190756311086443)(158342451672863)(95692535739014)(21748063052155);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:DM5PR06MB2586; BCL:0; PCL:0; RULEID:; SRVR:DM5PR06MB2586;
x-forefront-prvs: 070092A9D3
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(39380400002)(39850400004)(396003)(376002)(346002)(189003)(199004)(51914003)(51444003)(4326008)(25786009)(790700001)(5250100002)(2501003)(5630700001)(68736007)(15650500001)(2420400007)(3660700001)(3280700002)(2906002)(2900100001)(3846002)(6116002)(10710500007)(6246003)(6916009)(54896002)(81166006)(9686003)(236005)(2351001)(53936002)(7736002)(8936002)(3480700004)(8676002)(81156014)(1730700003)(6306002)(5660300001)(74316002)(66066001)(86362001)(59450400001)(97736004)(55016002)(33656002)(105586002)(551934003)(11346002)(6436002)(14454004)(446003)(486006)(476003)(106356001)(76176011)(186003)(7696005)(606006)(19609705001)(26005)(102836004)(54906003)(72206003)(5640700003)(966005)(478600001)(316002)(99286004)(229853002)(7110500001)(6506007)(53546011); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR06MB2586; H:DM5PR06MB2777.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: trilliant.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: Z0zifL6xlbZn5yxUjV6XqOWv8AdwVU6bhwpGpTMdGtlmsq2tDRyXDZIZ5vTiA0m938c6Qy/d5MFFSjBJxL5KOrLCTWXd9Gx9tongK0Oux/M/X6hQVVA6HzxJ09zG0A7wbxDcXwbYhGSIXBw2SDtf6wPorQJ6EwSHgiAiXqlPFZxpWYK6jgMMmo6JudQt6SbS
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_DM5PR06MB2777CD78D86BC74876ED7F059A780DM5PR06MB2777namp_"
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 9e718c1d-72e1-42e0-b68c-08d5cfe017bb
X-OriginatorOrg: Trilliant.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 9e718c1d-72e1-42e0-b68c-08d5cfe017bb
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jun 2018 21:12:51.9813 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR06MB2586
Archived-At: <https://mailarchive.ietf.org/arch/msg/yot/oT-AzFva43dCMmXoS5Mjf_sX1CE>
Subject: Re: [Yot] YANG notification within CoMI
X-BeenThere: yot@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: Yang of Things <yot.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yot>, <mailto:yot-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yot/>
List-Post: <mailto:yot@ietf.org>
List-Help: <mailto:yot-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yot>, <mailto:yot-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2018 21:12:59 -0000

Hi Peter

About " I recommend to maintain section 5.5, as is, in the CoMI draft and start looking at the other subjects separately."

The current 'observe' method might still be useful for some use cases which requires a temporary subscription. For example, this method can be used to temporarily subscribe to the syslog for debug purposes. This method can also be used to wait for the completion of a transaction initiated using the normal CoAP methods.

To address the more common event stream use cases (i.e. a something equivalent to SNMP traps), it seem we need to introduce a new mechanism.

About how to solution should be packaged (i.e. one of two drafts), we should probably wait for a better understanding of the direction we want to take.

Regards,
Michel

From: Peter van der Stok [mailto:stokcons@bbhmail.nl]
Sent: Monday, June 11, 2018 3:20 AM
To: Michel Veillette <Michel.Veillette@trilliant.com>
Cc: Andy Bierman <andy@yumaworks.com>; Alexander Pelov <a@ackl.io>; Eric Voit (evoit) <evoit@cisco.com>; Henk Birkholz <henk.birkholz@sit.fraunhofer.de>; yot@ietf.org; Core <core@ietf.org>
Subject: Re: YANG notification within CoMI

Hi Michel,

Thanks for the message.
I think that load balancers, stable storage for messages, californium implementation restrictions are all separate subjects, and merit a solution independent of CoMI.

I recommend to maintain section 5.5, as is, in the comi draft and start looking at the other subjects separately.

Peter

Michel Veillette schreef op 2018-06-08 20:17:

Support the YANG notifications in the current CoMI draft (i.e https://www.ietf.org/id/draft-ietf-core-comi-03.txt) is based on the observe option as defined by RFC7641.



This solution has the following issues which make it not practical for the targeted use case.



1) This approach in incompatible with load balancers, notifications are directly returned to the specific server within the cluster which have initiated the observe request.

2) Typical CoAP implementation (e.g. Californium) doesn't support the persistence of the observe context. These contexts can't be recovered after a server restart and can't be shared between servers.

3) Registrations to event streams are not resilient, they can terminate unexpectedly upon transmission error or reception of a Reset message.



I recommend to delete draft-ietf-core-comi section 5.5 and start a specific effort on this topic.

Alignment with the [I-D.ietf-netconf-yang-push] also need to be considered.

Those interested to this topic, please send me a email so I can schedule conference calls or a face to face meeting during the next IETF.



The following diagram shows a typical deployment scenario.



  +---------+  +---------+       +---------+

  | CoMI    |  | CoMI    |  ...  | CoMI    |

  | server  |  | server  |       | server  |

  +---------+  +---------+       +---------+

       |            |                 |

       |            |                 |

       +----------+-+-----------------+

                  |

                  |

   +---------------------------------+

   | CoMI         |                  |

   | client       |                  |

   |         +----------+            |

   |         | Load     |            |

   |         | Balancer |            |

   |         +----------+            |

   |              |                  |

   |        +-----+---------+        |

   |        |               |        |

   |   +---------+     +---------+   |

   |   | Server  | ... | Server  |   |

   |   +---------+     +---------+   |

   |        |               |        |

   |        +-------+-------+        |

   |                |                |

   |           +----------+          |

   |           | Database |          |

   |           +----------+          |

        |                                 |

   +---------------------------------+

Regards,
Michel