Error Recovery
2A.
Error recovery procedures have been noticeably lacking to date. The usual approach has been to close the connection and start from scratch. Mr Bhushan proposes a third level abort but doesn't really detail the implementation. I propose a multilevel error recovery procedure as follows.
2B.
If an error occurs which does not cause a loss of third level transaction boundaries and only affects one side of a duplex connection, a third level recovery is possible via a transaction sequence abort. An example is given:
User Server Comments
<R><...> ==> Send me this file
<== <rs> Ok, I've got it
<rr> ==> Ready
<== <*><...error> Here it is (with an error)
<-><D> ==> No. (data) error
<== <-><D> Sorry, forget it
<R><...> ==> Send the file (again)
|<== <rs> Ready (doesn't get there)
... (waiting)
<-><0> ==> Error, timeout
<== <-><0> Sorry, forget it
<R><...> ==> Send the file (third time)
<== <rs> Got it
<rr> ==> Ready
<== <*><...> There it is
<rr> ==> Got it
<== <+> Done (finally>
Note that the server always gets the last word in error situations as well as normal transmission.
2C.
Although the above examples are given in terms of Bhushan's transaction codes, this form of error recovery is implementable in any protocol which uses flagged blocking and duplex connections.
2D.
If errors cannot be recovered as above, then some means must be available to clear the link completely and resynchronize. I suggest that an 8-bit argument be appended to the interrupt-on-link NCP message (INR, INS). The receiver would send <INR><error> to indicate that the block boundaries were lost and all incoming data is being discarded. The sender, upon receiving the INR, would flush all queued output and wait for the link to clear. The NCP would then send a <INS><newsync> message and, when it was received (RFNM returned), a negative termination would be sent on the link. The receiver begins accepting data again when the INS is received. This assumes that any process can flush untransmitted data and detect a clear link. Note that this method is useable on any simplex connection.
2E.
If all else fails, one can resort to closing the faulty socket.