Skip to main content

6.16-6.23 Flow Control, Checksum, Frozen References and Error Handling

6.16 Explicit Flow Control​

6.16.1 Purpose​

The explicit flow control procedure is used in Classes 2, 3 and 4 to regulate the flow of DT TPDUs independently of the flow control in the other layers.

6.16.2 TPDUs and parameters used​

The procedure makes use of the following TPDUs and parameters:

  • a) CR, CC, AK and RJ TPDUs
    • CDT.
  • b) DT TPDU
    • TPDU-NR.
  • c) AK TPDU
    • YR-TU-NR;
    • subsequence number;
    • flow control confirmation.
  • d) RJ TPDU
    • YR-TU-NR.

6.16.3 Procedure​

The procedures differ in different classes. They are defined in the clauses specifying the separate classes.

6.17 Checksum​

6.17.1 Purpose​

The checksum procedure is used to detect corruption of TPDUs by the NS-provider.

NOTE - Although a checksum algorithm has to be adapted to the type of errors expected on the network connection, at present only one algorithm is defined.

6.17.2 TPDUs and parameters used​

The procedure uses the following TPDUs and parameters:

All TPDUs

  • checksum

6.17.3 Procedure​

The checksum is used only in Class 4. It is always used for the CR TPDU, and is used for all other TPDUs except if the non-use of the procedure was agreed during connection establishment.

The sending transport entity shall transmit TPDUs with the checksum parameter set such that the following formulas are satisfied:

SUM(from i=1 to i=L) OF a[i] EQUALS <zero> (module 255)

SUM(from i=1 to i=L) OF i*a[i] EQUALS <zero> (module 255)

where

i    = number (i.e. position) of an octet within the TPDU
(see 13.2);
a[i] = value of octet in position 1;
L = length of TPDU in octets.

A transport entity which receives a TPDU for a transport connection for which the use of checksum has been agreed and which does not satisfy the above formulas shall discard the TPDU (see also note 2).

NOTES

  1. An efficient algorithm for determining the checksum parameters is given in annex B.

  2. If the checksum is incorrect, it is not possible to know with certainty to which transport connection the TPDU is related; further action may be taken for all the transport connections assigned to the network connection (see 6.9).

  3. The checksum proposed is easy to calculate and so will not impose a heavy burden on implementations. However, it will not detect insertion or loss of leading or trailing zeros and will not detect some octets misordering.

6.18 Frozen references​

6.18.1 Purpose​

This procedure is used in order to prevent re-use of a reference while TPDUs associated with the old use of the reference may still exist.

6.18.2 Procedure​

When a transport entity determines that a particular connection is released it shall place the reference which it has allocated to the connection in a frozen state according to the procedures of the class. While frozen, the reference shall not be re-used.

NOTE - The frozen reference procedure is necessary because retransmission or misordering can cause TPDUs bearing a reference to arrive at an entity after it has released the connection for which it allocated the reference. Retransmission, for example, can arise when the class includes either resynchronization (see 6.14) or retransmission on time out (see 6.19).

6.18.2.1 Procedure for classes 0 and 2​

The frozen reference procedure is never used for these classes.

NOTE - However for consistency with the other classes freezing the references may be done as a local decision.

6.18.2.2 Procedure for classes 1 and 3​

The frozen reference procedure is used except in the following cases (see note 1):

  • a) when the transport entity receives a DC TPDU in response to a DR TPDU which it has sent (see note 2);
  • b) when the transport entity sends a DR or ER TPDU in response to a CR TPDU which it has received (see note 3);
  • c) when the transport entity has considered the connection to be released after the expiration of the TWR timer (see note 4);
  • d) when the transport entity receives a DR or ER TPDU in response to a CR TPDU which it has sent.

The period of time for which the reference remains frozen shall be greater than the TWR time.

NOTES

  1. However, even in these cases, for consistency freezing the reference may be done as a local decision.

  2. When the DC TPDU is received it is certain that the other transport entity considers the connection released.

  3. When the DR or ER TPDU is sent the peer transport entity has not been informed of any reference assignment and thus cannot possibly make use of a reference (this includes the case where a CC TPDU was sent, but was lost).

  4. In 6.18.2.c the transport entity has already effectively frozen the reference for an adequate period.

6.18.2.3 Procedure for classes 4​

The frozen reference procedure is always used in class 4. The period for which the reference remains frozen should be greater than L (see 12.2.1.1.6).

