Problems with MIL Standard TCP
One basic feature of TCP is the three-way handshake which is used to set up a properly synchronized connection between two remote TCP entities. This mechanism is incorrectly specified in the current specification of TCP. One problem is that data associated with the SYN packet can not be delivered. This results from an incorrect specification of the interaction between the accept_policy action procedure and the record_syn action procedure. Neither of the 2 possible strategies suggested in accept_policy will give the correct result when called from the record_syn procedure, because the recv_next variable is updated in record_syn before the accept_policy procedure is called.
Another problem with the specification of the three-way handshake is apparent in the actions listed for the Active Open event (with or without data) when in the CLOSED state. No retransmission timer is set in these actions, and therefore if the initial SYN is lost, there will be no timer expiration to trigger retransmission. This will prevent connection establishment if the initial SYN packet is lost by the network.
The third problem with the specification is that the actions for receiving data in the ESTAB state are incorrect. The accept action procedure must be called when data is received, so that arriving data may be queued and possibly passed to the user.
A general problem with this specification is that the program language and action table portions of the specification were clearly not checked by any automatic syntax checking process. Several variable and procedure names are misspelled, and the syntax of the action statements is often incorrect. This can be confusing, especially when a procedure name cannot be found in the alphabetized list of procedures because of misspelling.
These are some of the very serious errors that we have discovered with the MIL standard TCP.