1. ERR Control Commands
In Document No. 1, the following error conditions are described:
- Illegal Op. code.
- End of message encountered before all expected parameters.
- Bad socket polarity within commands.
- Link number not in the range of 0 <= L < 32.
- A request (other than RTS/STR) on a non-existent socket.
- A request (ALL, GVB, RET, INR, INS) on a non-existent link number.
- Transmit over non-existent link number.
Other error conditions are:
- A request (GVB, RET, INR, INS) on an existent link, but connection is not established.
- Transmit over an existent link, but connection is not established.
- ALL or GVB on a send connection.
- RET on a receive connection.
- An attempt to send more than the allocated number of bits or messages.
- ECO, ERP, ERR commands do not have the defined number of bits of data.
In Document No. 1, each site is supposed to document the information on their ERR command. No one has done that so far, and the main reason is we are not sure of what information is important. In NWG/RFC No. 107, the text portion of the ERR Commands is decided to have a fixed length of 80 bits because 80 bits is long enough to hold the longest non-ERR command. In some of the above error conditions, more information than the command itself is desirable. It was noted that these error conditions arise very often in the experimental stage of the NCP. If every NCP is operating properly, none of them should ever occur. The ERR commands are therefore an excellent debugging tool for the protocol. So it is desirable to define a set of possible error conditions, and for each condition, define a set of arguments in the corresponding ERR command so that enough information is given to tell what's wrong. The suggested arguments for each situation (a - m) are listed below:
- a.
- Op. code in error.
- Part of message following op. code (a maximum of 72 bits).
- b, c, d, e, f.
- The command in error.
- g.
- Link number.
- Beginning of message (a maximum of 72 bits).
- h.
- Command in error.
- Socket numbers for the connection.
- Status of the connection.
- i.
- Link number.
- Beginning of message (a maximum of 72 bits).
- Socket numbers for the connection.
- Status of the connection.
- j, k.
- Command in error.
- Socket numbers for the connection.
- l.
- Link number.
- Beginning of message (a maximum of 72 bits).
- Number of bits sent.
- Number of bits allocated.
- Number of messages allocated.
- m.
- The command in error.
Each of the ERR commands should have a special error code (8 bits) to tell the error type, an 80-bits field to store the command in error, and additional fields for socket numbers and other information.