7.3 Class 3: Error Recovery and Multiplexing Class
7.3 PROTOCOL DESCRIPTION OF CLASS 3: ERROR RECOVERY AND MULTIPLEXING CLASS
7.3.1 Characteristics of Class 3
The characteristics of Class 3 in addition to those of Class 2 is to mask errors indicated by the network. Selection of this class is usually based upon reliability criteria. Class 3 has been designed to be used in association with type B network connections.
7.3.2 Functions of Class 3
This class provides the functionality of Class 2 (with use of explicit flow control) plus the ability to recover after a failure signalled by the Network Layer without involving the user of the transport service.
The mechanisms used to achieve this functionality also allow the implementation of more flexible flow control.
7.3.3 Protocol Mechanisms of Class 3
Class 3 mechanisms include Class 2 (with use of explicit flow control option) mechanisms and the ability to recover after a failure signalled by the network without informing the user of the transport connection.
7.3.3.1 Error Recovery Principles
The sending transport entity keeps a copy of transmitted Data TPDUs and ED TPDUs until it receives a positive aknowledgement which allows copies to be released. It may also receive an RJ command inviting it to retransmit or transmit all Data TPDUs, if any, from the point in the sequence indicated in the RJ command.
This is especially the case, when a failure is indicated by the network. The transport entity sends an RJ command in order to indicate the sequence number of the next expected TPDU.
Error recovery for ED TPDU is achieved by retransmission (see 7.3.5.3).
7.3.3.2 Relationship between Flow Control and Error Recovery
Acknowledgement is performed by use of the T(R) count. A credit is associated with this acknowledgement which may be equal to or greater than zero. Thus it is possible to acknowledge data without giving the right to send new data.
Credit may be reduced, by the use of the RJ TPDU.
7.3.4 Connection Establishment Procedure for Class 3
The rules for Class 2 (with use of explicit flow control) apply with the addition of the following rules which apply on receipt of an eror indication from the Network layer.
-
Reception of an error indication by a transport entity which, prior to this event, has sent a CR and has not yer received a CC, causes the transport entity to retransmit CR.
-
Reception of an error indication by a transport entity to wait for reception of CR, RJ or DR TPDU. In this case:
- Reception of CR will cause the transport entity to retransmit CC.
- Reception of RJ will cause the transport entity to transmit an RJ with a YR-TU-NR equal to zero and enter the data phase.
- Reception of a DR will cause termination of the transport connection as for Classes 1 and 2 (see 7.1.4).
7.3.5 Data Transfer Procedures for Class 3
7.3.5.1 Acknowledgement
The 'AK' variant of the Retention until Acknowledgement of TPDUs function is used.
7.3.5.2 Retransmission Procedure
TPDU retransmission is a procedure which allows a transport entity to request retransmission of one or several consecutive Data TPDUs from the remote transport entity. A transport reject condition is signalled to the remote transport entity by transmission of an RJ TPDU whose YR-TU-NR field indicates the sequence number of the next expected Data TPDU.
On receipt of a RJ TPDU, a Transport entity shall accept credit to the value contained in the credit field and shall re-transmit TPDUs, starting with the one whose number is specified in the YR-TU-NR field of the received RJ TPDU, subject to the new credit.
The transport entity shall not specify a T(R) in the RJ TPDU less than that which has previously been acknowledged. Receipt of an RJ TPDU with a T(R) which has been previously acknowledged will be considered a protocol error.
Additional DT TPDUs pending initial transmission may follow the retransmitted DT TPDU(s) if the window is not closed.
7.3.5.3 Reducing the upper window edge
It is possible to decrease the value of the upper window edge down to the sequence number transported by YR-TU-NR field of the RJ TPDU. Receipt of an DT TPDU which would have been inside the window before the reduction is not a protocol error and this TPDU may be discarded.
Note: In such a case the credit equal to zero achieves the effect of a Receive not Ready Condition.
7.3.5.4 Behaviour after an error signalled by the network layer
After receiving an error indication from the Network Service, the transport entity shall tranmit to the remove entity an RJ TPDU with YR-TU-NR field indicating the sequence number of the next expected Data TPDU.
7.3.5.5 Procedure for Expedited Data Transfer
In Class 3, the ED TPDU-NR field of the Expedited Data (ED) TPDU contains an identification number. This number must be different for successive ED TPDUs. That is, when an ED TPDU has been sent and an EA TPDU for the ED TPDU has been received, the next ED TPDU must have a different value in the NR field of the ED TPDU. No other significance is attached to this field. It is recommended, however, that the values used be consecutive modulo 2**n. When a transport entity receives an ED TPDU for a transport connection, it shall respond by transmitting an expedited acknowledgement (EA) TPDU.
It places in the YR-TU-NR field the value contained in the NR field of the received ED TPDU. If, and only if, this value is different from the NR field of the previously received ED TPDU, the data contained in the TPDU is to be passed to the session entity.
If an error indication from the Network layer is received before the receipt of the expected Expedited Acknowledgement (EA) TPDU, the transport entity shall retransmit the ED TPDU with the same value in the NR field. By the rule described in the previous paragraph, the session entity does not receive data corresponding to the same expedited TPDU more than once.
7.3.6 Release Procedures for Class 3
The rules for Class 2 apply with the addition of the following rule:
Receipt of an eror indication by a transport entity, which prior to this event has sent a DR, causes this transport entity to retransmit DR. Only DC and DR will be accepted and interpreted as the completion of the connection clearing sequence. The related Reference will become unassigned.
7.3.7 Treatment of Invalid TPDUs
The 'Treatment of Protocol Errors' mechanism is used.
7.3.8 Supported Options
Extended formats.