Skip to main content

7.4 Class 4: Error Detection and Recovery Class (Part 3)

7.4.5.4 Acknowledgement Principles​

A transport entity operating class 4 must acknowledge all TPDUs received requiring acknowledgment. To avoid unnecessary retransmissions and to avoid delays to transmission by the remote transport entity, the delay for acknowledgement should not exceed timer AL (see Section 7.4.3.2).

There are two TPDU types that must be acknowledged: ED and DT. Receipt of an ED TPDU must be acknowledged by an EA TPDU. A DT TPDU is acknowledged with an AK TPDU.

An AK TPDU has the sequence number of the next DT TPDU the receiving transport entity expects to receive. It thus acknowledges receipt of all DT TPDUs with sequence numbers less than the acknowledgement number.

An AK TPDU may be repeated at any time, using the sequence number in the last AK TPDU sent.

7.4.5.5 Flow Control Principles​

Flow control in Class 4 is subject to the same principles as in Classes 2 and 3. The credit mechanism and window principle of those classes still apply, except that in class 4, the upper window edge can be reduced by the receiving transport entity by sending an AK TPDU with a smaller credit.

A receiving transport entity may send an AK TPDU at any time to change the window size. This AK TPDU may acknowledge a new DT TPDU or may repeat a previous acknowledgement.

7.4.5.6 Window Synchronization Principles​

To ensure the synchronization of flow control information the window timer provokes the frequent exchange of AK TPDUs between transport entities. The window timer maintains a minimum level of TPDU traffic between transport entities cooperating in a transport connection.

In Class 4 the window size can be reduced in any AK TPDU. Due to the possibility of misordering of AK TPDUs and the associated loss of efficiency, the AK TPDU for class 4 includes an additional field called the AK TPDU subsequence parameter.

An AK TPDU should contain the subsequence parameter whenever a duplicate AK TPDU is sent with the same sequence number but with reduced credit. The value of the subsequence parameter is set to one for the first time the AK TPDU is resent with reduced credit.

When an AK TPDU is transmitted whose sequence number is increased, the 'sub-sequence' parameter is omitted until credit reduction takes place.

When an AK TPDU is received, it must be processed (i.e., its contents made use of) only if:

  • The sequence number is greater than in any previously received AK TPDU, or,
  • The sequence number is equal to the highest in any previously received AK TPDU, and the sub-sequence parameter is greater than in any previously received AK TPDU having the same sequence number (where an absent sub-sequence parameter is regarded as having a value of zero), or
  • The sequence number and sub-sequence parameter are both equal to the highest in any previously received AK TPDU (where an absent sub-sequence parameter is regarded as having a value of zero), and the credit field is greater than in any previously received AK TPDU having the same sequence and sub-sequence numbers.

When an AK TPDU is transmitted which opens a closed window (i.e. increases credit from zero), it should be retransmitted at an interval of T1. Transmission should occur a maximum of N times, after which the usual inactivity retransmission timer should be reverted to. Retransmission may also cease if the local transport entity becomes sure that the new credit information has been received by the remote transport entity.

If a transport entity receives an AK TPDU containing a 'Flow Control Confirmation' parameter, whose Lower Window Edge and Your-Sub-Sequence fields are equal to its own lower window edge and sub-sequence number, it may note that the credit available at the remote transport entity (relative the Lower Window Edge field) is at least equal to the value conveyed as Your Credit. This enables the transport entity to cease the frequent retransmission of window information, if it thereby knows that the remote window is open.

A transport entity need not retransmit window information (except as described under Inactivity Principles) if it is aware by the receipt of DT TPDUs that the remote transport entity has sufficient credit to prevent deadlock. When an AK TPDU is transmitted in response to a DT TPDU, the transport entity may normally assume that the transmitter of the DT TPDU will ensure that the AK TPDU is received, be retransmission of the DT TPDU if necessary. Therefore, it can normally be assumed that the credit conveyed in such an AK TPDU will be available to the remote transport entity, and frequent retransmission is unnecessary.

