4. Category C - Host/Host Protocol (Level 2)
Host/Host protocol specifies the procedures by which connections for inter-Host interprocess communication over the network are established, maintained, and terminated. The software which implements the protocol within each Host is called the Network Control Program (NCP). The topics included in this category are connection establishment and termination, flow control, interrupt handling, error control and status testing, dynamic reconnection, and the relationship between connections and links.
- Official documents: Document No. 1 by S. Crocker, 3 August 1970, with modifications presented in NWG/RFC 102.
- Unresolved issues: Length of control messages; Location in message of first byte of data; Flow control algorithm; Socket identification format.
- To be published: Document No. 2 will be written by S. Crocker and will resolve the first three issues. A NWG/RFC will be written by J. Heafner, in collaboration with E. Meyer and G. Grossman, presenting the pros and cons on alternative proposals for socket number identification.
C.1 Host/Host Protocol Proposals
NWG/RFC #s: 9, 11, 22, 33, 36, 37, 38, 39, 40, 44, 46, 48, 49, 50, 54, 57, 59, 60, 61, 62, 65, 68, 93, 102
The official Host/Host protocol presented in Document No. 1 is based on the proposals, discussions, acceptance, and rejection of ideas in the above list of NWG/RFCs, up to and including 59.
In particular:
9, 11, and 22 represent an early attempt at a Host/Host protocol. 11 supersedes 9 and 22 contains some modifications to control message formats presented in 11. The protocol was not considered powerful enough because it didn't provide for inter-host communication without logging in. This protocol was thrown out as a result of a network meeting in December 1969.
33 is the basis for the current protocol. It was presented at the SJCC, 1970.
36 is a modification of 33. It discusses connection establishment without switching, flow control, and introduces the idea of reconnection. Control commands are summarized. 36 was distributed at a Network meeting in March 1970.
37 presents the reaction to 36 and presents ideas on reconnection flow control and decoupling of links and connections. Provisions of error detection, status testing, experimentation and expansions are discussed.
38, 39, 40, 44, 49 and 50 are comments written in response to the meeting. 46 is also a comment but in the form of a rewrite of 33. 46 introduces the notion of interrupts, INT, and ECO for status testing.
47 concerns the philosophy behind the notion of a link.
48 summarizes the issues discussed in the above NWG/RFCs.
54 is the initial official protocol submitted for criticism, comments, etc. It introduces a new mechanism for flow control in which the receiving host allocates buffer space and notifies the sending host of the space available.
57 and 59 comment on 54.
Document No. 1 differs from NWG/RFC 54 as follows: commands GVB and RET have been added for flow control and error condition codes have been added to ERR. NWG/RFC 102 presents some modifications to Document No. 1: fixed lengths are specified for ECO, ERP, and ERR; a new pair of commands RST and RRP (suggested in 57) are added.
60, 61, and 62 propose new Host/Host protocols, quite different from the current official protocol. 62 supersedes 61. 60 and 62 are worth considering for possible implementation in future protocols. Hopefully, more documents of a similar nature will be generated as experience is gained with the current protocol.
NWG/RFCs 65 and 68 comment on Document No. 1.
93 points out an ambiguity in Document No. 1 regarding the requirement of a message data type in the message sent from server socket 1. The ambiguity is resolved by 102 which eliminates message data type from level 2 protocol.
C.2 NCPs (Description, Structure, Techniques)
NWG/RFC #s: 9, 11, 22, 23, 33, 36, 44, 46, 48, 55, 70, 71, 74, 89
This category includes RFCs which give details of system calls, table structures, implementation techniques, etc.
In particular:
NWG/RFCs 9, 11, and 22 are obsolete
23 is a general statement on sending or receiving multiple control messages in a single communication.
33 discusses the system calls used for interaction between the NCP and a user process.
36 describes a possible implementation giving table structures and their interrelationships.
44 lists the system calls that SDC feels should operate, includes spec. of calls to NCP.
NWG/RFC 48 presents Postel's and Crocker's view on the environment in which a host time-sharing system operates, suggests some system calls, and presents a design to illustrate the components of an NCP.
55 presents a prototypical NCP which implements the initial official protocol specified in 54. It is offered as an illustrative example.
70 gives some techniques for stripping the padding from a message.
71 presents the method employed by the CCN-Host at UCLA to resynchronize flow control when an input error occurs.
74 documents the implementation of sections of the NCP at UCSB.
89 gives a brief description of the "interim interim NCP" (IINCP) on the MIT Dynamic Modeling PDP-6/10 used to run some experiments.
C.3 Connection Establishment and Termination
NWG/RFC #s: 33, 36, 39, 44, 49, 50, 54, 60, 62
The NWG/RFCs in this category present the system calls and control commands used to establish and terminate connections, i.e., the handshaking that must transpire before connections are established or terminated.
In particular:
36 presents a rough scenario of connection establishment which differs from that specified in 33 in that establishment does not include procedures for switching procedures.
39 suggests the addition of a command TER to supplement CLS.
44 discusses the use of the CLS command and suggests that two commands BLS and CLS be adopted.
46, 46, and 50 all discuss queuing of RFCs.
54 presents the initial official method for establishing and terminating connections.
60 and 62 present schemes different from the official protocol.
C.4 Flow Control
NWG/RFC #s: 19, 33, 36, 37, 46, 47, 54, 59, 60, 65, 68, 102
The NWG/RFCs in this category address the problem of controlling the flow of messages from the sending socket to the receive socket. The official position is stated in Document No. 1 with an unresolved issue pending as described in NWG/RFC 102.
In particular:
19 suggests that Hosts may want the capability of agreeing to lock programs into core for more efficient core-to-core transfers. This may require different handling of RFNMs.
33 describes the use of RFNM (type 10 rather than 5) on a link to control flow. A control command RSM (resume) is defined to allow the host to signal for resumption of message flow. 46 describes the same technique.
37 describes the effect some proposed changes (for reconnect and decoupling of connections and links) would have on RFNMs and "cease on link."
46 (MIT's rewrite of protocol) introduces BLK and RSM commands as an alternative to "cease on link", SPD and RSM commands.
47 presents BBN's position that buffering be handled by the Host, not the IMP.
54 introduces a new flow control mechanism in which the receiving host is required to allocate buffer space for each connection and not notify the sending host of bit sizes. A new command, ALL to allocate space is sent from the receiving host to the sending host. With this new mechanism, 33, 37, 46, and 47 become obsolete.
59 presents the objections of Project MAC and Lincoln Labs to the flow control mechanism introduced in 54. Their preference is for "cease on link" which allocates buffer space on demand.
60, which defines a simplified NCP protocol, presents a method of flow control based on the requirement that connections are full duplex.
65 comments on Document No. 1. With respect to flow control, it disagrees with the allocation mechanism and the introduction of irregular message to make the cease mechanism work.
68 proposes modifications to RFNM by defining three forms which would insure control of data and would replace the memory allocation mechanism.
102 eliminates the cease mechanism and introduces potential modifications to the flow control mechanism. The latter will be resolved and presented in Document No. 2.
C.5 Error Control and Status Testing
NWG/RFC #s: 2, 37, 39, 40, 46, 48, 54, 57, 102
This category addresses schemes for detecting and controlling errors and for Host status reporting and testing.
In particular:
2 talks about error checking and gives an algorithm for implementing a checksum. It also recommends that Hosts should have a mode in which positive verification of all messages is required.
37 brings up the topics of error detection and status testing, which are expanded by RAND in 39 and 40. 39 introduces control commands ERR for error checking and QRY, HCU, and HGD for status testing. 40 expands on the discussion, suggests error codes, introduces RPY as a response to QRY, and suggests that NOP could be used for reporting Host status.
46 concurs with 40 on ERR and introduces ECO to test communication between NCPs.
48 recommends that ERR, as presented in 40 and 46, be adopted, that a distinction be made between resource errors and other error types, that ECO, presented in 46, be of variable length, and that an ECO, ERP command pair be adopted.
54 officially specifies the control commands ERR, ECO, and ERP. The official protocol doesn't include a specific list of error types nor does it recommend the action to be taken. Suggestions for extensions to error detection and recovery and Host/Host status testing are encouraged.
57 presents a list of error types and suggests new commands OVF for overflow errors and RST/RSR for host status testing.
102 sets fixed lengths for ERR, ECO, and ERP control commands. RST and RSR are adopted.
C.6 Interrupt
NWG/RFC #s: 46, 48, 49, 50, 54, 102
The interrupt system call and the INT control commands are used to interrupt a process. This is actually a third level issue. The NWG/RFCs leading up to the decision to include INR and INS in the official protocol are summarized below.
In particular:
46 introduces the INT command as a method for interrupting a process.
48 recommends adoption of INT with the restriction that the feature should not be used during communication with systems which scan for interrupts and that INT should not be used on non-console type connections (see D.2).
49 expands on the explanation of INT. 50 concurs with proposal 46, that INT is useful.
54 induces INT, INS control commands in the official protocol as an escape mechanism, where interpretation is a local matter.
102 discusses synchronization of interrupt signals, presents two implementation schemes, and relegates the topic to third level protocol. INS should be used to indicate a special code in the input stream.
C.7 Dynamic Reconnection
NWG/RFC #s: 33, 36, 37, 38, 39, 44, 46, 48, 49, 50
The notion of dynamic reconnection was introduced early in the Host/Host protocol design. However, the consensus was that it introduced complexities with which the initial NCP implementations did not want to cope. The need for dynamic reconnection was questioned; NWG/RFC 48 explains why it was included and considered useful.
In particular:
33 introduces the concept of switching connections to the Logger. 36 presents a scheme for dynamic reconnection, i.e., reconnection can take place after the flow is started.
37 presents two methods suggested by BBN for handling reconnection.
38 discusses changes to proposed END and RDY control commands that would be necessary if connections were multiplexed over links.
39 states that dynamic reconnection is too complex.
44 presents two cases where reconnection could be used, suggests that the cases be separated, and recommends implementation of only the case of a simple connection switch within the same Host.
46 recommends that dynamic reconnection be reserved for further Host/Host protocol implementations.
48 discusses the aesthetics of dynamic reconnection in detail but concedes that it won't be included in the initial protocol. 49 and 50 concur with the decision.
C.8 Relation Between Connections and Links
NWG/RFC #s: 37, 38, 44, 48
A connection is an extension of a link. The NWG/RFCs in this category discuss this relationship.
In particular:
37 presents the pros and cons on decoupling connections and links. 38 recommends that connections be multiplexed over links. Two cases where this would be useful are presented. The effect on the proposed protocol is discussed. Both 37 and 38 suggest the inclusion of the destination socket as part of the text of the message and recommend that messages should be send over any unblocked link.
44 suggests the use of link numbers in control commands (except RFSs) due to the 1 to 1 correspondence between links and foreign socket numbers.
48 recommends leaving links and connections coupled.
C.9 Other
Other topics that fall into the category of Host/Host protocol are:
Marking/Padding: see B.2
Record/Message Boundaries: see D.5
Experimentation and Expansion. The assignment of links for experimentation and expansion is discussed in NWG/RFC #s 37 and 48.
Instance Tag: The addition of an instance tag to the socket identifier is introduced in 46, is supported by 49 and 50, and is not recommended in 48. The matter is unresolved (see "To be published", section C).
Broadcast Facility: A control command to implement a broadcast facility as introduced in 39. It was not supported in 48.