3. Adding the Reconnection Mechanism to Host-Host Protocol
The four reconnect commands could be included directly in Host-Host protocol as follows:
RRQ <my socket> <your socket>
ROK <my socket> <your socket>
RNO <my socket> <your socket>
RDO <my socket> <your socket> <new host> <new socket>
The ROK and RDO commands for a send connection should not be sent until there are no messages in transit over the connection. The RDO command is to be interpreted as a CLS.
The reconnection:
H2 H3 H2 H3
___ ___ ___ ___
| | | | | C|--------|D |
|_C_| |_D_| |___| |___|
| |
| | ===>
| ____ | ____
---|A B|--- | |
|____| |____|
H1 H1
could be accomplished as follows:
H1->H2: RRQ A C
H1->H3: RRQ B D
H2->H1: ROK C A
H3->H1: ROK D B
H1->H2: RDO A C H3 D
H1->H3: RDO B D H2 C
H2->H1: CLS C A
H3->H1: CLS D B
H2->H3: STR C D size
H3->H2: RTS D C link
Note that it is possible for the STR from H2 to arrive at H3 before the RDO from H1. H3 must be prepared to queue such an RFC until it gets an RDO or RNO from H1. Stated differently, transmission of an ROK for a local socket causes the socket to move from an "open" state to a "reconnect pending" state and indicates willingness to queue subsequent RFC's until receipt of a "matching" RDO or RNO.