text stringlengths 0 99.6k |
|---|
<---<ACK><EOT>---><---<ACK> |
Apendix 1. MODEM PROTOCOL STATE TABLE |
---- A1A. CONSIDERATIONS The |
Modem Protocol can be considered a |
group of states and transitions. |
States represent certain actions taken |
by the program and certain expected |
results for those actions. The |
transitions are actions taken in |
reponse to a particular result, |
actions which can result in another |
state. |
The state table shows the |
complete set of states for a program |
with the CRC option. Programs without |
this option should ignore the <C> |
result in the Send-Init state and also |
ignore the Rec-Init-CRC state. There |
is a minor difference between the Data |
Flow Examples given by Ward |
Christensen and John Byrns. This |
difference is the reaction of the |
sender when the <ACK> to a block is garbled |
(not lost). In Ward's example the |
sender reacts by retransmitting the |
current block. In John's example the |
garbled <ACK> is ignored and nothing |
happens until the reciever has a |
timeout and sends a <NAK>. The state |
table uses the first method of |
reacting to a garbled <NAK>. This is |
the recommended method as the |
retransmission of a data block, even |
at the lowest baud rates, takes |
considerably less time than waiting |
for a timeout from the receiver. In |
the State Table, n is the current block |
number (therefore n-1 is, of course, |
the previous block number); r is the |
retry counter and c is the CRC |
handshake retry counter. The actions |
n+, r+ and c+ are incrementing the |
appropriate counter. It should be |
noted that the action n+ will always |
cause r = 0 or, to put it another |
way, whenever a block is successfully |
sent and recieved the retry counter is |
reset. When a r+ action causes r to |
reach the threshold, an error is |
generated and the program is aborted. |
A Result in angle brackets (i.e. < >) |
is the reciept of that character. A |
Result of "Block..." is the reciept of |
a complete, valid data block. Results |
of Other and Timeout are the reciept of |
any unlisted input (invalid or |
incomplete blocks included) and the |
occurance of a timeout in the character |
recieve routine, respectively. A |
specific check is made for <EOT> when |
expecting the first data block. This |
is because some installations (e.g. |
CompuServe) will send an <EOT> to |
signal that the processor is too busy |
to successfully transfer a file. |
---- A1B. STATE TABLE |
StateAction on entryResultAction |
on resultNext State |
Send-InitSet cksum |
mode,n=0<NAK>Get data for 1st |
block,n+ |
Send-Data<C> Set CRC mode,get dat |
for 1st blk,n+Send-Data |
Other r+Send-InitTimeout ErrorAbortSend-Data |
Send |
Block n<ACK> Get dat for nxt blk, n+ |
Send-Data, or Send-EOT,if EOF<NAK> |
or |
Other r+Send-DataTimeout |
ErrorAbortSend-EOT |
Send <EOT><ACK> --Exit |
Other r+Send-EOTTimeout ErrorAbort |
Rec-Init-CRCSet CRC mode,Send <C>, |
n=1Blk nStore data,send <ACK>, n+ |
Rec-Data<EOT>ErrorAbort |
Other r+Rec-Init-CRCTimeout c+ |
Rec-Init-CRCc+ thresholdSet cksum |
mode, r=0Rec-Init-Cksm |
Rec-Init-CksmSend <NAK>All--Rec-Data |
Rec-Data--Block nStore data, send |
<ACK>,n+ |
Rec-DataBlock n-1Send <ACK>, r+ |
Rec-Data<EOT>If n = 1, ErrorAbort |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.