1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
|
<pre>Network Working Group E. Guttman
Request for Comments: 3059 Sun Microsystems
Category: Standards Track February 2001
<span class="h1">Attribute List Extension for the Service Location Protocol</span>
Status of this Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2001). All Rights Reserved.
Abstract
The Service Location Protocol, Version 2 (SLPv2) provides a mechanism
for a service to be discovered in a single exchange of messages.
This exchange of messages does not presently include any of the
service's attributes. This document specifies a SLPv2 extension
which allows a User Agent (UA) to request a service's attributes be
included as an extension to Service Reply messages. This will
eliminate the need for multiple round trip messages for a UA to
acquire all service information.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-1.2">1.2</a>. Notation Conventions . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. Attribute List Extension . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3">3</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-4">4</a>. Internationalization Considerations . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-5">5</a>. Security Considerations . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-6">6</a>. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
Full Copyright Statement . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<span class="grey">Guttman Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3059">RFC 3059</a> Attribute List Extension for SLPv2 February 2001</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Service Location Protocol, Version 2 [<a href="#ref-3" title=""Service Location Protocol, Version 2"">3</a>] provides a mechanism for
a service to be discovered in a single exchange of messages. The UA
sends a Service Request message and the DA or SA (as appropriate)
sends a Service Reply message.
It is clearly advantageous to be able to obtain all service
information at once. The Service Location Protocol separates
messages which obtain different classes of information. This
extension enables an optimization to the basic exchange of messages,
which currently does not include service attributes in Service Reply
messages.
This document specifies a SLPv2 extension which allows a UA to
request that a service's attributes be included in Service Reply
messages. This will eliminate the need for multiple round trip
messages for a UA to acquire all service information.
If the DA or SA does not support the Attrlist extension, it will
simply return a Service Reply (without the extension). Support of
this extension is OPTIONAL. Existing implementations will ignore the
Attrlist extension since it has been assigned a identifying number
from the range which indicates that the receiver MUST ignore the
extension if it is not recognized. See <a href="./rfc2608">RFC 2608</a> [<a href="#ref-3" title=""Service Location Protocol, Version 2"">3</a>].
If the UA receives a Service Reply message without an Attrlist
Extension it must assume the SA or DA does not support the extension.
In this case, the UA must send an Attribute Request for each URL it
obtains in the Service Reply message in order to obtain the
attributes for these services.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Terminology</span>
User Agent (UA)
A process working on the user's behalf to establish contact
with some service. The UA retrieves service information from
the Service Agents or Directory Agents.
Service Agent (SA)
A process working on the behalf of one or more services to
advertise the services.
Directory Agent (DA)
A process which collects service advertisements. There can
only be one DA present per given host.
<span class="grey">Guttman Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3059">RFC 3059</a> Attribute List Extension for SLPv2 February 2001</span>
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Notation Conventions</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">RFC 2119</a> [<a href="#ref-2" title=""Key Words for Use in RFCs to Indicate Requirement Levels"">2</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Attribute List Extension</span>
The format of the Attribute List Extension is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Extension ID = 0x0002 | Next Extension Offset |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Offset, contd.| Service URL Length | Service URL /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attribute List Length | Attribute List /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|# of AttrAuths |(if present) Attribute Authentication Blocks.../
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The Extension ID is 0x0002.
The Next Extension Offset value indicates the position of the next
extension as offset from the beginning of the SLP message. If the
next extension offset value is 0, there are no more extensions in the
message.
A UA sends an Attribute List Extension with a Service Request. The
Service URL Length and Attribute List Length are set to 0 and the
Service URL and Attribute List fields omitted in this case. The UA
thereby requests that the SA or DA include an Attribute List
Extension in its Service Reply by including such an 'empty' Attribute
List Extension in the Service Request.
A SA or DA which supports the Attribute List Extension returns one
Attribute List extension for every URL Entry in the Service Reply
message. The order of the Attribute List Extensions SHOULD be the
same as the URL Entries in the Service Reply.
The Service URL [<a href="#ref-4" title=""Service Templates and service: Schemes"">4</a>] identifies the corresponding URL Entry.
The Attribute List field is the entire attribute list of the service.
These attributes must be in the same language as that indicated in
the Service Request message.
<span class="grey">Guttman Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3059">RFC 3059</a> Attribute List Extension for SLPv2 February 2001</span>
If the Service Request message includes a SLP SPI string, then the
attribute list extension MUST include an authentication block. If
the SA or DA does not support or is unable to return an
authentication block for the SLP SPI included in the Service Request,
then the SA or DA MUST NOT return an Attribute List Extension. The
format of the authentication block(s) is exactly the same as would be
included in an Attribute Reply or Service Registration message.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. IANA Considerations</span>
IANA has assigned an extension ID number of 0x0002 for the Attribute
List Extension.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Internationalization Considerations</span>
The Service Location Protocol, version 2 has mechanisms for allowing
attributes to be transmitted with explicit language tagging [<a href="#ref-6" title=""Tags for the Identification of Languages"">6</a>]. The
same mechanisms are used for this protocol extension.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
The Service Location Protocol, version 2 has mechanisms for allowing
authenticators to be returned with attribute lists so that UAs are
able to verify a digital signature over the attributes they obtain.
This same mechanism is used for this protocol extension. The
Attribute List Extension used in conjunction with SLPv2 is no less
secure than SLPv2 without the extension.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgments</span>
The author benefited from preliminary conversations about this
extension with Charlie Perkins.
<span class="grey">Guttman Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3059">RFC 3059</a> Attribute List Extension for SLPv2 February 2001</span>
References
[<a id="ref-1">1</a>] Bradner, S., "The Internet Standards Process -- Revision 3", <a href="https://www.rfc-editor.org/bcp/bcp9">BCP</a>
<a href="https://www.rfc-editor.org/bcp/bcp9">9</a>, <a href="./rfc2026">RFC 2026</a>, October 1996.
[<a id="ref-2">2</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-3">3</a>] Guttman, E., Perkins, C., Veizades, J. and M. Day, "Service
Location Protocol, Version 2", <a href="./rfc2608">RFC 2608</a>, June 1999.
[<a id="ref-4">4</a>] Guttman, E., Perkins, C. and J. Kempf, "Service Templates and
service: Schemes", <a href="./rfc2609">RFC 2609</a>, June 1999.
[<a id="ref-5">5</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="./rfc2434">RFC 2434</a>, October 1998.
[<a id="ref-6">6</a>] Alvestrand, H., "Tags for the Identification of Languages", <a href="https://www.rfc-editor.org/bcp/bcp47">BCP</a>
<a href="https://www.rfc-editor.org/bcp/bcp47">47</a>, <a href="./rfc3066">RFC 3066</a>, January 2001.
Author's Address
Erik Guttman
Sun Microsystems
Eichhoelzelstr. 7
74915 Waibstadt
Germany
Phone: +49 6227 356 202
EMail: Erik.Guttman@sun.com
<span class="grey">Guttman Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3059">RFC 3059</a> Attribute List Extension for SLPv2 February 2001</span>
Full Copyright Statement
Copyright (C) The Internet Society (2001). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Guttman Standards Track [Page 6]
</pre>
|