home *** CD-ROM | disk | FTP | other *** search
/ Handbook of Infosec Terms 2.0 / Handbook_of_Infosec_Terms_Version_2.0_ISSO.iso / text / rfcs / rfc1278.txt < prev    next >
Text File  |  1996-05-07  |  11KB  |  269 lines

  1.  
  2.  
  3.  
  4.  
  5.  Network Working Group                            S.E. Hardcastle-Kille Requests for Comments 1278                   University College London                                                          November 1991 
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                A string encoding of Presentation Address 
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. Status of this Memo     This memo provides information for the Internet community.  It     does not specify an Internet standard.  Distribution of this memo     is unlimited. 
  28.  
  29. Abstract     There are a number of environments where a simple string encoding     of Presentation Address is desirable.  This specification defines     such a representation. 
  30.  
  31.  
  32.  
  33.  
  34. RFC 1278            String encoded P-Address             November 1991 
  35.  
  36.  1  Introduction 
  37.  
  38. OSI Application Entities use presentation addresses to address other Application Entities.  The model for this is defined in [ISO87b]. Presentation addresses are stored in the OSI Directory using an ASN.1 representation defined by the OSI Directory [CCI88].  Logically, a presentation address consists of: 
  39.  
  40.   o  A presentation selector 
  41.  
  42.  o  A session selector 
  43.  
  44.  o  A transport selector 
  45.  
  46.  o  A set of network addresses 
  47.  
  48. The selectors are all octet strings, but often have IA5 character representations.  The format of network addresses is defined in [ISO87a]. There is a need to represent presentation addresses as strings in a number of different contexts.  This Internet Draft defines a format for use on the Internet.  It is for display to human users, and its use is recommended whenever this needs to be done.  Typically, this will be for system managers rather than for end users.  It is not intended for internal storage. 
  49.  
  50. This Internet Draft was originally published as UCL Research Note RN/89/14 [Kil89].  It was agreed as a unified syntax for the THORN and ISODE projects.  It is used throughout ISODE. Christian Huitema of Inria and Marshall Rose of PSI Inc.  gave much useful input to this document. 
  51.  
  52.  2  Requirements 
  53.  
  54. The main requirements are: 
  55.  
  56.   o  Must be able to specify any legal value. 
  57.  
  58.  o  Should be clean in the common case of the presentation address     containing network addresses and no selectors. 
  59.  
  60.  Hardcastle-Kille                                                Page 1 
  61.  
  62.  
  63.  
  64.  
  65. RFC 1278            String encoded P-Address             November 1991 
  66.  
  67.   o  Must deal with selectors in the following encodings: 
  68.  
  69.     --  IA5 
  70.  
  71.     --  Decimal digits encoded as IA5 (this is the most common syntax         in Europe, as it is required by X.400(84) and should receive a         straightforward encoding) 
  72.  
  73.     --  Numeric encoded as a 16 bit unsigned integer (US GOSIP). This         is mapped onto two octets, with the first octet being the high         order byte of the integer. 
  74.  
  75.     --  General Hexadecimal 
  76.  
  77.  o  Should give special encodings for the ad hoc encoding proposed in     ``An interim approach to use of Network Addresses'' [HK91]. 
  78.  
  79.     --  X.25(80) Networks 
  80.  
  81.     --  TCP/IP Networks 
  82.  
  83.  o  Should be extensible for additional forms. 
  84.  
  85.  o  Should provide a reasonably compact representation . 
  86.  
  87.  3  Format 
  88.  
  89. The_BNF_is_given_in_figure_1.__________________________________________ 
  90.  
  91.  <digit> ::= [0-9] <other> ::= [0-9a-zA-Z+-.] <domainchar> ::= [0-9a-zA-Z-.] <hexdigit> ::= [0-9a-fA-F] <hexoctet> ::= <hexdigit> <hexdigit> <decimaloctet> ::= <digit> | <digit> <digit>                         | <digit> <digit> <digit> 
  92.  
  93. <digitstring> ::= <digit> <digitstring>                             10                         | <digit> <otherstring> ::= <other> <otherstring>                         | <other> 
  94.  
  95.  Hardcastle-Kille                                                Page 2 
  96.  
  97.  
  98.  
  99.  
  100. RFC 1278            String encoded P-Address             November 1991 
  101.  
  102.  <domainstring> ::= <domainchar> <otherstring>                         | <domainchar> <hexstring> ::= <hexoctet> <hexstring> | <hexoctet> 
  103.  
  104. <dotstring> ::= <decimaloctet> "." <dotstring>                 | <decimaloctet> "." <decimaloctet>                                                                     20 
  105.  
  106.  <dothexstring> ::= <dotstring> | <hexstring> 
  107.  
  108.  <presentation-address> ::=                 [[[ <psel> "/" ] <ssel> "/" ] <tsel> "/" ]                 <network-address-list> 
  109.  
  110. <network-address-list> ::= <network-address> "_" <network-address-list>30                            | <network-address> 
  111.  
  112. <psel> ::= <selector> <ssel> ::= <selector> <tsel> ::= <selector> 
  113.  
  114. <selector>  ::= '"' <otherstring> '"'        -- IA5                                              -- For chars not in this                                              -- string use hex                 | "#" <digitstring>          -- US GOSIP            40                 | "'" <hexstring> "'H"       -- Hex                 | ""                         -- Empty but present 
  115.  
  116. <network-address> ::=   "NS" "+" <dothexstring>                                  -- Concrete Binary Representation                                  -- This is the compact encoding         | <afi> "+" <idi> [ "+" <dsp> ]                                 -- A user oriented form         | <idp> "+" <hexstring>                                 -- ISO 8348 Compatability           50 
  117.  
  118. <idp> ::= <digitstring> - 
  119.  
  120. <dsp>  ::=         | "d" <digitstring>          -- Abstract Decimal         | "x" <dothexstring>            -- Abstract Binary         | "l" <otherstring>             -- IA5:  local form only 
  121.  
  122. Hardcastle-Kille                                                Page 3 
  123.  
  124.  
  125.  
  126.  
  127. RFC 1278            String encoded P-Address             November 1991 
  128.  
  129.          | "RFC-1006" "+" <prefix> "+" <ip>            [ "+" <port> [ "+" <tset> ]]         | "X.25(80)" "+" <prefix> "+" <dte>                         60            [ "+" <cudf-or-pid> "+" <hexstring> ]         | "ECMA-117-Binary" "+" <hexstring> "+" <hexstring>            "+" <hexstring>         | "ECMA-117-Decimal" "+" <digitstring> "+"            <digitstring> "+" <digitstring> 
  130.  
  131. <idi> ::= <digitstring> <afi> ::= "X121" | "DCC" | "TELEX" | "PSTN" | "ISDN"                 | "ICD" | "LOCAL"                                                                     70 <prefix> ::= <digit> <digit> 
  132.  
  133. <ip> ::= <domainstring>                         -- dotted decimal form (e.g., 10.0.0.6)                         -- or domain (e.g., twg.com) <port> ::= <digitstring> <tset> ::= <digitstring> 
  134.  
  135. <dte> ::= <digitstring> <cudf-or-pid> ::= "CUDF" | "PID"                                    80 
  136.  
  137.  ________________________Figure_1:__String_BNF__________________________ 
  138.  
  139. Four examples: 
  140.  
  141.  "256"/NS+a433bb93c1_NS+aa3106 
  142.  
  143. #63/#41/#12/X121+234219200300 
  144.  
  145. '3a'H/TELEX+00728722+X.25(80)+02+00002340555+CUDF+"892796" 
  146.  
  147. TELEX+00728722+RFC-1006+03+10.0.0.6 
  148.  
  149.  Note that the RFC 1006 encoding permits use of either a DNS Domain Name or an IP address.  The former is primarily for ease of entry.  If this DNS Domain Name maps onto multiple IP addresses, then multiple network addresses should be generated.  The DNS Domain Name form is 
  150.  
  151.  Hardcastle-Kille                                                Page 4 
  152.  
  153.  
  154.  
  155.  
  156. RFC 1278            String encoded P-Address             November 1991 
  157.  
  158.  for convenient input.  When mapping from an encoded address to string form, the IP address form should always be used. 
  159.  
  160.  4  Encoding 
  161.  
  162. Selectors are represented in a manner which can be easily encoded.  In the NS notation, the concrete binary form of network address is given. Otherwise, this string notation provides a mechanism for representing the Abstract Syntax of a Network Address.  This must be encoded according to Addendum 2 of ISO 8348 [ISO87a]. 
  163.  
  164.  5  Macros 
  165.  
  166. There are often common addresses, for which a cleaner representation is desired.  This is achieved by use of Macros.  If a <network-address> can be parsed as: 
  167.  
  168.  <otherstring> "=" *( any ) 
  169.  
  170. Then the leading string is taken as a Macro, which is substituted. This may be applied recursively.  When presenting Network Address to humans, the longest available substitution should be used.  For example: 
  171.  
  172.                        ________________________                        |_Macro_|Value__________ |                        | UK.AC |DCC+826+d110000 |                        |_Leeds_|UK.AC=120______ | 
  173.  
  174. Then ``Leeds=22'' would be expanded to ``DCC+826+d11000012022''. 
  175.  
  176.  6  Standard Macros 
  177.  
  178.  No Macros should ever be relied on.  However, the following are suggested as standard. 
  179.  
  180.  
  181.  
  182.  
  183.  
  184. Hardcastle-Kille                                                Page 5 
  185.  
  186.  
  187.  
  188.  
  189. RFC 1278            String encoded P-Address             November 1991 
  190.  
  191.            ________________________________________________            |_Macro_____________|Value______________________ |            | Int-X25(80)       |TELEX+00728722+X25(80)+01+  |            | Janet-X25(80)     |TELEX+00728722+X25(80)+02+  |            | Internet-RFC-1006 |TELEX+00728722+RFC-1006+03+ |            |_IXI_______________|TELEX+00728722+RFC-1006+06+_| 
  192.  
  193. 7  References 
  194.  
  195.  References 
  196.  
  197. [CCI88]  The Directory --- overview of concepts, models and services,          December 1988. CCITT X.500 Series Recommendations. 
  198.  
  199. [HK91]   S.E. Hardcastle-Kille. Encoding network addresses to support          operation over non-osi lower layers. Request for Comments          RFC 1277, Department of Computer Science, University College          London, November 1991. 
  200.  
  201. [ISO87a] Information processing systems - data communications -          network services definition:  Addendum 2 - network layer          addressing, March 1987. ISO TC 97/SC 6. 
  202.  
  203. [ISO87b] ISO DIS 7498-3 on naming and addressing, May 1987.          ISO/IEC/JTC-1/SC 21. 
  204.  
  205. [Kil89]  S.E. Kille. A string encoding of presentation address.          Research Note RN/89/14, Department of Computer Science,          University College London, February 1989. 
  206.  
  207.  8  Security Considerations 
  208.  
  209. Security considerations are not discussed in this memo. 
  210.  
  211.  9  Author's Address 
  212.  
  213.     Steve Hardcastle-Kille     Department of Computer Science     University College London     Gower Street     WC1E 6BT 
  214.  
  215.  Hardcastle-Kille                                                Page 6 
  216.  
  217.  
  218.  
  219.  
  220. RFC 1278            String encoded P-Address             November 1991 
  221.  
  222.      England 
  223.  
  224.     Phone:  +44-71-380-7294 
  225.  
  226.      EMail:  S.Kille@CS.UCL.AC.UK 
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266. Hardcastle-Kille                                                Page 7 
  267.  
  268.  
  269.