Re: [core] resource-directory-4

"Dijk, Esko" <esko.dijk@philips.com> Mon, 28 January 2013 13:05 UTC

Return-Path: <esko.dijk@philips.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 1D55521F8472 for <core@ietfa.amsl.com>; Mon, 28 Jan 2013 05:05:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.798
X-Spam-Level:
X-Spam-Status: No, score=-1.798 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, J_CHICKENPOX_24=0.6, J_CHICKENPOX_43=0.6, J_CHICKENPOX_44=0.6, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3U0l7XcnXNHj for <core@ietfa.amsl.com>; Mon, 28 Jan 2013 05:04:59 -0800 (PST)
Received: from db3outboundpool.messaging.microsoft.com (db3ehsobe002.messaging.microsoft.com [213.199.154.140]) by ietfa.amsl.com (Postfix) with ESMTP id 4D86D21F8430 for <core@ietf.org>; Mon, 28 Jan 2013 05:04:57 -0800 (PST)
Received: from mail16-db3-R.bigfish.com (10.3.81.233) by DB3EHSOBE005.bigfish.com (10.3.84.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 28 Jan 2013 13:04:56 +0000
Received: from mail16-db3 (localhost [127.0.0.1]) by mail16-db3-R.bigfish.com (Postfix) with ESMTP id 40FF46018F; Mon, 28 Jan 2013 13:04:56 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:157.55.7.222; KIP:(null); UIP:(null); IPV:NLI; H:mail.philips.com; RD:none; EFVD:NLI
X-SpamScore: -32
X-BigFish: VPS-32(zz217bI98dI15d6O9371I9251Jc89bhd6eahc857hzz1ee6h1de0h1202h1e76h1d1ah1d2ahzz1033IL8275bh8275dh18c673hz2dh2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1155h)
Received: from mail16-db3 (localhost.localdomain [127.0.0.1]) by mail16-db3 (MessageSwitch) id 1359378242964436_23965; Mon, 28 Jan 2013 13:04:02 +0000 (UTC)
Received: from DB3EHSMHS018.bigfish.com (unknown [10.3.81.244]) by mail16-db3.bigfish.com (Postfix) with ESMTP id D9D55400E3; Mon, 28 Jan 2013 13:04:02 +0000 (UTC)
Received: from mail.philips.com (157.55.7.222) by DB3EHSMHS018.bigfish.com (10.3.87.118) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 28 Jan 2013 13:04:02 +0000
Received: from 011-DB3MPN2-081.MGDPHG.emi.philips.com ([169.254.1.86]) by 011-DB3MMR1-003.MGDPHG.emi.philips.com ([10.128.28.53]) with mapi id 14.02.0318.003; Mon, 28 Jan 2013 13:03:42 +0000
From: "Dijk, Esko" <esko.dijk@philips.com>
To: Floris Van den Abeele <floris.vandenabeele@intec.ugent.be>, Zach Shelby <zach@sensinode.com>
Thread-Topic: [core] resource-directory-4
Thread-Index: AQHNlwPuSFBVc6snmU+8MvoMJOpdo5eYOWGAgADgcQCAAEP9AIDF+ecAgAAnLoA=
Date: Mon, 28 Jan 2013 13:03:42 +0000
Message-ID: <031DD135F9160444ABBE3B0C36CED618B76082@011-DB3MPN2-081.MGDPHG.emi.philips.com>
References: <30a64b4fc85a612b82a5ed4fe685476e@xs4all.nl> <5F948749-91FB-4687-B0F6-CD0B713E3931@sensinode.com> <7e66b0ef133d031d61a4cd103108bb0f@xs4all.nl> <14303B24-14FE-4026-BA9F-CA4444E2492D@sensinode.com> <510653E8.4060109@intec.ugent.be>
In-Reply-To: <510653E8.4060109@intec.ugent.be>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [194.171.252.103]
Content-Type: multipart/alternative; boundary="_000_031DD135F9160444ABBE3B0C36CED618B76082011DB3MPN2081MGDP_"
MIME-Version: 1.0
X-OriginatorOrg: philips.com
Cc: Core <core@ietf.org>
Subject: Re: [core] resource-directory-4
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Mon, 28 Jan 2013 13:05:00 -0000

Hello Floris, Zach,

> Shouldn't the default value for the con parameter in section 5.2 also be the 'default discovery URI' as in section 4? The draft states to use the source port as the context port, however this port will usually be a client port and will differ from the port the endpoint is listening on (e.g. port 60000 vs 5683).

Good point; maybe the reason that source port is written here is, that it’s the only information that is available (in the absence of information on the port the endpoint is listening on when ‘con’ is not included). That implies the client has to use as source port the same port that it is listening on.


> I don't agree that this a contradiction, the last line of 5.32 refers to the URI query parameters that are passed on (e.g. con, rt and lt) and not the CoAP Payload. So in my view this shouldn't be altered. Enforcing this on the payload as well, would seem to imply that the payload would be a patch of some sort (which seems to be out of the scope of the document).

To me it’s not clear from the text whether the PUT request to do an update overwrites the previous entries entirely (which would be most RESTful) or that “update” implies that only new and/or changed resources are included in the payload. (Then I would expect a POST rather than PUT)
Maybe an idea is allowing both PUT (to overwrite existing) or POST (to update existing) ?

Esko


From: core-bounces@ietf.org [mailto:core-bounces@ietf.org] On Behalf Of Floris Van den Abeele
Sent: Monday 28 January 2013 11:33
To: Zach Shelby
Cc: Core
Subject: Re: [core] resource-directory-4

Hi Zach&all,

I read and implemented the draft and interpreted the usage of the con parameter the same way as Zach did, i.e. to be used to update volatile IP addresses thus ensuring the reachability of the registered endpoint.

I also have a couple of comments/questions about draft-shelby-core-resource-directory-04:
* Shouldn't the default value for the con parameter in section 5.2 also be the 'default discovery URI' as in section 4? The draft states to use the source port as the context port, however this port will usually be a client port and will differ from the port the endpoint is listening on (e.g. port 60000 vs 5683).
* In draft-bormann-core-simple-server-discovery-00 a definition is given for the 'default discovery URI', I would suggest referencing it or adding it to the document in section 4. This definition does include the listening port instead of the source port.
* Peter wrote:

In the example of sec 5.3, the last line, </sensors/light>;ct=41;rt=”lightLux;if=”sensor” is identical to the 2nd line in the payload of the Registration example. This contradicts the last line of the intro of sec 5.32 Parameters (not Paremeters) that have not changed SHOULD NOT be included in an update. Better remove or change the last line in the Update example.
Good eye. Will change that.



I don't agree that this a contradiction, the last line of 5.32 refers to the URI query parameters that are passed on (e.g. con, rt and lt) and not the CoAP Payload. So in my view this shouldn't be altered. Enforcing this on the payload as well, would seem to imply that the payload would be a patch of some sort (which seems to be out of the scope of the document).

* Why reuse the rt accronym for end point type? This is confusing with the resource type that is defined in RFC 6690.

* There is small mistake in the last example of section 6. The example should be GET /rd-lookup/d instead of GET /rd-lookup/domain in the ASCII figure and the accompanying text beneath it.



Regards,

Floris
On ma 24 sep 2012 14:15:36 CEST, Zach Shelby wrote:


On Sep 24, 2012, at 11:12 AM, peter van der Stok wrote:



Hi Zach,

In relation to the point below, Some questions remain.






In sec 5.3 the con parameter is also mentioned to update the entry. In the case that the host:port changes completely, a new entry is required IMO. May be remove con from update?


The whole point of an update is that it would update a change in the
ip:port, as this can happen often. This way the endpoint name in the
RD is stable, and does not change even though the ip:port tuple
changes.


I understood that con could also be used with a scheme and a FQDN
e.g. con=coap://mynode.example.com
I hope that is correct.


Sure, assuming such an FQDN exists (often times that is not the case in M2M however).



Following your reasoning when using host:port, then
by reassigning changing IP addresses continuously to the RD end-points, the RD takes over DNS functionality?


Not at all. DNS just really isn't used in M2M today, as it is usually not practical or even possible to update DNS entries when nodes are often changing their IPv6 address due to changes in point of attachment or getting dynamic IP address assignment e.g. in Cellular networks.



Would it not be better to keep DNS functionality outside the RD, use FQDNs, and only use IP addresses when the environment does not support DNS.
In the latter case I do not see the IP addresses changing very frequently, because there is no IP provider either.


In theory an RD could keep track of the IP addresses of registered nodes using DNS, but that is really an implementation issue and not an interface specification one.

Zach




Greetings,

peter

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.