Skip to main content

7.2 Class 2: Multiplexing Class (Part 2)

7.2.5.4 Sending Data TPDU (When Explicit Flow Control is Used)​

On each transport connection the transmission of Data TPDUs is controlled separately for each direction and is based on authorization from the receiver.

This authorization is provided through the use of the TPDUs Credit field. Credit field values are only present in the following TPDUs: CR, CC, AK..

7.2.5.4.1 Numbering of Data TPDUs​

Each Data TPDU transmitted between transport entities, for each direction of transmission in a transport connection, is sequentially numbered.

The sender of Data TPDUs holds a count of the next TPDU to be sent. This count is called the Send Sequence Number T(S). The sender indicates to the receiver the number of the data TPDU he sends by putting the current T(S) value into the TPDU-NR field of the data TPDU.

Sequence numbering is performed modulo 2**n, where n is the number of bits of the sequence number field. The T(S) counter cycles through the entire range 0 to (2**n)-1.

At connection establishment time both Transport entities initialize their T(S) and T(R) counts to zero (i.e. the first Data TPDU to be transmitted between transport entities for a given direction of data transmission after the connection establishment has a TPDU-NR field set to zero).

Receipt of a Data TPDU whose TPDU-NR field is not equal to the expected value T(R), is to be regarded as a protocol error.

Operations described above are summarized as follows:

o  initalization

T(S) = 0 T(R) = 0

Sending of Data TPDU
put T(S) into the TPDU-NR field of
the Data TPDU to be sent

T(S) = (T(S) + 1) (modulo 2**n)

Receiving of Data TPDU

TPDU-NR field of the received data
TPDU which is not equal to T(R) is
a protocol error.

T(R) = (T(R) + 1) (modulo 2**n)
7.2.5.4.2 Window Definition​

For each transport connection and for each direction of data transmission a 'transmit window' is defined as the (possibly null) ordered set of consecutive data TPDUs authorized to be transmitted in that direction. At any given time, the lowest sequence number of a data TPDU which a transport entity is authorized to transmit is referred to as the 'lowest window edge'. The 'upper window edge' is calculated by adding the credit allocation, given by the value of the Credit (CDT) field contained in a received TPDU, to the lower window edge. Note that a transport entity is authorized to send data TPDUs with sequence numbers up to but not including the upper window edge.

7.2.5.4.3 Flow Control​

Flow control is performed as follows:

  • initialization time

    Lower window edge = 0

    Upper window edge = N (Credit received either in
    CR or in CC and N < 2**p < 2** (n-1), where P is the number of
    bits in credit field of CR and CC.
  • Sending of a Data TPDU

    Send data TPDUs while T(S) is less than the upper window edge. If T(S) equals the upper window edge then wait for additional credit before sending.

  • Reception of Data TPDU (with TPDU NR = T(R)

    If T(R) is greater than or equal to the upper window edge authorized to the sending transport entity, then the receiving transport entity shall use the Treatment of Protocol Errors function. Otherwise T(R) shall be incremented.

    Sending Credit

    Send AK TPDU with YR-TU-NR = T(R) and Credit equals N.
    (Where N = number of additional data
    TPDUs the entity is prepared to receive.)

    Receiving Credit in AK.

    Lower window edge = YR-TU-NR received.

    Upper window edge = Lower window edge + N.
7.2.5.4.4 Reducing the Upper Window Edge​

The value of the upper window edge cannot be decreased in this class. If, at a certain point of time, the upper window edge value is U, the reception of an AK TPDU having YR-TU-NR = M and CDT = N such that:

(U-M) (mod. 2**n) > N

is a protocol error

Provided the previous statements are respected, CDT field may take any value including zero.

7.2.5.4.5 Procedure for Expedited Data Transfer​

The procedure of expedited data transfer allows a transport entity to transmit data to the remote transport entity without following the flow control procedure of the normal data flow. This procedure can only apply in the transfer phase.

The expedited procedure has no effect on the transfer and flow control applying to normal Data TPDUs.

To transmit expedited data, the transport entity sends an expedited data TPDU (ED TPDU). The size of a data field is limited (up to 16 octets). The data field contains a complete ED TSDU. The remote transport will then confirm the receipt of the ED TPDU by transmitting an expedited TPDU acknowledgement (EA TPDU). A transport entity can send another ED TPDU only after having received an EA TPDU for the previously transmitted ED TPDU. In class 2 the ED TPDU NR field of the ED and YR-TU-NR field of the EA TPDU are not defined and may take any value.

7.2.6 Release Procedures for Class 2​

The data phase ends after a transport entity has sent or received a Disconnect Request (DR). The transport entity will ignore any incoming TPDU except DC or DR.

If the network resets or clears the network connection, all transport connections are terminated without the transport clearing sequence. The References become frozen.

For Class 2 the explicit variant of the 'release' mechanism is used, enabling transport connections to be cleared independently of the underlying network connection.

7.2.7 Treatment of Invalid TPDUs​

The 'Treatment of Protocol Error' mechanism in Section 6.23 is used.

7.2.8 Behaviour after an Error signalled by the Network Layer.​

The implicit termination mechanism is used.

7.2.9 Supported Options​

Non use of explicit flow control. Extended formats.