The assumption that the DT TPDU will be retransmitted may be incorrect if credit reduction has taken place. Therefore, a transport entity may not make this assumption if the sequence number of the DT TPDU is less than or equal to the highest value for which permission to transmit (i.e., credit) has been given and subsequently withdrawn.

Upon receipt of an AK TPDU which increases the upper window edge, a transport entity may transmit an AK TPDU which repeats the information contained in the received TPDU in a 'Flow Control Confirmation' parameter in its variable part an thereby assures the transmitter of the original AK TPDU of its own state. Such an AK TPDU may be tranmmitted:

  • Upon receipt of a duplicated AK TPDU (i.e., one which is identical in all fields, including the sub-sequence parameter if present, to the most recently received AK TPDU which was not discarded due to detection of a sequence error), not containing the 'Flow Control Confirmation' parameter.
  • Upon receipt of an AK TPDU which increases the upper window edge but does not increase the lower window edge, when the upper window edge was formerly equal to the lower window edge.

7.4.5.7 Procedure for Expedited Data​

The procedure for expedited data is as for Class 3, with the following exceptions.

The ED TPDU has a sequence number which is allocated from a separate sequence space from that of the DT TPDUs. The EA TPDU carries the same sequence number as the corresponding ED TPDU. Only a single ED TPDU may be transmitted and awaiting acknowledgements at any time.

Upon receipt of an unduplicated ED TPDU, a transport entity immediately forwards the data to the transport user. The ED TPDU sequence number is recorded in an EA TPDU sent to the other transport entity.

The sender of an ED TPDU shall not send any new DT TPDU with higher T(S) until it receives the EA TPDU. This guarantees the arrival of the ED TPDU before any subsequently sent DT TPDUs.

7.4.5.8 Inactivity Principles​

If the Inactivity Time I passes without receipt of some TPDU, the transport entity will terminate the TC by making use of the release procedure. To present expiration of the remote transport entity's inactivity times when no data is being sent, the local transport entity must send AK TPDUs at suitable intervals in the absence of data, having regard to the probability of TPDU loss. The Window Synchronization Principles (see 7.4.5.6) may ensure that this requirement is met.

Note: It is likely that the release procedure initiated due to inactivity timer expiration will fail, as such expiration indicates probable failure of the supporting NC or of the remote transport entity. This case is described in Section 7.4.6.

7.4.6 Procedures for Release Phase​

The rules for class 3 apply. The DR TPDU is subject to the usual retransmission procedure. After N retransmissions, the transport connection is considered disconnected, the Reference is placed in the frozen state for a period L and retransmission ceases.

The DC TPDU is sent only in response to a DR TPDU, and is not subject to the retransmission procedure.

The DC TPDU when received allows the transport entity to release all resources maintained for the transport connection.

The DR TPDU does not carry a sequence number. Any previously transmitted TPDUs (including DT and ED) which are received after the DR TPDU result in a further DR TPDU but are otherwise ignored. After disconnection, for whatever reason, the Reference is placed in the frozen state for a period L.

7.4.6.1 Unassigned Frozen References​

When a transport connection is terminated, the corresponding references cannot be immediately reused since TPDUs containing these references may continue to exist in the network for a time up to L. Therefore, these references will be placed in an unassignable, frozen state for this peiod.

After an event involving loss of transport entity state information, including the status of reference assignments, all references relating to network connections whose transport state information has been lost must be placed in the frozen state for a period L.

If a DC TPDU is received for a local reference which is in the frozen state, or with a remore reference not matching the already recorded one, this DC TPDU shall be ignored.

7.4.7 Treatment of Invalid TPDUs​

The 'Treatment of Protocol Erorrs' function is used.

7.4.8 Supported Options​

Non use of checksum.

Use of extended formats.