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-discovery-02.txt < prev    next >
Text File  |  1997-06-18  |  16KB  |  475 lines

  1. Internet-Draft                                                Ryan Moats
  2. draft-ietf-svrloc-discovery-02.txt                                  AT&T
  3. Expires: December 1997                                    Martin Hamilton
  4.                                                  Loughborough University
  5.                                                            Paul J. Leach
  6.                                                                Microsoft
  7.                                                                June 1997
  8.  
  9.  
  10.                              Finding Stuff
  11.                        (How to discover services)
  12.               Filename: draft-ietf-svrloc-discovery-02.txt
  13.  
  14.  
  15. Status of This Memo
  16.  
  17.       This document is an Internet-Draft.  Internet-Drafts are working
  18.       documents of the Internet Engineering Task Force (IETF), its
  19.       areas, and its working groups.  Note that other groups may also
  20.       distribute working documents as Internet-Drafts.
  21.  
  22.       Internet-Drafts are draft documents valid for a maximum of six
  23.       months and may be updated, replaced, or obsoleted by other
  24.       documents at any time.  It is inappropriate to use Internet-
  25.       Drafts as reference material or to cite them other than as ``work
  26.       in progress.''
  27.  
  28.       To learn the current status of any Internet-Draft, please check
  29.       the ``1id-abstracts.txt'' listing contained in the Internet-
  30.       Drafts Shadow Directories on ftp.is.co.za (Africa), nic.nordu.net
  31.       (Europe), munnari.oz.au (Pacific Rim), ds.internic.net (US East
  32.       Coast), or ftp.isi.edu (US West Coast).
  33.  
  34.  
  35. Abstract
  36.  
  37.    This document proposes a solution to the problem of finding
  38.    information about that services are being offered at a particular
  39.    Internet domain.  Therefore, it is possible for clients, using this
  40.    approach, to locate services in a domain with only prior knowledge of
  41.    the domain name.
  42.  
  43.  
  44. 1. Rationale
  45.  
  46.    Currently, there is no one single way of discovering the network
  47.    services and application protocols supported at a particular Internet
  48.    domain.  The Domain Name System (DNS) provides some basic facilities
  49.  
  50.  
  51.  
  52. Expires 12/31/97                                                [Page 1]
  53.  
  54.  
  55.  
  56.  
  57.  
  58. INTERNET DRAFT               Finding Stuff                     June 1997
  59.  
  60.  
  61.    for finding the hosts that offer particular services, such as DNS
  62.    servers themselves (NS records), mail exchangers (MX records [3]).
  63.    Recently general service records (SRV records [1]) have been proposed
  64.    for DNS, along with storing geographic information (LOC records [6]).
  65.    In addition, there are evolving methods for doing service location
  66.    via other methods [4] & [5].
  67.  
  68.    This document sets forth a process to rationalize how a client could
  69.    use these various methods for service location.  In this process, the
  70.    use of the Service Location Protocol [4] is highlighted to allow
  71.    clients to discover services by characteristics rather than by type
  72.    alone.  With the use of SRVs alone, all services are assumed to be
  73.    identical except for weight.  While this may be the case at some
  74.    locations, SLP will still be useful as it provides a dynamic
  75.    registration framework for services.
  76.  
  77.  
  78. 2. The process
  79.  
  80.    This process is an aggregation of several different ideas.  To
  81.    explicitly point out which ideas are being used, the steps of the
  82.    process have been grouped by section according to which technique is
  83.    being used.
  84.  
  85.    For a client in domain "srcdom" that wants to locate service
  86.    "service" in domain "tgtdom", the following process should be
  87.    followed:
  88.  
  89. 2.1 Support for "Sites" Alias Structure (see Appendix A)
  90.  
  91.       1. If "srcdom" is of the form "<site>@<org-domain-name>" and
  92.       "<org-domain-name>" is a suffix of "tgtdom", then do steps 2
  93.       through 9 with "target" set to "<site>.sites.<domain-name>".  If
  94.       this procedure fails or the condition is not met, set "target" to
  95.       "tgtdom".
  96.  
  97. 2.2 Support for SVRLOC
  98.  
  99.       2. If "srcdom" == "target" and the client supports it, use the
  100.       Service Location Protocol to determine if the service can be found
  101.       that way.
  102.  
  103.       3. If the client supports Service Location Protocol, look for SRV
  104.       records [1] for a directory agent (i.e. da.udp."target" or
  105.       da.tcp."target").  This consists of:
  106.  
  107.       3a. Do a lookup of QNAME=da.tcp.target, QCLASS=IN, QTYPE=SRV.
  108.  
  109.  
  110.  
  111.  
  112. Expires 12/31/97                                                [Page 2]
  113.  
  114.  
  115.  
  116.  
  117.  
  118. INTERNET DRAFT               Finding Stuff                     June 1997
  119.  
  120.  
  121.       3b. If the reply is NOERROR, ANCOUNT>0 and there is at least one
  122.       SRV RR that specifies the requested Service and Protocol in the
  123.       reply:
  124.  
  125.         If there is precisely one SRV RR, and its Target is "." (the
  126.         root domain), go to step 3c.
  127.  
  128.         For all SRV RR's build a list of (Priority, Weight, Target)
  129.         tuples and sort the list by priority (lowest number first).
  130.  
  131.         Create a new empty list.
  132.  
  133.         For each distinct priority level:
  134.  
  135.           For each element at this priority level:
  136.             While there are still elements left at this priority level,
  137.             select an element randomly, with probability weight, and
  138.             move it to the tail of the new list.
  139.  
  140.           For each element in the new list:
  141.             Query the DNS for A RR's for the target or use any RR's
  142.             found in the additional data section of the earlier SRV
  143.             query.
  144.  
  145.             For each A RR found, try to connect to the directory agent
  146.             using the Service Location Protocol over TCP.
  147.  
  148.       3c. Else do a lookup of QNAME=da.udp.target, QCLASS=IN, QTYPE=SRV.
  149.  
  150.       3d. Process the reply as in 3b, except that if there is precisely
  151.       one SRV RR with a target of ".", go to step 4 and connections to
  152.       the directory agent use Service Location Protocol over UDP.
  153.  
  154. 2.3 Support for SRV records
  155.  
  156.       4. Look for SRV records for service.protocol.target, where
  157.       protocol is whichever protocol (TCP or UDP) is associated with
  158.       service.  This consists of:
  159.  
  160.       4a. Do a lookup for QNAME=service.protocol.target, QCLASS=IN,
  161.       QTYPE=SRV.
  162.  
  163.       4b. If the reply is NOERROR, ANCOUNT>0 and there is at least one
  164.       SRV RR that specifies the requested Service and Protocol in the
  165.       reply:
  166.  
  167.         If there is precisely one SRV RR, and its Target is "." (the
  168.         root domain), go to step 5.
  169.  
  170.  
  171.  
  172. Expires 12/31/97                                                [Page 3]
  173.  
  174.  
  175.  
  176.  
  177.  
  178. INTERNET DRAFT               Finding Stuff                     June 1997
  179.  
  180.  
  181.         For all SRV RR's, build a list of (Priority, Weight, Target)
  182.         tuples and sort the list by priority (lowest number first).
  183.  
  184.         Create a new empty list.
  185.  
  186.         For each distinct priority level:
  187.  
  188.           For each element at this priority level:
  189.             Query the DNS for LOC RR [6] for the Target (if not found in
  190.             the Additional Data section of the earlier SRV query).
  191.  
  192.             Find the nearest target and all targets "close" to the
  193.             nearest target (target to target distance less than 2-3% of
  194.             client to nearest target distance).
  195.  
  196.             Remove all other targets at this priority level.
  197.  
  198.             While there are still elements left at this priority level,
  199.             select an element randomly, with probability weight, and
  200.             move it to the tail of the new list.
  201.  
  202.           For each element in the new list:
  203.             Query the DNS for A RR's for the Target or use any RR's
  204.             found in the Additional Data section of the earlier SRV
  205.             query.
  206.  
  207.             For each A RR found, if the protocol is TCP (connection-
  208.             oriented) try to connect to the (protocol, address,
  209.             service); if the protocol is UDP, send a service request.
  210.  
  211.       5. If the service desired is SMTP, skip to RFC 974 (MX records)
  212.       else go to step 6.
  213.  
  214. 2.3 Support for "Well Known" Aliases
  215.  
  216.       6. If the service has a "well known" alias (see [2]) service',
  217.       look for A RRs for service'.target.  This is done in the following
  218.       way:
  219.  
  220.       6a. Do a lookup for QNAME=service'.target, QCLASS=IN, QTYPE=A.
  221.  
  222.         If no A RR's returned, go to step 7.
  223.  
  224.         For each A RR found, try to connect to the (protocol, address,
  225.         service).  If successful, stop.
  226.  
  227.         If all A RR's have been tried go to step 7.
  228.  
  229.  
  230.  
  231.  
  232. Expires 12/31/97                                                [Page 4]
  233.  
  234.  
  235.  
  236.  
  237.  
  238. INTERNET DRAFT               Finding Stuff                     June 1997
  239.  
  240.  
  241. 2.4 Support for Service Advertising via Service URLs
  242.  
  243.       7. Look for "service:" URLs stored in TXT RRs for service.target:
  244.  
  245.       7a. Do a lookup for QNAME=service.target, QCLASS=IN, QTYPE=TXT.
  246.  
  247.         If no TXT RR's returned, go to step 8.
  248.  
  249.         For each TXT RR found, try to connect to the (address, port)
  250.         specified in the service: URL. If successful, stop.
  251.  
  252.         If all TXT RR's have been tried go to step 8.
  253.  
  254.       8. Look for "service:" URLs stored in TXT RRs for target:
  255.  
  256.       8a. Do a lookup for QNAME=target, QCLASS=IN, QTYPE=TXT.
  257.  
  258.         If no TXT RR's returned, go to step 9.
  259.  
  260.         For each TXT RR found, try to connect to the (address, port)
  261.         specified in the service: URL. If successful, stop.
  262.  
  263.         If all TXT RR's have been tried go to step 9.
  264.  
  265. 2.5 Fallback
  266.  
  267.       9. Do a lookup for QNAME=target, QCLASS=IN, QTYPE=A
  268.  
  269.         For each A RR found, try to connect to the (protocol, address,
  270.         service).  If successful, stop.
  271.  
  272.  
  273. 3. Security Considerations
  274.  
  275.    Because of the suggested mechanisms for service discovery, this
  276.    document inherits all the security considerations of using DNS RR's
  277.    and the Service Location Protocol.  Implementors should consider both
  278.    [7] and the security section of [4] for appropriate methods.
  279.  
  280.  
  281. 4. Conclusion
  282.  
  283.    By following the above process, a client may be reasonably certain of
  284.    determining whether a particular service is provided for a particular
  285.    domain name, given the domain name.
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. Expires 12/31/97                                                [Page 5]
  293.  
  294.  
  295.  
  296.  
  297.  
  298. INTERNET DRAFT               Finding Stuff                     June 1997
  299.  
  300.  
  301. 5. Acknowledgments
  302.  
  303.    This document is partially supported by the National Science
  304.    Foundation, Cooperative Agreement NCR-9218179, the UK Electronic
  305.    Libraries Programme (eLib) grant 12/39/01, and the European
  306.    Commission's Telematics for Research Programme grant RE 1004.
  307.  
  308.  
  309. 6. References
  310.  
  311.    Request For Comments (RFC) and Internet Draft documents are available
  312.    from <URL:ftp://ftp.internic.net> and numerous mirror sites.
  313.  
  314.          [1]         A. Gulbrandsen, P. Vixie, "A DNS RR for specifying
  315.                      the location of services (DNS SRV)," RFC 2052,
  316.                      October 1996.
  317.  
  318.  
  319.          [2]         M. Hamilton, R. Wright,  "Use of DNS Aliases for
  320.                      Network Services," Internet Draft (work in pro-
  321.                      gress), June 1996.
  322.  
  323.  
  324.          [3]         S. C. Partridge, "Mail routing and the domain sys-
  325.                      tem," RFC 974, January 1, 1986.
  326.  
  327.  
  328.          [4]         J. Veizades, E. Guttman, C. Perkins, S. Kaplan,
  329.                      "Service Location Protocol," Internet Draft (work
  330.                      in progress), April 3, 1997.
  331.  
  332.  
  333.          [5]         R. Moats, M. Hamilton, "Advertising Services,"
  334.                      Internet Draft (work in progress), February 1997.
  335.  
  336.  
  337.          [6]         C. Davis, P. Vixie, T. Goodwin, I. Dickinson, "A
  338.                      Means for Expressing Location Information in the
  339.                      Domain Name System," RFC 1876, January 15, 1996.
  340.  
  341.  
  342.          [7]         D. Eastlake, C. Kaufman, "Domain Name System Secu-
  343.                      rity Extensions," RFC 2065, January 3, 1997.
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352. Expires 12/31/97                                                [Page 6]
  353.  
  354.  
  355.  
  356.  
  357.  
  358. INTERNET DRAFT               Finding Stuff                     June 1997
  359.  
  360.  
  361. 7. Authors' addresses
  362.  
  363.    Ryan Moats
  364.    AT&T
  365.    15621 Drexel Circle
  366.    Omaha, NE 68135-2358
  367.    USA
  368.    Phone:  +1 402 894-9456
  369.    EMail:  jayhawk@ds.internic.net
  370.  
  371.    Martin Hamilton
  372.    Department of Computer Studies
  373.    Loughborough University of Technology
  374.    Leics. LE11 3TU, UK
  375.    Email:  m.t.hamilton@lut.ac.uk
  376.  
  377.    Paul J. Leach
  378.    Microsoft
  379.    1 Microsoft Way
  380.    Redmond, Washington, 98052, U.S.A.
  381.    Email: paulle@microsoft.com
  382.  
  383.  
  384. A. Discovery with Large numbers of replicas
  385.  
  386.    Imagine an organization (such as a bank) which has thousands of
  387.    branch offices. For reliability, each office may want to have a
  388.    replica of (at least) certain critical information in case of loss of
  389.    connectivity to the Internet. An example of such information might be
  390.    an address book for employees or an authentication database. It is
  391.    not reasonable to use the method of the previous section to locate a
  392.    replica for the information - there would be thousands of SRV entries
  393.    for the service being replicated. Instead, it would be desirable to
  394.    have a method that first looked to see if there is a replica for the
  395.    service at the branch office, and only proceed with the more general
  396.    discovery method if there weren't.
  397.  
  398.    Let us generalize the notion of branch office to that of "site" - a
  399.    site is a collection of hosts that have good enough connectivity that
  400.    use of a service instance at the site is always to be preferred to
  401.    one at another, and that there is no connectivity reason to prefer
  402.    one replica within a site to another. A site has a site name that
  403.    incorporates a site specific component and the domain name of the
  404.    organization of the form
  405.       <site>@<org-domain-name>
  406.    Then a client at site
  407.       <site>@<org-domain-name>
  408.    looking for a service for domain <domain-name>, where <org-domain-
  409.  
  410.  
  411.  
  412. Expires 12/31/97                                                [Page 7]
  413.  
  414.  
  415.  
  416.  
  417.  
  418. INTERNET DRAFT               Finding Stuff                     June 1997
  419.  
  420.  
  421.    name> is a suffix of <domain-name>, should use the name
  422.       <site>.sites.<domain-name>
  423.    as the value of "target" in the procedure described herein.  If
  424.    the procedure fails, then it should try with
  425.          <domain-name>
  426.    as the value of "target" using the procedure presented above. Note
  427.    that within a site, this means the client either uses SVRLOC (if
  428.    supported) or straight SRV records; by definition of "site", there
  429.    would be no advantage to be gained from using LOC records.
  430.  
  431.    For example, suppose a client at the site "dublin@univexports.com"
  432.    wanted to access the LDAP server for the Asian region of Universal
  433.    Exports, whose domain name was "fareast.univexports.com". It would
  434.    observe that  its <org-domain-name> of "univexports.com" was a suffix
  435.    of "fareast.univexports.com", and first build the name
  436.    "dublin.sites.fareast.univexports.com" to use as the "target" in the
  437.    procedure above; this might cause it to then lookup
  438.    SRV records for "ldap.tcp.dublin.sites.fareast.univexports.com" or
  439.    A records for "ldap.dublin.sites.fareast.univexports.com" or even
  440.    TXT records for "dublin.sites.fareast.univexports.com" (looking
  441.    for "service:" URLs of the type wp-ldap).
  442.  
  443.    Note that the list of records for a site does not have to point
  444.    at only hosts at that site - for example, the highest priority
  445.    records could be for hosts at the site, and then some lower priority
  446.    records for hosts at the best-connected alternate site for backup.
  447.  
  448.    Using this method, a client looking for a service that has an replica
  449.    at its site will only have to fetch records for its site, not for
  450.    the whole organization. The records associated with the unadorned
  451.    organization name can then be used to aid clients from outside the
  452.    organization, who have no idea of the site structure of the
  453.    organization.
  454.  
  455.  
  456.               This Internet Draft expires December 31, 1997.
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472. Expires 12/31/97                                                [Page 8]
  473.  
  474.  
  475.