5985
PROPOSED STANDARD
HTTP-Enabled Location Delivery (HELD)
Authors: M. Barnes
Date: September 2010
Area: rai
Working Group: geopriv
Stream: IETF
Updated by:
RFC 7840
Abstract
This document defines a Layer 7 Location Configuration Protocol (L7 LCP) and describes the use of HTTP and HTTP/TLS as transports for the L7 LCP. The L7 LCP is used for retrieving location information from a server within an access network. It includes options for retrieving location information in two forms: by value and by reference. The protocol is an extensible application-layer protocol that is independent of the session layer. [STANDARDS-TRACK]
RFC 5985
PROPOSED STANDARD
Updated by: 7840
Internet Engineering Task Force (IETF) M. Barnes, Ed.
Request for Comments: 5985 Polycom
Category: Standards Track September 2010
ISSN: 2070-1721
<span class="h1">HTTP-Enabled Location Delivery (HELD)</span>
Abstract
This document defines a Layer 7 Location Configuration Protocol (L7
LCP) and describes the use of HTTP and HTTP/TLS as transports for the
L7 LCP. The L7 LCP is used for retrieving location information from
a server within an access network. It includes options for
retrieving location information in two forms: by value and by
reference. The protocol is an extensible application-layer protocol
that is independent of the session layer.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc5985">http://www.rfc-editor.org/info/rfc5985</a>.
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
<span class="grey">Barnes Standards Track [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions and Terminology . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3">3</a>. Overview and Scope . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-4">4</a>. Protocol Overview . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-4.1">4.1</a>. Device Identifiers, NAT and VPNs . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4.1.1">4.1.1</a>. Devices and VPNs . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4.1.2">4.1.2</a>. LIS Handling of NATs and VPNs . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Location by Value . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.3">4.3</a>. Location by Reference . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-5">5</a>. Protocol Description . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-5.1">5.1</a>. Location Request . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5.2">5.2</a>. Location Response . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5.3">5.3</a>. Indicating Errors . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-6">6</a>. Protocol Parameters . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6.1">6.1</a>. "responseTime" Parameter . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6.2">6.2</a>. "locationType" Parameter . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-6.2.1">6.2.1</a>. "exact" Attribute . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-6.3">6.3</a>. "code" Parameter . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-6.4">6.4</a>. "message" Parameter . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.5">6.5</a>. "locationUriSet" Parameter . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.5.1">6.5.1</a>. "locationURI" Parameter . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.5.2">6.5.2</a>. "expires" Parameter . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-6.6">6.6</a>. "Presence" Parameter (PIDF-LO) . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-7">7</a>. XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-8">8</a>. HTTP Binding . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-9">9</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-22">22</a>
<a href="#section-9.1">9.1</a>. Assuring That the Proper LIS Has Been Contacted . . . . . <a href="#page-23">23</a>
<a href="#section-9.2">9.2</a>. Protecting Responses from Modification . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-9.3">9.3</a>. Privacy and Confidentiality . . . . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-10">10</a>. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-25">25</a>
<a href="#section-10.1">10.1</a>. Examples of HTTPS Messages . . . . . . . . . . . . . . . . <a href="#page-25">25</a>
<a href="#section-10.2">10.2</a>. Example of a Simple Location Request . . . . . . . . . . . <a href="#page-26">26</a>
10.3. An Example of a Location Request for Multiple Location
Types . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-27">27</a>
<a href="#section-11">11</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-28">28</a>
11.1. URN Sub-Namespace Registration for
urn:ietf:params:xml:ns:geopriv:held . . . . . . . . . . . <a href="#page-28">28</a>
<a href="#section-11.2">11.2</a>. XML Schema Registration . . . . . . . . . . . . . . . . . <a href="#page-29">29</a>
11.3. MIME Media Type Registration for 'application/held+xml' . 29
<a href="#section-11.4">11.4</a>. Error Code Registry . . . . . . . . . . . . . . . . . . . <a href="#page-30">30</a>
<a href="#section-12">12</a>. Contributors . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-13">13</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-32">32</a>
<a href="#section-14">14</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
<a href="#section-14.1">14.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-33">33</a>
<a href="#section-14.2">14.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-34">34</a>
<span class="grey">Barnes Standards Track [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<a href="#appendix-A">Appendix A</a>. HELD Compliance to IETF LCP Requirements . . . . . . <a href="#page-36">36</a>
<a href="#appendix-A.1">A.1</a>. L7-1: Identifier Choice . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>
<a href="#appendix-A.2">A.2</a>. L7-2: Mobility Support . . . . . . . . . . . . . . . . . . <a href="#page-36">36</a>
<a href="#appendix-A.3">A.3</a>. L7-3: ASP and Access Network Provider Relationship . . . . <a href="#page-37">37</a>
<a href="#appendix-A.4">A.4</a>. L7-4: Layer 2 and Layer 3 Provider Relationship . . . . . <a href="#page-37">37</a>
<a href="#appendix-A.5">A.5</a>. L7-5: Legacy Device Considerations . . . . . . . . . . . . <a href="#page-37">37</a>
<a href="#appendix-A.6">A.6</a>. L7-6: VPN Awareness . . . . . . . . . . . . . . . . . . . <a href="#page-38">38</a>
<a href="#appendix-A.7">A.7</a>. L7-7: Network Access Authentication . . . . . . . . . . . <a href="#page-38">38</a>
<a href="#appendix-A.8">A.8</a>. L7-8: Network Topology Unawareness . . . . . . . . . . . . <a href="#page-38">38</a>
<a href="#appendix-A.9">A.9</a>. L7-9: Discovery Mechanism . . . . . . . . . . . . . . . . <a href="#page-39">39</a>
<a href="#appendix-A.10">A.10</a>. L7-10: PIDF-LO Creation . . . . . . . . . . . . . . . . . <a href="#page-39">39</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The location of a Device is information that is useful for a number
of applications. The L7 Location Configuration Protocol (LCP)
problem statement and requirements document [<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>] provides some
scenarios in which a Device might rely on its access network to
provide location information. The Location Information Server (LIS)
service applies to access networks employing both wired technology
(e.g., DSL, cable) and wireless technology (e.g., WiMAX) with varying
degrees of Device mobility. This document describes a protocol that
can be used to acquire Location Information (LI) from a LIS within an
access network.
This specification identifies two types of location information that
may be retrieved from the LIS. Location may be retrieved from the
LIS by value; that is, the Device may acquire a literal location
object describing the location of the Device. The Device may also
request that the LIS provide a location reference in the form of a
Location URI or set of Location URIs, allowing the Device to
distribute its LI by reference. Both of these methods can be
provided concurrently from the same LIS to accommodate application
requirements for different types of location information.
This specification defines an extensible XML-based protocol that
enables the retrieval of LI from a LIS by a Device. This protocol
can be bound to any session-layer protocol, particularly those
capable of MIME transport. This document describes the use of HTTP
and HTTP/TLS as transports for the protocol.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions and Terminology</span>
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 [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Barnes Standards Track [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
This document uses the terms (and their acronym forms): Access
Provider (AP), Location Information (LI), Location Object (LO),
Device, Target, Location Generator (LG), Location Recipient (LR), and
Rule Maker (RM) and Rule Holder (RH) as defined in GEOPRIV
Requirements [<a href="./rfc3693" title=""Geopriv Requirements"">RFC3693</a>]. The terms Location Information Server (LIS),
Access Network, Access Provider (AP), and Access Network Provider are
used in the same context as defined in the L7 LCP Problem statement
and Requirements document [<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>]. The usage of the terms Civic
Location/Address and Geodetic Location follows the usage in many of
the referenced documents.
In describing the protocol, the terms "attribute" and "element" are
used according to their context in XML. The term "parameter" is used
in a more general protocol context and can refer to either an XML
"attribute" or "element".
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Overview and Scope</span>
This document describes an interface between a Device and a Location
Information Server (LIS). This document assumes that the LIS is
present within the same administrative domain as the Device (e.g.,
the access network). The LIS exists because not all Devices are
capable of determining LI, and because, even if a Device is able to
determine its own LI, it may be more efficient with assistance. This
document does not specify how LI is determined. An Access Provider
(AP) operates the LIS so that Devices (and Targets) can retrieve
their LI. This document assumes that the Device and Access Provider
have no prior relationship other than what is necessary for the
Device to obtain network access.
This document is based on the attribution of the LI to a Device and
not specifically a person (end user) or Target, based on the premise
that location determination technologies are generally designed to
locate a Device and not a person. It is expected that, for most
applications, LI for the Device can be used as an adequate substitute
for the end user's LI. Since revealing the location of the Device
almost invariably reveals some information about the location of the
user of the Device, the same level of privacy protection demanded by
a user is required for the Device. This approach may require either
some additional assurances about the link between Device and target,
or an acceptance of the limitation that unless the Device requires
active user authentication, there is no guarantee that any particular
individual is using the Device at that instant.
The following diagram shows the logical configuration of some of the
functional elements identified in [<a href="./rfc3693" title=""Geopriv Requirements"">RFC3693</a>] and the LIS defined in
[<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>]. It also shows where this protocol applies, with the Rule
<span class="grey">Barnes Standards Track [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Maker and Target represented by the role of the Device. Note that
only the interfaces relevant to the Device are identified in the
diagram.
+---------------------------------------------+
| Access Network Provider |
| |
| +--------------------------------------+ |
| | Location Information Server | |
| | | |
| | | |
| | | |
| | | |
| +------|-------------------------------+ |
+----------|----------------------------------+
|
|
HELD
|
Rule Maker - - _ +-----------+ +-----------+
o - - | Device | | Location |
<U\ | | - - - - | Recipient |
/ \ _ - - | | APP | |
Target - - +-----------+ +-----------+
Figure 1: Significant Roles
The interface between the Location Recipient (LR) and the Device
and/or LIS is application specific, as indicated by the APP
annotation in the diagram and it is outside the scope of the
document. An example of an APP interface between a Device and LR can
be found in the SIP Location Conveyance document [<a href="#ref-LOC-CONVEY">LOC-CONVEY</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Protocol Overview</span>
A Device uses the HTTP-Enabled Location Delivery (HELD) protocol to
retrieve its location either directly in the form of a Presence
Information Data Format Location Object (PIDF-LO) document (by value)
or indirectly as a Location URI (by reference). The security
necessary to ensure the accuracy, privacy, and confidentiality of the
Device's location is described in the Security Considerations
(<a href="#section-9">Section 9</a>).
As described in the L7 LCP problem statement and requirements
document [<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>], the Device MUST first discover the URI for the
LIS for sending the HELD protocol requests. The URI for the LIS
SHOULD be obtained from an authorized and authenticated entity. The
details for ensuring that an appropriate LIS is contacted are
<span class="grey">Barnes Standards Track [Page 5]</span>
<span id="page-6" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
provided in <a href="#section-9">Section 9</a> and in particular <a href="#section-9.1">Section 9.1</a>. The LIS
discovery protocol details are out of scope of this document and are
specified in [<a href="./rfc5986" title=""Discovering the Local Location Information Server (LIS)"">RFC5986</a>]. The type of URI provided by LIS discovery is
RECOMMENDED to be an HTTPS URI.
The LIS requires an identifier for the Device in order to determine
the appropriate location to include in the location response message.
In this document, the IP address of the Device, as reflected by the
source IP address in the location request message, is used as the
identifier. Other identifiers are possible, but are beyond the scope
of this document.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Device Identifiers, NAT and VPNs</span>
Use of the HELD protocol is subject to the viability of the
identifier used by the LIS to determine location. This document
describes the use of the source IP address sent from the Device as
the identifier used by the LIS. When Network Address Translation
(NAT), a Virtual Private Network (VPN), or other forms of address
modification occur between the Device and the LIS, the location
returned could be inaccurate.
Not all cases of NATs introduce inaccuracies in the returned
location. For example, a NAT used in a residential Local Area
Network (LAN) is typically not a problem. The external IP address
used on the Wide Area Network (WAN) side of the NAT is an acceptable
identifier for all of the Devices in the residence (on the LAN side
of the NAT), since the covered geographical area is small.
On the other hand, if there is a VPN between the Device and the LIS
(for example, for a teleworker), then the IP address seen by a LIS
inside the enterprise network might not be the right address to
identify the location of the Device. <a href="#section-4.1.2">Section 4.1.2</a> provides
recommendations to address this issue.
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. Devices and VPNs</span>
To minimize the impact of connections or tunnels setup for security
purposes or for traversing middleboxes, Devices that connect to
servers such as VPN servers, SOCKS servers, and HTTP proxy servers
should perform their HELD query on the LIS prior to establishing a
connection to other servers. It is RECOMMENDED that discovery
[<a href="./rfc5986" title=""Discovering the Local Location Information Server (LIS)"">RFC5986</a>] and an initial query be performed before establishing any
connections to other servers. If a Device performs the HELD query
after establishing a connection to another server, the Device may
receive inaccurate location information.
<span class="grey">Barnes Standards Track [Page 6]</span>
<span id="page-7" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Devices that establish VPN connections for use by other Devices
inside a LAN or other closed network could serve as a LIS, that
implements the HELD protocol, for those other Devices. Devices
within the closed network are not necessarily able to detect the
presence of the VPN. In this case, a VPN Device should provide the
address of the LIS server it provides, in response to discovery
queries, rather than passing such queries through the VPN tunnel.
Otherwise, the other Devices would be totally unaware that they could
receive inaccurate location information.
It could also be useful for a VPN Device to serve as a LIS for other
location configuration options such as Dynamic Host Configuration
Protocol (DHCP) [<a href="./rfc3825" title=""Dynamic Host Configuration Protocol Option for Coordinate-based Location Configuration Information"">RFC3825</a>] or Link Layer Discovery Protocol - Media
Endpoint Discovery [<a href="#ref-LLDP-MED">LLDP-MED</a>]. For this case, the VPN Device that
serves as a LIS may first acquire its own location using HELD.
<span class="h4"><a class="selflink" id="section-4.1.2" href="#section-4.1.2">4.1.2</a>. LIS Handling of NATs and VPNs</span>
In the cases where the Device connects to the LIS through a VPN or a
NAT that serves a large geographic area or multiple geographic
locations (for example, a NAT used by an enterprise to connect their
private network to the Internet), the LIS might not be able to return
accurate LI. If the LIS cannot determine LI for the Device, it
should provide an error response to the requesting Device. The LIS
needs to be configured to recognize identifiers that represent these
conditions.
LIS operators have a large role in ensuring the best possible
environment for location determination. The LIS operator needs to
ensure that the LIS is properly configured with identifiers that
indicate Devices on the remote side of a NAT or VPN. In order to
serve the Devices on the remote side of a NAT or VPN, a LIS needs to
have a presence on the side of the NAT or VPN nearest the Device.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Location by Value</span>
Where a Device requires LI directly, it can request that the LIS
create a PIDF-LO document. This approach fits well with a
configuration whereby the Device directly makes use of the provided
PIDF-LO document. The details on the information that may be
included in the PIDF-LO MUST follow the subset of those rules
relating to the construction of the "location-info" element in the
PIDF-LO Usage Clarification, Considerations, and Recommendations
document [<a href="./rfc5491" title=""GEOPRIV Presence Information Data Format Location Object (PIDF-LO) Usage Clarification, Considerations, and Recommendations"">RFC5491</a>]. Further detail is included in "Protocol
Parameters" (<a href="#section-6">Section 6</a>).
<span class="grey">Barnes Standards Track [Page 7]</span>
<span id="page-8" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Location by Reference</span>
Requesting location directly does not always address the requirements
of an application. A Device can request a Location URI instead of
literal location. A Location URI is a URI [<a href="./rfc3986" title=""Uniform Resource Identifier (URI): Generic Syntax"">RFC3986</a>] of any scheme,
which a Location Recipient (LR) can use to retrieve LI. A Location
URI provided by a LIS can be assumed to be globally addressable; that
is, anyone in possession of the URI can access the LIS.
However, possession of the URI does not in any way suggest that the
LIS indiscriminately reveals the location associated with the
Location URI. The specific requirements associated with the
dereference of the location are specified in [<a href="./rfc5808" title=""Requirements for a Location-by-Reference Mechanism"">RFC5808</a>]. The location
dereference protocol details are out of scope of this document. As
such, many of the requirements in [<a href="./rfc5808" title=""Requirements for a Location-by-Reference Mechanism"">RFC5808</a>] (e.g., canceling of
location references) are not intended to be supported by this
specification. It is anticipated that future specifications may
address these requirements.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Protocol Description</span>
As discussed in <a href="#section-4">Section 4</a>, the HELD protocol provides for the
retrieval of the Device's location in the form of a PIDF-LO document
and/or Location URI(s) from a LIS. Three messages are defined to
support the location retrieval: locationRequest, locationResponse,
and error.
The Location Request (locationRequest) message is described in
<a href="#section-5.1">Section 5.1</a>. A Location Request message from a Device indicates
whether location should be returned in the form of a PIDF-LO document
(with specific type(s) of location) and/or Location URI(s). In case
of success, the LIS replies with a locationResponse message,
including a PIDF-LO document and/or one or more Location URIs. In
the case of an error, the LIS replies with an error message.
The HELD protocol messages are defined as XML documents that MUST be
encoded in UTF-8. A MIME type "application/held+xml" is registered
in <a href="#section-11.3">Section 11.3</a> to distinguish HELD messages from other XML document
bodies. This specification follows the recommendations and
conventions described in [<a href="./rfc3023" title=""XML Media Types"">RFC3023</a>], including the naming convention
of the type ('+xml' suffix) and the usage of the 'charset' parameter.
The 'charset' parameter MUST be included with the XML document.
<a href="#section-6">Section 6</a> contains a more thorough description of the protocol
parameters, valid values, and how each should be handled. <a href="#section-7">Section 7</a>
contains a more specific definition of the structure of these
messages in the form of an XML Schema [<a href="#ref-W3C.REC-xmlschema-1-20041028">W3C.REC-xmlschema-1-20041028</a>].
<span class="grey">Barnes Standards Track [Page 8]</span>
<span id="page-9" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<a href="#section-8">Section 8</a> describes the use of a combination of HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>], TLS
[<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>], and TCP [<a href="./rfc0793" title=""Transmission Control Protocol"">RFC0793</a>] for transporting the HELD messages.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Location Request</span>
A location request message is sent from the Device to the LIS when
the Device requires its own LI. The type of LI that a Device
requests is determined by the type of LI that is included in the
"locationType" element.
The location request is made by sending a document formed of a
"locationRequest" element. The LIS uses the source IP address of the
location request message as the primary source of identity for the
requesting Device or target. It is anticipated that other Device
identities may be provided through schema extensions.
The LIS MUST ignore any part of a location request message that it
does not understand, except the document element. If the document
element of a request is not supported, the LIS MUST return an error
with the unsupportedMessage error code.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Location Response</span>
A successful response to a location request MUST contain a PIDF-LO
and/or Location URI(s). The response SHOULD contain location
information of the requested "locationType". The cases whereby a
different type of location information MAY be returned are described
in <a href="#section-6.2">Section 6.2</a>.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Indicating Errors</span>
If the LIS is unable to provide location information based on the
received locationRequest message, it MUST return an error message.
The LIS may return an error message in response to requests for any
"locationType".
An error indication document consists of an "error" element. The
"error" element MUST include a "code" attribute that indicates the
type of error. A set of predefined error codes are included in
<a href="#section-6.3">Section 6.3</a>.
Error responses MAY also include a "message" attribute that can
include additional information. This information SHOULD be for
diagnostic purposes only and MAY be in any language. The language of
the message SHOULD be indicated with an "xml:lang" attribute.
<span class="grey">Barnes Standards Track [Page 9]</span>
<span id="page-10" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Protocol Parameters</span>
This section describes in detail the parameters that are used for
this protocol. Table 1 lists the top-level components used within
the protocol and where they are mandatory (m) or optional (o) for
each of the messages.
+----------------+-----------+------------+------------+------------+
| Parameter | Section | Location | Location | Error |
| | | Request | Response | |
+----------------+-----------+------------+------------+------------+
| responseTime | 6.1 | o | | |
| | | | | |
| locationType | 6.2 | o | | |
| | | | | |
| code | 6.3 | | | m |
| | | | | |
| message | 6.4 | | | o |
| | | | | |
| locationUriSet | 6.5 | | o | |
| | | | | |
| Presence | 6.6 | | o | |
| (PIDF-LO) | | | | |
+----------------+-----------+------------+------------+------------+
Table 1: Message Parameter Usage
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. "responseTime" Parameter</span>
The "responseTime" attribute MAY be included in a location request
message. The "responseTime" attribute includes a time value
indicating to the LIS how long the Device is prepared to wait for a
response or a purpose for which the Device needs the location.
In the case of emergency services, the purpose of obtaining the LI
could be either for routing a call to the appropriate Public Safety
Answering Point (PSAP) or indicating the location to which responders
should be dispatched. The values defined for the purpose,
"emergencyRouting" and "emergencyDispatch", will likely be governed
by jurisdictional policies and should be configurable on the LIS.
The time value in the "responseTime" attribute is expressed as a non-
negative integer in units of milliseconds. The time value is
indicative only, and the LIS is under no obligation to strictly
adhere to the time limit implied; any enforcement of the time limit
is left to the requesting Device. The LIS provides the most accurate
LI that can be determined within the specified interval for the
specific service.
<span class="grey">Barnes Standards Track [Page 10]</span>
<span id="page-11" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
The LIS may use the value of the time in the "responseTime" attribute
as input when selecting the method of location determination, where
multiple such methods exist. If the "responseTime" attribute is
absent, then the LIS should return the most precise LI it is capable
of determining, with the time interval being implementation
dependent.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. "locationType" Parameter</span>
The "locationType" element MAY be included in a location request
message. It contains a list of LI types that are requested by the
Device. The following list describes the possible values:
any: The LIS SHOULD attempt to provide LI in all forms available to
it.
geodetic: The LIS SHOULD return a location by value in the form of a
geodetic location for the Target.
civic: The LIS SHOULD return a location by value in the form of a
civic address for the Target.
locationURI: The LIS SHOULD return a set of Location URIs for the
Target.
The LIS SHOULD return the requested location type or types. The
location types the LIS returns also depend on the setting of the
optional "exact" attribute. If the "exact" attribute is set to
"true", then the LIS MUST return either the requested location type
or provide an error response. The "exact" attribute does not apply
(is ignored) for a request for a location type of "any". Further
detail of the "exact" attribute processing is provided in the
following <a href="#section-6.2.1">Section 6.2.1</a>.
When there is a request for specific locationType(s) and the "exact"
attribute is "false", the LIS MAY provide additional location types,
or it MAY provide alternative types if the request cannot be
satisfied for a requested location type. The "SHOULD"-strength
requirements on this parameter for specific location types are
included to allow for soft-failover. This enables a fixed client
configuration that prefers a specific location type without causing
location requests to fail when that location type is unavailable.
For example, a notebook computer could be configured to retrieve
civic addresses, which is usually available from typical home or work
situations. However, when using a wireless modem, the LIS might be
unable to provide a civic address and thus provides a geodetic
address.
<span class="grey">Barnes Standards Track [Page 11]</span>
<span id="page-12" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
The LIS SHOULD return location information in a form that is suited
for routing and responding to an emergency call in its jurisdiction,
specifically by value. The LIS MAY alternatively or additionally
return a Location URI. If the "locationType" element is absent, a
value of "any" MUST be assumed as the default. A Location URI
provided by the LIS is a reference to the most current available LI
and is not a stable reference to a specific location.
It should be noted that the protocol does not support a request to
just receive one of a subset of location types. For example, in the
case where a Device has a preference for just "geodetic" or "civic",
it is necessary to make the request without an "exact" attribute,
including both location types. In this case, if neither is
available, a LIS SHOULD return a locationURI if available.
The LIS SHOULD provide the locations in the response in the same
order in which they were included in the "locationType" element in
the request. Indeed, the primary advantage of including specific
location types in a request when the "exact" attribute is set to
"false" is to ensure that one receives the available locations in a
specific order. For example, a locationRequest for "civic" could
yield any of the following location types in the response:
o civic
o civic, geodetic
o civic, locationURI
o civic, geodetic, locationURI
o civic, locationURI, geodetic
o geodetic, locationURI (only if civic is not available)
o locationURI, geodetic (only if civic is not available)
o geodetic (only if civic is not available)
o locationURI (only if civic is not available)
For the example above, if the "exact" attribute was "true", then the
only possible response is either a "civic" location or an error
message.
<span class="grey">Barnes Standards Track [Page 12]</span>
<span id="page-13" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. "exact" Attribute</span>
The "exact" attribute MAY be included in a location request message
when the "locationType" element is included. When the "exact"
attribute is set to "true", it indicates to the LIS that the contents
of the "locationType" parameter MUST be strictly followed. The
default value of "false" allows the LIS the option of returning
something beyond what is specified, such as a set of Location URIs
when only a civic location was requested.
A value of "true" indicates that the LIS MUST provide a location of
the requested type or types or MUST provide an error. The LIS MUST
provide the requested types only. The LIS MUST handle an exact
request that includes a "locationType" element set to "any" as if the
"exact" attribute were set to "false".
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. "code" Parameter</span>
All "error" responses MUST contain a response code. All errors are
application-level errors and MUST only be provided in successfully
processed transport-level responses. For example, where HTTP/HTTPS
is used as the transport, HELD error messages MUST be carried by a
200 OK HTTP/HTTPS response.
The value of the response code MUST be an IANA-registered value. The
following tokens are registered by this document:
requestError: This code indicates that the request was badly formed
in some fashion (other than the XML content).
xmlError: This code indicates that the XML content of the request
was either badly formed or invalid.
generalLisError: This code indicates that an unspecified error
occurred at the LIS.
locationUnknown: This code indicates that the LIS could not
determine the location of the Device. The same request can be
sent by the Device at a later time. Devices MUST limit any
attempts to retry requests.
unsupportedMessage: This code indicates that an element in the XML
document for the request was not supported or understood by the
LIS. This error code is used when a HELD request contains a
document element that is not supported by the receiver.
timeout: This code indicates that the LIS could not satisfy the
request within the time specified in the "responseTime" parameter.
<span class="grey">Barnes Standards Track [Page 13]</span>
<span id="page-14" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
cannotProvideLiType: This code indicates that the LIS was unable to
provide LI of the type or types requested. This code is used when
the "exact" attribute on the "locationType" parameter is set to
"true".
notLocatable: This code indicates that the LIS is unable to locate
the Device and that the Device MUST NOT make further attempts to
retrieve LI from this LIS. This error code is used to indicate
that the Device is outside the access network served by the LIS,
for instance, the VPN and NAT scenarios discussed in
<a href="#section-4.1.2">Section 4.1.2</a>.
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. "message" Parameter</span>
The "error" message MAY include one or more "message" attributes to
convey some additional, human-readable information about the result
of the request. The message MAY be included in any language, which
SHOULD be indicated by the "xml:lang", attribute. The default
language is assumed to be English ("en") [<a href="./rfc5646" title=""Tags for Identifying Languages"">RFC5646</a>].
<span class="h3"><a class="selflink" id="section-6.5" href="#section-6.5">6.5</a>. "locationUriSet" Parameter</span>
The "locationUriSet" element received in a "locationResponse" message
MAY contain any number of "locationURI" elements. It is RECOMMENDED
that the LIS allocate a Location URI for each scheme that it supports
and that each scheme is present only once. URI schemes and their
secure variants, such as HTTP and HTTPS, MUST be regarded as two
separate schemes.
If a "locationUriSet" element is received in a "locationResponse"
message, it MUST contain an "expires" attribute, which defines the
length of time for which the set of "locationURI" elements are valid.
<span class="h4"><a class="selflink" id="section-6.5.1" href="#section-6.5.1">6.5.1</a>. "locationURI" Parameter</span>
The "locationURI" element includes a single Location URI. In order
for a URI of any particular scheme to be included in a response,
there MUST be a specification that defines how that URI can be used
to retrieve location information. The details of the protocol for
dereferencing must meet the location dereference protocol
requirements as specified in [<a href="./rfc5808" title=""Requirements for a Location-by-Reference Mechanism"">RFC5808</a>] and are outside the scope of
this base HELD specification.
Each Location URI that is allocated by the LIS is unique to the
Device that is requesting it. At the time the Location URI is
provided in the response, there is no binding to a specific location
<span class="grey">Barnes Standards Track [Page 14]</span>
<span id="page-15" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
type and the Location URI is totally independent of the specific type
of location it might reference. The specific location type is
determined at the time of dereference.
A "locationURI" SHOULD NOT contain any information that could be used
to identify the Device or Target. Thus, it is RECOMMENDED that the
"locationURI" element contain a public address for the LIS and an
anonymous identifier, such as a local identifier or unlinked
pseudonym.
When a LIS returns a "locationURI" element to a Device, the policy on
the "locationURI" is set by the LIS alone. This specification does
not include a mechanism for the HELD client to set access control
policies on a "locationURI". Conversely, there is no mechanism, in
this protocol as defined in this document, for the LIS to provide a
Device the access control policy to be applied to a "locationURI".
Since the Device is not aware of the access controls to be applied to
(subsequent) requests to dereference a "locationURI", the client
SHOULD protect a "locationURI" as if it were a Location Object --
i.e., the Device SHOULD send a "locationURI" over encrypted channels
and only to entities that are authorized to have access to the
location.
Further guidelines to ensure the privacy and confidentiality of the
information contained in the "locationResponse" message, including
the "locationURI", are included in <a href="#section-9.3">Section 9.3</a>.
<span class="h4"><a class="selflink" id="section-6.5.2" href="#section-6.5.2">6.5.2</a>. "expires" Parameter</span>
The "expires" attribute is only included in a "locationResponse"
message when a "locationUriSet" element is included. The "expires"
attribute indicates the date/time at which the Location URIs provided
by the LIS will expire. The "expires" attribute does not define the
length of time a location received by dereferencing the Location URI
will be valid. The "expires" attribute is RECOMMENDED not to exceed
24 hours and SHOULD be a minimum of 30 minutes.
All date-time values used in HELD MUST be expressed in Universal
Coordinated Time (UTC) using the Gregorian calendar. The XML schema
allows use of time zone identifiers to indicate offsets from the zero
meridian, but this option MUST NOT be used with HELD. The extended
date-time form using upper case "T" and "Z" characters defined in
[<a href="#ref-W3C.REC-xmlschema-2-20041028">W3C.REC-xmlschema-2-20041028</a>] MUST be used to represent date-time
values.
<span class="grey">Barnes Standards Track [Page 15]</span>
<span id="page-16" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Location responses that contain a "locationUriSet" element MUST
include the expiry time in the "expires" attribute. If a Device
dereferences a Location URI after the expiry time, the dereference
SHOULD fail.
<span class="h3"><a class="selflink" id="section-6.6" href="#section-6.6">6.6</a>. "Presence" Parameter (PIDF-LO)</span>
A single "presence" parameter MAY be included in the
"locationResponse" message when specific locationTypes (e.g.,
"geodetic" or "civic") are requested or a "locationType" of "any" is
requested. The LIS MUST follow the subset of the rules relating to
the construction of the "location-info" element in the PIDF-LO Usage
Clarification, Considerations, and Recommendations document [<a href="./rfc5491" title=""GEOPRIV Presence Information Data Format Location Object (PIDF-LO) Usage Clarification, Considerations, and Recommendations"">RFC5491</a>]
in generating the PIDF-LO for the presence parameter.
The LIS MUST NOT include any means of identifying the Device in the
PIDF-LO unless it is able to verify that the identifier is correct
and inclusion of identity is expressly permitted by a Rule Maker.
Therefore, PIDF parameters that contain identity are either omitted
or contain unlinked pseudonyms [<a href="./rfc3693" title=""Geopriv Requirements"">RFC3693</a>]. A unique, unlinked
presentity URI SHOULD be generated by the LIS for the mandatory
presence "entity" attribute of the PIDF document. Optional
parameters such as the "contact" and "deviceID" elements [<a href="./rfc4479" title=""A Data Model for Presence"">RFC4479</a>]
are not used.
Note that the presence parameter is not explicitly shown in the XML
schema in <a href="#section-7">Section 7</a> for a location response message, due to XML
schema constraints, since PIDF is already defined and registered
separately. Thus, the "##other" namespace serves as a placeholder
for the presence parameter in the schema.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. XML Schema</span>
This section gives the XML Schema Definition
[<a href="#ref-W3C.REC-xmlschema-1-20041028">W3C.REC-xmlschema-1-20041028</a>] [<a href="#ref-W3C.REC-xmlschema-2-20041028">W3C.REC-xmlschema-2-20041028</a>] of the
"application/held+xml" format. This is presented as a formal
definition of the "application/held+xml" format. Note that the XML
Schema Definition is not intended to be used with on-the-fly
validation of the presence XML document. Whitespaces are included in
the schema to conform to the line length restrictions of the RFC
format without having a negative impact on the readability of the
document. Any conforming processor should remove leading and
trailing white spaces.
<span class="grey">Barnes Standards Track [Page 16]</span>
<span id="page-17" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<?xml version="1.0"?>
<xs:schema
targetNamespace="urn:ietf:params:xml:ns:geopriv:held"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:held="urn:ietf:params:xml:ns:geopriv:held"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation>
This document (<a href="./rfc5985">RFC 5985</a>) defines HELD messages.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
<!-- Return Location -->
<xs:complexType name="returnLocationType">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:element name="locationURI" type="xs:anyURI"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="expires" type="xs:dateTime"
use="required"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<!-- responseTime Type -->
<xs:simpleType name="responseTimeType">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="emergencyRouting"/>
<xs:enumeration value="emergencyDispatch"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:nonNegativeInteger">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<span class="grey">Barnes Standards Track [Page 17]</span>
<span id="page-18" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<!-- Location Type -->
<xs:simpleType name="locationTypeBase">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="held:locationTypeList">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="locationTypeList">
<xs:list>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="civic"/>
<xs:enumeration value="geodetic"/>
<xs:enumeration value="locationURI"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
<xs:complexType name="locationTypeType">
<xs:simpleContent>
<xs:extension base="held:locationTypeBase">
<xs:attribute name="exact" type="xs:boolean"
use="optional" default="false"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- Message Definitions -->
<xs:complexType name="baseRequestType">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence/>
<xs:attribute name="responseTime" type="held:responseTimeType"
use="optional"/>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<span class="grey">Barnes Standards Track [Page 18]</span>
<span id="page-19" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<xs:complexType name="errorType">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:element name="message" type="held:errorMsgType"
minOccurs="0" maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="code" type="xs:token"
use="required"/>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="errorMsgType">
<xs:simpleContent>
<xs:extension base="xs:token">
<xs:attribute ref="xml:lang"/>
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="error" type="held:errorType"/>
<!-- Location Response -->
<xs:complexType name="locationResponseType">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:element name="locationUriSet"
type="held:returnLocationType"
minOccurs="0"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="locationResponse"
type="held:locationResponseType"/>
<!-- Location Request -->
<xs:complexType name="locationRequestType">
<xs:complexContent>
<span class="grey">Barnes Standards Track [Page 19]</span>
<span id="page-20" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<xs:extension base="held:baseRequestType">
<xs:sequence>
<xs:element name="locationType"
type="held:locationTypeType"
minOccurs="0"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="locationRequest"
type="held:locationRequestType"/>
</xs:schema>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. HTTP Binding</span>
This section describes the use of HTTP [<a href="./rfc2616" title=""Hypertext Transfer Protocol -- HTTP/1.1"">RFC2616</a>] and HTTP over TLS
[<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>] as transport mechanisms for the HELD protocol, which a
conforming LIS and Device MUST support.
Although HELD uses HTTP as a transport, it uses a strict subset of
HTTP features, and due to the restrictions of some features, a LIS is
not a fully compliant HTTP server. It is intended that a LIS can
easily be built using an HTTP server with extensibility mechanisms
and that a HELD Device can trivially use existing HTTP libraries.
This subset of requirements helps implementors avoid ambiguity with
the many options that the full HTTP protocol offers.
A Device that conforms to this specification MAY choose not to
support HTTP authentication [<a href="./rfc2617" title=""HTTP Authentication: Basic and Digest Access Authentication"">RFC2617</a>] or cookies [<a href="./rfc2965" title=""HTTP State Management Mechanism"">RFC2965</a>]. Because
the Device and the LIS may not necessarily have a prior relationship,
the LIS SHOULD NOT require a Device to authenticate, either using the
above HTTP authentication methods or TLS client authentication.
Unless all Devices that access a LIS can be expected to be able to
authenticate in a certain fashion, denying access to location
information could prevent a Device from using location-dependent
services, such as emergency calling. Extensions to this protocol
might result in the addition of request parameters that a LIS might
use to decide to request Device authentication.
A HELD request is carried in the body of an HTTP POST request. The
Device MUST include a Host header in the request.
<span class="grey">Barnes Standards Track [Page 20]</span>
<span id="page-21" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
The MIME type of HELD request and response bodies is
"application/held+xml". LIS and Device MUST provide this value in
the HTTP Content-Type and Accept header fields. If the LIS does not
receive the appropriate Content-Type and Accept header fields, the
LIS SHOULD fail the request, returning a 406 (not acceptable)
response. HELD responses SHOULD include a Content-Length header.
Devices MUST NOT use the "Expect" header or the "Range" header in
HELD requests. The LIS MAY return 501 (not implemented) errors if
either of these HTTP features are used. In the case that the LIS
receives a request from the Device containing an If-* (conditional)
header, the LIS SHOULD return a 412 (precondition failed) response.
The POST method is the only method REQUIRED for HELD. If a LIS
chooses to support GET or HEAD, it SHOULD consider the kind of
application doing the GET. Since a HELD Device only uses a POST
method, the GET or HEAD MUST be either an escaped URL (e.g., somebody
found a URL in protocol traces or log files and fed it into their
browser) or somebody doing testing/debugging. The LIS could provide
information in the HELD response indicating that the URL corresponds
to a LIS server and only responds to HELD POST requests, or the LIS
could instead try to avoid any leak of information by returning a
very generic HTTP error message such as 404 (not found).
The LIS populates the HTTP headers of responses so that they are
consistent with the contents of the message. In particular, the
"CacheControl" header SHOULD be set to disable caching of any PIDF-LO
document or Location URIs by HTTP intermediaries. Otherwise, there
is the risk of stale locations and/or the unauthorized disclosure of
the LI. This also allows the LIS to control any caching with the
HELD "expires" parameter. The HTTP status code MUST indicate a 2xx
series response for all HELD locationResponse and HELD error
messages.
The LIS MAY redirect a HELD request. A Device MUST handle redirects
by using the Location header provided by the server in a 3xx
response. When redirecting, the Device MUST observe the delay
indicated by the Retry-After header. The Device MUST authenticate
the server that returns the redirect response before following the
redirect, if a Device requires that the server is authenticated. A
Device SHOULD authenticate the LIS indicated in a redirect.
The LIS SHOULD support persistent connections and request pipelining.
If pipelining is not supported, the LIS MUST NOT allow persistent
connections. The Device MUST support termination of a response by
the closing of a connection.
<span class="grey">Barnes Standards Track [Page 21]</span>
<span id="page-22" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Implementations of HELD that implement HTTP transport MUST implement
transport over TLS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>]. TLS provides message integrity and
confidentiality between the Device and LIS. The Device MUST
implement the server authentication method described in <a href="./rfc2818#section-3.1">Section 3.1
of [RFC2818]</a>, with an exception in how wildcards are handled. The
leftmost label MAY contain the wildcard string "*", which matches any
single domain name label. Additional characters in this leftmost
label are invalid (that is, "f*.example.com" is not a valid name and
does not match any domain name).
The Device uses the URI obtained during LIS discovery to authenticate
the server. The details of this authentication method are provided
in <a href="#section-3.1">Section 3.1</a> of HTTPS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>]. When TLS is used, the Device
SHOULD fail a request if server authentication fails, except in the
event of an emergency.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
HELD is a location acquisition protocol whereby the client requests
its location from a LIS. Specific requirements and security
considerations for location acquisition protocols are provided in
[<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>]. An in-depth discussion of the security considerations
applicable to the use of Location URIs and by-reference provision of
LI is included in [<a href="./rfc5808" title=""Requirements for a Location-by-Reference Mechanism"">RFC5808</a>].
By using the HELD protocol, the client and the LIS expose themselves
to two types of risk:
Accuracy: The client receives incorrect location information.
Privacy: An unauthorized entity receives location information.
The provision of an accurate and privacy- and confidentiality-
protected location to the requestor depends on the success of five
steps:
1. The client must determine the proper LIS.
2. The client must connect to the proper LIS.
3. The LIS must be able to identify the Device by its identifier (IP
address).
4. The LIS must be able to return the desired location.
5. HELD messages must be transmitted unmodified between the LIS and
the client.
<span class="grey">Barnes Standards Track [Page 22]</span>
<span id="page-23" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Of these, only steps 2, 3, and 5 are within the scope of this
document. Step 1 is based on either manual configuration or on the
LIS discovery defined in [<a href="./rfc5986" title=""Discovering the Local Location Information Server (LIS)"">RFC5986</a>], in which appropriate security
considerations are already discussed. Step 4 is dependent on the
specific positioning capabilities of the LIS and is thus outside the
scope of this document.
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Assuring That the Proper LIS Has Been Contacted</span>
This document assumes that the LIS to be contacted is identified
either by an IP address or a domain name, as is the case for a LIS
discovered as described in LIS Discovery [<a href="./rfc5986" title=""Discovering the Local Location Information Server (LIS)"">RFC5986</a>]. When the HELD
transaction is conducted using TLS [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>], the LIS can
authenticate its identity, either as a domain name or as an IP
address, to the client by presenting a certificate containing that
identifier as a subjectAltName (i.e., as an iPAddress or dNSName,
respectively). In the case of the HTTP binding described above, this
is exactly the authentication described by TLS [<a href="./rfc2818" title=""HTTP Over TLS"">RFC2818</a>]. If the
client has external information as to the expected identity or
credentials of the proper LIS (e.g., a certificate fingerprint),
these checks MAY be omitted. Any binding of HELD MUST be capable of
being transacted over TLS so that the client can request the above
authentication, and a LIS implementation for a binding MUST include
this feature. Note that in order for the presented certificate to be
valid at the client, the client must be able to validate the
certificate. In particular, the validation path of the certificate
must end in one of the client's trust anchors, even if that trust
anchor is the LIS certificate itself.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Protecting Responses from Modification</span>
In order to prevent that response from being modified en route,
messages must be transmitted over an integrity-protected channel.
When the transaction is being conducted over TLS (a required feature
per <a href="#section-9.1">Section 9.1</a>), the channel will be integrity protected by
appropriate ciphersuites. When TLS is not used, this protection will
vary depending on the binding; in most cases, without protection from
TLS, the response will not be protected from modification en route.
<span class="h3"><a class="selflink" id="section-9.3" href="#section-9.3">9.3</a>. Privacy and Confidentiality</span>
Location information returned by the LIS must be protected from
access by unauthorized parties, whether those parties request the
location from the LIS or intercept it en route. As in <a href="#section-9.2">Section 9.2</a>,
transactions conducted over TLS with appropriate ciphersuites are
protected from access by unauthorized parties en route. Conversely,
in most cases, when not conducted over TLS, the response will be
accessible while en route from the LIS to the requestor.
<span class="grey">Barnes Standards Track [Page 23]</span>
<span id="page-24" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Because HELD is an LCP and identifies clients and targets by IP
addresses, a requestor is authorized to access location for an IP
address only if it is the holder of that IP address. The LIS MUST
verify that the client is the target of the returned location, i.e.,
the LIS MUST NOT provide location to other entities than the target.
Note that this is a necessary, but not sufficient, criterion for
authorization. A LIS MAY deny requests according to any local
policy.
A prerequisite for meeting this requirement is that the LIS must have
some assurance of the identity of the client. Since the target of
the returned location is identified by an IP address, simply sending
the response to this IP address will provide sufficient assurance in
many cases. This is the default mechanism in HELD for assuring that
location is given only to authorized clients; LIS implementations
MUST support a mode of operation in which this is the only client
authentication.
Using IP return routability as an authenticator means that location
information is vulnerable to exposure through IP address spoofing
attacks. A temporary spoofing of an IP address could mean that when
a Device requests a Location Object or Location URI, it receives
another Device's location because the attacker is able to receive
packets sent to the spoofed address. In addition, in cases where a
Device drops off the network for various reasons, the re-use of the
Device's IP address could result in another Device receiving the
original Device's location rather than its own location. These
exposures are limited by the following:
o Location URIs MUST have a limited lifetime, as reflected by the
value for the "expires" element in <a href="#section-6.5.2">Section 6.5.2</a>. The lifetime of
Location URIs necessarily depends on the nature of the access.
o The LIS and network SHOULD be configured so that the LIS is made
aware of Device movement within the network and addressing
changes. If the LIS detects a change in the network that results
in it no longer being able to determine the location of the
Device, then all Location URIs for that Device SHOULD be
invalidated.
The above measures are dependent on network configuration, which
SHOULD be considered. For instance, in a fixed Internet access,
providers may be able to restrict the allocation of IP addresses to a
single physical line, ensuring that spoofing is not possible; in such
an environment, additional measures may not be necessary.
<span class="grey">Barnes Standards Track [Page 24]</span>
<span id="page-25" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Examples</span>
The following sections provide examples of basic HTTP/HTTPS, a simple
location request, and a location request for multiple location types,
along with the relevant location responses. To focus on important
portions of messages, the examples in Sections <a href="#section-10.2">10.2</a> and <a href="#section-10.3">10.3</a> do not
show HTTP/HTTPS headers or the XML prologue. In addition, sections
of XML not relevant to the example are replaced with comments.
<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>. Examples of HTTPS Messages</span>
The examples in this section show complete HTTP/HTTPS messages that
include the HELD request or response document.
This example shows the most basic request for a LO. The POST
includes an empty "locationRequest" element.
POST /location HTTP/1.1
Host: lis.example.com:49152
Content-Type: application/held+xml;charset=utf-8
Content-Length: 87
<?xml version="1.0"?>
<locationRequest xmlns="urn:ietf:params:xml:ns:geopriv:held"/>
Since the above request does not include a "locationType" element,
the successful response to the request may contain any type of
location. The following shows a response containing a minimal
PIDF-LO.
HTTP/1.1 200 OK
Server: Example LIS
Date: Tue, 10 Jan 2006 03:42:29 GMT
Expires: Tue, 10 Jan 2006 03:42:29 GMT
Cache-control: private
Content-Type: application/held+xml;charset=utf-8
Content-Length: 856
<?xml version="1.0"?>
<locationResponse xmlns="urn:ietf:params:xml:ns:geopriv:held">
<presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="pres:[email protected]">
<tuple id="b650sf789nd">
<status>
<geopriv xmlns="urn:ietf:params:xml:ns:pidf:geopriv10">
<location-info>
<Point xmlns="http://www.opengis.net/gml"
srsName="urn:ogc:def:crs:EPSG::4326">
<span class="grey">Barnes Standards Track [Page 25]</span>
<span id="page-26" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<pos>-34.407 150.88001</pos>
</Point>
</location-info>
<usage-rules
xmlns:gbp="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy">
<gbp:retention-expiry>2006-01-11T03:42:28+00:00
</gbp:retention-expiry>
</usage-rules>
<method>Wiremap</method>
</geopriv>
</status>
<timestamp>2006-01-10T03:42:28+00:00</timestamp>
</tuple>
</presence>
</locationResponse>
The error response to the request is an error document. The
following response shows an example error response.
HTTP/1.1 200 OK
Server: Example LIS
Expires: Tue, 10 Jan 2006 03:49:20 GMT
Cache-control: private
Content-Type: application/held+xml;charset=utf-8
Content-Length: 182
<?xml version="1.0"?>
<error xmlns="urn:ietf:params:xml:ns:geopriv:held"
code="locationUnknown">
<message xml:lang="en">Unable to determine location
</message>
</error>
<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>. Example of a Simple Location Request</span>
The location request shown below doesn't specify any location types
or response time.
<locationRequest xmlns="urn:ietf:params:xml:ns:geopriv:held"/>
The example response to this location request contains a list of
Location URIs.
<locationResponse xmlns="urn:ietf:params:xml:ns:geopriv:held">
<locationUriSet expires="2006-01-01T13:00:00.0Z">
<locationURI>https://ls.example.com:9768/357yc6s64ceyoiuy5ax3o
</locationURI>
<locationURI>sip:[email protected]
<span class="grey">Barnes Standards Track [Page 26]</span>
<span id="page-27" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
</locationURI>
</locationUriSet>
</locationResponse>
An error response to this location request is shown below:
<error xmlns="urn:ietf:params:xml:ns:geopriv:held"
code="locationUnknown">
<message xml:lang="en">Location not available
</message>
</error>
<span class="h3"><a class="selflink" id="section-10.3" href="#section-10.3">10.3</a>. An Example of a Location Request for Multiple Location Types</span>
The following Location Request message includes a request for
geodetic, civic, and any Location URIs.
<locationRequest xmlns="urn:ietf:params:xml:ns:geopriv:held">
<locationType exact="true">
geodetic
civic
locationURI
</locationType>
</locationRequest>
The corresponding Location Response message includes the requested
location information, including two Location URIs.
<locationResponse xmlns="urn:ietf:params:xml:ns:geopriv:held">
<locationUriSet expires="2006-01-01T13:00:00.0Z">
<locationURI>https://ls.example.com:9768/357yc6s64ceyoiuy5ax3o
</locationURI>
<locationURI>sip:[email protected]:
</locationURI>
</locationUriSet>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
entity="pres:[email protected]">
<tuple id="lisLocation">
<status>
<geopriv xmlns="urn:ietf:params:xml:ns:pidf:geopriv10">
<location-info>
<gs:Circle xmlns:gs="http://www.opengis.net/pidflo/1.0"
xmlns:gml="http://www.opengis.net/gml"
srsName="urn:ogc:def:crs:EPSG::4326">
<gml:pos>-34.407242 150.882518</gml:pos>
<gs:radius uom="urn:ogc:def:uom:EPSG::9001">30
</gs:radius>
</gs:Circle>
<span class="grey">Barnes Standards Track [Page 27]</span>
<span id="page-28" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<ca:civicAddress
xmlns:ca="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
xml:lang="en-au">
<ca:country>AU</ca:country>
<ca:A1>NSW</ca:A1>
<ca:A3>Wollongong</ca:A3>
<ca:A4>Gwynneville</ca:A4>
<ca:STS>Northfield Avenue</ca:STS>
<ca:LMK>University of Wollongong</ca:LMK>
<ca:FLR>2</ca:FLR>
<ca:NAM>Andrew Corporation</ca:NAM>
<ca:PC>2500</ca:PC>
<ca:BLD>39</ca:BLD>
<ca:SEAT>WS-183</ca:SEAT>
<ca:POBOX>U40</ca:POBOX>
</ca:civicAddress>
</location-info>
<usage-rules
xmlns:gbp="urn:ietf:params:xml:ns:pidf:geopriv10:basicPolicy">
<gbp:retransmission-allowed>false
</gbp:retransmission-allowed>
<gbp:retention-expiry>2007-05-25T12:35:02+10:00
</gbp:retention-expiry>
</usage-rules>
<method>Wiremap</method>
</geopriv>
</status>
<timestamp>2007-05-24T12:35:02+10:00</timestamp>
</tuple>
</presence>
</locationResponse>
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. IANA Considerations</span>
IANA has made the registrations detailed in the following sections.
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. URN Sub-Namespace Registration for</span>
<span class="h3"> urn:ietf:params:xml:ns:geopriv:held</span>
This section registers a new XML namespace,
"urn:ietf:params:xml:ns:geopriv:held", per the guidelines in
[<a href="./rfc3688" title=""The IETF XML Registry"">RFC3688</a>].
URI: urn:ietf:params:xml:ns:geopriv:held
Registrant Contact: IETF, GEOPRIV working group, ([email protected]),
Mary Barnes ([email protected]).
<span class="grey">Barnes Standards Track [Page 28]</span>
<span id="page-29" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
XML:
BEGIN
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>HELD Messages</title>
</head>
<body>
<h1>Namespace for HELD Messages</h1>
<h2>urn:ietf:params:xml:ns:geopriv:held</h2>
<p>See <a href="./rfc5985">RFC 5985</a></p>
</body>
</html>
END
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. XML Schema Registration</span>
This section registers an XML schema as per the guidelines in
[<a href="./rfc3688" title=""The IETF XML Registry"">RFC3688</a>].
URI: urn:ietf:params:xml:schema:geopriv:held
Registrant Contact: IETF, GEOPRIV working group, ([email protected]),
Mary Barnes ([email protected]).
Schema: The XML for this schema can be found as the entirety of
<a href="#section-7">Section 7</a> of this document.
<span class="h3"><a class="selflink" id="section-11.3" href="#section-11.3">11.3</a>. MIME Media Type Registration for 'application/held+xml'</span>
This section registers the "application/held+xml" MIME type.
To: [email protected]
Subject: Registration of MIME media type application/held+xml
MIME media type name: application
MIME subtype name: held+xml
Required parameters: (none)
Optional parameters: charset
Same as the charset parameter of "application/xml" as specified in
<a href="./rfc3023">RFC 3023</a> <a href="./rfc3023#section-3.2">[RFC3023], Section 3.2</a>.
<span class="grey">Barnes Standards Track [Page 29]</span>
<span id="page-30" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Encoding considerations: Same as the encoding considerations of
"application/xml" as specified in <a href="./rfc3023">RFC 3023</a> <a href="./rfc3023#section-3.2">[RFC3023], Section 3.2</a>.
Security considerations: This content type is designed to carry
protocol data related to the location of an entity, which could
include information that is considered private. Appropriate
precautions should be taken to limit disclosure of this
information.
Interoperability considerations: This content type provides a basis
for a protocol. There are multiple interoperable implementations
of this protocol.
Published specification: <a href="./rfc5985">RFC 5985</a>
Applications which use this media type: Location information
providers and consumers.
Additional Information:
Magic Number(s): (none)
File extension(s): .heldxml
Macintosh File Type Code(s): "TEXT"
Person & email address to contact for further information:
Mary Barnes <mary.ietf.barnes@gmail.com>
Intended usage: LIMITED USE
Author/Change controller: The IETF
Other information: This media type is a specialization of
application/xml [<a href="./rfc3023" title=""XML Media Types"">RFC3023</a>], and many of the considerations
described there also apply to application/held+xml.
<span class="h3"><a class="selflink" id="section-11.4" href="#section-11.4">11.4</a>. Error Code Registry</span>
As defined in this document, IANA created a new registry for the HELD
protocol including an initial registry for error codes. The error
codes are included in HELD error messages as described in <a href="#section-6.3">Section 6.3</a>
and defined in the schema in the 'codeType' token in the XML schema
in <a href="#section-7">Section 7</a>.
The following is a summary of the registry:
Related Registry: Geopriv HELD Registries, Error codes for HELD
Defining RFC: <a href="./rfc5985">RFC 5985</a>
<span class="grey">Barnes Standards Track [Page 30]</span>
<span id="page-31" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Registration/Assignment Procedures: Following the policies outlined
in [<a href="./rfc5226" title="">RFC5226</a>], the IANA policy for assigning new values for the
Error codes for HELD is Standards Action: Values are assigned only
for Standards Track RFCs approved by the IESG.
Registrant Contact: IETF, GEOPRIV working group, ([email protected]),
Mary Barnes ([email protected]).
This section registers the following eight initial error codes as
described in <a href="#section-6.3">Section 6.3</a>:
requestError: This code indicates that the request was badly formed
in some fashion.
xmlError: This code indicates that the XML content of the request
was either badly formed or invalid.
generalLisError: This code indicates that an unspecified error
occurred at the LIS.
locationUnknown: This code indicates that the LIS could not
determine the location of the Device.
unsupportedMessage: This code indicates that the request was not
supported or understood by the LIS. This error code is used when
a HELD request contains a document element that is not supported
by the receiver.
timeout: This code indicates that the LIS could not satisfy the
request within the time specified in the "responseTime" parameter.
cannotProvideLiType: This code indicates that the LIS was unable to
provide LI of the type or types requested. This code is used when
the "exact" attribute on the "locationType" parameter is set to
"true".
notLocatable: This code indicates that the LIS is unable to locate
the Device and that the Device MUST NOT make further attempts to
retrieve LI from this LIS. This error code is used to indicate
that the Device is outside the access network served by the LIS;
for instance, the VPN and NAT scenarios discussed in
<a href="#section-4.1.2">Section 4.1.2</a>.
<span class="grey">Barnes Standards Track [Page 31]</span>
<span id="page-32" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Contributors</span>
James Winterbottom, Martin Thomson and Barbara Stark are the authors
of the original document, from which this WG document was derived.
Their contact information is included below. They made additional
contributions to the WG document, including the XML schema.
James Winterbottom
Andrew
Andrew Building (39)
University of Wollongong
Northfields Avenue
Wollongong, NSW 2522
AU
Phone: +61 2 4221 2938
EMail: [email protected]
URI: <a href="http://www.andrew.com/">http://www.andrew.com/</a>
Martin Thomson
Andrew
Andrew Building (39)
University of Wollongong
Northfields Avenue
Wollongong, NSW 2522
AU
Phone: +61 2 4221 2915
EMail: [email protected]
URI: <a href="http://www.andrew.com/">http://www.andrew.com/</a>
Barbara Stark
BellSouth
Room 7A43
725 W Peachtree St.
Atlanta, GA 30308
US
EMail: [email protected]
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Acknowledgements</span>
The author and contributors would like to thank the participants in
the GEOPRIV WG and the following people for their constructive input
and feedback on this document (in alphabetical order): Nadine Abbott,
Bernard Aboba, Eric Arolick, Richard Barnes (in particular, the
security considerations section), Peter Blatherwick, Ben Campbell,
<span class="grey">Barnes Standards Track [Page 32]</span>
<span id="page-33" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
Guy Caron, Eddy Corbett, Martin Dawson, Lisa Dusseault, Robins
George, Jerome Grenier, Ted Hardie, Cullen Jennings, Neil Justusson,
Tat Lam, Marc Linsner, Patti McCalmont, Alexey Melnikov, Roger
Marshall, Tim Polk, Perry Prozeniuk, Carl Reed, Julian Reschke, Eric
Rescorla, Dan Romascanu, Brian Rosen, John Schnizlein, Shida
Schubert, Henning Schulzrinne, Ed Shrum, Doug Stuard, Hannes
Tschofenig, and Karl Heinz Wolf.
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. References</span>
<span class="h3"><a class="selflink" id="section-14.1" href="#section-14.1">14.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC2616">RFC2616</a>] Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
Masinter, L., Leach, P., and T. Berners-Lee, "Hypertext
Transfer Protocol -- HTTP/1.1", <a href="./rfc2616">RFC 2616</a>, June 1999.
[<a id="ref-RFC2818">RFC2818</a>] Rescorla, E., "HTTP Over TLS", <a href="./rfc2818">RFC 2818</a>, May 2000.
[<a id="ref-RFC2965">RFC2965</a>] Kristol, D. and L. Montulli, "HTTP State Management
Mechanism", <a href="./rfc2965">RFC 2965</a>, October 2000.
[<a id="ref-RFC3688">RFC3688</a>] Mealling, M., "The IETF XML Registry", <a href="https://www.rfc-editor.org/bcp/bcp81">BCP 81</a>, <a href="./rfc3688">RFC 3688</a>,
January 2004.
[<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>, August 2008.
[<a id="ref-RFC5491">RFC5491</a>] Winterbottom, J., Thomson, M., and H. Tschofenig, "GEOPRIV
Presence Information Data Format Location Object (PIDF-LO)
Usage Clarification, Considerations, and Recommendations",
<a href="./rfc5491">RFC 5491</a>, March 2009.
[<a id="ref-RFC5646">RFC5646</a>] Phillips, A. and M. Davis, "Tags for Identifying
Languages", <a href="https://www.rfc-editor.org/bcp/bcp47">BCP 47</a>, <a href="./rfc5646">RFC 5646</a>, September 2009.
[<a id="ref-RFC5986">RFC5986</a>] Thomson, M. and J. Winterbottom, "Discovering the Local
Location Information Server (LIS)", <a href="./rfc5986">RFC 5986</a>,
September 2010.
[<a id="ref-W3C.REC-xmlschema-1-20041028">W3C.REC-xmlschema-1-20041028</a>]
Thompson, H., Mendelsohn, N., Beech, D., and M. Maloney,
"XML Schema Part 1: Structures Second Edition", World Wide
Web Consortium Recommendation REC-xmlschema-1-20041028,
October 2004,
<<a href="http://www.w3.org/TR/2004/REC-xmlschema-1-20041028">http://www.w3.org/TR/2004/REC-xmlschema-1-20041028</a>>.
<span class="grey">Barnes Standards Track [Page 33]</span>
<span id="page-34" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
[<a id="ref-W3C.REC-xmlschema-2-20041028">W3C.REC-xmlschema-2-20041028</a>]
Malhotra, A. and P. Biron, "XML Schema Part 2: Datatypes
Second Edition", World Wide Web Consortium
Recommendation REC-xmlschema-2-20041028, October 2004,
<<a href="http://www.w3.org/TR/2004/REC-xmlschema-2-20041028">http://www.w3.org/TR/2004/REC-xmlschema-2-20041028</a>>.
<span class="h3"><a class="selflink" id="section-14.2" href="#section-14.2">14.2</a>. Informative References</span>
[<a id="ref-LLDP-MED">LLDP-MED</a>]
TIA, "ANSI/TIA-1057 Link Layer Discovery Protocol - Media
Endpoint Discovery".
[<a id="ref-LOC-CONVEY">LOC-CONVEY</a>]
Polk, J., Rosen, B., and J. Peterson, "Location Conveyance
for the Session Initiation Protocol", Work in Progress,
July 2010.
[<a id="ref-RFC0793">RFC0793</a>] Postel, J., "Transmission Control Protocol", STD 7,
<a href="./rfc793">RFC 793</a>, September 1981.
[<a id="ref-RFC2617">RFC2617</a>] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S.,
Leach, P., Luotonen, A., and L. Stewart, "HTTP
Authentication: Basic and Digest Access Authentication",
<a href="./rfc2617">RFC 2617</a>, June 1999.
[<a id="ref-RFC3023">RFC3023</a>] Murata, M., St. Laurent, S., and D. Kohn, "XML Media
Types", <a href="./rfc3023">RFC 3023</a>, January 2001.
[<a id="ref-RFC3693">RFC3693</a>] Cuellar, J., Morris, J., Mulligan, D., Peterson, J., and
J. Polk, "Geopriv Requirements", <a href="./rfc3693">RFC 3693</a>, February 2004.
[<a id="ref-RFC3825">RFC3825</a>] Polk, J., Schnizlein, J., and M. Linsner, "Dynamic Host
Configuration Protocol Option for Coordinate-based
Location Configuration Information", <a href="./rfc3825">RFC 3825</a>, July 2004.
[<a id="ref-RFC3986">RFC3986</a>] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
<a href="./rfc3986">RFC 3986</a>, January 2005.
[<a id="ref-RFC4479">RFC4479</a>] Rosenberg, J., "A Data Model for Presence", <a href="./rfc4479">RFC 4479</a>,
July 2006.
[<a id="ref-RFC5226">RFC5226</a>] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
May 2008.
<span class="grey">Barnes Standards Track [Page 34]</span>
<span id="page-35" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
[<a id="ref-RFC5687">RFC5687</a>] Tschofenig, H. and H. Schulzrinne, "GEOPRIV Layer 7
Location Configuration Protocol: Problem Statement and
Requirements", <a href="./rfc5687">RFC 5687</a>, March 2010.
[<a id="ref-RFC5808">RFC5808</a>] Marshall, R., "Requirements for a Location-by-Reference
Mechanism", <a href="./rfc5808">RFC 5808</a>, May 2010.
<span class="grey">Barnes Standards Track [Page 35]</span>
<span id="page-36" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. HELD Compliance to IETF LCP Requirements</span>
This appendix describes HELD's compliance to the requirements
specified in [<a href="./rfc5687" title=""GEOPRIV Layer 7 Location Configuration Protocol: Problem Statement and Requirements"">RFC5687</a>].
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. L7-1: Identifier Choice</span>
"The L7 LCP MUST be able to carry different identifiers or MUST
define an identifier that is mandatory to implement. Regarding the
latter aspect, such an identifier is only appropriate if it is from
the same realm as the one for which the location information service
maintains identifier to location mapping."
COMPLY
HELD uses the IP address of the location request message as the
primary source of identity for the requesting Device or target. This
identity can be used with other contextual network information to
provide a physical location for the Target for many network
deployments. There may be network deployments where an IP address
alone is insufficient to identify a Target in a network. However,
any necessary identity extensions for these networks is beyond the
scope of this document.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. L7-2: Mobility Support</span>
"The GEOPRIV Layer 7 Location Configuration Protocol MUST support a
broad range of mobility from Devices that can only move between
reboots, to Devices that can change attachment points with the impact
that their IP address is changed, to Devices that do not change their
IP address while roaming, to Devices that continuously move by being
attached to the same network attachment point."
COMPLY
Mobility support is inherently a characteristic of the access network
technology, and HELD is designed to be access network agnostic.
Consequently, HELD complies with this requirement. In addition, HELD
provides specific support for mobile environments by providing an
optional responseTime attribute in location request messages.
Wireless networks often have several different mechanisms at their
disposal for position determination (e.g., assisted GPS versus
determining the location based on the identity of the serving base
station), each providing different degrees of accuracy and taking
different amounts of time to yield a result. The responseTime
parameter provides the LIS with a criterion which it can use to
select a location determination technique.
<span class="grey">Barnes Standards Track [Page 36]</span>
<span id="page-37" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
<span class="h3"><a class="selflink" id="appendix-A.3" href="#appendix-A.3">A.3</a>. L7-3: ASP and Access Network Provider Relationship</span>
"The design of the L7 LCP MUST NOT assume a business or trust
relationship between the Application Service Provider (ASP) and the
Access Network Provider. Requirements for resolving a reference to
location information are not discussed in this document."
COMPLY
HELD describes a location acquisition protocol between a Device and a
LIS. In the context of HELD, the LIS is within the Access Network.
Thus, HELD is independent of the business or trust relationship
between the Application Service Provider (ASP) and the Access Network
Provider. Location acquisition using HELD is subject to the
restrictions described in <a href="#section-9">Section 9</a>.
<span class="h3"><a class="selflink" id="appendix-A.4" href="#appendix-A.4">A.4</a>. L7-4: Layer 2 and Layer 3 Provider Relationship</span>
"The design of the GEOPRIV Layer 7 Location Configuration Protocol
MUST assume that there is a trust and business relationship between
the L2 and the L3 provider. The L3 provider operates the LIS and
needs to obtain location information from the L2 provider since this
one is closest to the end host. If the L2 and L3 provider for the
same host are different entities, they cooperate for the purposes
needed to determine end system locations."
COMPLY
HELD was specifically designed with this model in mind and readily
allows itself to chaining requests between operators without a change
in protocol being required. HELD is a webservices protocol which can
be bound to transports other than HTTP, such as BEEP. Using a
protocol such as BEEP offers the option of high request throughput
over a dedicated connection between an L3 provider and an L2 provider
without incurring the serial restriction imposed by HTTP. This is
less easy to do with protocols that do not decouple themselves from
the transport.
<span class="h3"><a class="selflink" id="appendix-A.5" href="#appendix-A.5">A.5</a>. L7-5: Legacy Device Considerations</span>
"The design of the GEOPRIV Layer 7 Location Configuration Protocol
MUST consider legacy residential NAT Devices and Network Termination
Equipment (NTE) in an DSL environment that cannot be upgraded to
support additional protocols, for example to pass additional
information through DHCP."
<span class="grey">Barnes Standards Track [Page 37]</span>
<span id="page-38" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
COMPLY
HELD is an application protocol and operates on top of IP. A HELD
request from a host behind a residential NAT will traverse the NAT
acquiring the external address of the home router. The location
provided to the host therefore will be the address of the home router
in this circumstance. No changes are required to the home router in
order to support this function, HELD was designed specifically to
address this deployment scenario.
<span class="h3"><a class="selflink" id="appendix-A.6" href="#appendix-A.6">A.6</a>. L7-6: VPN Awareness</span>
"The design of the GEOPRIV Layer 7 Location Configuration Protocol
MUST assume that at least one end of a VPN is aware of the VPN
functionality. In an enterprise scenario, the enterprise side will
provide the LIS used by the client and can thereby detect whether the
LIS request was initiated through a VPN tunnel."
COMPLY
HELD does not preclude a LIS on the far end of a VPN tunnel from
being aware that the client request is occurring over that tunnel.
It also does not preclude a client Device from accessing a LIS
serving the local physical network and subsequently using the
location information with an application that is accessed over a VPN
tunnel.
<span class="h3"><a class="selflink" id="appendix-A.7" href="#appendix-A.7">A.7</a>. L7-7: Network Access Authentication</span>
"The design of the GEOPRIV Layer 7 Location Configuration Protocol
MUST NOT assume prior network access authentication."
COMPLY
HELD makes no assumptions about prior network access authentication.
HELD strongly recommends the use of TLS with server-side certificates
for communication between the endpoint and the LIS. There is no
requirement for the endpoint to authenticate with the LIS.
<span class="h3"><a class="selflink" id="appendix-A.8" href="#appendix-A.8">A.8</a>. L7-8: Network Topology Unawareness</span>
"The design of the GEOPRIV Layer 7 Location Configuration Protocol
MUST NOT assume end systems being aware of the access network
topology. End systems are, however, able to determine their public
IP address(es) via mechanisms such as STUN or NSIS NATFW NSLP."
<span class="grey">Barnes Standards Track [Page 38]</span>
<span id="page-39" ></span>
<span class="grey"><a href="./rfc5985">RFC 5985</a> HELD September 2010</span>
COMPLY
HELD makes no assumption about the network topology. HELD doesn't
require that the Device know its external IP address, except where
that is required for discovery of the LIS.
<span class="h3"><a class="selflink" id="appendix-A.9" href="#appendix-A.9">A.9</a>. L7-9: Discovery Mechanism</span>
"The L7 LCP MUST define a single mandatory to implement discovery
mechanism."
COMPLY
HELD uses the discovery mechanism in [<a href="./rfc5986" title=""Discovering the Local Location Information Server (LIS)"">RFC5986</a>].
<span class="h3"><a class="selflink" id="appendix-A.10" href="#appendix-A.10">A.10</a>. L7-10: PIDF-LO Creation</span>
"When a LIS creates a PIDF-LO per <a href="./rfc4119">RFC 4119</a> then it MUST put the
<geopriv> element into the <device> element of the presence document
(see <a href="./rfc4479">RFC 4479</a>). This ensures that the resulting PIDF-LO document,
which is subsequently distributed to other entities, conforms to the
rules outlined in [now <a href="./rfc5941">RFC 5941</a>]."
COMPLY
HELD protocol overview (<a href="#section-4">Section 4</a>) describes the requirements on the
LIS in creating the PIDF-LO and prescribes that the PIDF-LO generated
by the LIS MUST conform to [<a href="./rfc5491" title=""GEOPRIV Presence Information Data Format Location Object (PIDF-LO) Usage Clarification, Considerations, and Recommendations"">RFC5491</a>].
Author's Address
Mary Barnes (editor)
Polycom
EMail: [email protected]
Barnes Standards Track [Page 39]
Annotations
Select text to annotate