跳到主要内容

12. 4 类规范 - 功能与定时器

12. 4 类规范:差错检测和恢复类​

12.1 4 类的功能​

4 类提供 3 类的功能,并增加了在不涉及 TS 用户的情况下,检测并恢复丢失、重复或乱序 TPDU 的能力。

这种错误检测是通过扩展使用 2 类和 3 类的 DT TPDU 编号、超时机制以及附加过程来实现的。

该类还通过使用校验和机制来检测并恢复受损的 TPDU。校验和机制必须可用,但是否使用则需经协商决定。

此外,该类通过允许一个传输连接使用多个网络连接,提供了对网络故障的额外恢复能力和更高的吞吐能力。

12.2 4 类的过程​

12.2.1 始终可用的过程​

12.2.1.1 始终使用的定时器​

本子条定义了在 4 类中始终适用的定时器。这些定时器列于表 7。

本国际标准未规定定时器的具体取值,本子条所述的推导方法也不是强制性的。取值的选择应使得在已知网络特性的情况下能够提供所需的服务质量。

仅适用于特定过程的定时器在相应过程之下定义。

+---------------------------|------------------------------------+
|Symbol|        Name        |            Definition              |
|------|--------------------|------------------------------------|
| MLR  |NSDU lifetime       | A bound for the maximum time which |
|      |local-to-remote     | may elapse between the transmis-   |
|      |                    | sion of an NSDU by a local trans-  |
|      |                    | port entity and the receipt of any |
|      |                    | copy of it by a remote peer entity.|
|      |                    |                                    |
| MRL  |NSDU lifetime       | A bound for the maximum time which |
|      |remote-to-local     | may elapse between the transmission|
|      |                    | of an SNDU from a remote transport |
|      |                    | entity to a remote peer entity.    |
|      |                    |                                    |
| ELR  |Expected maximum    | A bound for the maximum delay suf- |
|      |transit delay       | fered by all but a small proportion|
|      |local-to-remote     | of NSDUs transferred from the local|
|      |                    | transport entity to a remote peer  |
|      |                    | entity.                            |
|      |                    |                                    |
| ERL  |Expected maximum    | A bound for the maximum delay suf- |
|      |transit delay       | fered by all but a small proportion|
|      |remote-to-local     | of NSDUs transferred from a remote |
|      |                    | transport entity to the local peer |
|      |                    | entity.                            |
|      |                    |                                    |
|  AL  |Local acknowledge   | A bound for the maximum time which |
|      |time                | can elapse between the receipt of  |
|      |                    | a TPDU by the local transport en-  |
|      |                    | tity from the network layer and    |
|      |                    | the transmission of the corres-    |
|      |                    | ponding acknowledgement.           |
|      |                    |                                    |
|  AR  |Remote acknow-      | As AL, but for the remote entity.  |
|      |ledgement time      |                                    |
+----------------------------------------------------------------+

 Table 7. (First of 2 pages) Time Parameters related to class 4
+----------------------------------------------------------------+
|  T1  |Local retrans-      | A bound for the maximum time that  |
|      |mission time        | the local transport entity will    |
|      |                    | wait for acknowledgement before re-|
|      |                    | transmitting a TPDU.               |
|      |                    |                                    |
|  R   |Persistence time    | A bound for the maximum time the   |
|      |                    | the local transport entity will    |
|      |                    | continue to transmit a TPDU that   |
|      |                    | requires acknowledgement.          |
|      |                    |                                    |
|  N   |Maximum number of   | A bound for the maximum number of  |
|      |transmissions       | times which the local transport    |
|      |                    | entity will continue to transmit a |
|      |                    | TPDU that requires acknowledgement.|
|      |                    |                                    |
|  L   |Bound on references | A bound for the maximum time       |
|      |and sequence        | between the transmission of a TPDU |
|      |numbers             | and the receipt of any acknow-     |
|      |                    | ledgement relating to it.          |
|      |                    |                                    |
|  I   |Inactivity time     | A bound for the time after which   |
|      |                    | a transport entity will, if it     |
|      |                    | does not receive a TPDU, initiate  |
|      |                    | the release procedure to terminate |
|      |                    | the transport connection.          |
|      |                    |                                    |
|      |                    | NOTE - This parameter is required  |
|      |                    | for protection against unsignalled |
|      |                    | breaks in the network connection.  |
|      |                    |                                    |
|  W   |Window time         | A bound for the maximum time a     |
|      |                    | transport entity will wait before  |
|      |                    | retransmitting up to date window   |
|      |                    | information.                       |
+----------------------------------------------------------------+

 Table 7. (Second of 2 pages) Time Parameters related to class 4
