Commands: RESPONSE to REPLY
4d. 3: RESPONSE
Format
RESPONSE INDEX PATH CODE HOST SOCKET
Use
This command is sent only from the FE to the Host - once per path specified in a BEGIN or a LISTEN command.
For paths specified in a BEGIN, it is sent to indicate the success or failure of the connection attempt. For paths specified in a LISTEN, it is sent at the time when the FE has received a matching RFC and has established the connection.
The HOST and SOCKET parameters are purely informational which the Host can ignore if it so desires. Their contents are only guaranteed if the connection attempt succeeded.
Parameters
- a) RESPONSE is an 8-bit field with value 3.
- b) INDEX is a 16-bit field specifying the index.
- c) PATH is an 8-bit field specifying the particular path.
- d) CODE is a 16-bit field indicating the outcome of the connection attempt:
Value Meaning
0 Path successfully established.
1 Local IMP dead.
2 Foreign IMP inaccessible.
3 Foreign Host dead.
4 Foreign Host not responding.
5 Connection refused.
- e) HOST is a 32-bit field specifying the foreign host to which the connection has been made.
- f) SOCKET is a 32-bit field specifying the socket at the foreign host. If the connection type is simplex, then it is the only foreign socket for this path; if duplex, then it is the lower of the two foreign sockets.
Error CODES in REPLY
Category Type Meaning
3 11 INDEX unknown
3 12 PATH unknown
3 13 CODE invalid
4e. 4: MESSAGE
Format
MESSAGE INDEX PATH COUNT PAD TEXT
Use
This command is sent by either the Host or the FE to transmit data on the specified path and index.
Parameters
- a) MESSAGE is an 8-bit field with value 4.
- b) INDEX is a 16-bit field specifying the index.
- c) PATH is an 8-bit field specifying the path. Note that the value 0 is used in the broadcast option (see Section 3j).
- d) COUNT is a 16-bit field specifying the number of bits of data in the TEXT field.
- e) PAD is an n-bit field, where n is an installation parameter. It contains only padding (in the present protocol specification) and can be used to enable the host to have the TEXT field start on a convenient boundary.
- f) TEXT is a field containing COUNT bits of data being transmitted on this path.
Error CODES in REPLY
Category Type Meaning
2 1 This option not implemented
3 12 PATH unknown
3 14 No connection opened in this direction
3 15 PATH blocked at this time, resent later
3 16 PATH suspended at this time, resent later
3 17 PATH closed
3 17 COUNT too large
4 3 Error in transmitting data, resend command
4 4 Data lost, resent command.
4f. 5: INTERRUPT
Format
INTERRUPT INDEX PATH CODE
Use
This command is sent by either the Host or the FE.
Its most common use is to pass the information that a terminal user has pressed his INT (or ATTN or Control-C) key, thereby requesting his applications program to quit what it is doing for him.[5]
Parameters
- a) INTERRUPT is a 8-bit field with value 5.
- b) INDEX is a 16-bit field specifying the index.
- c) PATH is an 8-bit field specifying the path on which the INTERRUPT is transmitted. Note that the value 0 is used in the broadcast option (see Section 3j).
- d) CODE is a 16-bit field. It has no defined meanings as yet and should contain 0.
Error CODES in REPLY
Category Type Meaning
2 1 This option not implemented
3 11 INDEX unknown
3 12 PATH unknown
3 14 No connection opened in this direction
3 15 PATH blocked at this time, resend later
3 17 PATH closed.
4g. 6: END
Format
END INDEX PATH CODE
Use
This command is sent by either the Host or the FE, to terminate a connection. If PATH is 0, then the index and all its paths are terminated, otherwise just the specified path of the index is terminated.
Parameters
- a) END is an 8-bit field with value 6.
- b) INDEX is a 16-bit field specifying the index.
- c) PATH is an 8-bit field containing the path to be closed, or 0 if the whole index is to be closed.
- d) CODE is a 16-bit field indicating the reason for the closure:
Value Meaning
0 Normal close
1 Retries exhausted
2 Foreign Host failure
3 Foreign IMP failure
4 Network failure
5 Local IMP failure.
The "Retries exhausted" code indicates that the FE has been retrying a transmission to the foreign host without success.
Error CODES in REPLY
Category Type Meaning
3 11 INDEX unknown
3 12 PATH unknown
3 13 CODE unknown
3 15 PATH blocked at this time, resend later
3 17 PATH closed.
4h. 7: REPLY
Format
REPLY INDEX PATH CODE
Use
This command is sent by both the Host and the FE to acknowledge receipt of every other type of command (including those on index 0, see Section 4) and/or to unblock that particular direction of an opened path for the transmission of another command.
Note that the INDEX and PATH fields contain exactly the same as those of the command being replied to.
Parameters
- a) REPLY is an 8-bit field with value 7.
- b) INDEX is a 16-bit field specifying the index.
- c) PATH is a 8-bit field specifying the path.
- d) CODE is a 16-bit field indicating the success/failure of the command being REPLYed to, and the sender's readiness for more commands on the same path. It is divided into four subfields - STATUS, COMMAND, CATEGORY, and TYPE.
- STATUS is 4 bits wide
bit 0 (right-most) - READY
bit 1 - NOT-READY
bit 2 - ACK
bit 3 - NAK
ACK=1 indicates that the sender (of the REPLY) has accepted the command (being REPLYed to). NAK=1 indicates that the sender has discarded the command (with the reason given by the settings of the other bits of the CODE field).
NOT-READY=1 indicates that the sender (of the REPLY) is willing to receive an END or INTERRUPT on this path. READY=1 indicates that MESSAGE commands will also be received.
Normally only one REPLY command will be sent for each other command. However MESSAGE, INTERRUPT, RESPONSE and invalid END commands can be replied to by a REPLY with ACK (or NAK)=1 and NOT-READY=1 and another REPLY, some time later, with READY=1. [6]
The ACK and NAK bits are mutually exclusive and should never both be on simultaneously, and similarly the READY and NOT-READY bits.
Note that the READY/NOT-READY bit settings are only relevant when a path is open.
- COMMAND is 4 bits wide. It indicates the command for which this is a REPLY :
Value Meaning
0 any of the following
1 BEGIN
2 LISTEN
3 RESPONSE
4 MESSAGE
5 INTERRUPT
6 END
The value 0 is defined for cases where a Host does not wish to incur any overhead required to fill in the non-zero value.
- CATEGORY is 3 bits wide. It specifies the category of the error indicated by the ACK bit being off :
Value Meaning
1 Command not recognized
2 Option not implemented
3 Invalid
4 Action failed.
Its value is relevant only when NAK=1.
- TYPE is 5 bits wide. It specifies which error occurred. Its value is relevant only when NAK=1. The possible values and meanings for the various errors and their corresponding CATEGORY subfield values are given under the description of each command.