6.19 Retransmission on time-out​

6.19.1 Purpose​

The procedure is used in Class 4 to cope with unsignalled loss of TPDUs by the NS-provider.

6.19.2 TPDUs used​

The procedure makes use of the following TPDUs:

CR, CC, DR, DT, ED, AK TPDUs.

6.19.3 Procedure​

The procedure is specified in the procedures for Class 4 (see 12.2.1.2.j).

6.20 Resequencing​

6.20.1 Purpose​

The resequencing procedure is used in Class 4 to cope with misordering of TPDUs by the network service provider.

6.20.2 TPDUs and parameters used​

The procedure uses the following TPDUs and parameters:

  • a) DT TPDU;
    • TPDU-NR.
  • b) ED TPDU
    • ED TPDU-NR

6.20.3 Procedure​

The procedure is specified in the procedures for Class 4 (see 12.2.3.5).

6.21 Inactivity control​

6.21.1 Purpose​

The inactivity control procedure is used in Class 4 to cope with unsignalled termination of a network connection.

6.21.2 Procedure​

The procedure is specified in the procedures for Class 4 (see 12.2.3.3).

6.22 Treatment of protocol errors​

6.22.1 Purpose​

The procedure for treatment of protocol errors is used in all classes to deal with invalid TPDUs.

6.22.2 TPDUs and parameters used​

The procedure uses the following TPDUs and parameters:

  • a) ER TPDU;
    • reject cause;
    • TPDU in error.
  • b) DR TPDU;
    • reason code.

6.22.3 Procedure​

A transport entity that receives a TPDU that can be associated to a transport connection and is invalid or constitutes a protocol error (see 3.2.16 and 3.2.17) shall take one of the following actions so as not to jeopardize any other transport connections not assigned to that network connection:

  • a) ignoring the TPDU;
  • b) transmitting an ER TPDU;
  • c) resetting or closing the network connection; or
  • d) invoking the release procedures appropriate to the class.

If an ER TPDU is sent in Class 0 it shall contain the octets of the invalid TPDU up to and including the octet where the error was detected (see notes 3, 4 and 5).

If the TPDU cannot be associated to a particular transport connection then see 6.9.

NOTES

  1. In general, no further action is specified for the receiver of the ER TPDU but it is recommended that it initiates the release procedure appropriate to the class. If the ER TPDU has been received as an answer to a CR TPDU then the connection is regarded as released (see 6.6).

  2. Care should be taken by a transport entity receiving several invalid TPDUs or ER TPDUs to avoid looping if the error is generated repeatedly.

  3. If the invalid received TPDU is greater than the selected maximum TPDU size it is possible that it cannot be included in the invalid TPDU parameter of the ER TPDU.

  4. It is recommended that the sender of the ER TPDU starts an optional timer TS2 to ensure the release of the connection. If the timer expires, the transport entity shall initiate the release procedures appropriate to the class. The timer should be stopped when a DR TPDU or an N-DISCONNECT indication is received.

  5. In classes other than 0, it is recommended that the invalid TPDU be also included in the ER TPDU.

6.23 Splitting and recombining​

6.23.1 Purpose​

This procedure is used only in class 4 to allow a transport connection to make use of multiple network connections to provide additional resilience against network failure, to increase throughput, or for other reasons.

6.23.2 Procedure​

When this procedure is being used, a transport connection may be assigned (see 6.1) to multiple network connections (see note 1). TPDUs for the connection may be sent over any such network connection.

If the use of Class 4 is not accepted by the remote transport entity following the negotiation rules, then no network connection except that over which the CR TPDU was sent may have this transport connection assigned to it.

NOTES

  1. The resequencing function of Class 4 (see 6.20) is used to ensure that TPDUs are processed in the correct sequence.

  2. Either transport entity may assign the connection to further network connections of which it is the owner at any time during the life of the transport connection.

  3. In order to enable the detection of unsignalled network connection failures, a transport entity performing splitting should ensure that TPDUs are sent at intervals on each supporting network connection, for example, by sending successive TPDUs on successive network connections, where the set of network connections is used cyclically. By monitoring each network connection, a transport entity may detect unsignalled network connection failures, following the inactivity procedures defined in 12.2.3.3. Thus, for each network connection no period I (see 12.2.3.1) may elapse without the receipt of some TPDU for some transport connection.