12.2.1.1.1 NSDU 生存期(MLR、MRL)​

假定网络层作为其服务等级的一个方面,为 NSDU 在网络中的最大生存期提供一个界限。在两个传输实体之间通过网络传送的每个方向上,该值可以不同。假定传输实体已知两个传送方向上的值。本地到远端的最大 NSDU 生存期(MLR)是指从本地传输实体向网络发送 NSDU,到远端传输实体从网络接收到该 NSDU 的任何副本之间可能经过的最长时间。远端到本地的最大 NSDU 生存期(MRL)是指从远端传输实体向网络发送 NSDU,到本地传输实体从网络接收到该 NSDU 的任何副本之间可能经过的最长时间。

12.2.1.1.2 预期最大传送延迟(ELR、ERL)​

假定网络层作为其服务等级的一个方面,为 NSDU 在网络中提供预期最大传送延迟。在两个传输实体之间通过网络传送的每个方向上,该值可以不同。假定传输实体已知两个传送方向上的值。本地到远端的预期最大传送延迟(ELR)是指通过网络从本地传输实体传送到远端传输实体的 NSDU 中,除一小部分外所有 NSDU 所经受的最大延迟。远端到本地的预期最大传送延迟(ERL)是指通过网络从远端传输实体传送到本地传输实体的 NSDU 中,除一小部分外所有 NSDU 所经受的最大延迟。

12.2.1.1.3 确认时间(AR、AL)​

假定任何传输实体都为其从网络层收到 TPDU 到发送相应响应之间可能经过的最长时间提供一个界限。该值称为 AL。远端传输实体给出的相应时间称为 AR。

12.2.1.1.4 本地重传时间(T1)​

假定本地传输实体对其在重传 TPDU 之前等待确认的时间维持一个界限。其值由下式给出:

T1 = ELR + ERL + AR + X

其中:

ELR = Expected maximum transit delay local-to-remote,
ERL = Expected maximum transit delay remote-to-local,
AR = Remote acknowledge time, and
X = local processing time for a TPDU.
12.2.1.1.5 持续时间(R)​

假定本地传输实体为其可以继续重传某个需要肯定确认的 TPDU 的最长时间提供一个界限。该值称为 R。

该值显然与重传间隔时间 T1 和最大传输次数 N 有关。它不小于 T1 * N + X,其中 X 是一个小量,用于考虑额外的内部延迟、实现 T1 所用机制的粒度等。由于 R 是一个界限,只要 X 有界且界限的值已知,X 的确切值就无关紧要。

12.2.1.1.6 引用和序号的界限(L)​

从决定发送某个 TPDU,到收到与之相关的任何响应之间的最长时间的界限(L)由下式给出:

L = MLR + MRL + R + AR

其中:

MLR = NSDU lifetime local-to-remote,
MRL = NSDU lifetime remote-to-local,
R = Persistence time, and
AR = Remote acknowledgement time.

在重用任何引用或序号之前,必须等待 L 这一时间段,以免在涉及该引用或序号的 TPDU 可能被复制或延迟的情况下造成混淆。

注

  1. 实际上,L 的值可能大到不可接受。它也可能只是某一置信水平上的统计数字。因此,在仍能提供所需服务质量的情况下,可以使用较小的值。

  2. 上述各时间之间的关系如图 3 和图 4 所示。

    [本副本中省略了图 3 和图 4。]