Internet Engineering Task Force T. Fossati Internet-Draft KoanLogic Intended status: Standards Track October 11, 2013 Expires: April 14, 2014 A Link-Format Attribute for Locating Things draft-fossati-core-geo-link-format-attribute-01 Abstract This memo proposes a new CoAP link format attribute, "geo", that can be used to associate positioning metadata to a CoAP resource. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at http://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on April 14, 2014. Copyright Notice Copyright (c) 2013 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Fossati Expires April 14, 2014 [Page 1] Internet-Draft The geo Link-Format Attribute October 2013 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 2 2. Motivation and Use Cases . . . . . . . . . . . . . . . . . . 2 3. The geo Link Format Attribute . . . . . . . . . . . . . . . . 2 4. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5. Encoding Considerations . . . . . . . . . . . . . . . . . . . 3 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 3 7. Security Considerations . . . . . . . . . . . . . . . . . . . 3 8. Normative References . . . . . . . . . . . . . . . . . . . . 4 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 4 1. Introduction This memo proposes a new CoAP link-format attribute, "geo", that can be used to associate positioning metadata to a CoAP resource, and make this information available to other endpoints that, directly or indirectly, participate in to CoAP link-format discovery [RFC6690]. The ability for a consuming application to access positioning information about a sensing resource is crucial in a number of use cases, especially those in which one or more sensor networks provide input to an emergency handling service (e.g. fire, flood, etc.). This spec reuses the geo URI syntax [RFC5870], which is capable to describe physical locations in two or three dimensions (also supporting underground and underwater localisation using negative numbers) in a compact, simple and human readable way. 1.1. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. 2. Motivation and Use Cases Location-aware applications and location-based services like seismic networks, gas pipeline monitoring deployments, fire or flood detection systems, etc., need to precisely locate the source of sensed stimulus in order to react in a sensible way. {TODO collect other use cases} 3. The geo Link Format Attribute Fossati Expires April 14, 2014 [Page 2] Internet-Draft The geo Link-Format Attribute October 2013 This section defines a new Web Linking [RFC5988] link-param, "geo", to be used within the [RFC6690] framework, having the following syntax: link-extension = "geo" "=" geo-path geo-path ; defined in Section 3.3. of RFC 5870 The geo attribute MUST NOT appear more than once in a link. (NOTE about Link-Format queries: non exact matches cannot be easily/ effectively queried.) 4. Examples o A fire detector somewhere in the Pollino National Park (approx. 10cm accuracy, enough to distinguish trees from each other): REQ: GET /.well-known/core RES: 2.05 Content ;ct=0;if="sensor;geo="40.00201,16.34007" o An underwater current sampler in the sea between Ithaki and Kefallonia (approx. 10m accuracy): REQ: GET /.well-known/core RES: 2.05 Content ;ct=0;if="sensor;geo="38.2953,20.6426,-20" 5. Encoding Considerations See Section 3.5. of [RFC5870]. 6. IANA Considerations TODO 7. Security Considerations The "geo" link-format attributes share the same security issues as any other attribute involved in the discovery process described in [RFC6690]. Fossati Expires April 14, 2014 [Page 3] Internet-Draft The geo Link-Format Attribute October 2013 Further to that, the privacy considerations regarding distribution, protection, usage, retention, and storage of the location information of the target resource found in [RFC6280] fully apply. 8. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. [RFC3694] Danley, M., Mulligan, D., Morris, J., and J. Peterson, "Threat Analysis of the Geopriv Protocol", RFC 3694, February 2004. [RFC5870] Mayrhofer, A. and C. Spanring, "A Uniform Resource Identifier for Geographic Locations ('geo' URI)", RFC 5870, June 2010. [RFC5988] Nottingham, M., "Web Linking", RFC 5988, October 2010. [RFC6280] Barnes, R., Lepinski, M., Cooper, A., Morris, J., Tschofenig, H., and H. Schulzrinne, "An Architecture for Location and Location Privacy in Internet Applications", BCP 160, RFC 6280, July 2011. [RFC6690] Shelby, Z., "Constrained RESTful Environments (CoRE) Link Format", RFC 6690, August 2012. Author's Address Thomas Fossati KoanLogic Email: tho@koanlogic.com Fossati Expires April 14, 2014 [Page 4]