Skip to main content

9. Special Options

9. Special options.​

Special options may be obtained by taking advantage of the manner in which IS 8073 and N3756 have been written. It must be emphasized that these options in no way violate the intentions of the standards bodies that produced the standards. Flexibility was deliberately written into the standards to ensure that they do not constrain applicability to a wide variety of situations.

9.1. Negotiations.​

The negotiation procedures in IS 8073 have deliberate ambiguities in them to permit flexibility of usage within closed groups of communicants (the standard defines explicitly only the behavior among open communicants). A closed group of communicants in an open system is one which, by reason of organization, security or other special needs, carries on certain communication among its members which is not of interest or not accessible to other open system members. Examples of some closed groups within DOD might be: an Air Force Command, such as the SAC; a Navy base or an Army post; a ship; Defense Intelligence; Joint Chiefs of Staff. Use of this characteristic does not constitute standard behavior, but it does not violate conformance to the standard, since the effects of such usage are not visible to non-members of the closed group. Using the procedures in this way permits options not provided by the standard. Such options might permit,for example, carrying special protection codes on protocol data units or for identifying DT TPDUs as carrying a particular kind of message.

Standard negotiation procedures state that any parameter in a received CR TPDU that is not defined by the standard shall be ignored. This defines only the behavior that is to be exhibited between two open systems. It does not say that an implementation which recognizes such non-standard parameters shall not be operated in networks supporting open systems interconnection. Further, any other type TPDU containing non-standard parameters is to be treated as a protocol error when received. The presumption here is that the non-standard parameter is not recognized, since it has not been defined. Now consider the following example:

Entity A sends Entity B a CR TPDU containing a non-standard parameter.

Entity B has been implemented to recognize the non-standard parameter and to interpret its presence to mean that Entity A will be sending DT TPDUs to Entity B with a special protection identifier parameter included.

Entity B sends a CC TPDU containing the non-standard parameter to indicate to Entity A that it has received and understood the parameter, and is prepared to receive the specially marked DT TPDUs

McCoy [Page 65]

RFC 1008 June 1987

from Entity A. Since Entity A originally sent the non-standard parameter, it recognizes the parameter in the CC TPDU and does not treat it as a protocol error.

Entity A may now send the specially marked DT TPDUs to Entity B and Entity B will not reject them as protocol errors.

Note that Entity B sends a CC TPDU with the non-standard parameter only if it receives a CR TPDU containing the parameter, so that it does not create a protocol error for an initiating entity that does not use the parameter. Note also that if Entity B had not recognized the parameter in the CR TPDU, it would have ignored it and not returned a CC TPDU containing the parameter. This non-standard behavior is clearly invisible and inaccessible to Transport entities outside the closed group that has chosen to implement it, since they are incapable of distinguishing it from errors in protocol.

9.2. Recovery from peer deactivation.​

Transport does not directly support the recovery of the transport connection from a crashed remote transport entity. A partial recovery is possible, given proper interpretation of the state tables in Annex A to IS 8073 and implementation design. The interpretation of the Class 4 state tables necessary to effect this operation is as follows:

Whenever a CR TPDU is received in the state OPEN, the entity is required only to record the new network connection and to reset the inactivity timer. Thus, if the initiator of the original connection is the peer which crashed, it may send a new CR TPDU to the surviving peer, somehow communicating to it the original reference numbers (there are several ways that this can be done).

  Whenever a CC TPDU is received in the

state OPEN, the receiver is required only to record the new network connection, reset the inactivity timer and send either an AK, DT or ED TPDU. Thus, if the responder for the original connection is the peer which crashed, it may send a new CC TPDU to the surviving peer, communicating to it the original reference numbers.

In order for this procedure to operate properly, the situation in a., above, requires a CC TPDU to be sent in response. This could be the original CC TPDU that was sent, except for new reference numbers. The original initiator will have sent a new reference number in the new CR TPDU, so this would go directly into the CC TPDU to be returned. The new reference number for the responder could just be a new assignment, with the old reference number frozen. In the situation in b., the originator could retain its reference number (or

McCoy [Page 66]

RFC 1008 June 1987

assign a new one if necessary), since the CC TPDU should carry both old reference numbers and a new one for the responder (see below). In either situation, only the new reference numbers need be extracted from the CR/CC TPDUs, since the options and parameters will have been previously negotiated. This procedure evidently requires that the CR and CC TPDUs of each connection be stored by the peers in nonvolatile memory, plus particulars of the negotiations.

To transfer the new reference numbers, it is suggested that the a new parameter in the CR and CC TPDU be defined, as in Part 9.1, above. This parameter could also carry the state of data transfer, to aid in resynchronizing, in the following form:

1) the last DT sequence number received by the peer that crashed;

2) the last DT sequence number sent by the peer that
crashed;

3) the credit last extended by the peer that crashed;

4) the last credit perceived as offered by the surviving peer;

5) the next DT sequence number the peer that crashed expects to
send (this may not be the same as the last one sent, if the last
one sent was never acknowledged);

6) the sequence number of an unacknowledged ED TPDU, if any;

7) the normal data sequence number corresponding to the
transmission of an unacknowledged ED TPDU, if any (this is to
ensure the proper ordering of the ED TPDU in the normal data
flow);

