Inter-Component Communications (The Internet Name Service Protocols)
In this section, we present a format specification for correspondences between various component pairs. For co-located components, communication becomes interprocess, and the exact format less important. For inter-host communication, the format specification here defines a name service protocol.
The communicating component pairs of concern here are application process/AIP, AIP/DNS, and AIP/AIP. The communications employ request/response commands. A single command structure is adopted for all three pairs; while communications between a particular pair may employ a subset of the commands. Such uniformity allows minimum processing and maximum code sharing for implementation.
4.1 Command Structure
The basic command structure begins with two octets indicating command type and the number of items in the command. They are followed by the indicated number of items. The type of an item is indicated in its first octet, followed by a one-octet content length, and then the item content. Required presence or absence and order of the items for each 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 is a request, an affirmative response, or some other type of response (see Appendix A for the command types and their corresponding code). This type specification implies the presence or absence and order of the following items.
Number of Items
This number is expressed in binary number. It specifies the number of 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 its content structure.
Content Length
This length specification, in binary, indicates the length of the following content in octets. The maximum can be specified is 255, thus the maximum length of the content. However, this maximum may also be constrained 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. 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 the various communication pairs.
4.2.1 Application Process/AIP Communication
From the name service point of view, there is no need for communication between the AIP and an application process at the destination. Thus, here we discuss communications at the originating domain.
An application process initiates a dialogue by making a request for name service to its local AIP. It provides the requested application service 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 String
Examples:
1 2
3 13 TCP/SMTP/mail
1 21 [email protected]
1 2
3 13 TCP/NIFTP/RFT
1 12 TSC.SRI.ARPA
The first example is a resolution request for the name "[email protected]". It is 21 octets in length. The requested application service is TCP/SMTP/mail. The second example is a resolution request for application service NIFTP at TSC.SRI.ARPA.
AFFIRMATIVE RESPONSE
Command Type Number of Items
Service Indicator Length Transport Protocol/Service/Service Type
Name Indicator Name Length Name String
Address Indicator Address Length Address
Examples:
2 3
3 13 TCP/SMTP/mail
1 21 [email protected]
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 the requested service. The parsing of an address is implied by the indicated transport protocol. In the first example, the transport protocol is TCP. Thus, the address is composed of three fields: the internet address ("10 2 0 52"), the protocol number ("6" for TCP [3]), and the port number ("25" for SMTP [3]). A multiple-address response in the second example indicates that TSC is multi-homed via both ARPANET (net 10), and SRINET (net 39). A multiple-resolution response is preferred. 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 this command is the left-most portion of the specified name including the difficulty encountered. An optional comment item may be included.
Examples:
3 4
3 13 TCP/SMTP/mail
1 16 [email protected]
1 16 [email protected]
9 18 Resolution Failure
3 4
3 13 TCP/NIFTP/RFT
1 13 TSC..SRI.ARPA
1 5 TSC..
9 17 Syntactic Anomaly
In the first example, the resolution failed because USC is not top-level domain. The syntactic error of adajacent dots in the second example is obvious.
INCOMPATIBLE SERVICE
This response indicates no compatible application and/or transport service is available at the destination. For example, the requested application service may be SMTP, while only FTP-mail is available at the destination. Return with this command is the available corresponding available service, if any, and its address. If no service is available for that service type, an empty string for service specification is returned.
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 [email protected]
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"
4.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 of Section 4.2.1.
REQUEST
Command Type Number of Items
Service Indicator Length Transport Protocol/Service/Service Type
Examples:
1 1
3 13 TCP/SMTP/mail
1 1
3 13 TCP/NIFTP/RFT
AFFIRMATIVE RESPONSE
Command Type Number of Items
Service Indicator Length Transport Protocol/Service/Service Type
Address Indicator Address Length Address
Examples:
2 2
3 13 TCP/SMTP/mail
2 6 "10 2 0 52 6 25"
2 3
3 14 TCP/NIFTP/RFT
2 6 "10 3 0 2 6 47"
2 6 "39 0 0 5 6 47"
An affirmative response implies that the destination offers the same service as that of the originator. A multi-resolution response is possible. The parsing of an address is implied by the indicated transport protocol. In the second example, the transport protocol is TCP. Thus, the address is composed of three fields: the internet address (10 2 0 52), the protocol number (6 for TCP), and the port number (25 for SMTP). The returned address(es) is to be relayed to the originating application process.
INCOMPATIBLE SERVICE
Command Type Number of Items
Service Indicator Length Transport Protocol/Service/Service Type
Service Indicator Length Transport Protocol/Service/Service Type
Address Indicator Address Length Address
This response indicates no compatible application and/or transport service available serving the destination. For example, SMTP may be the requested application service, while only NIFTP-mail is available serving the destination. Return with this command is the available service of that type. If no service available for that service type, a empty text string is returned.
Examples:
9 2
3 14 TCP/NIFTP/mail
3 0
9 4
3 13 TCP/NIFTP/RFT
3 11 TCP/FTP/RFT
2 6 "10 3 0 2 6 21"
2 6 "39 0 0 5 6 21"
In the first example, the destination does not offer any kind of mail service. The second example indicates that there is no NIFTP, but FTP available for remote file transfer service at the destination.
4.2.3 AIP/DNS Communication
The source AIP presents its associated DNS with a fully qualified domain specification for resolution. The expected resolution result is the network address for the destination endpoint DNS. We assume no need for communication between the DNS and AIP at the destination.
REQUEST
Command Type Number of Items
Name Indicator Name Length Name String
Examples:
1 1
1 14 F.ISI.USC.ARPA
1 1
1 12 TSC.SRI.ARPA
AFFIRMATIVE RESPONSE
Command Type Number of Items
Name Indicator Name Length Name String
Service Indicator Service Length Transport Protocol
Address Indicator Address Length Address
Examples:
2 3
1 14 F.ISI.USC.ARPA
3 3 UDP
2 6 "10 2 0 52 17 42"
2 4
1 7 TSC.SRI.ARPA
3 3 UDP
2 6 "10 3 0 2 17 42"
2 6 "39 0 0 5 17 42"
An affirmative response returns an address of the destination endpoint DNS. This returned address is that of the destination DNS. The destination transport service needs to be indicated for guiding the parsing of the destination address.
NEGATIVE RESPONSE
Command Type Number of Items
Name Indicator Name Length Name String
Name Indicator Name Length Partial Name String
[Comment Indicator Comment Length Comment]
This response indicates that the domain name service is unable to resolve the given destination domain name. It could be caused by an unknown simple name, which may result from, for example, misspelling. Returned with this command is the left-most portion of the specified name containing the cause of resolution failure.
Example:
1 3
1 9 F.ISI.USC
1 9 F.ISI.USC
9 18 Resolution Failure
4.2.4 DNS/DNS Communication
The domain name service is an application independent network service. It provides the resolution of domain names. For the specification of this service the reader is referred to [2].
4.3 Transport Protocol
For generality, this specification is intentionally transport protocol independent. Implications for the use of TCP and UDP are specifically considered.
Typically, for distributed name service a server A makes a request to a server B, server B may need to in turn contact other servers to complete a resolution. TCP is a connection-oriented protocol. It offers reliable transport, but also imposes certain amount of overhead for connection establishment and maintenance. For most cases, the use of TCP is not recommended.
UDP is a datagram service offering a transport capacity per datagram in excess of 500 octets. Such capacity should suffice most conceivable commands within this specification. However, it does impose a limit on the total length of a command. In order to enhance reliability, the request is incorporated as part of every response command.