Skip to main content

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

7.4.4 Procedures for Connection Establishment Phase​

The following features pertain to connection establishment for Class 4:

  • In Class 4, a connection is not considered established until the successful completion of a 3-way TPDU exchange. The sender of a CR TPDU must respond to the corresponding CC TPDU by immediately sending a DT, ED or AK TPDU.
  • As a result of duplication, a CR TPDU may be received specifying a source reference which is already in use with the sending transport entity. If the receiving transport entity is in the data transfer phase, having completed the 3-way TPDU exchange procedure, the receiving transport entity should ignore such a TPDU. Otherwise a CC TPDU should be transmitted.
  • As a result of duplication or retransmission, a CC TPDU may be received specifying a paired reference which is already in use. The receiving transport entity should ignore such a CC TPDU.
  • A CC TPDU may be received specifying a reference which is in the frozen state. The response to such a TPDU should be a DR TPDU.

7.4.4.1 Connection Request​

When a transport entity transmits a CR TPDU it starts timer T1. If this timer expires before a CC TPDU is received, the CR TPDU is retransmitted and the timer restarted. After transmission of the CR TPDU N times, the connection establishment procedure is abandoned and the failure reported to the transport user. The reference must be placed in the frozen state for a period L (see section 7.4.3.6).

7.4.4.2 Incomimg Connection Request​

An incoming connection request is processed as for Class 3

7.4.4.3 Connection Confirm​

When a transport entity transmits a CC TPDU it starts timer T1. If this timer expires before an AK or DT TPDU is received, the CC TPDU is retransmitted according to the retransmission principles in Section 7.4.3.9

7.4.4.4 Incoming Connection Confirm​

When a CC TPDU is received, the receiving transport entity enters the data transfer phase. It must immediately transmit an AK, ED or DT TPDU to complete the 3-way TPDU exchange. The CC TPDU is subject to the usual rules of the data transfer phase regarding retransmission, see Section 7.4.5.3.

7.4.4.5 Incoming Acknowledgement​

When an AK, DT or ED TPDU is received the receiving transport entity can enter the data transfer phase. If the entity has data to send it may send DT TPDUs or an ED TPDU. The DT TPDUs are subject to flow control. Otherwise, the transport entity must obey the inactivity principles (see Section 7.4.5.8).

7.4.4.6 Unsuccessful Connection​

When a DR TPDU is received in response to a CR TPDU, the timer T1 is cancelled and the reference placed in the frozen state for a period L (see Section 7.4.6.1).

7.4.4.7 Initial Credit Allocation​

The CR and CC TPDUs may allocate an initial credit value to their respective recipients. This value is limited to 15 by the encoding of the TPDU. Where the extended header format is in use, credit values greater than 15 must be allocated using AK TPDUs.

7.4.4.8 Exchange of Acknowledge Time​

A transport entity may transmit the value it intends to use for AL at connection establishment, as the 'Acknowledge Time' parameter in the CR or CC TPDU (depending on whether the transport entity is initiating or accepting the transport connection). If this parameter is present in a received CR or CC TPDU, the value of AR should be set accordingly. If this parameter is not present, AR may be assumed to be insignificant in comparison to E the typical maximum transit delay.

7.4.5 Procedure for Data Transfer Phase​

7.4.5.1 Sequence Control​

The receiving transport entity is responsible for maintaining the proper sequence of DT TPDUs.

DT TPDUs received out of sequence must not be delivered to the TS-user until in-sequence TPDUs have also been received.

AK TPDUs also contain information allowing the receiving transport entity to process them in the correct order.

7.4.5.2 Duplicate DT TPDUs​

Duplicate TPDUs can be detected because the T(S) value matches that of previously received TPDUs. T(S) values must not be reused for the period L after their previous use. Otherwise, a new, valid TPDU could be confused with a duplicated TPDU which had previously been received and acknowledged.

Duplicated DT TPDUs must be acknowledged, since the duplicated TPDU may be the result of a retransmission resulting from the loss of an AK TPDU.

The data contained in a duplicated DT TPDU should be ignored.

7.4.5.3 Retransmission Principles​

When a transport entity has some outstanding DT or ED TPDUs that require acknowledgement, it will check that no T1 interval elapses without the arrival of an AK or EA TPDU that acknowledges one of them. If the timer expires, the first TPDU is retransmitted and the timer is restarted. After N transmissions (N-1 retransmissions) the connection is assumed to have failed and the release phase is entered, and the transport user is informed.

DT TPDUs which fall beyond the current window (due to reduction of the upper window edge) are not retransmitted until advancement of the upper window edge so permits.

Note: This requirement can be met by different means, for example.

  1. One timer is associated with each TPDU. If the timer expires, the associated TPDU will be retransmitted, and the timer T1 will be restarted for all subsequent DT TPDUs.

  2. One timer is associated with each TC:

    • if the transport entity transmits a DT TPDU requiring acknowledgement, it starts timer T1,
    • if the transport entity receives a TPDU that acknowledges one of the TPDUs to be acknowledged, timer T1 is restarted,
    • if the transport entity receives a TPDU that acknowledges the last TPDU to be acknowledged, timer T1 is stopped.

For the decision whether the retransmission timer T1 is maintained on a per TPDU or on a per TC basis, throughput considerations have to be taken into account.