A number of other considerations must be taken into account when attempting data transfer resynchronization. First, the recovery will be greatly complicated if subsequencing or flow control confirmation is in effect when the crash occurs. Careful analysis should be done to determine whether or not these features provide sufficient benefit to warrant their inclusion in a survivable system. Second, non-volatile storage of TPDUs which are unacknowledged must be used in order that data loss at the time of recovery can be minimized. Third, the values for the retranmsission timers for the communicating peers must allow sufficient time for the recovery to be attempted. This may result in longer delays in retransmitting when TPDUs are lost under normal conditions. One way that this might be achieved is for the peers to exchange in the original CR/CC TPDU exchange, their expected lower bounds for the retransmission timers, following the procedure in Part 9.1. In this manner, the peer that crashed may be determine whether or not a new connection should be attempted. Fourth, while the recovery involves directly only the transport peers when operating over a connectionless network service, recovery when

McCoy [Page 67]

RFC 1008 June 1987

operating over a connection-oriented network service requires some sort of agreement as to when a new network connection is to be established (if necessary) and which peer is responsible for doing it. This is required to ensure that unnecessary network connections are not opened as a result of the recovery. Splitting network connections may help to ameliorate this problem.

9.3. Selection of transport connection reference numbers.​

In N3756, when the reference wait period for a connection begins, the resources associated with the connection are released and the reference number is placed in a set of frozen references. A timer associated with this number is started, and when it expires, the number is removed from the set. A function which chooses reference numbers checks this set before assigning the next reference number. If it is desired to provide a much longer period by the use of a large reference number space, this can be met by replacing the implementation dependent function "select_local_ref" (page TPE-17 of N3756) by the following code:

function select_local_ref : reference_type;

begin
last_ref := (last_ref + 1) mod( N+1 ) + 1;
while last_ref in frozen_ref[class_4] do
last_ref := (last_ref + 1) mod( N+1 ) + 1;
select_local_ref := last_ref;
end;

where "last_ref" is a new variable to be defined in declarations (pages TPE-10 - TPE-11), used to keep track of the last reference value assigned, and N is the length of the reference number cycle, which cannot exceed 2**16 - 1 since the reference number fields in TPDUs are restricted to 16 bits in length.

9.4. Obtaining Class 2 operation from a Class 4 implementation.​

The operation of Class 4 as described in IS 8073 logically contains that of the Class 2 protocol. The formal description, however, is written assuming Class 4 and Class 2 to be distinct. This was done because the description must reflect the conformance statement of IS 8073, which provides that Class 2 alone may be implemented.

However, Class 2 operation can be obtained from a Class 4 implementation, which would yield the advantages of lower complexity, smaller memory requirements, and lower implementation costs as compared to implementing the classes separately. The implementor will have to make the following provisions in the transport entity and the Class 4 transport machine to realize Class 2 operation.

McCoy [Page 68]

RFC 1008 June 1987

 1)   Disable all timers.  In the formal description, all Class 4
      timers except the reference timer are in the Class 4 TPM.
      These timers can be designed at the outset to be enabled or
      not at the instantiation of the TPM.  The reference timer is
      in the Transport Entity module (TPE) and is activated by the
      TPE recognizing that the TPM has set its "please_kill_me"
      variable to "freeze".  If the TPM sets this variable instead
      to "now", the reference timer for that transport connection is
      never started.  However, IS 8073 provides that the reference
      timer can be used, as a local entity management decision, for
      Class 2.

      The above procedure should be used when negotiating from Class
      4 to Class 2.  If Class 2 is proposed as the preferred class,
      then it is advisable to not disable the inactivity timer, to
      avoid the possibility of deadlock during connection
      establishment if the peer entity never responds to the CR
      TPDU.  The inactivity timer should be set when the CR TPDU is
      sent and deactivated when the CC TPDU is received.

 2)   Disable checksums.  This can be done simply by ensuring that
      the boolean variable "use_checksums" is always set to "false"
      whenever Class 2 is to be proposed or negotiated.

 3)   Never permit flow control credit reduction. The formal
      description makes flow control credit management a function of
      the TPE operations and such management is not reflected in the
      operation of the TPM.  Thus, this provision may be handled by
      always making the "credit-granting" mechanism aware of the
      class of the TPM being served.

 4)   Include Class 2 reaction to network service events.  The Class
      4 handling of network service events is more flexible than
      that of Class 2 to provide the recovery behavior
      characteristic of Class 4.  Thus, an option should be provided
      on the handling of N_DISCONNECT_indication and
      N_RESET_indication for Class 2 operation.  This consists of
      sending a T_DISCONNECT_indication to the Transport User,
      setting "please_kill_me" to "now" (optionally to "freeze"),
      and transitioning to the CLOSED state, for both events.  (The
      Class 4 action in the case of the N_DISCONNECT is to remove
      the network connection from the set of those associated with
      the transport connection and to attempt to obtain a new
      network connection if the set becomes empty.  The action on
      receipt of the N_RESET is to do nothing, since the TPE has
      already issued the N_RESET_response.)

 5)   Ensure that TPDU parameters conform to Class 2.  This implies
      that subsequence numbers should not be used on AK TPDUs, and
      no flow control confirmation parameters should ever appear in
      an AK TPDU.  The checksum parameter is prevented from

McCoy [Page 69]

RFC 1008 June 1987

      appearing by the "false" value of the "use_checksums"
variable. (The acknowledgement time parameter in the CR and
CC TPDUs will not be used, by virtue of the negotiation
procedure. No special assurance for its non-use is
necessary.)

The TPE management of network connections should see to it
that splitting is never attempted with Class 4 TPMs running as
Class 2. The handling of multiplexing is the same for both
classes, but it is not good practice to multiplex Class 4 and
Class 2 together on the same network connection.

McCoy [Page 70]

RFC 1008 June 1987