6.12-6.15 Reassignment, Retention, Resynchronization and Multiplexing
6.12 Reassignment after failure
6.12.1 Purpose
The reassignment after failure procedure is used in Classes 1 and 3 to commence recovery from an NS-provider signalled disconnect.
6.12.2 Network service primitives
The procedure uses the following network service primitive:
N-DISCONNECT indication
6.12.3 Procedure
When an N-DISCONNECT indication is received from the network connection to which a transport connection is assigned, the initiator shall apply one of the following alternatives:
-
a) if the TTR timer has not already run out and no DR TPDU is retained then:
- assign the transport connection to a different network connection (see 6.1) and start its TTR timer if not already started.
- while waiting for the completion of assignment if:
- an N-DISCONNECT indication is received, repeat the procedure from 6.12.3.a,
- the TTR timer expires, begin procedure 6.12.3.b.
- when reassignment is completed, begin resynchronization (see 6.14) and:
- if a valid TPDU is received as the result of the resynchronization, stop the TTR timer, or
- if TTR runs out, wait for the next event, or
- if an N-DISCONNECT indication is received, then begin either procedure 6.12.3.a or 6.12.3.b depending on the TTR timer.
NOTE - After the TTR timer expires and while waiting for the next event, it is recommended that the initiator starts the TWR timer. If the TWR timer expires before the next event the initiator should begin the procedure in 6.12.3.b.
-
b) if the TTR timer has run out, consider the transport connection as released and freeze the reference (see 6.18).
-
c) if a DR TPDU is retained and the TTR timer has not run out, then follow the actions in either 6.12.3.a or 6.12.3.b.
The responder shall start its TWR timer if not already started. The arrival of the first TPDU related to the transport connection (because of resynchronization by the initiator) completes the reassignment after failure procedure. The TWR timer is stopped and the responder shall continue with resynchronization (see 6.14). If reassignment does not take place within this time, the transport connection is considered released and the reference is frozen (see 6.18).
6.12.4 Timers
The reassignment after failure procedure uses two timers:
- a) TTR, the time to try reassignment/resynchronization timer;
- b) TWR, the time to wait for reassignment/resynchronization timer.
The TTR timer is used by the initiator. Its value shall not exceed two minutes minus the sum of the maximum disconnect propagation delay and the transit delay of the network connections (see note 1). The value for the TTR timer may be indicated in the CR TPDU.
The TWR timer is used by the responder. If the reassignment time parameter is present in the CR TPDU, the TWR timer value shall be greater than the sum of the TTR timer plus the maximum disconnect propagation delay plus the transit delay of the network connections.
If the reassignment time parameter is not present in the CR TPDU, a default value of 2 minutes shall be used for the TWR timer.
NOTES
-
Provided that the required quality of service is met, TTR may be set to zero (i.e. no assignment). This may be done, for example, if the rate of NS-provider generated disconnects is very low.
-
Inclusion of the reassignment time parameter in the CR TPDU allows the responder to use a TWR value of less than 2 minutes.
-
If the optional TS1 and TS2 timers are used, it is recommended:
- a) to stop TS1 or TS2 if running when TTR or TWR is started;
- b) to restart TS1 or TS2 if necessary when the corresponding TPDU (CR TPDU or DR TPDU respectively is repeated);
- c) to select for TS1 and TS2 values greater than TTR.
6.13 Retention until acknowledgement of TPDUs
6.13.1 Purpose
The retention until acknowledgement of TPDUs procedure is used in classes 1, 3 and 4 to enable and minimize retransmission after possible loss of TPDUs.
The confirmation of receipt variant is used only in Class 1 when it has been agreed during connection establishment (see note).
The AK variant is used in classes 3 and 4 and also in Class 1 when the confirmation of receipt variant has not been agreed during connection establishment.
NOTE - Use of confirmation of receipt variant depends on the availability of the network layer receipt confirmation service and the expected cost reduction.
6.13.2 Network service primitives
The procedure uses the following network service primitives:
- a) N-DATA;
- b) N-DATA ACKNOWLEDGE.
6.13.3 TPDUs and parameters used
The procedure uses the following TPDUs and parameters:
- a) CR, CC, DR and DC TPDUs;
- b) RJ and AK TPDUs;
- YR-TU-NR.
- c) DT TPDU;
- TPDU-NR.
- d) ED TPDU;
- ED-TPDU-NR.
- e) EA TPDU;
- YR-EDTU-NR.
6.13.4 Procedures
Copies of the following TPDUs shall be retained upon transmission to permit their later retransmission:
CR, CC, DR, DT and ED TPDUs
except that if a DR is sent in response to a CR TPDU there is no need to retain a copy of the DR TPDU.
In the confirmation of receipt variant, applicable only in Class 1, transport entities receiving N-DATA indications which convey DT TPDUs and have the confirmation request field set shall issue an N-DATA ACKNOWLEDGE request (see notes 1 and 2).
After each TPDU is acknowledged, as shown in table 5, the copy need not be retained. Copies may also be discarded when the transport connection is released.
NOTES
-
It is a local matter for each transport entity to decide which N-DATA requests should have the confirmation request parameter set. This decision will normally be related to the amount of storage available for retained copies of the DT TPDUs.
-
Use of the confirmation request parameter may affect the quality of network service.
+-------------------------------------------------------------+
|RETAINED| | |
| TPDU | VARIANT | RETAINED UNTIL ACKNOWLEDGED BY |
|--------|--------------|-------------------------------------|
| CR | both |CC, DR or ER TPDU. |
| | | |
| DR | both |DC or DR (in case of collision) TPDU.|
| | | |
| CC | confirmation |N-DATA Acknowledge indication, RJ, |
| | of receipt |DT, EA or ED TPDU. |
| | variant | |
| | | |
| CC | AK variant |RJ, DT, AK, ED or EA TPDU. |
| | | |
| DT | confirmation |N-DATA ACKNOWLEDGE indication cor- |
| | of receipt |responding to an N-DATA request which|
| | variant |conveyed, or came after, the DT TPDU.|
| | | |
| DT | AK variant |AK or RJ TPDU for which the YR-TU-NR |
| | |is greater than TPDU-NR in the DT |
| | |TPDU. |
| | | |
| ED | both |EA TPDU for which the YR-EDTU-NR is |
| | |equal to the ED-TPDU-NR in the |
| | |ED TPDU. |
+-------------------------------------------------------------+
Table 5. Acknowledgement of TPDUs
6.14 Resynchronization
6.14.1 Purpose
The resynchronization procedures are used in Classes 1 and 3 to restore the transport connection to normal after a reset or during reassignment after failure according to 6.12.
6.14.2 Network service primitives
The procedure makes use of the following network service primitive:
N-RESET indication.
6.14.3 TPDUs and parameters used
The procedure uses the following TPDUs and parameters:
- a) CR, DR, CC and DC TPDUs
- b) RJ TPDUs;
- YR-TU-NR.
- c) DT TPDU;
- TPDU-NR
- d) ED TPDU;
- ED TPDU-NR.
- e) EA TPDU;
- YR-EDTU-NR.
6.14.4 Procedure
A transport entity which is notified of the occurence of an N-RESET or which is performing 'reassignment after failure' according to 6.12 shall carry out the active resynchronization procedure (see 6.14.4.1) unless any of the following hold:
- a) the transport entity is the responder (see note). In this case the passive resynchronization procedure is carried out (see 6.14.4.2).
- b) the transport entity has elected not to reassign (see 6.12.3.c). In this case no resynchronization takes place.
6.14.4.1 Active resynchronization procedures
The Transport entity shall carry out one of the following actions:
-
a) if the TTR timer has been previously started and has run out (i.e. no valid TPDU has been received), the transport connection is considered as released and the reference is frozen (see 6.18).
-
b) otherwise, the TTR timer shall be started (unless it is already running) and the first applicable of the following actions shall be taken:
- if a CR TPDU is unacknowledged, then the transport entity shall retransmit it;
- if a DR TPDU is unacknowledged, then the transport entity shall retransmit it;
- otherwise, the transport entity shall carry out the data resynchronization procedures (6.14.4.3).
The TTR timer is stopped when a valid TPDU is received.
6.14.4.2 Passive resynchronization procedures
The transport entity shall not send any TPDUs until a TPDU has been received. The transport entity shall start its TWR timer if it was not already started (due to a previous N-DISCONNECT or N-RESET indication). If the timer runs out prior to the receipt of a valid TPDU which commence resynchronization (i.e. CR or DR or RJ TPDU) the transport connection is considered as released and the reference is released (see 6.18).
When a valid TPDU is received the transport entity shall stop its TWR timer and carry out the appropriate one of the following actions, depending on the TPDU:
-
a) if it is a DR TPDU, then the transport entity shall send a DC TPDU;
-
b) if it is a repeated CR TPDU (see note 1) then the transport entity shall carry out the appropriate action from the following:
- if a CC TPDU has already been sent, and acknowledged: treat as a protocol error;
- if a DR TPDU is unacknowledged (whether or not a CC TPDU is unacknowledged): retransmit the DR TPDU, but setting the source reference to zero;
- if the T-CONNECT response has not yet been received from the user: take no action;
- otherwise; retransmit the CC TPDU followed by an unacknowledged ED TPDU (see note 2) and any DT TPDU;
NOTES
- A repeated CR TPDU can be identified by being on a network connection with the appropriate network addresses and having a correct source reference.
- The transport entity should not use network expedited until the CC TPDU is acknowledged (see 6.5). This rule prevents the network expedited from overtaking the CC TPDU.
-
c) if it is an RJ or ED TPDU then one of the following actions shall be taken:
- if a DR TPDU is unacknowledged, then the transport entity shall retransmit it;
- otherwise, the transport entity shall carry out the data resynchronization procedures (6.14.4.3).
- If a CC TPDU was unacknowledge, the RJ or ED TPDU should then be considered as acknowledging the CC TPDU. If a CC TPDU was never sent, the RJ TPDU should then be considered as a protocol error.
6.14.4.3 Data Resynchronization Procedures
The transport entity shall carry out the following actions in the following order:
-
a) (re)transmit any ED TPDU which is unacknowledged,
-
b) transmit an RJ TPDU with YR-TU-NR field set to the TPDU-NR of the next expected DT TPDU;
-
c) wait for the next TPDU from the other transport entity, unless an RJ or DR TPDU has already been received; if a DR TPDU is received the transport entity shall send a DC, freeze the reference, inform the TS-user of the disconnection and take no further action (i.e. it shall not follow the procedures in 6.14.4.3.d). If an RJ TPDU is received, the procedure of 6.14.4.3.d shall be followed. If an ED TPDU is received the procedures as described in 6.11 shall be followed. If it is a duplicated ED-TPDU the transport entity shall acknowledge it, with an EA TPDU, discard the duplicated ED TPDU and wait again for the next TPDU.
-
d) (re)transmit any DT TPDUs which are unacknowledged, subject to any applicable flow control procedures (see note);
NOTE - The RJ TPDU may have reduced the credit.
6.15 Multiplexing and demultiplexing
6.15.1 Purpose
The multiplexing and demultiplexing procedures are used in Classes 2, 3 and 4 to allow several transport connections to share a network connection at the same time.
6.15.2 TPDUs and parameters used
The procedure makes use of the following TPDUs and parameters:
CC, DR, DC, DT, AK, ED, EA, RJ and ER TPDUs
- DST-REF
6.15.3 Procedure
The transport entities shall be able to send and receive on the same network connection TPDUs belonging to different transport connections.
NOTES
-
When performing demultiplexing the transport connection to which the TPDUs apply is determined by the procedures defined in 6.9.
-
Multiplexing allows the concatenation of TPDUs belonging to different transport connections to be transferred in the same N-DATA primitive (see 6.4).