Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Block control byte (BCB) Network Job Entry (NJE) Formats and Protocols SA32-0988-00 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Every BSC buffer begins with a block control byte (BCB) which contains inbound and outbound buffer sequence counters. These counters are used to synchronize inbound and outbound transmissions and to detect and correct sequence errors. Table 1 shows the BCB bit definitions.
After a BSC line completes initialization, each directly-attached node initializes the inbound and outbound BCB counters to 0000 and maintains it in modulo sixteen. The outbound BCB count is incremented by one each time an acknowledgement (ACK) is received. The inbound BCB count is also updated to reflect the number of transmission buffers that the node has received. When a node receives a BCB the outbound count should be one more than the last BCB it received (the inbound count). If so, data transmission is normal and no data has been lost. If the count in the BCB is not what is expected, the receiving node must indicate an error by sending an RCB indicating a BCB sequence error. When the sequence error is received, the node receiving it terminates the connection because error recovery is not possible. If a duplicate BCB is received, the system receiving it assumes the last transmission buffer it sent has been lost and its last transmission buffer that did not receive an acknowledgement must be re-sent. The duplicate buffer is discarded. This allows the NJE network to recover from errors rather than terminating the connection by indicating a sequence error. Because the BCB is also used to detect lost blocks, a null block
containing a BCB should always be sent as an acknowledgement rather
than using a DLE ACK0 as the acknowledgement. Figure 1 and Figure 2 clarify the importance of using the DLE as an acknowledgement.
Figure 1. Results of Not Transmitting
Null Records.
Figure 2. Correct
Recovery with Null Records
Use Table 2 to determine the state a node is placed in and the action it takes after receiving a transmission block.
|
Copyright IBM Corporation 1990, 2014
|