Skip to main content

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

7.4 PROTOCOL DESCRIPTION OF CLASS 4: ERROR DETECTION AND RECOVERY CLASS​

7.4.1 Characteristics of Class 4​

The characteristic of Class 4, in addition to those of Class 3, is the detection of errors which occur as a result of the low grade of service available from the network layer. The kinds of errors to be detected include: TPDU loss, TPDU delivery out of sequence, TPDU duplication. These errors may afect control TPDUs as well as Data TPDUs.

Class 4 has been designed to be usd in association with network connections of type C.

7.4.2 Functions of Class 4​

This class provides the functionality of Class 3, plus the ability to detect and recover from lost, duplicated or out of sequence TPDUs without involving the user of the transport service.

This detection of errors is made by extended use of the sequence numbering of Classes 2 and 3, by a timeout mechanism, and by additional protocol mechanisms.

This class additionally detects and recovers from damaged TPDUs by using a checksum mechamism. The use of the checksum mechanism must be available but its use or its non use is subject to negotiation. Class 4 does not attempt to deal with detection of errors due to the misdelivery of TPDUs.

7.4.3 Protocol Mechanisms of Class 4​

7.4.3.1 Network Service Data Unit Lifetime​

The network layer is assumed to provide, as an aspect of its grade of service, for a bound on the maximum lifetime of NSDUs in the network. This value is known by the Transport Layer. The maximum time which may elapse between the transmission of an NSDU into the network layer and the receipt of any copy of it is referred to as M.

7.4.3.2 Average Transit Delay​

It is assumed that there is some value of transmit delay in the network, typically much less than M, which will be the maximum delay suffered by all but a small proportion of NSDUs. This value is referred to as E.

7.4.3.3 Remote Acknowledge Time Assumptions​

Any transport entity is assumed to provide a bound for the maximum time which can elapse between its receipt of a TPDU from the Network Layer and its transmisssion of the Corresponding response. this value is referred to as A/L. The corresponding time given by the remote transport entity is referred to as A/R. The values for these timers may be conventionally established or may be established at connection establishment time.

7.4.3.4 Local Retransmission Time​

The local transport entity is assumed to maintain a bound on the time it will wait for an acknowledgement before retransmitting the TPDU. This time is the local retransmission time and is referred to as T1.

T1 = 2*E +  X  + Ar?

Where X is a value to allow for TPDU processing in the local transport entity.

7.4.3.5 Persistence Time​

The local transport entity is assumed to provide a bound for the maximum time for which it may continue to retransmit a TPDU requiring positive acknowledgment. This value is referred to as R.

The value is clearly related to the time elapsed between retransmission, T1, and the maximum number of retransmissions, N. It is not less than T1*N+X, where X is small quantity to allow for additional internal delays, the granularity of the mechanism used to implement T1 and so on. Because R is a bound, the exact value of X is unimportant as long as it is bounded and the value of a bound is known.

7.4.3.6 Bound on Reference Identifier and Sequence Numbers​

Using the above values, a bound L may be established for the maximum time between the decision to transmit a TPDU and the receipt of any response relating to it. The value of L is given by:

L = 2*M+R+Ar

It is necessary to wait for a period L before reusing any reference or sequence number, to avoid confusion in case a TPDU referring to it may be duplicated or delayed.

(Note: In practive, the value of L may be unacceptably large. It may also be only a statistical figure at a certain confidence level. A smaller value may therefore be used where this still allows the required quality of service to be provided).

7.4.3.7 Inactivity Time​

To protect against unsignalled breaks in the network connection (Half-open connections), each transport entity maintains an inactivity time interval. If the interval passes without receipt of some TPDU, the transport entity will terminate the TC by making use of the release procedure. This interval is referred to as I.

7.4.3.8 Window Time​

A transport entity maintains a time to ensure that there is a maximum interval between transmission of up-to-date window information. This interval is referred to as the window time, W.

7.4.3.9 Class 4 Error Recovery Principles​

In class 4, the transport entity associates a response time with TPDUs sent requiring a response. If an appropriate response is not received within time T1, the recovery procedure must be invoked by the sender. This will usually involve the retransmission of the corresponding TPDU.

A TPDU may be transmitted a maximum number of times, This number is referred to a N. The value of N is chosen so that the required quality of service can be provided given the known characteristics of the network connection.

7.4.3.10 Relationship of Times and Intervals​

The following note describes the relationship between the time described in Section 7.4.3.1 - 7.4.3.9.

Note:

a. The interrelationship of times for the worst case is as follows:

M:   maximum transit delay of the network (see
7.4.3.1)

Ar maximum acknowledgement time of the remote
transport entity (see 7.4.3.3)

R: maximum local retransmission time (see
7.4.3.5)

N: maximum number of transmission for a single
TPDU (see 7.4.3.9)

L: maximum time for a TPDU to be valid (see
7.4.3.6)

R = T * (N-1)
1

R

*
M
L *

A =2*M + A + R
R R

*
M

t t

b. The interrelationship of times for the average case is as follows (see 7.4.3.4)

E:        average transit delay for the network
(E<<M)

X: TPDU processing time

T : average time from sending a TPDU until
1 the receipt of its acknowledgement (see
7.4.3.4)

A : maximum acknowledgement time of the
R remote transport entity (see 7.4.3.3)

X

E

A T = 2*E + X + A
R 1 R

E
t t

7.4.3.11 Sequence Numbering​

In Class 4 sequence numbering is applied to certain control TPDUs and their acknowledgements, as well as to DT TPDUs. These are ED and its acknowledgement EA.

The length of sequence numbers may be negotiated at connection establishment. Where other than the default length is used, an extended header format is used for sequenced TPDUs containing additional octets of sequence numbers. Extended header format includes a credit field on the appropriate TPDU types allowing extended credit allocation.