⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc830.txt

📁 RFC 相关的技术文档
💻 TXT
📖 第 1 页 / 共 3 页
字号:
with the DNS and the application processes.3.2  Databases for Name Resolution     There is a database associated with each resolution module.  Thedatabase associated with an endpoint domain contains name-to-address                                   5RFC 830                                                       October 1982correspondences for the top-level domains, first-generation descendentsof the naming universe.  It facilitates the endpoint DNS resolving theright-most simple name of a fully-qualified domain specification.     The database associated with an intermediate domain contains name-to-address correspondences for the first-generation subdomains of thisdomain.  Thus, the required database contents among the intermediate DNSdatabases are disjoint, and updates are local.     It is also noticed that with the implementation of the SINS, thereis no need for database format standardization.3.3  Caching     The component processes and resolution databases constitute thebasic System for Internet Name Service.  The distributed components arerelated according to the domain hierarchy.  The databases associatedwith the endpoint domains are all identical.  Containing only name-to-address correspondence for top-level domains, the endpoint databaseshould be rather small in size.  The disjoint nature of intermediate DNSdatabases allows easy local updates.     However, communications will be very inefficient if the Internetname service is called for the establishment of every transaction.  Astandard solution to aleviate such inefficiency is the use of caching.     Caching is a mechanism reusing previous resolution results.  Toexpedite establishment of communication, the resolution results arestored for future reference.  We do not incorporate caching as astandard feature of the SINS.  However, we assume the use of caching forefficient operations at individual implementor's discretion.4   INTER-COMPONENT COMMUNICATIONS (THE INTERNET NAME SERVICE PROTOCOLS)     In this section, we present a format specification forcorrespondences between various component pairs.  For co-locatedcomponents, communication becomes interprocess, and the exact formatless important.  For inter-host communication, the format specificationhere defines a name service protocol.     The communicating component pairs of concern here are applicationprocess/AIP, AIP/DNS, and AIP/AIP.  The communications employrequest/response commands.  A single command structure is adopted forall three pairs; while communications between a particular pair mayemploy a subset of the commands.  Such uniformity allows minimumprocessing and maximum code sharing for implementation.                                   6RFC 830                                                       October 19824.1  Command Structure     The basic command structure begins with two octets indicatingcommand type and the number of items in the command.  They are followedby the indicated number of items.  The type of an item is indicated inits first octet, followed by a one-octet content length, and then theitem content.  Required presence or absence and order of the items foreach component pair are specified in this section.	Command Type   Number of Items	Item Indicator   Content Length   Item Content          .          .Command Type     This type coded in binary number indicates whether this command isa request, an affirmative response, or some other type of response (seeAppendix A for the command types and their corresponding code).  Thistype specification implies the presence or absence and order of thefollowing items.Number of Items     This number is expressed in binary number.  It specifies the numberof following items.  Owing to the possibility of a multiple response,this number may vary for a particular command.Item Indicator     This indicator defines the item type.  The possible types include:service, name, address, and comment.  The type of an item implies itscontent structure.Content Length     This length specification, in binary, indicates the length of thefollowing content in octets.  The maximum can be specified is 255, thusthe maximum length of the content.  However, this maximum may also beconstrained by the total length of the command (Section 4.3).Item Content     The contents for different items are:     Service -- Transport protocol/service protocol/service type                (ASCII). (See Appendix A for standard identifiers for                service specifications.)     Name -- Whole or partial name string according to Internet Naming             Convention [1] (ASCII).     Address -- The address is presented in binary form.  In this                writeup, double quotes, " ", are used around decimal                values separated by a space to represent octets of the                binary form.                                   7RFC 830                                                       October 1982                Parsing of the address is implied by the specified                transport protocol.  In the case of TCP, the first                four octets gives the 32-bit IP address, the 5th octet                the IP-specific protocol number, and the 6th the TCP or                UDP port number for the application service.     Comment -- The item is mostly optional.  Its presence may allow                an intermediate server passing comment to the end user.                Error comments explaining resolution failure is an                example of its use.4.2  Command Specification     In this section, we define the name service commands for thevarious communication pairs.4.2.1 Application Process/AIP Communication     From the name service point of view, there is no need forcommunication between the AIP and an application process at thedestination.  Thus, here we discuss communications at the originatingdomain.     An application process initiates a dialogue by making a request forname service to its local AIP.  It provides the requested applicationservice and a destination name for resolution.REQUEST   Command Type   Number of Items   Service Indicator   Length   Transport Protocol/Service/Service Type   Name Indicator   Name Length   Name StringExamples:   1  2   3 13 TCP/SMTP/mail   1 21 Postel@F.ISI.USC.ARPA   1  2   3 13 TCP/NIFTP/RFT   1 12 TSC.SRI.ARPA     The first example is a resolution request for the name"Postel@F.ISI.USC.ARPA".  It is 21 octets in length.  The requestedapplication service is TCP/SMTP/mail.  The second example is aresolution request for application service NIFTP at TSC.SRI.ARPA.                                   8RFC 830                                                       October 1982AFFIRMATIVE RESPONSE   Command Type   Number of Items   Service Indicator   Length   Transport Protocol/Service/Service Type   Name Indicator   Name Length    Name String   Address Indicator   Address Length   AddressExamples:   2  3   3 13 TCP/SMTP/mail   1 21 Postel@F.ISI.USC.ARPA   2  6 "10  2  0 52  6 25"   2  4   3 13 TCP/NIFTP/RFT   1 12 TSC.SRI.ARPA   2  6 "10  3  0  2  6 47"   2  6 "39  0  0  5  6 47"     An affirmative response implies that the destination offers therequested service.  The parsing of an address is implied by theindicated transport protocol.  In the first example, the transportprotocol is TCP.  Thus, the address is composed of three fields: theinternet address ("10 2 0 52"), the protocol number ("6" for TCP [3]),and the port number ("25" for SMTP [3]).  A multiple-address response inthe second example indicates that TSC is multi-homed via both ARPANET(net  10), and SRINET (net  39).  A multiple-resolution response ispreferred.  It offers the source a choice.NEGATIVE RESPONSE   Command Type   Number of Items   Service Indicator   Length   Transport Protocol/Service/Service Type   Name Indicator   Name Length   Name String   Name Indicator   Name Length   Partial Name String   [Comment Indicator   Comment Length   Comment]     This indicates difficulty in resolution.  Returned with thiscommand is the left-most portion of the specified name including thedifficulty encountered.  An optional comment item may be included.                                   9RFC 830                                                       October 1982Examples:   3  4   3 13 TCP/SMTP/mail   1 16 Postel@F.ISI.USC   1 16 Postel@F.ISI.USC   9 18 Resolution Failure   3  4   3 13 TCP/NIFTP/RFT   1 13 TSC..SRI.ARPA   1  5 TSC..   9 17 Syntactic AnomalyIn the first example, the resolution failed because USC is not top-leveldomain.  The syntactic error of adajacent dots in the second example isobvious.INCOMPATIBLE SERVICE     This response indicates no compatible application and/or transportservice is available at the destination.  For example, the requestedapplication service may be SMTP, while only FTP-mail is available at thedestination.  Return with this command is the available correspondingavailable service, if any, and its address.  If no service is availablefor that service type, an empty string for service specification isreturned.   Command Type   Number of Items   Service Indicator   Length   Transport Protocol/Service/Service Type   Name Indicator   Name Length   Name String   Service Indicator   Length   Transport Protocol/Service/Service Type   [Address Indicator   Address Length   Address]Examples:   9  3   3 14 TCP/NIFTP/mail   1 21 Postel@F.ISI.USC.ARPA   3  0   9  5   3 13 TCP/NIFTP/RFT   1 12 TSC.SRI.ARPA   3 11 TCP/FTP/RFT   2  6 "10  3  0  2  6 21"   2  6 "39  0  0  5  6 21"                                   10RFC 830                                                       October 19824.2.2 AIP/AIP Communication     Communication between the AIPs accomplishes the "what-can-you-do-for-me" negotiation.  Examples in this section correspond to those ofSection 4.2.1.REQUEST   Command Type   Number of Items   Service Indicator   Length   Transport Protocol/Service/Service TypeExamples:   1  1   3 13 TCP/SMTP/mail   1  1   3 13 TCP/NIFTP/RFT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -