跳到主要内容

超时机制

该超时机制的运作方式如下:

a. 在发出 STR 或 RTS 后, 如果在 T 个时间单位内没有收到匹配的 RTS 或 STR, 或者 CLS, 则发送一个 CLS。在发送超时 CLS 之后, 通过忽略在匹配的 CLS 之前到达的匹配 RTS 或 STR, 可以避免竞态条件。

b. 在发出 CLS (任何类型的 CLS, 包括超时 CLS) 后, 如果在 T 个时间单位内没有收到匹配的 CLS, 则认为匹配的 CLS 已经返回。然而, 如果在超时之后、CLS 返回之前的任意时刻, 在同一对套接字上发送了 RTS 或 STR, 然后我们收到了 CLS, 那么就无法判断这个返回的 CLS 究竟是用于匹配先前的 CLS, 还是用于拒绝 RTS 或 STR。 (详见下图)。到目前为止, 除了在整个网络范围内为连接分配序号之外, 我们无法解决这个竞态条件, 而我们认为这根本不是一个好的解决方案。因此, 我们希望提请主机-主机协议故障清理委员会 (Host-Host Protocol Glitch Cleaning Committe) 关注这个问题。时限 T 应当成为网络标准, 其取值也应当被确定。

       Reason                                Our NCP
------ -------

1. User requests connection 1. RTS ->

2. User gets tired requests CLS
(or NCP timeout) 2. CLS ->

3. No matching CLS returned in
T time units 3. CLS assumed returned
free socket and other
resources

4. User requests another connection
over same socket pair 4. RTS ->

5. CLS received ?? does it belong to
2 or 4?

Figure
         [ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Gert Doering 4/97]