Skip to main content

6.5 Connection Establishment

6.5 Connection establishment​

6.5.1 Purpose​

The procedure for connection establishment is used in all classes to create a new transport connection.

6.5.2 Network service primitives​

The procedure uses the following network service primitive:

N-DATA

6.5.3 TPDUs and parameters used​

The procedure uses the following TPDUs and parameters:

  • a) CR TPDU;
    • CDT;
    • DST-REF (set to zero);
    • SRC-REF
    • CLASS and OPTIONS (i.e. preferred class, use of extended format, non-use of explicit flow control in class 2);
    • calling TSAP-ID;
    • called TSAP-ID;
    • TPDU size (proposed);
    • version number;
    • security parameter;
    • checksum;
    • additional option selection (i.e. use of network expedited in class 1, use of receipt confirmation in class 1, non-use of checksum in class 4, use of transport expedited data transfer service);
    • alternative protocol class(es);
    • acknowledge time;
    • throughput (proposed);
    • residual error rate (proposed);
    • priority (proposed);
    • transit delay (proposed);
    • reassignment time;
    • user data.
  • b) CC TPDU;
    • CDT;
    • DST-REF;
    • SRC-REF;
    • CLASS and OPTIONS (selected);
    • calling TSAP-ID;
    • called TSAP-ID;
    • TPDU size (selected);
    • security parameter;
    • checksum;
    • additional option selection (selected);
    • acknowledge time;
    • throughput (selected);
    • residual error rate (selected);
    • priority (selected);
    • transit delay (selected);
    • user data.

NOTE - The transport service defines transit delay as requiring a previously stated average TSDU size as a basis for any specification. This protocol, as specified in 13.3.4(n), uses a value of 128 octets. Conversion to and from specifications based upon some other value is a local matter.

6.5.4 Procedure​

A transport connection is established by means of one transport entity (the initiator) transmitting a CR TPDU to the other transport entity (the responder), which replies with a CC TPDU.

Before sending the CR TPDU, the initiator assigns the transport connection being created to one (or more if the splitting procedure is being use) network connection(s). It is this set of network connections over which the TPDUs are sent. During this exchange, all information and parameters needed for the transport entities to operate shall be exchanged or negotiated.

NOTE - Except in class 4, it is recommended that the initiator starts an optional timer TS1 at the time the CR TPDU is sent. This timer should be stopped when the connection is considered as accepted or refused or unsuccessful. If the timer expires, the initiator should reset or disconnect the network connection and, in classes 1 and 3 freeze the reference (see 6.18). For all other transport connection(s) multiplexed on the same network connection the procedures for reset or disconnect as appropriate should be followed.

After receiving the CC TPDU for a class which includes the procedure for retention until acknowledgement of TPDUs the initiator shall acknowledge the CC TPDU as defined in table 5 (see 6.13).

When the network expedited variant of the expedited data transfer (see 6.11) has been agreed (possible in class 1 only), the responder shall not send an ED TPDU before the CC TPDU is acknowledged.

The following information is exchanged:

  • a) references. Each transport entity chooses a reference which is to be used by the peer entity is 16 bits long and which is arbitrary except for the following restrictions:

    1. it shall not already be in use or frozen (see 6.18),
    2. it shall not be zero.

    This mechanism is symmetrical and provides identification of the transport connection independent of the network connection. The range of references used for transport connections, in a given transport entity, is a local matter.

  • b) addresses (optional). Indicate the calling and called transport service access points. When either network address unambiguously defines the transport address this information may be omitted.

  • c) initial credit. Only relevant for classes which include the explicit flow control function.

  • d) user data. Not available if Class 0 is the preferred class (see note). Up to 32 octets in other classes.

    NOTE - If class 0 is a valid response according to table 3, inclusion of user data in the CR TPDU may cause the responding entity to refuse the connection (e.g. if it only supports class 0).

  • e) acknowledgement time. Only in class 4.

  • f) checksum parameter. Only in class 4.

  • g) security parameter. This parameter and its semantics are user defined.

The following negotiations take place:

  • h) protocol class. The initiator shall propose a preferred class and may propose any number of alternative class which permit a valid response as defined in table 3. The initiator should assume when it sends the CR TPDU that its preferred class will be agreed to, and commence the procedures associated with that class, except that if class 0 or class 1 is an alternative class, multiplexing shall not commence until a CC TPDU selecting the use of classes 2, 3 or 4 has been received.

    NOTE - This means, for example, that when the preferred class includes resynchronization (see 6.14) the resynchronization will occur if a reset is signalled during connection establishment.

The responder shall select one class defined in table 3 as a valid response corresponding to the preferred class and to the class(es), if any, contained in the alternative class parameter of the CR TPDU. It shall indicate the selected class in the CC TPDU and shall follow the procedures for the selected class.

If the preferred class is not selected, then on receipt of the CC TPDU the initiator shall adjust its operation according the procedures of the selected class.

+------------------------------------------------------------+
| Pre- | Alternative class |
|ferred |----------------------------------------------------|
|class | 0 | 1 | 2 | 3 | 4 | none |
|-------|--------|--------|--------|--------|--------|-------|
| 0 |not |not |not |not |not |class |
| |valid |valid |valid |valid |valid | 0 |
|-------|--------|--------|--------|--------|--------|-------|
| 1 |class |class |not |not |not |class |
| |1 or 0 |1 or 0 |valid |valid |valid |1 or 0 |
|-------|--------|--------|--------|--------|--------|-------|
| 2 |class |not |class |not |not |class |
| |2 or 0 |valid |2 |valid |valid | 2 |
|-------|--------|--------|--------|--------|--------|-------|
| 3 |class |class 3,|class |class |not |class |
| |3,2 or 0|2,1 or 0|3 or 2 |3 or 2 |valid |3 or 2 |
|-------|--------|--------|--------|--------|--------|-------|
| 4 |class |class 4,|class |class |class |class |
| |4,2 or 0|2,1 or 0|4 or 2 |4,3 or 2|4 or 2 |4 or 2 |
+------------------------------------------------------------+
Table 3.

Valid responses corresponding to the preferred class and any alternative class proposed in the CR TPDU

NOTES:

  1. The valid responses indicated in table 3 result from both explicit negotiation, whereby each of the classes proposed is a valid response, and implicit negotiation whereby:
    • a) if class 3 or 4 is proposed then class 2 is a valid response;
    • b) if class 1 is proposed then class 0 is a valid response.
  2. Negotiation from class 2 to class 1 and from any class to an higher-numbered class is not valid.
  3. Redundant combinations are not a protocol error.
  • j) TPDU size. The initiator may propose a maximum size for TPDUs, and the responder may accept this value or respond with any value between 128 and the proposed value in the set of values available (see 13.3.4.b).

    NOTE - The length of the CR TPDU does not exceed 128 octets (see 13.3).

  • k) normal or extended format. Either normal or extended is available. When extended is used this applies to CDT, TPDU-NR, ED-TPDU-NR, YR-TU-NR and YR-EDTU-NR parameters.

  • m) checksum selection. This defines whether or not TPDUs of the connection are to include a checksum.

  • n) quality of service parameters. This defines the throughput, transit delay, priority and residual error rate.

  • p) the non-use of explicit flow control in class 2.

  • q) the use of network receipt confirmation and network expedited when class 1 is to be used.

  • r) use of expedited data transfer service. This allows both TS-users to negotiate the use or non-use of the expedited data transport service as defined in the transport service (ISO 8072).

The following information is sent only in the CR TPDU:

  • s) version number. This defines the version of the transport protocol standard used for this connection.
  • t) reassignment time parameter. This indicates the time for which the initiator will persist in following the reassignment after failure procedure.

The negotiation rules for the options are such that the initiator may propose either to use or not to use the option. The responder may either accept the proposed choice or select an alternative choice as defined in table 4.

In class 2, whenever a transport entity requests or agrees to the transport expedited data transfer service or to the use of extended formats, it shall also request or agree (respectively) to the use of explicit flow control.

+-------------------------------------------------------------+
| Option | Proposal Made | Valid Selection |
| | by the Initiator | by the Responder |
|-----------------------|------------------|------------------|
|Transport expedited | Yes | Yes or No |
|data transfer service | No | No |
|(Classes 1,2,3,4 only) | | |
|-----------------------|------------------|------------------|
|Use of receipt confir- | Yes | Yes or No |
|mation (Class 1 only) | No | No |
|-----------------------|------------------|------------------|
|Use of the network | Yes | Yes or No |
|expedited variant | No | No |
|(Class 1 only) | | |
|-----------------------|------------------|------------------|
|Non-use of checksum | Yes | Yes or No |
|(Class 4 only) | No | No |
|-----------------------|------------------|------------------|
|Non-use of explicit | Yes | Yes or No |
|flow control | No | No |
|(Class 2 only) | | |
|-----------------------|------------------|------------------|
|Use of extended format | Yes | Yes or No |
|(Classes 2,3,4 only) | No | No |
+-------------------------------------------------------------+

Table 4. Negotiation of options during connection establishment

NOTE - Table 4 defines the procedures for negotiation of options. This negotiation has been designed such that if the initiator proposes the mandatory implementation option specified in clause 14, the responder has to accept use of this option over the transport connection except for the use of the transport expedited data transfer service which may be rejected by the TS-user. If the initiator proposes a non-mandatory implementation option, the responder is entitled to select use of the mandatory implementation option for use over the transport connection.