home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_q_t / draft-ietf-svrloc-protocol-15.txt < prev    next >
Text File  |  1997-01-08  |  145KB  |  3,530 lines

  1.  
  2. Internet Engineering Task Force                            John Veizades
  3. INTERNET DRAFT                                             @Home Network
  4. 8 January 1997                                              Erik Guttman
  5.                                                         Sun Microsystems
  6.                                                          Charles Perkins
  7.                                                             IBM Research
  8.                                                             Scott Kaplan
  9.  
  10.                        Service Location Protocol
  11.                    draft-ietf-svrloc-protocol-15.txt
  12.  
  13.  
  14. Status of This Memo
  15.  
  16.    This draft document is a product of the Service Location Working
  17.    Group of the Internet Engineering Task Force (IETF); it will be
  18.    submitted to the RFC editor as a standards document.  Please respond
  19.    with comments to the srvloc@tgv.com mailing list.
  20.  
  21.    Distribution of this memo is unlimited.
  22.  
  23.    This document is an Internet-Draft.  Internet-Drafts are working
  24.    documents of the Internet Engineering Task Force (IETF), its areas,
  25.    and its working groups.  Note that other groups may also distribute
  26.    working documents as Internet-Drafts.
  27.  
  28.    Internet-Drafts are draft documents valid for a maximum of six months
  29.    and may be updated, replaced, or obsoleted by other documents at
  30.    any time.  It is inappropriate to use Internet-Drafts as reference
  31.    material or to cite them other than as ``work in progress.''
  32.  
  33.    To learn the current status of any Internet-Draft, please check
  34.    the ``1id-abstracts.txt'' listing contained in the Internet-Drafts
  35.    Shadow Directories on ftp.is.co.za (Africa), nic.nordu.net (Europe),
  36.    munnari.oz.au (Pacific Rim), ds.internic.net (US East Coast), or
  37.    ftp.isi.edu (US West Coast).
  38.  
  39.  
  40. Abstract
  41.  
  42.    The Service Location Protocol provides a scalable framework for
  43.    the discovery and selection of network services.  Using this
  44.    protocol, computers using the Internet no longer need so much static
  45.    configuration of network services for network based applications.
  46.    This is especially important as computers become more portable, and
  47.    users less tolerant or able to fulfill the demands of network system
  48.    administration.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page i]
  57.  
  58. Internet Draft        Service Location Protocol         8 January 1997  
  59.  
  60.  
  61.                                 Contents
  62.  
  63.  
  64.  
  65. Status of This Memo                                                    i
  66.  
  67. Abstract                                                               i
  68.  
  69.  1. Introduction                                                       2
  70.  
  71.  2. Terminology                                                        2
  72.      2.1. Notation Conventions  . . . . . . . . . . . . . . . . . .    4
  73.      2.2. Service Information and Predicate Representation  . . . .    4
  74.      2.3. Specification Language  . . . . . . . . . . . . . . . . .    4
  75.  
  76.  3. Protocol Overview                                                  5
  77.      3.1. Protocol Transactions . . . . . . . . . . . . . . . . . .    6
  78.      3.2. Schemes . . . . . . . . . . . . . . . . . . . . . . . . .    7
  79.            3.2.1. The ``service:''  URL scheme  . . . . . . . . . .    8
  80.      3.3. Standard Attribute Definitions  . . . . . . . . . . . . .    8
  81.      3.4. Naming Authority  . . . . . . . . . . . . . . . . . . . .    9
  82.      3.5. Interpretation of Service Location Replies  . . . . . . .    9
  83.      3.6. Use of TCP, UDP and Multicast in Service Location . . . .   10
  84.            3.6.1. Multicast vs.  Broadcast  . . . . . . . . . . . .   10
  85.            3.6.2. Service-Specific Multicast Address  . . . . . . .   11
  86.      3.7. Service Location Scaling, and Multicast Operating Modes .   11
  87.  
  88.  4. Service Location General Message Format                           13
  89.      4.1. Use of Transaction IDs (XIDs) . . . . . . . . . . . . . .   15
  90.      4.2. URL Entry Lifetime  . . . . . . . . . . . . . . . . . . .   16
  91.  
  92.  5. Service Request Message Format                                    16
  93.      5.1. Service Request Usage . . . . . . . . . . . . . . . . . .   18
  94.      5.2. Directory Agent Discovery Request . . . . . . . . . . . .   19
  95.      5.3. Explanation of Terms of Predicate Grammar . . . . . . . .   20
  96.      5.4. Service Request Predicate Grammar . . . . . . . . . . . .   22
  97.      5.5. String Matching for Requests  . . . . . . . . . . . . . .   24
  98.  
  99.  6. Service Reply Message Format                                      24
  100.  
  101.  7. Service Type Request Message Format                               25
  102.  
  103.  8. Service Type Reply Message Format                                 27
  104.  
  105.  9. Service Registration Message Format                               28
  106.  
  107. 10. Service Acknowledgement Message Format                            31
  108.  
  109.  
  110.  
  111.  
  112. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page ii]
  113.  
  114. Internet Draft        Service Location Protocol         8 January 1997  
  115.  
  116.  
  117. 11. Service Deregister Message Format                                 32
  118.  
  119. 12. Attribute Request Message Format                                  33
  120.  
  121. 13. Attribute Reply Message Format                                    35
  122.  
  123. 14. Directory Agent Advertisement Message Format                      37
  124.  
  125. 15. Directory Agents                                                  38
  126.     15.1. Introduction  . . . . . . . . . . . . . . . . . . . . . .   38
  127.     15.2. Finding Directory Agents  . . . . . . . . . . . . . . . .   38
  128.  
  129. 16. Scope Discovery and Use                                           40
  130.  
  131. 17. Language and Character Encoding Issues                            41
  132.     17.1. Character Encoding and String Issues  . . . . . . . . . .   42
  133.           17.1.1. Substitution of Character Escape Sequences  . . .   43
  134.     17.2. Language Dialect  . . . . . . . . . . . . . . . . . . . .   43
  135.     17.3. Language-Independent Strings  . . . . . . . . . . . . . .   44
  136.  
  137. 18. Service Location Transactions                                     44
  138.     18.1. Service Location Connections  . . . . . . . . . . . . . .   44
  139.     18.2. No Synchronous Assumption . . . . . . . . . . . . . . . .   45
  140.     18.3. Idempotency . . . . . . . . . . . . . . . . . . . . . . .   45
  141.  
  142. 19. Security Considerations                                           45
  143.  
  144. 20. String Formats used with Service Location Messages                46
  145.     20.1. Previous Responders' Address Specification  . . . . . . .   47
  146.     20.2. Formal Definition of the ``service:''  Scheme . . . . . .   47
  147.           20.2.1. Service Type String . . . . . . . . . . . . . . .   48
  148.     20.3. Attribute Information . . . . . . . . . . . . . . . . . .   48
  149.     20.4. Address Specification in Service Location . . . . . . . .   49
  150.     20.5. Attribute Value encoding rules  . . . . . . . . . . . . .   49
  151.  
  152. 21. Implementation Requirements                                       50
  153.  
  154. 22. Configurable Parameters and Default Values                        54
  155.     22.1. Service Agent:  Use Predefined Directory Agent(s) . . . .   55
  156.     22.2. Time Out Intervals  . . . . . . . . . . . . . . . . . . .   56
  157.  
  158. 23. Non-configurable Parameters                                       56
  159.  
  160. 24. Acknowledgments                                                   57
  161.  
  162.  A. Appendix:  Technical contents of ISO 639:1988 (E/F): "Code for
  163.    the representation of names of languages"                          58
  164.  
  165.  
  166.  
  167.  
  168. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 1]
  169.  
  170. Internet Draft        Service Location Protocol         8 January 1997  
  171.  
  172.  
  173.  B. Appendix:  For Further Reading                                    59
  174.  
  175.  
  176. 1. Introduction
  177.  
  178.    Traditionally, users find services by using the name of a network
  179.    host (a human readable text string) which is an alias for a network
  180.    address.  The Service Location Protocol eliminates the need for
  181.    a user to know the name of a network host supporting a service.
  182.    Rather, the user supplies a set of attributes which describe the
  183.    service.  The Service Location Protocol allows the user to bind this
  184.    description to the network address of the service.
  185.  
  186.    Service Location provides a dynamic configuration mechanism for
  187.    applications in local area networks.  It is not a global resolution
  188.    system for the entire Internet; rather it is intended to serve
  189.    enterprise networks with shared services.  Applications are modeled
  190.    as clients that need to find servers attached to the enterprise
  191.    network at a possibly distant location.  For cases where there are
  192.    many different clients and/or services available, the protocol
  193.    is adapted to make use of nearby Directory Agents that offer a
  194.    centralized repository for advertised services.
  195.  
  196.  
  197. 2. Terminology
  198.  
  199.       User Agent (UA)
  200.                A process working on the user's behalf to acquire service
  201.                attributes and configuration.  The User Agent retrieves
  202.                service information from the Service Agents or Directory
  203.                Agents.
  204.  
  205.       Service Agent (SA)
  206.                A process working on the behalf of one or more services
  207.                to advertise service attributes and configuration.
  208.  
  209.       Service Information
  210.                A collection of attributes and configuration information
  211.                associated with a single service.  The Service Agents
  212.                advertise service information for a collection of service
  213.                instances.
  214.  
  215.       Service
  216.                The service is a process or system providing a facility
  217.                to the network.  The service itself is accessed using
  218.                a communication mechanism external to the the Service
  219.                Location Protocol.
  220.  
  221.  
  222.  
  223.  
  224. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 2]
  225.  
  226. Internet Draft        Service Location Protocol         8 January 1997  
  227.  
  228.  
  229.       Directory Agent (DA)
  230.                A process which collects information from Service Agents
  231.                to provide a single repository of service information
  232.                in order to centralize it for efficient access by User
  233.                Agents.  There can only be one DA present per given host.
  234.  
  235.       Service Type
  236.                Each type of service has a unique Service Type string.
  237.                The Service Type defines a template including expected
  238.                attributes, values and protocol behavior.
  239.  
  240.       Naming Authority
  241.                The agency or group which catalogues given Service Types
  242.                and Attributes.  The default Naming Authority is IANA.
  243.  
  244.       Keyword
  245.                A string describing a characteristic of a service.
  246.  
  247.       Attribute
  248.                A (class, value-list) pair of strings describing a
  249.                characteristic of a service.  The value string may be
  250.                interpreted as a boolean, integer or opaque value if it
  251.                takes specific forms (see section 20.5).
  252.  
  253.       Predicate
  254.                A boolean expression of attributes, relations and logical
  255.                operators.  The predicate is used to find services which
  256.                satisfy particular requirements.  See section 5.3.
  257.  
  258.       Scope
  259.                A collection of services that make up a logical group.
  260.                See sections 16 and 3.7.
  261.  
  262.       Site Network
  263.                All the hosts accessible within the Agent's multicast
  264.                radius, which defaults to a value appropriate for
  265.                reaching all hosts within a site (see section 22).  If
  266.                the site does not support multicast, the agent's site
  267.                network is restricted to a single subnet.
  268.  
  269.       Address Specification
  270.                This is the network layer protocol dependent mechanism
  271.                for specifying an Agent.  For Internet systems this is
  272.                part of a URL (Universal Resource Locator - see [7]).
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 3]
  281.  
  282. Internet Draft        Service Location Protocol         8 January 1997  
  283.  
  284.  
  285. 2.1. Notation Conventions
  286.  
  287.       CAPS   Strings which appear in all capital letters are protocol
  288.              literal.  All string comparison is case insensitive,
  289.              however, (see section 5.5).  Some strings are quoted in
  290.              this document to indicate they should be used literally.
  291.              Single characters inside apostrophes are included
  292.              literally.
  293.  
  294.       <>     Values set off in this manner are fully described in
  295.              section 20.  In general, all definitions of items in
  296.              messages are described in section 20 or immediately
  297.              following their first use.
  298.  
  299.       |  |
  300.       \  \   Message layouts with this notation indicate a variable
  301.       |  |   length field.
  302.  
  303.  
  304. 2.2. Service Information and Predicate Representation
  305.  
  306.    Service information is represented in a text format.  The goal is
  307.    that the format be human readable and transmissible via email.  The
  308.    location of network services is encoded as a Universal Resource
  309.    Locator (URL) which is also human readable and well defined.  Only
  310.    the datagram headers are encoded in a form which is not human
  311.    readable.  Strings used in the Service Location Protocol are NOT
  312.    null-terminated.
  313.  
  314.    Predicates are expressed in a simple boolean notation using keywords,
  315.    attributes, and logical connectives, as described in Section 5.4.
  316.    The logical connectives and subexpressions are presented in
  317.    prefix-order, so that the connective comes first and the expressions
  318.    it operates on follow afterwards.
  319.  
  320.  
  321. 2.3. Specification Language
  322.  
  323.    In this document, several words are used to signify the requirements
  324.    of the specification.  These words are often capitalized.
  325.  
  326.       MUST       This word, or the adjective "required", means that
  327.                  the definition is an absolute requirement of the
  328.                  specification.
  329.  
  330.       MUST NOT   This phrase means that the definition is an absolute
  331.                  prohibition of the specification.
  332.  
  333.  
  334.  
  335.  
  336. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 4]
  337.  
  338. Internet Draft        Service Location Protocol         8 January 1997  
  339.  
  340.  
  341.       SHOULD     This word, or the adjective "recommended", means
  342.                  that, in some circumstances, valid reasons may exist
  343.                  to ignore this item, but the full implications must
  344.                  be understood and carefully weighed before choosing
  345.                  a different course.  Unexpected results may result
  346.                  otherwise.
  347.  
  348.       MAY        This word, or the adjective "optional", means that this
  349.                  item is one of an allowed set of alternatives.  An
  350.                  implementation which does not include this option MUST
  351.                  be prepared to interoperate with another implementation
  352.                  which does include the option.
  353.  
  354.       silently discard
  355.                  The implementation discards the datagram without
  356.                  further processing, and without indicating an error
  357.                  to the sender.  The implementation SHOULD provide the
  358.                  capability of logging the error, including the contents
  359.                  of the discarded datagram, and SHOULD record the event
  360.                  in a statistics counter.
  361.  
  362.  
  363. 3. Protocol Overview
  364.  
  365.    The basic operation in Service Location is that a client attempts
  366.    to discover the location of a Service.  In smaller installations,
  367.    each service will be configured to respond individually to each
  368.    client.  In larger installations, services will register their
  369.    services with one or more Directory Agents, and clients will
  370.    contact the Directory Agent to fulfill requests for Service Location
  371.    information.  Clients may discover the whereabouts of a Directory
  372.    Agent by preconfiguration, DHCP [2, 10], or by issuing queries to the
  373.    Directory Agent Discovery multicast address.
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 5]
  393.  
  394. Internet Draft        Service Location Protocol         8 January 1997  
  395.  
  396.  
  397. 3.1. Protocol Transactions
  398.  
  399.    The diagram below illustrates the relationships described below:
  400.  
  401.       +---------------+   we want this info:     +-----------+
  402.       |  Application  | - - - - - - - - - - - -> |  Service  |
  403.       +---------------+                          +-----------+
  404.            /|\                                      |     |
  405.             |                         +-------------+     |
  406.             |                         |                   |
  407.            \|/                       \|/                 \|/
  408.       +---------------+          +-----------+      +----------------+
  409.       |   User Agent  |<-------->|  Service  |      |    Service     |
  410.       +---------------+          |   Agent   |      | Agent which    |
  411.             |                    +-----------+      | does not reply |
  412.             |                         |             | to UA requests |
  413.             |                        \|/            +----------------+
  414.             |                   +-------------+           |
  415.             +------------------>|  Directory  |<----------+
  416.                                 |    Agent    |
  417.                                 +-------------+      ___________
  418.                                      /|\            / Many other\
  419.                                       +------------>|   SA's    |
  420.                                                     \___________/
  421.  
  422.    The following describes the operations a User Agent would employ
  423.    to find services on the site's network.  The User Agent needs no
  424.    configuration to begin network interaction.  The User Agent can
  425.    acquire information to construct predicates which describe the
  426.    services that match the user's needs.  The User Agent may build on
  427.    the information received in earlier network requests to find the
  428.    Service Agents advertising service information.
  429.  
  430.    A User Agent will operate two ways:  If the User Agent has already
  431.    obtained the location of a Directory Agent, the User Agent will
  432.    unicast a request to it in order to resolve a particular request.
  433.    The Directory Agent will unicast a reply to the User Agent.  The
  434.    User Agent will retry a request to a Directory Agent until it gets
  435.    a reply, so if the Directory Agent cannot service the request (say
  436.    it has no information) it must return an response with zero values,
  437.    possibly with an error code set.
  438.  
  439.    If the User Agent does not have knowledge of a Directory Agent or if
  440.    there are no Directory Agents available on the site network, a second
  441.    mode of discovery is used.  The User Agent multicasts a request to
  442.    the service-specific multicast address, to which the service it
  443.    wishes to locate will respond.  All the Service Agents which are
  444.    listening to this multicast address will respond, provided they can
  445.  
  446.  
  447.  
  448. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 6]
  449.  
  450. Internet Draft        Service Location Protocol         8 January 1997  
  451.  
  452.  
  453.    satisfy the User Agent's request.  A similar mechanism is used for
  454.    Directory Agent discovery; see section 5.2.  Service Agents which
  455.    have no information for the User Agent MUST NOT respond.
  456.  
  457.    When a User Agent wishes to obtain an enumeration of ALL services
  458.    which satisfy the query, a retransmission/convergence algorithm is
  459.    used.  The User Agent resends the request, together with a list of
  460.    previous responders.  Only those Service Agents which are not on
  461.    the list respond.  Once there are no new responses to the request
  462.    the accumulation of responses is deemed complete.  Depending on the
  463.    length of the request, around 60 previous responders may be listed
  464.    in a single datagram.  If there are more responders than this, the
  465.    scaling mechanisms described in section 3.7 should be used.
  466.  
  467.    While the multicast/convergence model may be important for
  468.    discovering services (such as Directory Agents) it is the exception
  469.    rather than the rule.  Once a User Agent knows of the location of a
  470.    Directory Agent, it will use a unicast request/response transaction.
  471.  
  472.    The Service Agent SHOULD listen for multicast requests on the
  473.    service-specific multicast address, and MUST register with an
  474.    available Directory Agent.  This Directory Agent will resolve
  475.    requests from User Agents as described above.  This means that
  476.    a Directory Agent must first be discovered, using the multicast
  477.    mechanism described above.
  478.  
  479.    A Service Agent which does not respond to multicast requests will not
  480.    be useful in the absence of Directory Agents.  Some Service Agents
  481.    may not include this functionality, if an especially light-weight
  482.    implementation is required.
  483.  
  484.    If the service is to become unavailable, it should be deregistered
  485.    with the Directory Agent.  The Directory Agent responds with an
  486.    acknowledgment to either a registration or deregistration.  Service
  487.    Registrations include a Lifetime value and will eventually expire.
  488.    Service Registrations need to be refreshed by the Service Agent
  489.    before their Lifetime runs out.
  490.  
  491.  
  492. 3.2. Schemes
  493.  
  494.    The Service Location Protocol, designed as a way for clients to
  495.    access resources on the network, is a natural application for
  496.    Universal Resource Locators (URLs).  It is intended that by re-using
  497.    URL specification and technology from the World Wide Web, clients and
  498.    servers will be more flexible and able to be written using already
  499.    existing code.  Moreover, it is hoped that browsers will be written
  500.    to take advantage of the similarity in locator format, so that a
  501.  
  502.  
  503.  
  504. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 7]
  505.  
  506. Internet Draft        Service Location Protocol         8 January 1997  
  507.  
  508.  
  509.    client can dynamically formulate requests for services that are
  510.    resolved differently depending upon the circumstances.  There is
  511.    the possibility for beneficial interaction between Directory Agents
  512.    and Web Browsers which we wish to facilitate by means of compatible
  513.    locator format.
  514.  
  515.  
  516. 3.2.1. The ``service:''  URL scheme
  517.  
  518.    The service URL scheme is used by Service Location.  It is used to
  519.    specify a Service Location.  Many Service Types will be named by
  520.    including a scheme name after the ``service:''  scheme name.  Service
  521.    Types are used by SAs to register and deregister Services with DAs.
  522.    It is also used by SAs and DAs to return Service Replies to UAs.  The
  523.    formal definition of the ``service:''  URL scheme is in section 20.2.
  524.    The format of the information which follows the ``service:''  scheme
  525.    should as closely as possible follow the URL structure and semantics
  526.    as formalized by the IETF standardization process.
  527.  
  528.    Well known Service Types are registered with the IANA and templates
  529.    are available as RFCs.  Private Service Types may also be supported.
  530.  
  531.  
  532. 3.3. Standard Attribute Definitions
  533.  
  534.    Service Types used with the Service Location Protocol must describe
  535.    the following:
  536.  
  537.          Service Type string of the service
  538.          Service-specific multicast address, if used
  539.          Attributes and Keywords
  540.          Attribute Descriptions and interpretations
  541.  
  542.    Service Types note registered with IANA will use their own Naming
  543.    Authority string and, possibly, a service-specific multicast
  544.    address from the unassigned range.  This is only an option for
  545.    a site-specific deployment, as there may be conflicts with this
  546.    multicast address somewhere, in some other site.
  547.  
  548.    If a service-specific multicast address is not supplied by a
  549.    standards document registered with IANA, nor is a site specific
  550.    address being used, the Service Location General Multicast address
  551.    is the default.  All Service Agents SHOULD listen to this address,
  552.    especially if they have not registered their service information
  553.    with any Directory Agent.  The service-specific multicast address is
  554.    merely used for efficiency and is not strictly needed for correct
  555.    operation.
  556.  
  557.  
  558.  
  559.  
  560. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 8]
  561.  
  562. Internet Draft        Service Location Protocol         8 January 1997  
  563.  
  564.  
  565.    Services which advertise a particular Service Type must support the
  566.    complete set of standardized attributes.  They may support additional
  567.    attributes, beyond the standardized set.  Unrecognized attributes
  568.    MUST be ignored by User Agents.
  569.  
  570.    Service Type names which begin with "x-" are guaranteed not to
  571.    conflict with any officially registered Service Type names.  It
  572.    is suggested that this prefix be used for experimental or private
  573.    Service Type names.  Similarly, attribute names which begin with "x-"
  574.    are guaranteed not to be used for any officially registered attribute
  575.    names.
  576.  
  577.    A service of a given Service Type should accept the networking
  578.    protocol which is implied in its definition.  If a Service Type
  579.    can accept multiple protocols, configuration information SHOULD
  580.    be included in the Service Type attribute information.  This
  581.    configuration information will enable an application to use the
  582.    results of a Service Request and Attribute Request to directly
  583.    connect to a service.
  584.  
  585.    See section 20.2.1 for the format of a Service Type String as used in
  586.    the Service Location Protocol.
  587.  
  588.  
  589. 3.4. Naming Authority
  590.  
  591.    The Naming Authority of a service defines the meaning of the
  592.    Service Types and attributes registered with and provided by Service
  593.    Location.  The Naming Authority itself is a string which uniquely
  594.    identifies an organization.  If no string is provided IANA is the
  595.    default.
  596.  
  597.    Naming Authorities may define Service Types which are experimental,
  598.    proprietary or for private use.  The procedure to use is to create
  599.    a 'unique' Naming Authority string and then specify the Standard
  600.    Attribute Definitions as described above.  This Naming Authority will
  601.    accompany registration and queries, as described in sections 9 and 5.
  602.  
  603.  
  604. 3.5. Interpretation of Service Location Replies
  605.  
  606.    Replies should be considered to be valid at the time of delivery.
  607.    The service may, however, fail or change between the time of the
  608.    reply and the moment an application seeks to make use of the service.
  609.    The application making use of Service Location MUST be prepared for
  610.    the possibility that the service information provided is either stale
  611.    or incomplete.  In the case where the service information provided
  612.  
  613.  
  614.  
  615.  
  616. Veizades,Guttman,Perkins,Kaplan       Expires 8 July 1997       [Page 9]
  617.  
  618. Internet Draft        Service Location Protocol         8 January 1997  
  619.  
  620.  
  621.    does not allow a User Agent to connect to a service as desired, the
  622.    Service Request and/or Attribute Request may be resubmitted.
  623.  
  624.    Service specific configuration information (such as which protocol
  625.    to use) should be included as attribute information in Service
  626.    Registrations.  These configuration attributes will be used by
  627.    applications which interpret the Service Location Reply.
  628.  
  629.  
  630. 3.6. Use of TCP, UDP and Multicast in Service Location
  631.  
  632.    The Service Location Protocol requires the implementation of
  633.    connectionless and a connection oriented transport protocols.  The
  634.    latter is used for bulk transfer, only when necessary.  Connections
  635.    are always initiated by an agent request or registration, not
  636.    by a replying Directory Agent.  The Service Location discovery
  637.    mechanisms use possibly internetwork-wide multicast.  The protocol
  638.    will operate in a broadcast environment with limitations detailed in
  639.    section 3.6.1.
  640.  
  641.  
  642. 3.6.1. Multicast vs.  Broadcast
  643.  
  644.    The Service Location Protocol was designed for use in networks where
  645.    multicast at the network layer is supported; in some instances
  646.    multicast may not be supported.  To support this protocol in networks
  647.    where multicast is not supported the following modifications are
  648.    made to support the protocol in an environment where network layer
  649.    broadcast is supported.
  650.  
  651.  
  652. 3.6.1.1. Single Subnet
  653.  
  654.    If a network is not connected to any other networks simple network
  655.    layer broadcasts will work in place of multicast.
  656.  
  657.    Service Agents SHOULD and Directory Agents MUST listen for broadcast
  658.    Service Location request messages to the Service Location port.  This
  659.    allows UAs which lack multicast capabilities to still make use of
  660.    Service Location on a single subnet.
  661.  
  662.  
  663. 3.6.1.2. Multiple Subnets
  664.  
  665.    The Directory Agent provides a central clearing house of information
  666.    for User Agents.  If the network is designed so that a Directory
  667.    Agent address is statically configured with each User Agent
  668.    and Service Agent, the Directory Agent will act as a bridge for
  669.  
  670.  
  671.  
  672. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 10]
  673.  
  674. Internet Draft        Service Location Protocol         8 January 1997  
  675.  
  676.  
  677.    information that resides on different subnets.  The Directory Agent
  678.    address can be dynamically configured with Agents using DHCP or
  679.    staticly configured, but Agents will not be able to discover DAs on
  680.    non-bridged subnets.
  681.  
  682.    As dynamic discovery is not feasible in a broadcast environment with
  683.    multiple subnets and manual configuration is difficult, deploying
  684.    multiple DAs in multiple subnets will require use of multicast
  685.    discovery with multiple hops (i.e., TTL > 1 in the IP header).
  686.  
  687.  
  688. 3.6.2. Service-Specific Multicast Address
  689.  
  690.    Each service type MAY have a unique multicast address which is
  691.    expected to be used for discovering services of that type.  This
  692.    multicast address may be obtained from the naming authority (e.g.,
  693.    IANA). This mechanism is used so that the number of datagrams any one
  694.    service agent receives is minimized.  The Service Location General
  695.    Multicast Address may be used to query for any service, though one
  696.    should use the service-specific multicast address if it exists.
  697.  
  698.    If the site network does not support multicast then the query
  699.    should be broadcast to the Service Location port.  If the underlying
  700.    hardware will not support the number of needed multicast addresses
  701.    the Service Location General Multicast Address may be used.
  702.    Service Agents listen on this multicast address as well as the
  703.    service-specific multicast addresses for the service types they
  704.    advertise.
  705.  
  706.  
  707. 3.7. Service Location Scaling, and Multicast Operating Modes
  708.  
  709.    In a very small network, with few nodes, no DA is required.  A User
  710.    Agent can detect services by multicasting requests.  Service Agents
  711.    will then reply to them.  Further, Service Agents which respond to
  712.    user requests must be used to make service information available.
  713.    This does not scale to environments with many hosts and services.
  714.  
  715.    When scaling Service Location systems to intermediate sized networks,
  716.    a central repository (Directory Agent) may be added to reduce the
  717.    number of Service Location messages transmitted in the network
  718.    infrastructure.  Since the central repository can respond to
  719.    all Service and Attribute Requests, fewer Service and Attribute
  720.    Replies will be needed; for the same reason, there is no need to
  721.    differentiate between Directory Agents.
  722.  
  723.    A site may also grow to such a size that it is not feasible to
  724.    maintain only one central repository of service information.  In this
  725.  
  726.  
  727.  
  728. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 11]
  729.  
  730. Internet Draft        Service Location Protocol         8 January 1997  
  731.  
  732.  
  733.    case more Directory Agents are needed.  The services (and service
  734.    agents) advertised by the several Directory Agents are collected
  735.    together into logical groupings called "Scopes".
  736.  
  737.    All Service Registrations that have a Scope must be registered with
  738.    all DAs (within the appropriate multicast radius) of that Scope which
  739.    have been or are subsequently discovered.  Service Registrations
  740.    which have no Scope are only registered with unscoped DAs.  User
  741.    Agents make requests of DAs whose Scope they are configured to use.
  742.  
  743.    Service Agents MUST register with unscoped DAs even if they are
  744.    configured to specifically register with DAs which have a specific
  745.    Scope or set of Scopes.  User Agents MAY query DAs without Scopes,
  746.    even if they are configured to use DAs with a certain Scope.  This
  747.    is because any DA with no Scope will have all the available service
  748.    information.
  749.  
  750.    Scoped User Agents SHOULD always use a DA which supports their
  751.    configured Scope when possible instead of an unscoped DA. This will
  752.    prevent the unscoped DAs from becoming overused and thus a scaling
  753.    problem.
  754.  
  755.    It is possible to specially configure Service Agents to register
  756.    only with a specific set of DAs (see Section 22.1).  In that case,
  757.    services may not be available to User Agents via all Directory
  758.    Agents, but some network administrators may deem this appropriate.
  759.  
  760.    There are thus 3 distinct operating modes.  The first requires no
  761.    administrative intervention.  The second requires only that a DA be
  762.    run.  The last requires that all DAs be configured to have Scope and
  763.    that a coherent strategy of assigning Scopes to services be followed.
  764.    Users must be instructed which Scopes are appropriate for them to
  765.    use.  This administrative effort will allow users and applications to
  766.    subsequently dynamically discover services without assistance.
  767.  
  768.    The first mode (no DAs) is intended for a LAN. The second mode
  769.    (using a DA or DAs, but not using Scopes) scales well to a group
  770.    of interconnected LANs with a limited number of hosts.  The third
  771.    mode (with DAs and Scopes) allows the SLP protocol to be used in an
  772.    internetworked campus environment.
  773.  
  774.    If Scoped DAs are used, they will not accept unscoped registrations
  775.    or requests.  UAs which issue unscoped requests will discover only
  776.    unscoped services.  They SHOULD use a Scope in their requests if
  777.    possible and SHOULD use a DA with their Scope in preference to an
  778.    unscoped DA. In a large campus environment it would be a bad idea to
  779.    have ANY unscoped DAs:  They attract ALL registrations and will thus
  780.    present a scaling problem eventually.
  781.  
  782.  
  783.  
  784. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 12]
  785.  
  786. Internet Draft        Service Location Protocol         8 January 1997  
  787.  
  788.  
  789.    A subsequent protocol document will describe mechanisms for
  790.    supporting a service discovery protocol for the global Internet.
  791.  
  792.  
  793. 4. Service Location General Message Format
  794.  
  795.    The following header is used in all of the message descriptions below
  796.    and is abbreviated by using "Service Location header =" followed by
  797.    the function being used.
  798.  
  799.       0                   1                   2                   3
  800.       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
  801.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  802.      |    Version    |    Function   |            Length             |
  803.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  804.      |O|M|   rsvd    |    Dialect    |        Language Code          |
  805.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  806.      |        Char Encoding          |              XID              |
  807.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  808.  
  809.       Version  This protocol document defines version 1 of the Service
  810.                Location protocol.
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 13]
  841.  
  842. Internet Draft        Service Location Protocol         8 January 1997  
  843.  
  844.  
  845.       Function Service Location datagrams can be identified as to their
  846.                operation by the function field.  The following are the
  847.                defined operations:
  848.  
  849.                Message Type             Abbreviation     Function Value
  850.  
  851.                Service Request          SrvReq               1
  852.                Service Reply            SrvRply              2
  853.                Service Registration     SrvReg               3
  854.                Service Deregister       SrvDereg             4
  855.                Service Acknowledge      SrvAck               5
  856.                Attribute Request        AttrRqst             6
  857.                Attribute Reply          AttrRply             7
  858.                DA Advertisement         DAAdvert             8
  859.                Service Type Request     SrvTypeRqst          9
  860.                Service Type Reply       SrvTypeRply          10
  861.  
  862.  
  863.       Length   The number of bytes in the message, including the Service
  864.                Location Header.
  865.  
  866.       O        The 'Overflow' bit.  See Section 18 for the use of this
  867.                field.
  868.  
  869.       M        The 'Monolingual' bit.  Requests with this bit set
  870.                indicate the User Agent will only accept responses in
  871.                the language (see section 17) that is indicated by the
  872.                Service or Attribute Request.
  873.  
  874.       rsvd     MUST be zero.
  875.  
  876.       Dialect  Dialect tags are used in Service Location messages to
  877.                indicate a variant of vocabulary used.
  878.  
  879.       Language Code
  880.                Strings within the remainder of the message which follows
  881.                are to be interpreted in the language encoded (see
  882.                appendix A) in this field.  This header field MUST be
  883.                set.  See also section 17.
  884.  
  885.       Character Encoding
  886.                The characters making up strings within the remainder of
  887.                the message may be encoded in any standardized encoding
  888.                (see section 17.1).  This header field MUST be set.
  889.  
  890.       Transaction Identifier (XID)
  891.                The XID (transaction ID) field allows the requester to
  892.                match replies to individual requests (see section 4.1).
  893.  
  894.  
  895.  
  896. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 14]
  897.  
  898. Internet Draft        Service Location Protocol         8 January 1997  
  899.  
  900.  
  901.    When URLs are registered, they have lengths and lifetimes.  These
  902.    two values are associated with the URL for the duration of the
  903.    registration.  The triplet (length, lifetime, URL) is known as a
  904.    "URL-entry", and has the following format when used in Service
  905.    Replies and Service Registrations:
  906.  
  907.       0                   1                   2                   3
  908.       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
  909.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  910.      |           Lifetime            |        Length of URL          |
  911.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  912.      |                                                               |
  913.      \                              URL                              \
  914.      |                                                               |
  915.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  916.  
  917.    The URL conforms to RFC 1738 [7].  If the scheme used in the URL does
  918.    not have a standardized representation, the minimal requirement is:
  919.  
  920.       service:<srvtype>://<addr-spec>
  921.  
  922.    The "SERVICE" string is the URL scheme of all Service Location
  923.    Information included in Service Registrations and Service Replies.
  924.    Each entry in the Reply will always have a <srvtype>.  It may also
  925.    include an <addr-spec> except in the case of a reply to a Service
  926.    Type request (see section 7).
  927.  
  928.  
  929. 4.1. Use of Transaction IDs (XIDs)
  930.  
  931.    Retransmission is used to ensure reliable transactions in the
  932.    Service Location Protocol.  If a User Agent or Service Agent sends
  933.    a message and fails to receive an expected response, the message
  934.    will be sent again.  Retransmission of the same Service Location
  935.    datagram should not contain an updated XID. It is quite possible the
  936.    original request reached the DA or SA, but reply failed to reach the
  937.    requester.  Using the same XID allows the DA or SA to cache its reply
  938.    to the original request and then send it again, should a duplicate
  939.    request arrive.  This cached information should only be held very
  940.    briefly (CONFIG_INTERVAL_0.)  Any registration or deregistration at
  941.    a Directory Agent, or change of service information at a SA should
  942.    flush this cache so that the information returned to the client is
  943.    always valid.
  944.  
  945.    The requester creates the XID from an initial random seed and
  946.    increments it by one for each request it makes.  The XIDs will
  947.    eventually wrap back to zero and continue incrementing from there.
  948.  
  949.  
  950.  
  951.  
  952. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 15]
  953.  
  954. Internet Draft        Service Location Protocol         8 January 1997  
  955.  
  956.  
  957.    Directory Agents use XID values in their DA Advertisements to
  958.    indicate their state (see section 15.2).
  959.  
  960.  
  961. 4.2. URL Entry Lifetime
  962.  
  963.    The Lifetime field is set to the number of seconds the reply can be
  964.    cached by any agent.  A value of 0 means the information must not
  965.    be cached.  User Agents MAY cache service information, but if they
  966.    do, they must provide a way for applications to flush this cached
  967.    information and issue the request directly onto the network.
  968.  
  969.    Services should be registered with DAs with a Lifetime, the suggested
  970.    value being CONFIG_INTERVAL_1.  The service must be reregistered
  971.    before this interval elapses, or the service advertisement will
  972.    no longer be available.  Thus, services which vanish and fail to
  973.    deregister eventually become automatically deregistered.
  974.  
  975.  
  976. 5. Service Request Message Format
  977.  
  978.    The Service Request is used to obtain URLs from a Directory Agent or
  979.    Service Agents.
  980.  
  981.    The format of the Service Request is as follows:
  982.  
  983.       0                   1                   2                   3
  984.       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
  985.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  986.      |         Service Location header (function = SrvReq)           |
  987.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  988.      |length of prev resp list string|<Previous Responders Addr Spec>|
  989.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  990.      |                                                               |
  991.      \                  <Previous Responders Addr Spec>              \
  992.      |                                                               |
  993.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  994.      |  length of predicate string   |  Service Request <predicate>  |
  995.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  996.      |                                                               |
  997.      \               Service Request <predicate>, contd.             \
  998.      |                                                               |
  999.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1000.  
  1001.    The <Previous Responders Addr Spec> is described in sections 7
  1002.    and 20.1.
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 16]
  1009.  
  1010. Internet Draft        Service Location Protocol         8 January 1997  
  1011.  
  1012.  
  1013.    After a User Agent restarts (say, after rebooting of a system,
  1014.    loading of the network kernel), Service Requests should be delayed
  1015.    for some random time uniformly distributed within a one second
  1016.    interval centered about a configured delay value (by default,
  1017.    CONFIG_INTERVAL_4).
  1018.  
  1019.    The Service Request allows the User Agent to specify the Service Type
  1020.    of the service and a Predicate in a specific language.  The general
  1021.    form of a Service Request is shown below:
  1022.  
  1023.       <srvtype>[.<na>]/[<scope>]/[<where>]/
  1024.  
  1025.    The punctuation is necessary even where the fields are omitted.
  1026.  
  1027.     -  The <srvtype> refers to the Service Type.  For each type of
  1028.        service available, there is a unique Service type name string.
  1029.        See section 20.2.1.
  1030.  
  1031.     -  The <na> is the Naming Authority.  This string determines the
  1032.        semantic interpretation of the attribute information in the
  1033.        <where> part of the Service Request.
  1034.  
  1035.     -  The <scope> is a string used to restrict the range of the query.
  1036.        Scope is determined administratively, at a given site.  It is
  1037.        not necessarily related to network topology (see Section 16).
  1038.        Leaving this field out means that the request can be satisfied
  1039.        only by unscoped service advertisements.
  1040.  
  1041.     -  The <where> string is the Where Clause of the request.  It
  1042.        contains query which specify which service instances the User
  1043.        Agent is interested in.  The query includes attributes, boolean
  1044.        operators and relations.  (See section 5.3.)
  1045.  
  1046.    In the case of a multicast Service request, a list of previous
  1047.    responders is sent.  This list will prevent those in the list from
  1048.    responding, to be sure that responses from other sources are not
  1049.    drowned out.  The request is multicast repeatedly (with a recommended
  1050.    wait interval of CONFIG_INTERVAL_2) until there are no new responses,
  1051.    or a certain time (CONFIG_INTERVAL_3) has elapsed.  Different timing
  1052.    values are applied to a Service Request used for Directory Agent
  1053.    Discovery, see Section 5.2.
  1054.  
  1055.    In order for a request to succeed in matching registered information,
  1056.    the following conditions must be met:
  1057.  
  1058.     1. The result must have the same Service Type as the request.
  1059.  
  1060.     2. It must have the same Naming Authority.
  1061.  
  1062.  
  1063.  
  1064. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 17]
  1065.  
  1066. Internet Draft        Service Location Protocol         8 January 1997  
  1067.  
  1068.  
  1069.     3. It must have the same Scope.  (If the <scope> of the request
  1070.        was omitted, the request will only match services which were
  1071.        registered with no Scope.  Note that a Scoped request WILL match
  1072.        all unscoped Services).
  1073.  
  1074.     4. The conditions specified in the Where Clause must match the
  1075.        attributes and keywords registered for the service.
  1076.  
  1077.  
  1078. 5.1. Service Request Usage
  1079.  
  1080.    The User Agent may form Service Requests using preconfigured
  1081.    knowledge of a Service Type's attributes.  It may also issue
  1082.    Attribute Requests to obtain the attribute values for a Service Type
  1083.    before issuing Service Requests (see Section  12).  Having obtained
  1084.    the attributes which describe a particular kind of service from an
  1085.    Attribute Request, (or using configured knowledge of a service's
  1086.    attributes,) the User Agent can build a predicate that describes the
  1087.    service needs of the user.
  1088.  
  1089.    Service Requests may be sent directly to a Directory Agent.  Suppose
  1090.    a printer supporting the lpr protocol is needed on the 12th floor
  1091.    which has UNRESTRICTED_ACCESS and prints 12 pages per minute.
  1092.    Suppose further that a Attribute Request indicates that there is a
  1093.    printer on the 12th floor, a printer that prints 12 pages per minute,
  1094.    and a printer that offers UNRESTRICTED_ACCESS. To check whether they
  1095.    are same printer, issue the following request:
  1096.  
  1097.       lpr//(& (PAGES PER MINUTE==12)
  1098.                (UNRESTRICTED_ACCESS)
  1099.                (LOCATION==12TH FLOOR))/
  1100.  
  1101.    Suppose there is no such printer.  The Directory Agent responds
  1102.    with a Service Reply with 0 in the number of responses and no reply
  1103.    values.
  1104.  
  1105.    The User Agent then tries a less restrictive query to find a printer,
  1106.    using the 12th floor as "where" criteria.
  1107.  
  1108.       lpr//(LOCATION==12TH FLOOR)/
  1109.  
  1110.    In this case, there is now only one reply:
  1111.  
  1112.       Returned URL:   service:lpr://igore.wco.ftp.com:515/draft
  1113.  
  1114.    The Address Specification for the printer is:  igore.wco.ftp.com:515.
  1115.    This is the location of the printer.  Files would be printed by
  1116.  
  1117.  
  1118.  
  1119.  
  1120. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 18]
  1121.  
  1122. Internet Draft        Service Location Protocol         8 January 1997  
  1123.  
  1124.  
  1125.    spooling to that port on that host.  The word 'draft' refers to the
  1126.    name of the print queue the lpr server supports.
  1127.  
  1128.    In the absence of a Directory Agent, the request above could
  1129.    be multicast.  In this case it would be sent to the printer
  1130.    Multicast Address and not to the Directory Agent.  Service Agents
  1131.    that can satisfy the predicate will reply.  Service Agents which
  1132.    cannot support the character set of the request MUST return
  1133.    CHARSET_NOT_UNDERSTOOD in the SrvRply.  In all other circumstances,
  1134.    Service Agents which cannot satisfy the reply do not send any reply
  1135.    at all.
  1136.  
  1137.    The only way a User Agent can be sure there are no services which
  1138.    match the query is by retrying the request (CONFIG_INTERVAL_8).  If
  1139.    no response comes, the User Agent gives up and assumes there are no
  1140.    such printers.
  1141.  
  1142.    Another form of query is a simpler 'join' query.  Its syntax has no
  1143.    parentheses or logical operators.  Each term is conjoined (AND-ed
  1144.    together.)  Rewriting the initial query provides an example:
  1145.  
  1146.       lpr//PAGES PER MINUTE==12,
  1147.            UNRESTRICTED_ACCESS,
  1148.            LOCATION==12TH FLOOR/
  1149.  
  1150.  
  1151. 5.2. Directory Agent Discovery Request
  1152.  
  1153.    Normally a Service Request returns a Service Reply.  The sole
  1154.    exception to this is a Service Request for the Service Type
  1155.    "directory-agent".  This Service Request is answered with a DA
  1156.    Advertisement.
  1157.  
  1158.    Without configured knowledge of a Directory Agent (DA), a User Agent
  1159.    or Service Agent uses a Service Request to discover a DA. (See
  1160.    section 15.1 for mechanisms by which a client may be configured to
  1161.    have knowledge of a DA.) Such a Service Request used for Directory
  1162.    Agent Discovery includes a predicate of the form:
  1163.  
  1164.          directory-agent///
  1165.  
  1166.    This query is always sent to the Directory Agent Discovery multicast
  1167.    address.  The Service Type of a Directory Agent is "directory-agent",
  1168.    hence it is the Service Type used in the request.  No Scope is
  1169.    included in the request, so all Directory Agents will reply.  This is
  1170.    the only request which omits a Scope which all Directory Agents MUST
  1171.    respond to.  Normally, a Directory Agent with a Scope ONLY responds
  1172.    to requests with that Scope.  No Naming Authority is included, so
  1173.  
  1174.  
  1175.  
  1176. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 19]
  1177.  
  1178. Internet Draft        Service Location Protocol         8 January 1997  
  1179.  
  1180.  
  1181.    "IANA" is assumed.  We want to reach all the available directory
  1182.    agents.  If the Scope were supplied, only DAs supporting that Scope
  1183.    would reply.
  1184.  
  1185.    DA Advertisement Replies may arrive from different sources, similar
  1186.    in form to:
  1187.  
  1188.       URL returned:   service:directory-agent://slp-resolver.catch22.com
  1189.       Scope returned: ACCOUNTING
  1190.  
  1191.       URL returned:   service:directory-agent://204.182.15.66
  1192.       Scope returned: JANITORIAL SERVICES
  1193.  
  1194.    The DA Advertisement format is defined in Section 14.
  1195.  
  1196.    If the goal is merely to discover any Directory Agent, the first
  1197.    reply will do.  If the goal, however, is to discover all reachable
  1198.    DAs, the request must be retransmitted after an interval (the
  1199.    recommended time is CONFIG_INTERVAL_5).  This retransmitted request
  1200.    will include a list of DAs which have already responded.  See
  1201.    sections 7 and 20.1.  Directory Agents which receive the request will
  1202.    only respond if they are not on this list.  After there are no new
  1203.    replies, all DAs are presumed to have been discovered.
  1204.  
  1205.    If a DA fails to respond after CONFIG_INTERVAL_6 seconds, the UA or
  1206.    Service Agent should use a different DA. DA addresses may be cached
  1207.    from previous discovery attempts, preconfigured, or by use of DHCP
  1208.    (see section 15.2).  If no such DA responds, DA discovery should be
  1209.    used to find a new DA. Only after CONFIG_INTERVAL_7 seconds should
  1210.    it be assumed that no DA exists and multicast based Service Requests
  1211.    should be used.
  1212.  
  1213.  
  1214. 5.3. Explanation of Terms of Predicate Grammar
  1215.  
  1216.    A predicate has a simple structure, which depends on parentheses,
  1217.    commas and slashes to delimit the elements.  Examples of proper usage
  1218.    are given throughout this document.  The terms used in the grammar
  1219.    are as follows:
  1220.  
  1221.       predicate:
  1222.  
  1223.          Placed in a Service Request, this is interpreted by a Service
  1224.          Agent or Directory Agent to determine what information to
  1225.          return.
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 20]
  1233.  
  1234. Internet Draft        Service Location Protocol         8 January 1997  
  1235.  
  1236.  
  1237.       scope:
  1238.  
  1239.          If this is absent in a Service Request, the request will match
  1240.          only services registered without a Scope.  If it is present,
  1241.          only services registered under that Scope or are unscoped will
  1242.          match the request.
  1243.  
  1244.       where-clause:
  1245.  
  1246.          This determines which services the request matches.  An empty
  1247.          where-clause will match all services.  The request will be
  1248.          limited to services which have the specified Service Type, so
  1249.          the where-clause is not the sole factor in picking out which
  1250.          services match the request.
  1251.  
  1252.       where-list:
  1253.  
  1254.          The where-list is a logical expression.  It can be a single
  1255.          expression, a disjunction or a conjunction.  A single
  1256.          expression must apply for the where-clause to match.  A
  1257.          disjunction matches if any expression in the OR list matches.
  1258.          A conjunction matches only if all elements in the AND list
  1259.          match.
  1260.  
  1261.          Note that there is no logical negation operator:  This is
  1262.          because there is no notion of returning "everything except"
  1263.          what matches a given criteria.
  1264.  
  1265.          A where-list can be nested and complex.  For example, the
  1266.          following requires that three subexpressions must all be true:
  1267.  
  1268.                 (& (| <query-item> <query-item>)
  1269.                    <query-item>
  1270.                    (& <query-item> <query-item> <query-item>)
  1271.                 )
  1272.  
  1273.          Notice that white space, tabs or carriage returns can be added
  1274.          anywhere outside query-items.  Each list has 2 or more items in
  1275.          it, and lists can be nested.  Services which fulfill the entire
  1276.          logical expression match the where-clause.
  1277.  
  1278.          '(' '|' <query-item> ')' and '(' '&' <query-item> ')' are
  1279.          degenerate expressions but they should be tolerated.  They are
  1280.          equivalent to <query-item>.
  1281.  
  1282.       query-item:
  1283.  
  1284.          A query item has the form:
  1285.  
  1286.  
  1287.  
  1288. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 21]
  1289.  
  1290. Internet Draft        Service Location Protocol         8 January 1997  
  1291.  
  1292.  
  1293.                '(' <attr-tag> <comp-op> <attr-val> ')'
  1294.  
  1295.          or
  1296.  
  1297.                '(' <keyword> ')'
  1298.  
  1299.          Examples of this would be:
  1300.  
  1301.                (SOME ATTRIBUTE == SOME VALUE)
  1302.                (RESERVED)
  1303.                (QUEUE LENGTH <= 234)
  1304.  
  1305.       query-join:
  1306.  
  1307.          The query-join is a comma delimited list of conditions which
  1308.          the service must satisfy in order to match the query.  The
  1309.          items are considered to be logically conjoined.  Thus the
  1310.          query-join:
  1311.  
  1312.                ATTR1=VALUE1, KEYWORD1, KEYWORD2, ATTR2>=34
  1313.  
  1314.          is equivalent to the where-list:
  1315.  
  1316.                (& (ATTR1=VALUE1) (KEYWORD1) (KEYWORD2) (ATTR2>=34))
  1317.  
  1318.          The query-join cannot be mixed with a where-list.  It is
  1319.          provided as a convenient mechanism to provide a statement of
  1320.          necessary conditions without building a logical expression.
  1321.  
  1322.  
  1323. 5.4. Service Request Predicate Grammar
  1324.  
  1325.    Service Requests can precisely describe the services they need by
  1326.    including a Predicate the body of the Request.  This Predicate must
  1327.    be constructed according to the grammar below.
  1328.  
  1329.     <predicate>  ::= <srvtype>['.'<na>]'/'<scope>'/'<where>'/'
  1330.  
  1331.     <srvtype>    ::= string representing type of service.  Only
  1332.                      'a' to 'z', 'A' to 'Z', '+' and '-' are allowed.
  1333.  
  1334.     <na>         ::= string representing the Naming Authority.
  1335.                      Only characters from 'a' to 'z', 'A' to 'z',
  1336.                      '+' and '-' are allowed.  If this field is
  1337.                      omitted then "IANA" is assumed.
  1338.  
  1339.     <scope>      ::= string representing the directory agent scope.
  1340.                      '/', ',' (comma) and ':'  are not allowed in
  1341.  
  1342.  
  1343.  
  1344. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 22]
  1345.  
  1346. Internet Draft        Service Location Protocol         8 January 1997  
  1347.  
  1348.  
  1349.                      this string.  The scopes "LOCAL" and "REMOTE"
  1350.                      are reserved.
  1351.  
  1352.     <attr-tag>   ::= class name of an attribute of a given Service
  1353.                      Type.  This tag cannot include the following
  1354.                      characters:  '(', ')', ',', '=', '!', '>',
  1355.                      '<', '/', '*', except where escaped (see 17.1.)
  1356.  
  1357.     <keyword>    ::= a class name of an attribute which will have
  1358.                      no values.  This string has the same limits
  1359.                      as the <attr-tag>.  In addition white space
  1360.                      internal to the keyword is illegal.
  1361.  
  1362.     <where>      ::= <where-any> |
  1363.                      <where-list> |
  1364.                      <query-join>
  1365.  
  1366.     <where-any>  ::=
  1367.                      That is NOTHING or white space.
  1368.  
  1369.     <where-list> ::= '(' '&' <where-list> <query-list> ')' |
  1370.                      '(' '|' <where-list> <query-list> ')' |
  1371.                      '(' <keyword> ')'
  1372.                      '(' <attr-tag> <comp-op> <attr-val> ')'
  1373.  
  1374.     <query-list> ::= <where-list> |
  1375.                      <where-list> <query-list>
  1376.     <query-join> ::= <keyword> |
  1377.                      <join-item> |
  1378.                      <query-join> ',' <keyword> |
  1379.                      <query-join> ',' <join-item>
  1380.  
  1381.     <join-item>  ::= <attr-tag> <comp-op> <attr-val>
  1382.  
  1383.     <comp-op>    ::= "!=" | "==" | '<' | "<=" | '>' | ">="
  1384.  
  1385.     <attr-val>   ::= any string (see Section 20.5 for the ways
  1386.                      in which attr-vals are interpreted.)
  1387.                      Value strings may not contain '/', ','
  1388.                      '=', '<', '>', except where escaped (see 17.1.).
  1389.  
  1390.                      '(' and ')' may be used in attribute values
  1391.                      for the purpose of encoding a binary values.
  1392.                      Binary encodings (See 20.5) may
  1393.                      include the above reserved characters.
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 23]
  1401.  
  1402. Internet Draft        Service Location Protocol         8 January 1997  
  1403.  
  1404.  
  1405. 5.5. String Matching for Requests
  1406.  
  1407.    All strings are case insensitive, with respect to string matching on
  1408.    queries.  All preceding or trailing blanks should not be considered
  1409.    for a match, but blanks internal to a string are relevant.
  1410.    For example, "  Some String  " matches "SOME STRING",
  1411.    but not "some  string".
  1412.  
  1413.    String matching may only be performed over the same character sets.
  1414.    If a request cannot be satisfied due to a lack of support for the
  1415.    character set of the request a CHARSET_NOT_UNDERSTOOD error is
  1416.    returned.
  1417.  
  1418.    String comparisons (using comparison operators such as '<' or
  1419.    '>=') are done using lexical ordering in the character set of the
  1420.    registration, not using any language specific rules.  The ordering
  1421.    is strictly by the character value, i.e.  "0" < "A" is true when the
  1422.    character set is US-ASCII, since "0" has the value of 48 and "A" has
  1423.    the value 65.
  1424.  
  1425.    String matching is done after escape sequences have been substituted.
  1426.    See sections 17, 5.3, 17.1.
  1427.  
  1428.  
  1429. 6. Service Reply Message Format
  1430.  
  1431.    The format of the Service Reply Message is:
  1432.  
  1433.       0                   1                   2                   3
  1434.       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
  1435.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1436.      |          Service Location header (function = SrvRply)         |
  1437.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1438.      |          Error Code        |    number of replies returned    |
  1439.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1440.      |                         <URL Entry>-1                         |
  1441.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1442.      |                              .                                |
  1443.      \                              .                                \
  1444.      |                              .                                |
  1445.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1446.      |                         <URL Entry>-N                         |
  1447.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1448.  
  1449.    Each Service Reply message is composed of a list of URL Entries.
  1450.  
  1451.    The Error Code may have one of the following values:
  1452.  
  1453.  
  1454.  
  1455.  
  1456. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 24]
  1457.  
  1458. Internet Draft        Service Location Protocol         8 January 1997  
  1459.  
  1460.  
  1461.       0        Success
  1462.  
  1463.       LANGUAGE_NOT_SUPPORTED
  1464.                A SA or DA returns this when a request is received
  1465.                from a UA which is in a language for which there is no
  1466.                registered Service Information and the request arrived
  1467.                with the Monolingual bit set.  See Section 17.
  1468.  
  1469.       PROTOCOL_PARSE_ERROR
  1470.                A SA or DA returns this error when a SrvReq is received
  1471.                which cannot be parsed.
  1472.  
  1473.       SCOPE_NOT_SUPPORTED
  1474.                A DA which is configured to have a Scope will return this
  1475.                error if it receives a request which is set to have a
  1476.                Scope which it does not support.  An SA will not return
  1477.                this error, it will simply not reply to the multicast
  1478.                request.
  1479.  
  1480.       CHARSET_NOT_UNDERSTOOD
  1481.                If the DA or SA receives a request or registration in a
  1482.                character set which it does not support, it will return
  1483.                this error.
  1484.  
  1485.    Each <URL Entry> in the list has the form defined at the end of
  1486.    Section 4.
  1487.  
  1488.    The URLs in the reply have no delimiters between them, other than the
  1489.    length fields.  The length fields indicate where the strings end.
  1490.  
  1491.  
  1492. 7. Service Type Request Message Format
  1493.  
  1494.    The Service Type Request is used to determine all the types of
  1495.    services supported on a network.
  1496.  
  1497.    The request should be sent directly to a DA (though it may also be
  1498.    sent to the Service Location General Multicast Address), in order
  1499.    to find out all services available on the site network (which are
  1500.    advertised by Directory Agents and Service Agents.)  If no DA is
  1501.    available, a User Agent MAY issue more than one request to insure
  1502.    that all replies have been received.  In each subsequent request, a
  1503.    User Agent included those Service Types that it is aware of.  When no
  1504.    new replies arrive within CONFIG_INTERVAL_3 from a request, the User
  1505.    Agent can presume that it has acquired a complete set of available
  1506.    Service Types.
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 25]
  1513.  
  1514. Internet Draft        Service Location Protocol         8 January 1997  
  1515.  
  1516.  
  1517.    The format of a Service Type Request is:
  1518.  
  1519.       0                   1                   2                   3
  1520.       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
  1521.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1522.      |        Service Location header (function = SrvTypeRqst)       |
  1523.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1524.      |  length of prev resp string   |<Previous Responders Addr Spec>|
  1525.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1526.      |                                                               |
  1527.      \                  <Previous Responders Addr Spec>              \
  1528.      |                                                               |
  1529.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1530.      |   length of naming authority  |   <Naming Authority String>   |
  1531.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1532.      |                                                               |
  1533.      \            <Naming Authority String>, continued               \
  1534.      |                                                               |
  1535.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1536.      |     length of Scope String    |         <Scope String>        |
  1537.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1538.      |                                                               |
  1539.      \                   <Scope String>, continued                   \
  1540.      |                                                               |
  1541.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1542.  
  1543.    Note that the <Previous Responders Addr Spec> is a comma delimited
  1544.    list.  (See section 20.1.)  The 'length of prev responder list' field
  1545.    indicates the length of the comma delimited list string.  A previous
  1546.    responder list with 3 elements takes this form:
  1547.  
  1548.          <addr-spec>,<addr-spec>,<addr-spec>
  1549.  
  1550.    The Naming Authority, if included, will limit the replies to Service
  1551.    Type Requests to Service Types which have the specified Naming
  1552.    Authority.  If this field is omitted (i.e., the length field is
  1553.    zero), the default Naming Authority ("IANA") is assumed.  If the
  1554.    length field is -1, service types from all naming authorities are
  1555.    requested.
  1556.  
  1557.    The Scope String Field, if included, will limit replies to Service
  1558.    Types which have the specified Scope or are unscoped.  If this field
  1559.    is omitted, all Service Types (from the specified Naming Authority)
  1560.    are returned.
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 26]
  1569.  
  1570. Internet Draft        Service Location Protocol         8 January 1997  
  1571.  
  1572.  
  1573. 8. Service Type Reply Message Format
  1574.  
  1575.    The Service Type Reply has the following format:
  1576.  
  1577.       0                   1                   2                   3
  1578.       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
  1579.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1580.      |        Service Location header (function = SrvTypeRply)       |
  1581.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1582.      |          Error Code           |    number of service types    |
  1583.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1584.      |                                                               |
  1585.      \                      <Service Type Item>-1                    \
  1586.      |                                                               |
  1587.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1588.      |                             . . .                             |
  1589.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1590.      |                                                               |
  1591.      \                     <Service Type Item>-N                     \
  1592.      |                                                               |
  1593.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1594.  
  1595.    The format of a Service Type Item is as follows:
  1596.  
  1597.       0                   1                   2                   3
  1598.       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
  1599.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1600.      | length of Service Type String |    <Service Type String>      |
  1601.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1602.      |                                                               |
  1603.      \                 <Service Type String>, continued              \
  1604.      |                                                               |
  1605.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1606.      |   length of addr spec string  |            <addr spec>        |
  1607.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1608.      |                                                               |
  1609.      \                     <addr spec>, continued                    \
  1610.      |                                                               |
  1611.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1612.  
  1613.    The Error Code may have one of the following values:
  1614.  
  1615.       0        Success
  1616.  
  1617.       PROTOCOL_PARSE_ERROR
  1618.                A SA or DA returns this error when a SrvTypeRqst is
  1619.                received which cannot be parsed.
  1620.  
  1621.  
  1622.  
  1623.  
  1624. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 27]
  1625.  
  1626. Internet Draft        Service Location Protocol         8 January 1997  
  1627.  
  1628.  
  1629.       SCOPE_NOT_SUPPORTED
  1630.                A DA which is configured to have a Scope will return this
  1631.                error if it receives a SrvTypeRqst which is set to have a
  1632.                Scope which it does not support.  An SA will not return
  1633.                this error, it will simply silently discard the multicast
  1634.                request.
  1635.  
  1636.       CHARSET_NOT_UNDERSTOOD
  1637.                If the DA receives a SrvTypeRqst in a character set which
  1638.                it does not support, it MUST this error.
  1639.  
  1640.    The service type's name is provided in the <Service Type String>.
  1641.    See section 20.2.1 for the formal definition of this field.  The
  1642.    <addr spec> format is described in 20.4.  This field provides
  1643.    the service specific multicast address.  If the service specific
  1644.    multicast address is omitted, the General Service Location Multicast
  1645.    Address is assumed.  User Agents may then use this multicast address
  1646.    for issuing Service and Attribute Requests directly to SAs.
  1647.  
  1648.    Example Service Type Replies might be:
  1649.  
  1650.         Multicast Address     Service Type String
  1651.  
  1652.         224.0.3.10            service:lpr://
  1653.         224.0.3.24            service:http://
  1654.         224.0.3.115           service:nfs://
  1655.  
  1656.  
  1657.    NOTE: These multicast addresses are examples only, the official
  1658.    numbers have not yet been assigned.
  1659.  
  1660.  
  1661. 9. Service Registration Message Format
  1662.  
  1663.    After a Service Agent has found a Directory Agent, it begins to
  1664.    register its advertised services one at a time.  A Service Agent
  1665.    must wait for some random time uniformly distributed within the
  1666.    range specified by CONFIG_INTERVAL_11 before registering again.
  1667.    Registration is done using the Service Registration message
  1668.    specifying all attributes for a service.  A Directory Agent must
  1669.    acknowledge each service registration request.
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 28]
  1681.  
  1682. Internet Draft        Service Location Protocol         8 January 1997  
  1683.  
  1684.  
  1685.    The format of a Service Registration is:
  1686.  
  1687.       0                   1                   2                   3
  1688.       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
  1689.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1690.      |           Service Location header (function = SrvReg)         |
  1691.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1692.      |                                                               |
  1693.      \                          <URL-Entry>                          \
  1694.      |                                                               |
  1695.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1696.      |  Length of Attr List String   |          <attr-list>          |
  1697.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1698.      |                                                               |
  1699.      \                    <attr-list>, Continued.                    \
  1700.      |                                                               |
  1701.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1702.  
  1703.    The <URL-Entry> is defined at the end of Section 4.  The <attr-list>
  1704.    is defined in Section 20.3.
  1705.  
  1706.    Service registration may use a connectionless protocol (e.g.  UDP),
  1707.    or a connection oriented protocol (e.g.  TCP). If the registration
  1708.    operation may contain more information than can be sent in one
  1709.    datagram, the Service Agent MUST use a connection oriented protocol
  1710.    to register itself with the DA. When a Service Agent registers the
  1711.    same attribute class more than once for a service instance, the
  1712.    Directory Agent overwrites the all the values associated with that
  1713.    attribute class for that service instance.  Separate registrations
  1714.    must be made for each language that the service is to be advertised
  1715.    in.
  1716.  
  1717.    An example of Service Registration information is:
  1718.  
  1719.       Lifetime (seconds):   16-bit unsigned integer
  1720.       URL (at least):       service:<srvtype>://<addr-spec>
  1721.       Attributes (if any):  (ATTR1=VALUE),KEYWORD,(ATTR2 = VAL1, VAL2)
  1722.  
  1723.    In order to offer continuously advertised services, Service Agents
  1724.    should start the reregistration process before the Lifetime they used
  1725.    in the registration expires.
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 29]
  1737.  
  1738. Internet Draft        Service Location Protocol         8 January 1997  
  1739.  
  1740.  
  1741.    An example of a service registration (valid for 3 hours) is as
  1742.    follows:
  1743.  
  1744.       Lifetime:   10800
  1745.       URL:        service:lpr://igore.wco.ftp.com:515/draft
  1746.       Attributes: (SCOPE=DEVELOPMENT),
  1747.                   (PAPER COLOR=WHITE),
  1748.                   (PAPER SIZE=LETTER),
  1749.                   UNRESTRICTED_ACCESS,
  1750.                   (LANGUAGE=POSTSCRIPT, HPGCL),
  1751.                   (LOCATION=12 FLOOR)
  1752.  
  1753.    The same registration could be done again, as shown below, in German;
  1754.    however, note that "lpr", "service", and "SCOPE" are reserved terms
  1755.    and will remain in the language they were originally registered
  1756.    (English).
  1757.  
  1758.       Lifetime:   10800
  1759.       URL:        service:lpr://igore.wco.ftp.com:515/draft
  1760.       Attributes: (SCOPE=ENTWICKLUNG),
  1761.                   (PAPIERFARBE=WEISS),
  1762.                   (PAPIERFORMAT=BRIEF),
  1763.                   UNBEGRENTZTER_ZUGANG,
  1764.                   (DRUECKERSPRACHE=POSTSCRIPT,HPGCL),
  1765.                   (STANDORT=11 ETAGE)
  1766.  
  1767.    Registrations must contain an Attribute of SCOPE unless they are
  1768.    unscoped and then they must be registered with all unscoped Directory
  1769.    Agents.
  1770.  
  1771.    Registrations of a previously registered service are considered an
  1772.    update.  The new registration's attributes replace the previous
  1773.    registration's, but do not effect attributes which were included
  1774.    previously and are not present in the update.  For example:
  1775.    service:x://a.org has been registered with attributes A=1, B=2, C=3.
  1776.    A new registration comes for service:x://a.org with attributes C=30,
  1777.    D=40.  The attributes for the service after the update are A=1, B=2,
  1778.    C=30, D=40.
  1779.  
  1780.    In the example above, the SCOPE is set to DEVELOPMENT (in English)
  1781.    and ENTWICKLUNG (in German).  Recall that all strings in a message
  1782.    must be in one language, which is specified in the header.  The
  1783.    string SCOPE is *not* translated, as it is one of the reserved
  1784.    strings in the Service Location Protocol (see section 17.3.)
  1785.  
  1786.    The Directory Agent may return a server error in the acknowledgment.
  1787.    This error is carried in the Error Codes field of the service
  1788.    location message header.  A Directory Agent MUST decline to register
  1789.  
  1790.  
  1791.  
  1792. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 30]
  1793.  
  1794. Internet Draft        Service Location Protocol         8 January 1997  
  1795.  
  1796.  
  1797.    a service if it is specified with an unsupported Scope.  In this case
  1798.    a SCOPE_NOT_SUPPORTED error is returned in the SrvAck.  A Directory
  1799.    Agent MUST NOT accept Service Registrations which have an unsupported
  1800.    Scope unless it is an unscoped Directory Agent, in which case it MUST
  1801.    accept all Service Registrations.
  1802.  
  1803.    An unscoped Service Registration will match all requests.  A request
  1804.    which specifies a certain scope will therefore return services which
  1805.    have that Scope and services which are unscoped.  It is strongly
  1806.    suggested that one should use Scopes in all registrations or none.
  1807.    See Sections 16 and 3.7 for details.
  1808.  
  1809.  
  1810. 10. Service Acknowledgement Message Format
  1811.  
  1812.    A Service Acknowledgement is sent as the result of a DA receiving
  1813.    and processing a Service Registration or Service Deregistration.  An
  1814.    acknowledgment indicating success must have the error code set to
  1815.    zero.  Once a DA acknowledges a service registration it makes the
  1816.    information available to clients.
  1817.  
  1818.       0                   1                   2                   3
  1819.       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
  1820.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1821.      |            Service Location header (function = SrvAck)        |
  1822.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1823.      |          Error Code           |
  1824.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1825.  
  1826.    The Error Code may have one of the following values:
  1827.  
  1828.       0        Success
  1829.  
  1830.       PROTOCOL_PARSE_ERROR
  1831.                A DA returns this error when the SrvReg or SrvDereg could
  1832.                not be parsed.
  1833.  
  1834.       INVALID_REGISTRATION
  1835.                A DA returns this error when a SrvReg is invalid (it
  1836.                parses badly or is poorly formed in some way.)
  1837.  
  1838.       SCOPE_NOT_SUPPORTED
  1839.                A DA which is configured to have a Scope will return this
  1840.                error if it receives a SrvReq which is set to have a
  1841.                Scope which it does not support.
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 31]
  1849.  
  1850. Internet Draft        Service Location Protocol         8 January 1997  
  1851.  
  1852.  
  1853.       CHARSET_NOT_UNDERSTOOD
  1854.                If the DA receives a SrvReg or SrvDereg in a character
  1855.                set which it does not support, it will return this error.
  1856.  
  1857.       AUTHENTICATION_FAILED
  1858.                If the DA uses IP Security Authentication and the
  1859.                SA sending a SrvReg or SrvDereg message fails to be
  1860.                authenticated, the DA will return this error.
  1861.  
  1862.  
  1863. 11. Service Deregister Message Format
  1864.  
  1865.    When a service is no longer available for use, the Service Agent must
  1866.    deregister itself from Directory Agents that it has been registered
  1867.    with.  A service uses the following PDU to deregister itself.
  1868.  
  1869.       0                   1                   2                   3
  1870.       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
  1871.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1872.      |           Service Location header (function = SrvDereg)       |
  1873.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1874.      |         length of URL         |              URL              |
  1875.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1876.      |                                                               |
  1877.      \              URL of Service to Deregister, contd.             \
  1878.      |                                                               |
  1879.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1880.      |  length of <tag spec> string  |            <tag spec>         |
  1881.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1882.      |                                                               |
  1883.      \                     <tag spec>, continued                     \
  1884.      |                                                               |
  1885.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1886.  
  1887.    The Service Agent should retry this operation if there is no response
  1888.    from the Directory Agent.  The Directory Agent acknowledges this
  1889.    operation with a service acknowledgment.  Once the Service Agent
  1890.    receives an acknowledgment indicating success, it can assume that the
  1891.    service is no longer advertised by the Directory Agent.  The Error
  1892.    Code in the Acknowledgment of the Service Deregistration may have the
  1893.    same values as described in section 10.
  1894.  
  1895.    The Service Deregister Information sent to the Directory Agent has
  1896.    the following form:
  1897.  
  1898.         service:<srvtype>://<addr-spec>
  1899.         Attribute tags (if any):  ATTR1,KEYWORD,ATTR2
  1900.  
  1901.  
  1902.  
  1903.  
  1904. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 32]
  1905.  
  1906. Internet Draft        Service Location Protocol         8 January 1997  
  1907.  
  1908.  
  1909.    This will deregister the specified attributes from the service
  1910.    information from the Directory Agent.  If no attribute tags are
  1911.    included, the entire service information is deregistered in every
  1912.    language and every Scope it was registered in.  To deregister the
  1913.    printer from the preceding example, use:
  1914.  
  1915.          service:lpr://igore.wco.ftp.com:515/draft
  1916.  
  1917.  
  1918. 12. Attribute Request Message Format
  1919.  
  1920.    The Attribute Request is used to obtain attribute information.  The
  1921.    UA supplies a request and the appropriate attribute information is
  1922.    returned.
  1923.  
  1924.    If the UA supplies only a Service Type, and the reply includes
  1925.    all attributes and all values for that Service Type.  The reply
  1926.    includes only those attributes for which services exist and are
  1927.    advertised by the DA or SA which received the Attribute Request.
  1928.    Since different instances of a given service can, and very likely
  1929.    will, have different values for the attributes defined by the Service
  1930.    Type, the User Agent must form a union of all attributes returned by
  1931.    all service Agents.  The Attribute information will be used to form
  1932.    Service Requests.
  1933.  
  1934.    If the UA supplies a URL, the reply will contain service information
  1935.    corresponding to that URL.
  1936.  
  1937.    Attribute Requests include a 'select clause'.  This may be used to
  1938.    limit the amount of information returned.  If the select clause is
  1939.    empty, all information is returned.  Otherwise, the UA supplies
  1940.    a comma delimited list of attribute tags and keywords.  If the
  1941.    attribute or keyword is defined for a service, it will be returned
  1942.    in the Attribute Reply, along with all registered values for that
  1943.    attribute.  If the attribute selected has not ben registered for that
  1944.    URL or Service Type, the attribute or keyword information is simply
  1945.    not returned.
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 33]
  1961.  
  1962. Internet Draft        Service Location Protocol         8 January 1997  
  1963.  
  1964.  
  1965.    The Attribute Request message has the following form:
  1966.  
  1967.       0                   1                   2                   3
  1968.       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
  1969.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1970.      |         Service Location header (function = AttrRqst)         |
  1971.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1972.      |length of prev resp list string|<Previous Responders Addr Spec>|
  1973.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1974.      |                                                               |
  1975.      \         <Previous Responders Addr Spec>, continued            \
  1976.      |                                                               |
  1977.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1978.      |         length of URL         |              URL              |
  1979.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1980.      |                                                               |
  1981.      \                         URL, continued                        \
  1982.      |                                                               |
  1983.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1984.      |        length of <Scope>      |           <Scope>             |
  1985.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1986.      |                                                               |
  1987.      \                      <Scope>, continued                       \
  1988.      |                                                               |
  1989.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1990.      |   length of <select-list>     |        <select-list>          |
  1991.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1992.      |                                                               |
  1993.      \                   <select-list>, continued                    \
  1994.      |                                                               |
  1995.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  1996.  
  1997.    The <Previous Responder Address List> functions exactly as introduced
  1998.    in Section 7.  See also Section 20.1.
  1999.  
  2000.    The URL can take two forms:  Either it is simply a Service
  2001.    Type, such as "service:http:", or it can be a URL, such as
  2002.    "service:lpr://igore.wco.ftp.com:515/draft".  In the former case, all
  2003.    attributes and the full range of values for each attribute for the
  2004.    Service Type is returned.  In the latter case, only the attributes
  2005.    for the service whose URL is defined are returned.
  2006.  
  2007.    The Scope String is provided so that Attribute Requests for Service
  2008.    Types can be made so that only the Attribute information pertaining
  2009.    to a specific Scope will be returned.  This field is ignored in the
  2010.    case when a full URL is sent in the Attribute Request.  The rules for
  2011.    encoding of the Scope String are given in Section 5.4.
  2012.  
  2013.  
  2014.  
  2015.  
  2016. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 34]
  2017.  
  2018. Internet Draft        Service Location Protocol         8 January 1997  
  2019.  
  2020.  
  2021.    The select list takes the form:
  2022.  
  2023.     <select-list>   ::= <select-item> |
  2024.                         <select-item> ',' <select-list>
  2025.  
  2026.     <select-item>   ::= <keyword> | <attr-tag> | <partial-tag> '*'
  2027.  
  2028.     <partial-tag>   ::= the partial class name of an attribute
  2029.                         followed by an '*' matches all class names
  2030.                         which begin with the characters preceding
  2031.                         the '*'
  2032.  
  2033.  
  2034.  
  2035.    For definitions of <attr-tag> and <keyword> see 5.4.
  2036.  
  2037.    An example of a select-list following the printer example is:
  2038.  
  2039.    PAGES PER MINUTE, UNRESTRICTED_ACCESS, LOCATION
  2040.  
  2041.    If sent to a Directory Agent, the number of previous responders is
  2042.    zero and there are no Previous Responder Address Specification.
  2043.    These fields are only used for repeated multicasting, exactly as for
  2044.    the Service Request.
  2045.  
  2046.  
  2047. 13. Attribute Reply Message Format
  2048.  
  2049.    An Attribute Reply Message takes the form:
  2050.  
  2051.       0                   1                   2                   3
  2052.       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
  2053.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2054.      |         Service Location header (function = AttrRply)         |
  2055.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2056.      |         Error Code            |  length of <attr-list> string |
  2057.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2058.      |                                                               |
  2059.      \                          <attr-list>                          \
  2060.      |                                                               |
  2061.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2062.  
  2063.    The Error Code may have the following values:
  2064.  
  2065.       0        Success
  2066.  
  2067.       LANGUAGE_NOT_SUPPORTED
  2068.                A SA or DA returns this when a request is received
  2069.  
  2070.  
  2071.  
  2072. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 35]
  2073.  
  2074. Internet Draft        Service Location Protocol         8 January 1997  
  2075.  
  2076.  
  2077.                from a UA which is in a language for which there is no
  2078.                registered Service Information and the request arrived
  2079.                with the Monolingual bit set.  See Section 17.
  2080.  
  2081.       PROTOCOL_PARSE_ERROR
  2082.                A DA or SA returns this error when the AttrRqst could not
  2083.                be parsed.
  2084.  
  2085.       SCOPE_NOT_SUPPORTED
  2086.                A DA which is configured to have a Scope will return this
  2087.                error if it receives an AttrRqst which is set to have
  2088.                a Scope which it does not support.  SAs will silently
  2089.                discard multicast AttrRqst messages for Scopes they do
  2090.                not support.
  2091.  
  2092.       CHARSET_NOT_UNDERSTOOD
  2093.                If the DA receives an AttrRqst in a character set which
  2094.                it does not support, it will return this error.  SAs will
  2095.                silently discard multicast AttrRqst messages which arrive
  2096.                using character sets they do not support.
  2097.  
  2098.    The <attr-list> (attribute list) has the same form as the attribute
  2099.    list in a Service Registration, see Section 20.3 for a formal
  2100.    definition of this field.
  2101.  
  2102.    An Attribute Request for "lpr" might elicit the following reply
  2103.    (UNRESTRICTED_ACCESS is a keyword):
  2104.  
  2105.          (PAPER COLOR=WHITE,BLUE),
  2106.          (PAPER SIZE=LEGAL,LETTER,ENVELOPE,TRACTOR FEED),
  2107.          UNRESTRICTED_ACCESS,
  2108.          (PAGES PER MINUTE=1,3,12),
  2109.          (LOCATION=12TH, NEAR ARUNA'S OFFICE),
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 36]
  2129.  
  2130. Internet Draft        Service Location Protocol         8 January 1997  
  2131.  
  2132.  
  2133. 14. Directory Agent Advertisement Message Format
  2134.  
  2135.    Directory Agent Advertisement Messages have the following format:
  2136.  
  2137.       0                   1                   2                   3
  2138.       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
  2139.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2140.      |          Service Location header (function = DAAdvert)        |
  2141.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2142.      |           Error Code          |         Length of URL         |
  2143.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2144.      |                                                               |
  2145.      \                              URL                              \
  2146.      |                                                               |
  2147.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2148.      |     Length of <Scope-list>    |          <Scope-list>         |
  2149.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2150.      |                                                               |
  2151.      \                    <Scope-list>, continued                    \
  2152.      |                                                               |
  2153.      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2154.  
  2155.    The Error Code is set when a DA Advertisement is returned as the
  2156.    result of a Service Request.  It will always be set to 0 in the case
  2157.    of an unsolicited DA Advertisement.  The Error Code may take the
  2158.    values specified in Section 6.
  2159.  
  2160.    The URL corresponds to the Directory Agent's location.  The
  2161.    <Scope-list> is a comma delimited list of Scopes which the DA
  2162.    supports, in the following format:
  2163.  
  2164.        <Scope-list>    ::=    <Scope> | <Scope-list> ',' <Scope>
  2165.        <Scope>         ::=    String representing a scope
  2166.  
  2167.  
  2168.    See Section 5.4 for the lexical rules regarding <Scope>.
  2169.  
  2170.    DA Advertisements sent in reply to a Directory Agent Discovery
  2171.    Request has the same format as the unsolicited DA Advertisement, for
  2172.    example:
  2173.  
  2174.       URL:        service:directory-agent://SLP-RESOLVER.CATCH22.COM
  2175.       SCOPE List: ADMIN
  2176.  
  2177.    The Directory Agent can be reached at the Address Specification
  2178.    returned, and supports the SCOPE called "ADMIN".
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 37]
  2185.  
  2186. Internet Draft        Service Location Protocol         8 January 1997  
  2187.  
  2188.  
  2189. 15. Directory Agents
  2190.  
  2191. 15.1. Introduction
  2192.  
  2193.    A Directory Agent acts on behalf of many Service Agents.  It acquires
  2194.    information from them and acts as a single point of contact to supply
  2195.    that information to User Agents.
  2196.  
  2197.    The queries that a User Agent multicasts to Service Agents (in an
  2198.    environment without a Directory Agent) are the same as queries that
  2199.    the User Agent might unicast to a Directory Agent.  A User Agent may
  2200.    cache information about the presence of alternate Directory Agents to
  2201.    use in case a selected Directory Agent fails.
  2202.  
  2203.    Aside from enhancing the scalability of the protocol (see
  2204.    section 3.7), running multiple DAs provides robustness of operation.
  2205.    The DAs have replicated service information which remain accessible
  2206.    even when one of the DAs fail.  Directory Agents, in the future, may
  2207.    use mechanisms outside of this protocol to coordinate the maintenance
  2208.    of a distributed database of Service Location information, and thus
  2209.    scale to enterprise networks or larger administrative domains.
  2210.  
  2211.    Each Service Agent must register with all DAs they are configured to
  2212.    use.  UAs may choose among DAs they are configured to use.
  2213.  
  2214.    Locally, Directory Agent consistency is guaranteed using mechanisms
  2215.    in the protocol.  There isn't any Directory to Directory Agent
  2216.    protocol yet.  Rather, passive detection of DAs by SAs ensures that
  2217.    eventually service information will be registered consistently
  2218.    between DAs.  Invalid data will age out of the Directory Agents
  2219.    leaving only transient stale registrations even in the case of a
  2220.    failure of a Service Agent.
  2221.  
  2222.  
  2223. 15.2. Finding Directory Agents
  2224.  
  2225.    A User or Service Agent may be statically configured to use a
  2226.    particular DA. This is discouraged unless the application resides on
  2227.    a network where any form of multicast or broadcast is impossible.
  2228.  
  2229.    Alternatively, a host which uses DHCP [2, 10] may use it to obtain a
  2230.    Directory Agent's address.  A DHCP option will be assigned for this
  2231.    purpose.  It has not yet been, at the time this document was written.
  2232.  
  2233.    The third way to discover DAs is dynamically.  This occurs actively
  2234.    by sending out a Directory Agent Discovery request (see Section 5.2).
  2235.  
  2236.    Lastly, the agent may be informed passively as follows:
  2237.  
  2238.  
  2239.  
  2240. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 38]
  2241.  
  2242. Internet Draft        Service Location Protocol         8 January 1997  
  2243.  
  2244.  
  2245.    When a Directory Agent first comes on-line it sends an unsolicited DA
  2246.    Advertisement to the Service Location general multicast address.  If
  2247.    a DA supports a particular Scope or set of Scopes these are placed in
  2248.    the reply.  The class for this attribute is 'SCOPE'.
  2249.  
  2250.    Every CONFIG_INTERVAL_9 a Directory Agent will send an unsolicited
  2251.    DA Advertisement again.  This will ensure that eventually it will be
  2252.    discovered by all applications which are concerned.
  2253.  
  2254.    When a Directory Agent first comes up it begins with 0 as its XID,
  2255.    and increments this by one each time it sends an unsolicited DA
  2256.    Advertisement.  When the counter wraps, it should go from 0xFFFF to
  2257.    0x0100, not 0.
  2258.  
  2259.    If the Directory Agent has stored all of the service information in
  2260.    a nonvolatile store, it should initially set the XID to 0x100, as it
  2261.    is not coming up 'stateless.'  If it stores service registrations in
  2262.    memory only, it will restart without any state.  It should indicate
  2263.    this by resetting its XID to 0.
  2264.  
  2265.    All Service Agents which receive the unsolicited DA Advertisement
  2266.    should examine its XID. If the Directory Agent has never before
  2267.    been heard from or if the XID is less than it was previously and
  2268.    less than 256, the Service Agent should assume the DA does not have
  2269.    its service registration, even if it once did.  If this is the case
  2270.    and the DA has the proper Scope, the SA should register all service
  2271.    information with the Directory Agent, after waiting a random interval
  2272.    CONFIG_INTERVAL_10.
  2273.  
  2274.    When a Service Agent or User Agent first comes on-line it must issue
  2275.    a Directory Agent Discovery Request unless it is using static or DHCP
  2276.    configuration, as described in 5.2.
  2277.  
  2278.    A Service Agent registers information with ALL newly discovered
  2279.    Directory Agents when either of the above two events take place.
  2280.    When Scopes are being used, a Service Agent SHOULD choose a set of
  2281.    Scopes to be advertised in and need only register with Directory
  2282.    Agents that support the Scopes in which they wish to be registered.
  2283.    Services MUST be registered with DAs that support their Scope and
  2284.    those which have no Scope, unless specifically configured not to do
  2285.    so (see section 22.1.)
  2286.  
  2287.    Once a User Agent becomes aware of a Directory Agent it will unicast
  2288.    its queries there.  In the event that more than one Directory Agent
  2289.    is detected, it will select one to communicate with.  When Scopes
  2290.    are supported, the User Agent will direct its queries to different
  2291.    Directory Agents depending on which Scopes are appropriate domains
  2292.    for the query to be answered in.
  2293.  
  2294.  
  2295.  
  2296. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 39]
  2297.  
  2298. Internet Draft        Service Location Protocol         8 January 1997  
  2299.  
  2300.  
  2301.    The protocol will cause all DAs (of the same Scope) to eventually
  2302.    obtain consistent information.  Thus one DA should be as good as any
  2303.    other for obtaining service information.  There may be temporary
  2304.    inconsistencies between DAs.
  2305.  
  2306.  
  2307. 16. Scope Discovery and Use
  2308.  
  2309.    The Scope mechanism in the Service Location Protocol enhances its
  2310.    scalability.  The primary use of Scopes is to provide the capability
  2311.    to organize a site network along administrative lines.  A set of
  2312.    services can be assigned to a given department of an organization,
  2313.    to a certain building or geographical area or for a certain purpose.
  2314.    The users of the system can be presented with these organizational
  2315.    elements as a top level selection, before services within this domain
  2316.    are sought.
  2317.  
  2318.    A site network that has grown beyond a size that can be reasonably
  2319.    serviced by a few DAs can use the Scope mechanism.  DAs have the
  2320.    attribute class "SCOPE".  The values for this attribute are a list
  2321.    of strings that represent the administrative areas for which this
  2322.    Directory Agent is an authority.  The semantics and language of the
  2323.    strings used to describe the Scope are almost entirely the choice of
  2324.    the administrative entity of the particular domain in which these
  2325.    Scopes exist.  The values of SCOPE should be configurable, so the
  2326.    system administrator can set its value.  The scopes "LOCAL" and
  2327.    "REMOTE" are reserved and SHOULD NOT be used.  Use of these reserved
  2328.    values is to be defined in a future protocol document.
  2329.  
  2330.    Services with the attribute SCOPE should only be registered with DAs
  2331.    which support the same Scope or DAs which have no Scope.
  2332.  
  2333.    Directory Agents advertise their available Scopes.  A Service Agent
  2334.    may then choose a scope in which to register, and SHOULD register
  2335.    with all Directory Agents in that Scope, as well as all DAs which
  2336.    have no Scope.  Failure to be comprehensive in registration according
  2337.    to this rule will mean that the service advertisement may not be
  2338.    discoverable by all User Agents.
  2339.  
  2340.    A Directory Agent which has a Scope will send replies to Directory
  2341.    Agent Discovery requests with the scope information included.  Note
  2342.    that the directory-agent Service Type is registered with the IANA
  2343.    naming authority (which is automatically selected by leaving the
  2344.    Naming Authority field empty.)
  2345.  
  2346.    The query:
  2347.  
  2348.          directory-agent/MATH DEPT//
  2349.  
  2350.  
  2351.  
  2352. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 40]
  2353.  
  2354. Internet Draft        Service Location Protocol         8 January 1997  
  2355.  
  2356.  
  2357.    Could receive the following DA Advertisement:
  2358.  
  2359.       Returned URL:        service:directory-agent://diragent.blah.edu
  2360.       Returned SCOPE:      MATH DEPT
  2361.  
  2362.    The same Directory Agent if it had no Scope value would reply:
  2363.  
  2364.       Returned URL:        service:directory-agent://diragent.void.com
  2365.       Returned SCOPE:
  2366.  
  2367.    If a Directory Agent supported more than one Scope it would reply as:
  2368.  
  2369.       Returned URL:        service:directory-agent://srv.domain.org
  2370.       Returned SCOPE:      MATH DEPT,ENGLISH DEPT,CS DEPT
  2371.  
  2372.    A DA which has no Scope will reply to any Directory Agent Discovery
  2373.    Request.
  2374.  
  2375.    Being a member of a Scope means that an agent SHOULD use those
  2376.    Directory Agents that support its Scope.  User Agents send all
  2377.    requests to DAs which support the indicated Scope.  Services are
  2378.    registered with the DA(s) in their Scope.  For a UA to find a service
  2379.    that is registered in a particular Scope it must send requests to a
  2380.    DA which supports the indicated Scope.  There is no limitation on
  2381.    Scope membership built into the protocol; that is to say, a User
  2382.    Agent or Service Agent may be a member of more than one Scope.
  2383.    Membership is open to all, unless some external authorization
  2384.    mechanism is added to limit access.
  2385.  
  2386.  
  2387. 17. Language and Character Encoding Issues
  2388.  
  2389.    All Service Registrations declare the language in which the strings
  2390.    in the service attributes are written by specifying the appropriate
  2391.    code in the message header.  For each language the Service advertises
  2392.    a separate registration takes place.  Each of these registrations
  2393.    uses the same URL to indicate that they refer to the same service.
  2394.  
  2395.    If a Service is fully deregistered (the URL is given in the Service
  2396.    Deregister request, without any attribute information) then the
  2397.    Service needs to be deregistered only once.  This will effectively
  2398.    deregister the service in all languages it has been registered in.
  2399.  
  2400.    If, on the other hand, attribute information is included in the
  2401.    Service Deregistration request, a separate Service Deregistration
  2402.    of selected attributes must be undertaken in each language in which
  2403.    service information has been provided to the DA by a Service Agent.
  2404.  
  2405.  
  2406.  
  2407.  
  2408. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 41]
  2409.  
  2410. Internet Draft        Service Location Protocol         8 January 1997  
  2411.  
  2412.  
  2413.    Service Registrations in different languages are mutually
  2414.    unintelligible.  They share no information except for their service
  2415.    type and URL with which they were registered.  No attempt is made
  2416.    to match queries with "language independence." Instead, queries are
  2417.    handled using string matching against registrations in the same
  2418.    language as the query.
  2419.  
  2420.    Service Types which are standardized will have definitions for
  2421.    all attributes and value strings.  Official translations to other
  2422.    languages of the attribute tags and values may be created and
  2423.    submitted as part of the standard; this is not feasible for all
  2424.    languages.  For those languages which are not defined as part of the
  2425.    Service Type, a best effort translation of the standard definitions
  2426.    of the Service type's attribute strings MAY be used.
  2427.  
  2428.    All Service Requests specify a requested language in the message
  2429.    header.  The Directory Agent or Service Agent will respond in the
  2430.    same language as the request, if it has a registration in the same
  2431.    language as the request.  If this language is not supported, and the
  2432.    Monolingual bit is not specified, a reply can be sent in the default
  2433.    language (which is English.)  If the 'monolingual bit' flag in the
  2434.    header is set and the requested language is not supported, a SrvRply
  2435.    is returned with the error field set to LANGUAGE_NOT_SUPPORTED.
  2436.  
  2437.    If a query is in a supported language on a SA or DA, but has a
  2438.    different dialect than the available service information, the query
  2439.    MUST be serviced on a best-effort basis.  If possible, the query
  2440.    should be matched against the same dialect.  If that is not possible,
  2441.    it MAY be matched against any dialect of the same language.
  2442.  
  2443.  
  2444. 17.1. Character Encoding and String Issues
  2445.  
  2446.    Values for character encoding can be found in the Internet Assigned
  2447.    Numbers Authority's (IANA) database
  2448.    (http://www.isi.edu/in-notes/iana/assignments/character-sets), and
  2449.    have the values referred by the MIBEnum value.
  2450.  
  2451.    The encoding will determine the interpretation of all character data
  2452.    which follows the Service Location Protocol header.  There is no way
  2453.    to mix ASCII and UNICODE, for example.  All responses must be in the
  2454.    character set of the request or use US-ASCII. If a request is sent
  2455.    to a DA or SA or a registration is sent to a DA, which is unable to
  2456.    manipulate or store the character set of the incoming message, the
  2457.    request will fail.  The SA or DA returns a CHARSET_NOT_UNDERSTOOD
  2458.    error in a SrvAck message in this case.  Requests using US-ASCII will
  2459.    never fail for this reason, since all SAs and DAs must be able to
  2460.    accept this character set.
  2461.  
  2462.  
  2463.  
  2464. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 42]
  2465.  
  2466. Internet Draft        Service Location Protocol         8 January 1997  
  2467.  
  2468.  
  2469.    Certain characters are illegal in certain contexts of the protocol.
  2470.    Since the protocol is largely character string based, in some
  2471.    contexts characters are used as protocol delimiters.  In these cases
  2472.    the delimiter characters must not be used as 'data text.'
  2473.  
  2474.  
  2475. 17.1.1. Substitution of Character Escape Sequences
  2476.  
  2477.    The Service Location Protocol has an 'escape mechanism' which
  2478.    is consistent with HTTP 2.0 [6] and SGML [13].  If the character
  2479.    sequence "&#" is followed by one or more digits, followed by
  2480.    a semicolon ';' the entire sequence is interpreted as a single
  2481.    character.  The digits are interpreted as a decimal value in the
  2482.    character set of the request, as specified by the header.  Thus, in
  2483.    US-ASCII , would be interpreted as a comma.  Substitution of
  2484.    these escape strings must be done in all <attr-list> and strings
  2485.    present in SrvReq and AttrRqst messages.  Only numerical character
  2486.    references are accepted, not 'Entity References,' as defined in HTML.
  2487.    These escape values should only be used to provide a mechanism for
  2488.    including reserved characters in attribute tag and value strings.
  2489.  
  2490.    The interpretation of these escape values is different than in
  2491.    HTML in one respect:  In HTML the escape values are considered to
  2492.    be in the ISO Latin-1 character set.  In Service Location they
  2493.    are interpreted in the character set defined in the header of the
  2494.    message.
  2495.  
  2496.    This escape mechanism allows characters like commas to be included in
  2497.    attribute tags and values, which would otherwise be illegal as the
  2498.    comma is a protocol delimiter.
  2499.  
  2500.    Attribute tags and values of different languages are considered to be
  2501.    mutually unintelligible.  A query in one language SHOULD use service
  2502.    information registered in that language.
  2503.  
  2504.  
  2505. 17.2. Language Dialect
  2506.  
  2507.    Dialect tags are used in Service Location messages to indicate a
  2508.    variant of vocabulary used.  If one service is registered in more
  2509.    than one dialect, a DA or SA SHOULD return the one with the same
  2510.    dialect tag as in the query, but MAY choose to return any registered
  2511.    service that matches the criteria.
  2512.  
  2513.    Dialects (unlike languages) are assumed to be mutually intelligible,
  2514.    but may have variations in spelling.  Since string matching is used,
  2515.    it is advantageous in some cases to register service information in
  2516.    multiple dialects.
  2517.  
  2518.  
  2519.  
  2520. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 43]
  2521.  
  2522. Internet Draft        Service Location Protocol         8 January 1997  
  2523.  
  2524.  
  2525.    Dialect tags will be assigned as enumerated values to correspond to
  2526.    the official dialects registered with the IANA. There are as of this
  2527.    writing no enumerated dialect values; they will be created as needed.
  2528.  
  2529.  
  2530. 17.3. Language-Independent Strings
  2531.  
  2532.    Some strings, such as Service Type names, have standard definitions.
  2533.    These strings should be considered as tokens and not as words in a
  2534.    language to be translated.
  2535.  
  2536.     Reserved String         Section Definition
  2537.     ---------------         ------- --------------------------------------
  2538.     SCOPE                   3, 15   Used to limit the matching of requests.
  2539.     SERVICE                 9, 6    The URL scheme of all Service Location
  2540.                                     information registered with a DA or
  2541.                                     returned from a Service Request.
  2542.     <srvtype>               20.2.1  Used in all service registrations
  2543.                                     and replies.
  2544.     domain names            20.4    A fully qualified domain name, used
  2545.                                     in registrations and replies.
  2546.     IANA                    3.3     The default naming authority.
  2547.     LOCAL                   16      Reserved.
  2548.     REMOTE                  16      Reserved.
  2549.     TRUE                    20.5    Boolean true.
  2550.     FALSE                   20.5    Boolean false.
  2551.  
  2552.  
  2553.  
  2554. 18. Service Location Transactions
  2555.  
  2556. 18.1. Service Location Connections
  2557.  
  2558.    When a Service Location Request or Attribute Request results in a
  2559.    UDP reply from a Service or Directory Agent that will overflow a
  2560.    datagram, the User Agent can open a connection to the Agent and
  2561.    reissue the request over the connection.  The reply will be returned
  2562.    with the overflow bit set (see section 4).  The reply will contain as
  2563.    much data as will fit into a single datagram.  If no MTU information
  2564.    is available for the route, assume that the MTU is 1400; this value
  2565.    is configurable (see section 22).
  2566.  
  2567.    When a request results in overflowed data that cannot be correctly
  2568.    parsed (say, because of duplicate or dropped IP datagrams), a
  2569.    User Agent that wishes to reliably obtain the overflowed data must
  2570.    establish a TCP connection with the Directory Agent or Service Agent
  2571.    with the data.  The request is sent again with a new XID. The reply
  2572.    is returned over the connection stream.
  2573.  
  2574.  
  2575.  
  2576. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 44]
  2577.  
  2578. Internet Draft        Service Location Protocol         8 January 1997  
  2579.  
  2580.  
  2581.    When registration data exceeds one datagram in length, the Service
  2582.    Registration should be made by establishing a connection with a
  2583.    Directory Agent and sending the registration over the connection
  2584.    stream.
  2585.  
  2586.    Directory Agents and Service Agents must respond to connection
  2587.    requests; services whose registration data can overflow a datagram
  2588.    must be able to use TCP to send the registration.  User Agents
  2589.    should be able to make Service and Attribute Requests using TCP. If
  2590.    they fail to implement this, they must be able to interpret partial
  2591.    replies and/or reissue requests with more selective criteria to
  2592.    reduce the size of the replies.
  2593.  
  2594.    A connection initiated by an Agent may be used for a single
  2595.    transaction.  It may also be used for multiple transactions.  Since
  2596.    there are length fields in the message headers, the Agents may send
  2597.    multiple requests along a connection and read the return stream for
  2598.    acknowledgments and replies.
  2599.  
  2600.    The initiating agent is responsible for closing the TCP connection.
  2601.    The DA should wait at least CONFIG_INTERVAL_12 before closing an idle
  2602.    connection.  DAs and SAs SHOULD eventually close idle connections
  2603.    to ensure robust operation, even when the agent which opened a
  2604.    connection neglects to close it.
  2605.  
  2606.  
  2607. 18.2. No Synchronous Assumption
  2608.  
  2609.    There is no requirement that one transaction complete before a
  2610.    given host begins another.  An agent may have multiple outstanding
  2611.    transactions, initiated either using UDP or TCP.
  2612.  
  2613.  
  2614. 18.3. Idempotency
  2615.  
  2616.    All Service Location actions are idempotent.  Of course registration
  2617.    and deregistration will change the state of a DA, but repeating these
  2618.    actions will have exactly the same effect each time.
  2619.  
  2620.  
  2621. 19. Security Considerations
  2622.  
  2623.    The Service Location Protocol does not provide authentication,
  2624.    integrity or confidentiality.  Because the objective of this
  2625.    protocol is to advertise services to a community of users,
  2626.    confidentiality might not generally be needed when this protocol is
  2627.    used in non-sensitive environments.  Authentication and integrity
  2628.  
  2629.  
  2630.  
  2631.  
  2632. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 45]
  2633.  
  2634. Internet Draft        Service Location Protocol         8 January 1997  
  2635.  
  2636.  
  2637.    are functionally equivalent in the context of this protocol.
  2638.    Authentication is generally needed with this protocol.
  2639.  
  2640.    An adversary can easily use this protocol to advertise services on
  2641.    servers controlled by the adversary and thereby gain access to users'
  2642.    private information.  Further, an adversary using this protocol
  2643.    will find it much easier to engage in selective denial of service
  2644.    attacks.  Sites that are in potentially hostile environments (e.g.
  2645.    are directly connected to the Internet) should consider the security
  2646.    risks of deploying this protocol prior to deploying it.
  2647.  
  2648.    The security risks in this protocol can be significantly reduced or
  2649.    eliminated by using the IP Authentication Header [5, 3] with all
  2650.    Service Location messages.  It is recommended that sites use the
  2651.    IP Authentication header with all Service Location messages.  For
  2652.    the security considerations listed above, it is recommended that
  2653.    all nodes which implement Service Location also implement the IP
  2654.    Authentication Header.
  2655.  
  2656.    Sites requiring confidentiality should implement the IP Encapsulating
  2657.    Security Payload (ESP) [4] to provide confidentiality for Service
  2658.    Location messages.
  2659.  
  2660.    Service Location is useful as a bootstrap protocol.  It may be
  2661.    used in environments in which no preconfiguration is possible.  In
  2662.    such situations, a certain amount of "blind faith" is required:
  2663.    Without any prior configuration it is impossible to use any of the
  2664.    security mechanisms described above.  Service Location will make
  2665.    use of the mechanisms provided by the Security Area of the IETF for
  2666.    key distribution as they become available.  At this point it would
  2667.    only be possible to deploy the IP Authentication Header if some
  2668.    certificate information can be preconfigured with the end systems
  2669.    before they use Service Location.
  2670.  
  2671.  
  2672. 20. String Formats used with Service Location Messages
  2673.  
  2674.    The following section supplies formal definitions for fields and
  2675.    protocol elements introduced in the sections indicated.
  2676.  
  2677.       Protocol Element                      Defined in         Used in
  2678.       -----------------------------------   ------------     ------------
  2679.       <Previous Responders' Addr Spec>      20.1             SrvReq
  2680.       Service Request <predicate>           5.4              SrvReq
  2681.       URL                                   20.2             SrvReg,
  2682.                                                                SrvDereg,
  2683.                                                                SrvRply
  2684.       <attr-list>                           20.3             SrvReg,
  2685.  
  2686.  
  2687.  
  2688. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 46]
  2689.  
  2690. Internet Draft        Service Location Protocol         8 January 1997  
  2691.  
  2692.  
  2693.                                                                SrvRply,
  2694.                                                                AttrRply
  2695.       <Service Registration Information>    9                SrvReg
  2696.       <Service Deregister Information>      11               SrvDereg
  2697.       <Service Type String>                 20.2.1           AttrRqst
  2698.  
  2699.  
  2700.  
  2701. 20.1. Previous Responders' Address Specification
  2702.  
  2703.    The previous responders' Address Specification is specified as
  2704.  
  2705.       <Previous Responders' Address Specification> ::=
  2706.              <addr-spec>, |
  2707.              <addr-spec>, <Previous Responders' Address Specification>
  2708.  
  2709.    i.e., a list separated and terminated by commas with no intervening
  2710.    white space.  The Address Specification is the address of the
  2711.    Directory Agent or Service Agent which supplied the previous
  2712.    response.  The format for Address Specifications in Service Location
  2713.    is defined in section 20.4.  The comma delimiter is required between
  2714.    each <addr-spec>.  The use of dotted decimal IP address notation
  2715.    should only be used in environments which have no Domain Name
  2716.    Service.
  2717.  
  2718.    Example:
  2719.  
  2720.          RESOLVO.NEATO.ORG,128.127.203.63
  2721.  
  2722.  
  2723. 20.2. Formal Definition of the ``service:''  Scheme
  2724.  
  2725.    A URL with a ``service:''  scheme is used in the SrvReg, SrvDereg,
  2726.    SrvRply and AttrRqst messages in Service Location.  URLs are defined
  2727.    in RFC 1738 [7].  A URL with the ``service:''  scheme must contain at
  2728.    least:
  2729.  
  2730.    <url> ::= service:<srvtype>://<addr-spec>
  2731.  
  2732.    where:
  2733.  
  2734.       service       the URL scheme for Service Location, to return
  2735.                     Replies.
  2736.  
  2737.       <srvtype>     a string; Service Types may be standardized
  2738.                     by developing a specification for the "service
  2739.                     type"-specific part and registering it with IANA.
  2740.                     See sections 20.2.1 and 3.3.
  2741.  
  2742.  
  2743.  
  2744. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 47]
  2745.  
  2746. Internet Draft        Service Location Protocol         8 January 1997  
  2747.  
  2748.  
  2749.       <addr-spec>   the service access point of the service.  It is the
  2750.                     network address or domain name where the service can
  2751.                     be accessed.  See section 20.4.
  2752.  
  2753.    The ``service:''  scheme may be followed by any legal URL. The
  2754.    'minimal' service URL provides a service type and an access point for
  2755.    a particular service.  The protocol used to access the service at
  2756.    the given service access <addr-spec> may be implicit in the Service
  2757.    Type name.  If this is not the case, the Service Type MUST be defined
  2758.    in such a way that attribute information will include all necessary
  2759.    configuration and protocol information.  A User Agent MUST therefore
  2760.    be able to use either a ``service:''  URL alone or a ``service:''
  2761.    URL in conjunction with service attributes to make use of a service.
  2762.  
  2763.  
  2764. 20.2.1. Service Type String
  2765.  
  2766.    The Service Type is a string describing the type of service.  These
  2767.    strings may only be comprised of 'a' through 'z', '+' and '-'.  Upper
  2768.    case is considered equivalent to lower case in Service Type names.
  2769.  
  2770.    If the Service Type name is followed by a '.'  and a string (which
  2771.    has the same limitations) the 'suffix' is considered to be the Naming
  2772.    Authority of the service.  If the Naming Authority is omitted, IANA
  2773.    is assumed to be the Naming Authority.
  2774.  
  2775.    Service Types developed for in-house or experimental use may have any
  2776.    name and attribute semantics provided that they do not conflict with
  2777.    the standardized Service Types.  The Service Type's Service specific
  2778.    Multicast Address used should taken from the range of experimental
  2779.    multicast addresses reserved by the IANA.
  2780.  
  2781.  
  2782. 20.3. Attribute Information
  2783.  
  2784.    The <attr-list> is returned in the Attribute Reply if the Attribute
  2785.    Request does not result in an empty result.
  2786.  
  2787.    <attr-list> ::= <attribute> | <attribute>, <attr-list>
  2788.    <attribute> ::= (<attr-tag>=<attr-val-list>) | <keyword>
  2789.    <attr-val-list> ::= <attr-val> | <attr-val>, <attr-val-list>
  2790.  
  2791.    An <attr-list> must be scanned prior to evaluation for all
  2792.    occurrences of the string "&#" followed by one or more digit followed
  2793.    by ';'.  See Section 17.1 and specifically Section 17.1.1.
  2794.  
  2795.    A keyword has only an <attr-tag>, and no values.
  2796.  
  2797.  
  2798.  
  2799.  
  2800. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 48]
  2801.  
  2802. Internet Draft        Service Location Protocol         8 January 1997  
  2803.  
  2804.  
  2805.    A comma cannot appear in an <attr-val>, as the comma is used as the
  2806.    multiple value delimiter.  Examples of an <attr-list> are:
  2807.  
  2808.          (SCOPE=ADMINISTRATION)
  2809.          (COLOR=RED, WHITE, BLUE)
  2810.          (DELAY=10 MINS),BUSY,(LATEST BUILD=10-5-95),(PRIORITY=L,M,H)
  2811.  
  2812.    The third example has three attributes in the list.  Color can take
  2813.    on the values red, white and blue.  There are several other examples
  2814.    of replies throughout the document.
  2815.  
  2816.  
  2817. 20.4. Address Specification in Service Location
  2818.  
  2819.    The address specification used in Service Location is:
  2820.  
  2821.      <addr-spec> ::= [<user>:<password>@]<host>[:<port>]
  2822.  
  2823.      <host>      ::= Fully qualified domain name |
  2824.                      dotted decimal IP address notation
  2825.  
  2826.    It is preferable to use a fully qualified domain name wherever
  2827.    possible as renumbering of host addresses will make IP addresses
  2828.    invalid over time.
  2829.  
  2830.    When no Domain Name Server is available SAs and DAs must use dotted
  2831.    decimal conventions for IP addresses.
  2832.  
  2833.    Generally, just the host domain name (or address) is sufficient to
  2834.    return.  When there is a non-standard port for the protocol, that
  2835.    should be returned as well.  Some applications may make use of the
  2836.    <user>:<password>@ syntax, but its use is not encouraged in this
  2837.    context until mechanisms are established to maintain confidentiality.
  2838.  
  2839.    Address specification in Service Location is consistent with standard
  2840.    URL format [7].
  2841.  
  2842.  
  2843. 20.5. Attribute Value encoding rules
  2844.  
  2845.    Attribute values, and attribute tags are CASE INSENSITIVE for
  2846.    purposes of lexical comparison.
  2847.  
  2848.    Attribute values can have be any string with the exception of '(',
  2849.    ')', '=', '>', '<', '/' and ',' (the comma) except in the case
  2850.    described below where opaque values are encoded.  These characters
  2851.    may be included using the character value escape mechanism described
  2852.    in section 17.1.
  2853.  
  2854.  
  2855.  
  2856. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 49]
  2857.  
  2858. Internet Draft        Service Location Protocol         8 January 1997  
  2859.  
  2860.  
  2861.    While an attribute can take any value, there are three types
  2862.    of values which differentiate themselves from general strings:
  2863.    Booleans, Integers and Opaque values.
  2864.  
  2865.     -  Boolean values are either "TRUE" or "FALSE".  This is the case
  2866.        regardless of the language (i.e.  in French or Telugu, Boolean
  2867.        TRUE is "TRUE", as well as in English.)  Boolean attributes can
  2868.        take only one value.
  2869.  
  2870.     -  Integer values are expressed as a sequence of numbers.  The range
  2871.        of allowable values, for this 32 bit quantity, is "-2147483648"
  2872.        to "2147483647".  Note:  No other form of numeric representation
  2873.        is interpreted as such, save integers.  For example, hexadecimal
  2874.        numbers such as "0x342" are not interpreted as integers, but as
  2875.        strings.
  2876.  
  2877.     -  Opaque values (i.e.  binary values) are expressed in radix-64
  2878.        notation.  The syntax is:
  2879.  
  2880.             <opaque-val>    ::=  (<len>:<radix-64-data>)
  2881.             <len>           ::=  number of bytes of the original data
  2882.             <radix-64-data> ::=  radix-64 encoding of the original data
  2883.  
  2884.        Radix-64 encodes every 3 bytes of binary data into 4 bytes of
  2885.        ASCII data which is in the range of characters which are fully
  2886.        printable and transferable by mail.  For a formal definition of
  2887.        the Radix-64 format see RFC 1521 [8], MIME Part One, Section 5.2
  2888.        Base64 Content Transfer Encoding, page 21.
  2889.  
  2890.  
  2891. 21. Implementation Requirements
  2892.  
  2893.    A User Agent MAY:
  2894.  
  2895.     -  Provide a way for the application to configure the default DA, so
  2896.        that it can be used without needing to find it each initially.
  2897.  
  2898.     -  Be able to request the address of a DA from DHCP, if configured
  2899.        to do so.
  2900.  
  2901.     -  Ignore any unauthenticated Service Reply or Attribute Reply.
  2902.  
  2903.     -  Be able to issue requests in any language or character set
  2904.        provided that it can switch to the default language and character
  2905.        set if the request can not be serviced by DAs and SAs at the
  2906.        site.
  2907.  
  2908.    A User Agent SHOULD:
  2909.  
  2910.  
  2911.  
  2912. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 50]
  2913.  
  2914. Internet Draft        Service Location Protocol         8 January 1997  
  2915.  
  2916.  
  2917.     -  Use a Scope in all requests, if possible.
  2918.  
  2919.     -  Issue requests to scoped DAs if the UA has been configured with a
  2920.        scope.
  2921.  
  2922.     -  Listen on the Service Location General Multicast address for
  2923.        unsolicited DA Advertisements.  This will increase the set
  2924.        of Directory Agents available to it for making replies.  See
  2925.        Section 15.2.
  2926.  
  2927.    If the UA does not listen fro DA Advertisements, new DAs will not
  2928.    be passively detected.  A UA which does not have a configured DA
  2929.    and has not yet discovered one and is not listening for unsolicited
  2930.    DA Advertisements will remain ignorant of DAs.  It may then do
  2931.    a DA discovery before each query performed or it may simply use
  2932.    multicasted queries to Service Agents.
  2933.  
  2934.    A User Agent MUST:
  2935.  
  2936.     -  Be able to unicast requests and receive replies from a DA.
  2937.        Transactions should be made reliable by using retransmission
  2938.        of the request if the reply does not arrive within a timeout
  2939.        interval.
  2940.  
  2941.     -  Be able to detect DAs using a Directory Agent Discovery request
  2942.        issued when the UA starts up.
  2943.  
  2944.     -  Be able to send requests to a multicast address.  If the
  2945.        multicast address is not known, the UA must be able to use a
  2946.        Service Type query to obtain the multicast address for the
  2947.        Service Type of the request.
  2948.  
  2949.     -  Be able to handle numerous replies after a multicast request.
  2950.        The implementation may be configurable so it will either return
  2951.        the first reply, all replies until a timeout or keep trying till
  2952.        the results converge.
  2953.  
  2954.     -  Ignore any unauthenticated Service Reply or Attribute Reply when
  2955.        an appropriate IPSec Security Association for that Reply exists.
  2956.  
  2957.     -  Use the IP Authentication Header or IP Encapsulating Payload in
  2958.        all Service Location messages, whenever an appropriate IPSec
  2959.        Security Association exists.
  2960.  
  2961.     -  Be able to issue requests using the US-ASCII character set.
  2962.  
  2963.    A Service Agent MAY be able to:
  2964.  
  2965.  
  2966.  
  2967.  
  2968. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 51]
  2969.  
  2970. Internet Draft        Service Location Protocol         8 January 1997  
  2971.  
  2972.  
  2973.     -  Get the address of a local Directory Agent by way of DHCP.
  2974.  
  2975.     -  Accept requests in non-US-ASCII character encodings.  This is
  2976.        encouraged, especially for UNICODE [1] and UTF-8 [17] encodings.
  2977.  
  2978.     -  Register services with a DA in non-US-ASCII character encodings.
  2979.        This is encouraged, especially for UNICODE [1] and UTF-8 [17]
  2980.        encodings.
  2981.  
  2982.    A Service Agent SHOULD be able to:
  2983.  
  2984.     -  Listen to the service-specific multicast address of the service
  2985.        it is advertising.  The incoming requests should be filtered:
  2986.        If the Address Specification of the SA is in the Previous
  2987.        Responders Address Specification list, the SA SHOULD NOT respond.
  2988.        Otherwise, a response to the multicast query SHOULD be unicast to
  2989.        the UA which sent the request.
  2990.  
  2991.     -  Listen for and respond to broadcast requests and TCP connection
  2992.        requests, to the Service Location port.
  2993.  
  2994.     -  Listen to the Service Location General Multicast address for
  2995.        queries (e.g., Service Type Requests).  If the query can be
  2996.        replied to by the Service Agent, the Service Agent must do
  2997.        so.  It MUST check first to make sure it is not on the list of
  2998.        'previous responders.'
  2999.  
  3000.    A Service Agent MUST be able to:
  3001.  
  3002.     -  Listen to the Service Location General Multicast address for
  3003.        unsolicited DA Advertisements.  If one is detected, and the DA
  3004.        has the right Scope, (or has no Scope), all services which are
  3005.        currently being advertised MUST be registered with the DA (unless
  3006.        configured to only use a single DA (see section 22.1), or the
  3007.        DA has already been detected, subject to certain rules (see
  3008.        section 15.2)).
  3009.  
  3010.     -  Unicast registrations and deregistrations to a DA. Transactions
  3011.        should be made reliable by using retransmission of the request if
  3012.        the reply does not arrive within a timeout interval.
  3013.  
  3014.     -  Be able to detect DAs using a Directory Agent Discovery request
  3015.        issued when the SA starts up (unless configured to only use a
  3016.        single DA, see section 22.1.)
  3017.  
  3018.     -  Use the IP Authentication Header or IP Encapsulating Payload in
  3019.        all Service Location messages, whenever an appropriate IPSec
  3020.        Security Association exists.
  3021.  
  3022.  
  3023.  
  3024. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 52]
  3025.  
  3026. Internet Draft        Service Location Protocol         8 January 1997  
  3027.  
  3028.  
  3029.     -  Be able to register service information with a DA using US-ASCII
  3030.        character encoding.  It must also be able to reply to requests
  3031.        from UAs which use US-ASCII character encoding.
  3032.  
  3033.     -  Reregister with a DA before the Lifetime of registered service
  3034.        information elapses.
  3035.  
  3036.    A Directory Agent MAY:
  3037.  
  3038.     -  Ignore any unauthenticated Service Registration or Service
  3039.        Deregistration.
  3040.  
  3041.     -  Accept registrations and requests in non-US-ASCII character
  3042.        encodings.  This is encouraged, especially for UNICODE [1] and
  3043.        UTF-8 [17] encodings.
  3044.  
  3045.    A Directory Agent MUST be able to:
  3046.  
  3047.     -  Send an unsolicited DA Advertisements to the Service Location
  3048.        General Multicast address on startup and repeat it periodically.
  3049.        This reply has an XID which is incremented by one each time.  If
  3050.        the DA starts with state, it initializes the XID to 0x0100.  If
  3051.        it starts up stateless, it initializes the XID to 0x0000.
  3052.  
  3053.     -  Listen on the Directory Agent Discovery Multicast Address for
  3054.        Directory agent discovery requests.  Filter these requests if the
  3055.        Previous Responder Address Specification list includes the DA's
  3056.        Address Specification.
  3057.  
  3058.     -  Listen for broadcast requests to the Service Location port.
  3059.  
  3060.     -  Listen on the TCP and UDP Service Location Ports for unicast
  3061.        requests, registrations and deregistrations and service them.
  3062.  
  3063.     -  Provide a way in which Scope information can be used to configure
  3064.        the Directory Agent.
  3065.  
  3066.     -  Age out the services which have been registered so that when
  3067.        the service registration's Lifetime expires, the service
  3068.        advertisement is withdrawn.
  3069.  
  3070.     -  When a Directory Agent has been configured with a Scope, it MUST
  3071.        refuse all requests and registrations which do not have this
  3072.        Scope.  The DA replies with a SCOPE_NOT_SUPPORTED error.  There
  3073.        is one exception:  All DAs MUST respond to DA discovery requests
  3074.        which have no Scope.
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 53]
  3081.  
  3082. Internet Draft        Service Location Protocol         8 January 1997  
  3083.  
  3084.  
  3085.     -  When a Directory Agent has been configured without a Scope, it
  3086.        MUST accept ALL registrations and requests.
  3087.  
  3088.     -  Ignore any unauthenticated Service Location messages when an
  3089.        appropriate IPSec Security Association exists for that request.
  3090.  
  3091.     -  Use the IP Authentication and IP Encapsulating Security Payload
  3092.        in Service Location messages whenever an appropriate IPSec
  3093.        Security Association exists.
  3094.  
  3095.     -  Accept requests and registrations in US-ASCII.
  3096.  
  3097.    NOTE: Service Agents and User Agents use ephemeral ports for
  3098.    transmitting information to the service location port.
  3099.  
  3100.  
  3101. 22. Configurable Parameters and Default Values
  3102.  
  3103.    There are several configuration parameters for Service Location.
  3104.    The protocol will work fine if only default values are used.  Due
  3105.    to the nature of the protocol, it may be deployed in many different
  3106.    environments.  The configuration options parameters will allow an
  3107.    implementation of Service Location to be useful in a variety of
  3108.    different scenarios.
  3109.  
  3110.       Multicast vs.  Broadcast
  3111.                All Service Location entities must use multicast by
  3112.                default.  The ability to use broadcast messages must
  3113.                be configurable.  Broadcast messages are to be used in
  3114.                environments where not all Service Location entities have
  3115.                hardware or software which supports multicast.
  3116.  
  3117.       Multicast Radius
  3118.                Multicast requests should be sent to all subnets in a
  3119.                site.  The default multicast radius for a site is 32.
  3120.                This value must be configurable.  The value for the
  3121.                site's multicast TTL may be obtained from DHCP. The DHCP
  3122.                option has not yet been assigned.
  3123.  
  3124.       Directory Agent Address
  3125.                The Directory Agent address discovery mechanism must be
  3126.                configurable.  There are three possibilities for this
  3127.                configuration:  A default address, no default address
  3128.                and the use of DHCP to locate a DA as described in
  3129.                section 15.2.  The default value should be "no default
  3130.                address." In this case the UA or SA must do a Directory
  3131.                Agent Discovery query.
  3132.  
  3133.  
  3134.  
  3135.  
  3136. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 54]
  3137.  
  3138. Internet Draft        Service Location Protocol         8 January 1997  
  3139.  
  3140.  
  3141.       Directory Agent Scope Assignment
  3142.                The Scope or Scopes of a DA must be configurable.  The
  3143.                default value for a DA is to have no Scope if not
  3144.                otherwise configured.
  3145.  
  3146.       Default Path MTU
  3147.                The default path MTU is assumed to be 1400.  This value
  3148.                may be too large for the infrastructure of some sites.
  3149.                For this reason this value MUST be configurable for all
  3150.                SAs and DAs.
  3151.  
  3152.                If a UA issues a request which will result in a
  3153.                reply which is too large, the SA or DA will return an
  3154.                abbreviated response (in a datagram the size of the
  3155.                site's MTU) which has the 'Overflow' bit flag set.
  3156.                The UA must then issue the request again using a tcp
  3157.                connection.
  3158.  
  3159.                Similarly, if a SA attempts to register a service with a
  3160.                DA and the registration is larger than the site path MTU
  3161.                the DA will reply with a SrvAck, with the error set to
  3162.                INVALID_REGISTRATION and the 'Overflow' byte set.
  3163.  
  3164.  
  3165. 22.1. Service Agent:  Use Predefined Directory Agent(s)
  3166.  
  3167.    A Service Agent's default configuration is to do passive and active
  3168.    DA discovery and to register with all DAs which are properly scoped.
  3169.  
  3170.    A Service Agent SHOULD be configurable to allow a special mode of
  3171.    operation:  They will use only preconfigured DAs.  This means they
  3172.    will *NOT* actively or passively detect DAs.
  3173.  
  3174.    If a Service Agent is configured this way, knowledge of the DA must
  3175.    come through another channel, either static configuration or by the
  3176.    use of DHCP.
  3177.  
  3178.    The availability of the Service information will not be consistent
  3179.    between DAs.  The mechanisms which achieve eventual consistency
  3180.    between DAs are ignored by the SA, so their service information will
  3181.    not be distributed.  This leaves the SA open to failure if the DA
  3182.    they are configured to use fails.
  3183.  
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 55]
  3193.  
  3194. Internet Draft        Service Location Protocol         8 January 1997  
  3195.  
  3196.  
  3197. 22.2. Time Out Intervals
  3198.  
  3199.    These values should be configurable in case the site deploying
  3200.    Service Location has special requirements (such as very slow links.)
  3201.  
  3202.    Interval name       Section Default Value Meaning
  3203.    -----------------   ------- ------------- -----------------------
  3204.    CONFIG_INTERVAL_0   4.1     1 minute      Cache replies by XID.
  3205.    CONFIG_INTERVAL_1   4.2     10800 seconds registration Lifetime,
  3206.                                (ie.  3 hours)after which ad expires
  3207.    CONFIG_INTERVAL_2   5       each second,  Retry multicast query
  3208.                                backing off   until no new values
  3209.                                gradually     arrive.
  3210.    CONFIG_INTERVAL_3   5       15 seconds    Max time to wait for a
  3211.                                              complete multicast query
  3212.                                              response (all values.)
  3213.    CONFIG_INTERVAL_4   9       3 seconds     Wait to register on
  3214.                                              reboot.
  3215.    CONFIG_INTERVAL_5   5.2     3 seconds     Retransmit DA discovery,
  3216.                                              try it 3 times.
  3217.    CONFIG_INTERVAL_6   5.2     5 seconds     Give up on requests sent
  3218.                                              to a DA.
  3219.    CONFIG_INTERVAL_7   5.2     15 seconds    Give up on DA discovery
  3220.    CONFIG_INTERVAL_8   5.1     15 seconds    Give up on requests
  3221.                                              sent to SAs.
  3222.    CONFIG_INTERVAL_9   15.2    3 hours       DA Heartbeat, so that SAs
  3223.                                              will
  3224.                                              passively detect new DAs.
  3225.    CONFIG_INTERVAL_10  15.2    1-3 seconds   Wait to register services
  3226.                                              on passive DA discovery.
  3227.    CONFIG_INTERVAL_11  9       1-3 seconds   Wait to register services
  3228.                                              on active DA discovery.
  3229.    CONFIG_INTERVAL_12  18.1    5 minutes     DAs and SAs close idle
  3230.                                              connections.
  3231.  
  3232.  
  3233.    A note on CONFIG_INTERVAL_9:  While it might seem advantageous to
  3234.    have frequent heartbeats, this poses a significant risk of generating
  3235.    a lot of overhead traffic.  This value should be kept high to prevent
  3236.    routine protocol operations from using any significant bandwidth.
  3237.  
  3238.  
  3239. 23. Non-configurable Parameters
  3240.  
  3241.    IP Port number for unicast requests to Directory Agents:
  3242.  
  3243.          UDP and TCP Port Number:                          427
  3244.  
  3245.  
  3246.  
  3247.  
  3248. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 56]
  3249.  
  3250. Internet Draft        Service Location Protocol         8 January 1997  
  3251.  
  3252.  
  3253.    Multicast Addresses
  3254.  
  3255.          Service Location General Multicast Address:       224.0.1.22
  3256.          Directory Agent Discovery Multicast Address:      224.0.1.35
  3257.  
  3258.    Further service-specific multicast address will be assigned for
  3259.    specific types of service through the IANA.
  3260.  
  3261.    Error Codes:
  3262.  
  3263.          No Error                   0
  3264.          LANGUAGE_NOT_SUPPORTED     1
  3265.          PROTOCOL_PARSE_ERROR       2
  3266.          INVALID_REGISTRATION       3
  3267.          SCOPE_NOT_SUPPORTED        4
  3268.          CHARSET_NOT_UNDERSTOOD     5
  3269.          AUHENTICATION_FAILED       6
  3270.  
  3271.  
  3272.  
  3273. 24. Acknowledgments
  3274.  
  3275.    This protocol owes some of the original ideas to other service
  3276.    location protocols found in many other networking protocols.  Leo
  3277.    McLaughlin and Mike Ritter (Metricom) provided much input into early
  3278.    version of this document.  Thanks also to Steve Deering (Xerox) for
  3279.    providing his insight into distributed multicast protocols.  Harry
  3280.    Harjono and Charlie Perkins supplied the basis for the URL based
  3281.    wire protocol in their Resource Discovery Protocol.  Thanks also to
  3282.    Peerlogic, Inc.  for supporting this work.
  3283.  
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 57]
  3305.  
  3306. Internet Draft        Service Location Protocol         8 January 1997  
  3307.  
  3308.  
  3309. A. Appendix:  Technical contents of ISO 639:1988 (E/F): "Code for the
  3310.    representation of names of languages"
  3311.  
  3312.    Two-letter lower-case symbols are used.  The Registration Authority
  3313.    for ISO 639 [12] is Infoterm, Osterreiches Normungsinstitut (ON),
  3314.    Postfach 130, A-1021 Vienna, Austria.  Contains additions from ISO
  3315.    639/RA Newsletter No.1/1989
  3316.  
  3317.     aa Afar               ga Irish               mg Malagasy
  3318.     ab Abkhazian          gd Scots Gaelic        mi Maori
  3319.     af Afrikaans          gl Galician            mk Macedonian
  3320.     am Amharic            gn Guarani             ml Malayalam
  3321.     ar Arabic             gu Gujarati            mn Mongolian
  3322.     as Assamese                                  mo Moldavian
  3323.     ay Aymara             ha Hausa               mr Marathi
  3324.     az Azerbaijani        he Hebrew              ms Malay
  3325.                           hi Hindi               mt Maltese
  3326.     ba Bashkir            hr Croatian            my Burmese
  3327.     be Byelorussian       hu Hungarian
  3328.     bg Bulgarian          hy Armenian            na Nauru
  3329.     bh Bihari                                    ne Nepali
  3330.     bi Bislama            ia Interlingua         nl Dutch
  3331.     bn Bengali; Bangla    in Indonesian          no Norwegian
  3332.     bo Tibetan            ie Interlingue
  3333.     br Breton             ik Inupiak             oc Occitan
  3334.                           is Icelandic           om (Afan) Oromo
  3335.     ca Catalan            it Italian             or Oriya
  3336.     co Corsican           ja Japanese
  3337.     cs Czech              jw Javanese            pa Punjabi
  3338.     cy Welsh                                     pl Polish
  3339.                           ka Georgian            ps Pashto, Pushto
  3340.     da Danish             kk Kazakh              pt Portuguese
  3341.     de German             kl Greenlandic
  3342.     dz Bhutani            km Cambodian           qu Quechua
  3343.                           rw Kinyarwanda
  3344.     el Greek              kn Kannada             rm Rhaeto-Romance
  3345.     en English            ko Korean              rn Kirundi
  3346.     eo Esperanto          ks Kashmiri            ro Romanian
  3347.     es Spanish            ku Kurdish             ru Russian
  3348.     et Estonian           ky Kirghiz
  3349.     eu Basque
  3350.                           la Latin
  3351.     fa Persian            ln Lingala
  3352.     fi Finnish            lo Laothian
  3353.     fj Fiji               lt Lithuanian
  3354.     fo Faeroese           lv Latvian, Lettish
  3355.     fr French
  3356.     fy Frisian
  3357.  
  3358.  
  3359.  
  3360. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 58]
  3361.  
  3362. Internet Draft        Service Location Protocol         8 January 1997  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.     sa Sanskrit           ta Tamil               ug Uigar
  3368.     sd Sindhi             te Telugu              uk Ukrainian
  3369.     sg Sangro             tg Tajik               ur Urdu
  3370.     sh Serbo-Croatian     th Thai                uz Uzbek
  3371.     si Singhalese         ti Tigrinya
  3372.     sk Slovak             tk Turkmen             vi Vietnamese
  3373.     sl Slovenian          tl Tagalog             vo Volapuk
  3374.     sm Samoan             tn Setswana
  3375.     sn Shona              to Tonga               wo Wolof
  3376.     so Somali             tr Turkish
  3377.     sq Albanian           ts Tsonga              xh Xhosa
  3378.     sr Serbian            tt Tatar
  3379.     ss Siswati            tw Twi                 yi Yiddish
  3380.     st Sesotho                                   yo Yoruba
  3381.     su Sundanese
  3382.     sv Swedish                                   za Zhuang
  3383.     sw Swahili                                   zh Chinese
  3384.                                                  zu Zulu
  3385.  
  3386.  
  3387.  
  3388. B. Appendix:  For Further Reading
  3389.  
  3390.    Three related resource discovery protocols are NBP and ZIP
  3391.    which are part of the AppleTalk protocol family [11], the Legato
  3392.    Resource Administration Platform [18], and the Xerox Clearinghouse
  3393.    system [16].  Domain names and representation of addresses are
  3394.    used extensively in the Service Location Protocol.  The references
  3395.    for these are RFCs 1034 and 1035 [14, 15].  An example of service
  3396.    discovery protocol for a specific service is Router Discovery [9].
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 59]
  3417.  
  3418. Internet Draft        Service Location Protocol         8 January 1997  
  3419.  
  3420.  
  3421. References
  3422.  
  3423.     [1] Unicode Technical Report #4.  The unicode standard, version 1.1
  3424.         (volumes 1 and 2).  Technical Report (ISBN 0-201-56788-1) and
  3425.         (ISBN 0-201-60845-6), Unicode Consortium, 1994.
  3426.  
  3427.     [2] S. Alexander and R. Droms.  DHCP Options and BOOTP Vendor
  3428.         Extensions.  RFC 1533, October 1993.
  3429.  
  3430.     [3] R. Atkinson.  IP Authentication Header.  RFC 1826, August 1995.
  3431.  
  3432.     [4] R. Atkinson.  IP Encapsulating Security Payload.  RFC 1827,
  3433.         August 1995.
  3434.  
  3435.     [5] R. Atkinson.  Security Architecture for the Internet Protocol.
  3436.         RFC 1825, August 1995.
  3437.  
  3438.     [6] T. Berners-Lee and D. Connolly.  Hypertext Markup Language -
  3439.         2.0.  RFC 1866, November 1995.
  3440.  
  3441.     [7] T. Berners-Lee, L. Masinter, and M. McCahill.  Uniform Resource
  3442.         Locators (URL).  RFC 1738, December 1994.
  3443.  
  3444.     [8] N. Borenstein and N. Freed.  MIME (Multipurpose Internet Mail
  3445.         Extensions) Part One:  Mechanisms for Specifying and Describing
  3446.         the Format of Internet Message Bodies.  RFC 1521, September
  3447.         1993.
  3448.  
  3449.     [9] Stephen E. Deering, editor.  ICMP Router Discovery Messages.
  3450.         RFC 1256, September 1991.
  3451.  
  3452.    [10] Ralph Droms.  Dynamic Host Configuration Protocol.  RFC 1541,
  3453.         October 1993.
  3454.  
  3455.    [11] S. Gursharan, R. Andrews, and A. Oppenheimer.  Inside AppleTalk.
  3456.         Addison-Wesley, 1990.
  3457.  
  3458.    [12] Geneva ISO.  Code for the representation of names of languages.
  3459.         ISO 639:1988 (E/F), 1988.
  3460.  
  3461.    [13] Geneva ISO 8879.  Information Processing -- Text and Office
  3462.         Systems - Standard Generalized Markup Language (SGML).
  3463.         <URL:http://www.iso.ch/cate/d16387.html>, 1986.
  3464.  
  3465.    [14] P. Mockapetris.  Domain Names - Concepts and Facilities.  RFC
  3466.         1034, November 1987.
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 60]
  3473.  
  3474. Internet Draft        Service Location Protocol         8 January 1997  
  3475.  
  3476.  
  3477.    [15] P. Mockapetris.  DOMAIN NAMES - IMPLEMENTATION AND
  3478.         SPECIFICATION.  RFC 1035, November 1987.
  3479.  
  3480.    [16] D. Oppen and Y. Dalal.  The clearinghouse:  A decentralized
  3481.         agent for locating named objects in a distributed environment.
  3482.         Technical Report Tech. Rep. OPD-78103, Xerox Office Products
  3483.         Division, 1981.
  3484.  
  3485.    [17] X/Open Preliminary Specification.  File System Safe UCS
  3486.         Transformation Format (FSS_UTF).  Technical Report Document
  3487.         Number:  P316, X/Open Company Ltd., 1994.
  3488.  
  3489.    [18] Legato Systems.  The Legato Resource Administration Platform.
  3490.         Legato Systems, 1991.
  3491.  
  3492.  
  3493.  
  3494.  
  3495.  
  3496. Authors' Addresses
  3497.  
  3498.    Questions about this memo can be directed to:
  3499.  
  3500.    John Veizades                       Erik Guttman
  3501.    @Home Network                       Sun Microsystems
  3502.    385 Ravendale Dr.                   Gaisbergstr. 6
  3503.    Mountain View, CA 94043             69115 Heidelberg Germany
  3504.  
  3505.    Phone: +1 415 944 7332              Phone: +49 6221 601649
  3506.    Fax:   +1 415 944 8500              Fax:   +49 6221 161019
  3507.  
  3508.    Email: veizades@home.com            Email: Erik.Guttman@eng.sun.com
  3509.  
  3510.  
  3511.  
  3512.  
  3513.    Charles Perkins                     Scott Kaplan
  3514.    IBM Corporation
  3515.    P.O. Box 704                        346 Fair Oaks St.
  3516.    Yorktown Heights NY 10598           San Francisco, CA 94110
  3517.  
  3518.    Phone: +1 914 784 7350              Phone: +1 415 285 4526
  3519.    Fax:   +1 914 784 6205
  3520.  
  3521.    EMail: perk@watson.ibm.com          Email: scott@catch22.com
  3522.  
  3523.  
  3524.  
  3525.  
  3526.  
  3527.  
  3528. Veizades,Guttman,Perkins,Kaplan      Expires 8 July 1997       [Page 61]
  3529.  
  3530.