Re: [core] COMI: Basic Operations

Michel Veillette <Michel.Veillette@trilliantinc.com> Tue, 21 June 2016 17:13 UTC

Return-Path: <Michel.Veillette@trilliantinc.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A3E412D75C for <core@ietfa.amsl.com>; Tue, 21 Jun 2016 10:13:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.791
X-Spam-Level:
X-Spam-Status: No, score=-1.791 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" 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 PU5-Vbt-03c0 for <core@ietfa.amsl.com>; Tue, 21 Jun 2016 10:13:39 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0708.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::708]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8747F12D768 for <core@ietf.org>; Tue, 21 Jun 2016 10:13:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-trilliantinc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=4ARnum24zRpMgZ6XEZ+XW2aPWERk8U+TlkCKy4J4lmE=; b=El4jpcS5Zij23veFqQ0CAdQG93AEYfIXD2PaC09JarZoPfxJfjIAcYVmLmZYAu6nTq8XCS4GasrRmLDYvSNJAUpINqWtDaSVYKie5y2YxaIjDhLeZCuB0wWfbT86kdWVBxiXUSjYHZqD66HOrUq910sMazMuRtyUUbxZ++KXZG0=
Received: from BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) by BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) with Microsoft SMTP Server (TLS) id 15.1.523.12; Tue, 21 Jun 2016 17:13:17 +0000
Received: from BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) by BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) with mapi id 15.01.0523.015; Tue, 21 Jun 2016 17:13:17 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>, "core@ietf.org WG" <core@ietf.org>
Thread-Topic: [core] COMI: Basic Operations
Thread-Index: AQHRy5OrVYz50ufs9ESY69BFKOWJoJ/0J15w
Date: Tue, 21 Jun 2016 17:13:17 +0000
Message-ID: <BLUPR06MB176396014689D95A8B5F58D3FE2B0@BLUPR06MB1763.namprd06.prod.outlook.com>
References: <5768F53B.6010109@gmx.net>
In-Reply-To: <5768F53B.6010109@gmx.net>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michel.Veillette@trilliantinc.com;
x-originating-ip: [207.96.192.122]
x-ms-office365-filtering-correlation-id: dbde9ba4-43b5-4ae7-466a-08d399f756a8
x-microsoft-exchange-diagnostics: 1; BLUPR06MB1763; 6:UXZHsUpbGldCCFHM8Nhw0HDknWi3odI8sbPCfmqS+CG8GhGcleSn91x724LJXqvQXbZd/T5q8v0zEh6ZtjQGJoiLLvVNVu0wYSPYH79KZWOpSxdeIbt+N16U0FwTpsF00W2eVHiWTMwACCiSm0ySCGDJ+XNesG9bbRxJFkqfa0aMUpJIVb7ZBPP9qMW+/lVDRucN43o6y/ZFAqbHIfulo0nllU4fW3yCPQIuF7RjY+SaNPbaurIY7r0ftzYyKjKB5ZBfWICzkzKI5NEsxRWxTlE5YhI8jDOnN/uXbJS8Sak=; 5:vKZ4hjfEcOaWZoxlMHbKzs9WPHfsFiHfK8eNGnZbZk26MgwQouzx5yENdMgegjCI4NLcfMp3xBt83Jt7k747aLdshwUsDVwxkEHx0pT/In79Zce3FMIzQtRxanriAZxz; 24:jqqY929j9id2Ruyd/jZGI7sWgyDtaLjSFL7csrHvQMLUVBzAw+Tn/NWy8Yj5Ao69jq1p6x8h3G/NPMrzLhxFAZwhKymc1VYtCeQfbTPqSmQ=; 7:qndxOWYgkolwNKQCe6N7v+sXWGSUxEUm5Ktkv80xrOweeNxVY91puUU4CeenGmNrL1rtmCI77KCntnkZOO3NOX4BH9tBv5d97gwiW7oGtxef2QXgwp1/Tqaxc4Czw/jLGy+dfrCHyM/JQh76AvwD0N0z3O9IkRYoSBT2avX3CkXM/mmGCCR71fi1uVKDtUGOOgI2/yrmGbzAUbNg6XE4eIcws/CU/Xm4zRJIvXjEC5U=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR06MB1763;
x-microsoft-antispam-prvs: <BLUPR06MB1763DC54491218062264285BFE2B0@BLUPR06MB1763.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415321)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BLUPR06MB1763; BCL:0; PCL:0; RULEID:; SRVR:BLUPR06MB1763;
x-forefront-prvs: 098076C36C
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(377454003)(189002)(13464003)(199003)(16236675004)(6116002)(102836003)(3280700002)(11100500001)(586003)(3846002)(790700001)(15975445007)(3660700001)(66066001)(81166006)(5002640100001)(33656002)(7846002)(87936001)(10400500002)(551934003)(7696003)(7736002)(2900100001)(19300405004)(5003600100003)(7906002)(68736007)(86362001)(2950100001)(107886002)(19617315012)(106116001)(54356999)(97736004)(5001770100001)(74316001)(81156014)(76176999)(92566002)(122556002)(50986999)(9686002)(105586002)(99286002)(106356001)(99936001)(8936002)(2906002)(101416001)(19580405001)(189998001)(19625215002)(5890100001)(19580395003)(77096005)(76576001)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR06MB1763; H:BLUPR06MB1763.namprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:;
received-spf: None (protection.outlook.com: trilliantinc.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/mixed; boundary="_004_BLUPR06MB176396014689D95A8B5F58D3FE2B0BLUPR06MB1763namp_"
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2016 17:13:17.7620 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR06MB1763
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/C6TYuOELm610iIJod4uI3tIPMec>
Subject: Re: [core] COMI: Basic Operations
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Jun 2016 17:13:41 -0000

Hi Hannes



Good timing.

On the agenda of our weekly call tomorrow, we have an item to review the proposed function set.

I have included in attachment the invite for this meeting in case you want to participate.

Following is a list of the CoAP methods, associated use cases, message content summary and examples.

For the up to date version of the drafts, see http://core-wg.github.io/yang-cbor/



·         The GET method

o   Use to retrieve the content of a datastore

o   Can be used to implement a backup/restore use case

o   The request contains the URI of the targeted datastore (/c/r = running configuration, /c = current data & running configuration)

o   The response contains an array of pairs of (delta SID, associated values)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.1



·         The PUT method

o   Use to load content of a datastore

o   Can be used to implement the provisioning, commissioning and restore use cases

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array of pairs of (delta SID, associated value)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.3



·         The FETCH method

o   Use to retrieve a subset of a datastore

o   Can be used to implement ad-hoc queries, recurrent data retrieval (e.g state and statistics)

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and a list of instance-identifier

o   The response contains an array of associated values (value, CBOR undefined or CBOR default)

o   Examples: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.2



·         The iPATCH method

o   Use to update a subset of a datastore

o   Can be used to update the configuration of a device using a atomic transaction

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array of pairs of (instance-identifier, associated value)

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.4

o   A candidate datasotre (/c/c) and the "commit" RPC can be used to implement a schedules and/or confirmed update on one or multiple devices.
http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.appendix.A



·         The POST method

o   Use to execute a RPC or an Action

o   The request contains the URI of the targeted datastore (/c/r = running configuration) and an array with up to two entry, the RPC identification (SID) follow by the optional input

o   The request contains contain the optional output

o   Example: http://core-wg.github.io/yang-cbor/draft-veillette-core-cool-latest.html#rfc.section.5.5



Regards,

Michel



-----Original Message-----
From: core [mailto:core-bounces@ietf.org] On Behalf Of Hannes Tschofenig
Sent: Tuesday, June 21, 2016 4:05 AM
To: core@ietf.org WG <core@ietf.org>
Subject: [core] COMI: Basic Operations



Hi COMI friends,



since you have for sure progressed your work quite a bit since we last meet in BA I am wondering whether you have a few simple message exchange examples using COMI for me.



For example, think about a typical IoT device lifecycle where the device starts and registers its resources with a server in the cloud, it then periodically sends sensor readings (to that server), and gets requests from a server as well.



How would this look like in COMI?



Ciao

Hannes


--- Begin Message ---
plus d'infos »<https://www.google.com/calendar/event?action=VIEW&eid=XzZvczMwaDFpOGgwazhiOWw2b3A0NGI5azZsMTQ4YjlwNmNwMzBiYTI2ZDJrOGUxaTY1MzM4Y3BuODggbWljaGVsLnZlaWxsZXR0ZUB0cmlsbGlhbnRpbmMuY29t&tok=MTYjYXBlbG92QGdtYWlsLmNvbWM4ZTFlNmEzNzU3NDdkOTQxNGM5OTY5YzdiNzMyNzExMmYwM2QxMDU&ctz=Europe/Paris&hl=fr>

CoMI with CoOL
TBD
Date    mer. 22 juin 2016 17:00 – 18:00 Paris
Appel vidéo     Participer à un appel vidéo<https://plus.google.com/hangouts/_/calendar/YXBlbG92QGdtYWlsLmNvbQ._6os30h1i8h0k8b9l6op44b9k6l148b9p6cp30ba26d2k8e1i65338cpn88>
Agenda  apelov@gmail.com
Participants    •       Alexander Pelov- organisateur
•       consultancy@vanderstok.orglaurent.toutain@telecom-bretagne.euana@ackl.io
•       Andy Bierman
•       hartke@tzi.orgjaime.jimenez@ericsson.comrandy.turner@landisgyr.comabhinav.somaraju@tridonic.commichel.veillette@trilliantinc.comcabo@tzi.org

Allez-vous participer ?   Oui<https://www.google.com/calendar/event?action=RESPOND&eid=XzZvczMwaDFpOGgwazhiOWw2b3A0NGI5azZsMTQ4YjlwNmNwMzBiYTI2ZDJrOGUxaTY1MzM4Y3BuODggbWljaGVsLnZlaWxsZXR0ZUB0cmlsbGlhbnRpbmMuY29t&rst=1&tok=MTYjYXBlbG92QGdtYWlsLmNvbWM4ZTFlNmEzNzU3NDdkOTQxNGM5OTY5YzdiNzMyNzExMmYwM2QxMDU&ctz=Europe/Paris&hl=fr> - Peut-être<https://www.google.com/calendar/event?action=RESPOND&eid=XzZvczMwaDFpOGgwazhiOWw2b3A0NGI5azZsMTQ4YjlwNmNwMzBiYTI2ZDJrOGUxaTY1MzM4Y3BuODggbWljaGVsLnZlaWxsZXR0ZUB0cmlsbGlhbnRpbmMuY29t&rst=3&tok=MTYjYXBlbG92QGdtYWlsLmNvbWM4ZTFlNmEzNzU3NDdkOTQxNGM5OTY5YzdiNzMyNzExMmYwM2QxMDU&ctz=Europe/Paris&hl=fr> - Non<https://www.google.com/calendar/event?action=RESPOND&eid=XzZvczMwaDFpOGgwazhiOWw2b3A0NGI5azZsMTQ4YjlwNmNwMzBiYTI2ZDJrOGUxaTY1MzM4Y3BuODggbWljaGVsLnZlaWxsZXR0ZUB0cmlsbGlhbnRpbmMuY29t&rst=2&tok=MTYjYXBlbG92QGdtYWlsLmNvbWM4ZTFlNmEzNzU3NDdkOTQxNGM5OTY5YzdiNzMyNzExMmYwM2QxMDU&ctz=Europe/Paris&hl=fr>    plus d'options »<https://www.google.com/calendar/event?action=VIEW&eid=XzZvczMwaDFpOGgwazhiOWw2b3A0NGI5azZsMTQ4YjlwNmNwMzBiYTI2ZDJrOGUxaTY1MzM4Y3BuODggbWljaGVsLnZlaWxsZXR0ZUB0cmlsbGlhbnRpbmMuY29t&tok=MTYjYXBlbG92QGdtYWlsLmNvbWM4ZTFlNmEzNzU3NDdkOTQxNGM5OTY5YzdiNzMyNzExMmYwM2QxMDU&ctz=Europe/Paris&hl=fr>
Invitation de Google Agenda<https://www.google.com/calendar/>

Vous recevez ce message à l'adresse michel.veillette@trilliantinc.com, car vous participez à cet événement.

Refusez cet événement pour ne plus recevoir de notifications le concernant. Vous avez également la possibilité de créer un compte Google à l'adresse https://www.google.com/calendar/ et de définir vous-même les paramètres de notification pour l'intégralité de votre agenda.

En transférant cette invitation, vous risquez d'autoriser tous les destinataires à modifier votre réponse à l'invitation. En savoir plus<https://support.google.com/calendar/answer/37135#forwarding>.
--- End Message ---