Windows 2003 sp2 上的 TCP RST 每 5 分钟重置一次

Windows 2003 sp2 上的 TCP RST 每 5 分钟重置一次

最近有一位 Web 开发人员来找我,询问为什么他在访问 SQL 数据库时收到连接错误。

因此,我按照常规故障排除步骤来隔离或重现问题。我发现,如果我使用查询分析器连接到数据库并让连接空闲 5 分钟,它就会断开连接。这意味着……我将无法再刷新查询分析器中对象浏览器中的表或任何其他对象/节点。我必须右键单击实例并刷新才能重新建立连接。接下来,我转到 wireshark 并在客户端 PC 的网卡上运行捕获。果然,如果连接空闲时间超过 5 分钟,它每 5 分钟就会收到一次 TCP RST 重置。我还在 SQL Server 上运行了捕获,并注意到了 TCP RST 重置命令。下面附上了来自客户端机器的捕获。如果有人能帮忙……那就太好了。

-我根据另一台服务器检查了 SQL Server 2000 中的所有设置,它们似乎都相同。

-如果我连接到任何其他 SQL Server 2000 服务器,则不会出现问题。

-如果连接到服务器本身的 SQL,则不会发生问题...因此仅通过网络。

-我咨询了网络团队,他们的回复如下:SQL Server 和您的桌面之间没有防火墙或代理。流量流动方式如下:桌面->访问交换机->Distro 交换机->核心交换机->数据中心交换机->SQL Server 所有交换机上均未配置安全 ACL。他们还表示未打开 NAT。

-SQL 服务器企业管理器没有出现此问题。

- 同时运行 SQL Profiler,在 RST 期间没有发现任何异常

我在 Google 上搜索了各种方法以解决这个问题。但是没有找到!

我的问题是:

这可能是什么原因造成的?

序列号错误?

网络团队可能忽略了路由器或交换机的设置?

在 Windows 中设置?

我忽略了 SQL Server 2000 中的设置?

利用 Wireshark 寻找更多答案的更好方法?

RST 距底部约 10 处。

编号 时间 源 目标 协议信息

258 24.390708   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [SYN] Seq=0 Len=0 MSS=1260
259 24.401679   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460
260 24.401729   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=0
261 24.402212   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=42
262 24.413335   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=1 Ack=43 Win=64198 Len=37
285 24.466512   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [ACK] Seq=43 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=1260
286 24.466536   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1303 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=437
289 24.478168   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [ACK] Seq=38 Ack=1740 Win=64240 Len=0
290 24.480078   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=38 Ack=1740 Win=64240 Len=385
293 24.493629   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1740 Ack=423 Win=65113 [TCP CHECKSUM INCORRECT] Len=60
294 24.504637   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=423 Ack=1800 Win=64180 Len=17
295 24.533197   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1800 Ack=440 Win=65096 [TCP CHECKSUM INCORRECT] Len=44
296 24.544098   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=440 Ack=1844 Win=64136 Len=17
297 24.544524   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1844 Ack=457 Win=65079 [TCP CHECKSUM INCORRECT] Len=58
298 24.558033   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=457 Ack=1902 Win=64078 Len=31
299 24.558493   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1902 Ack=488 Win=65048 [TCP CHECKSUM INCORRECT] Len=92
300 24.569984   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=488 Ack=1994 Win=63986 Len=70
301 24.577395   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [PSH, ACK] Seq=1994 Ack=558 Win=64978 [TCP CHECKSUM INCORRECT] Len=448
303 24.589834   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [PSH, ACK] Seq=558 Ack=2442 Win=63538 Len=64
304 24.590122   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [FIN, ACK] Seq=2442 Ack=622 Win=64914 [TCP CHECKSUM INCORRECT] Len=0
305 24.601094   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [ACK] Seq=622 Ack=2443 Win=63538 Len=0
306 24.601659   x.x.x.10         x.x.x.99             TCP      2226 > 14488 [FIN, ACK] Seq=622 Ack=2443 Win=63538 Len=0
307 24.601686   x.x.x.99             x.x.x.10         TCP      14488 > 2226 [ACK] Seq=2443 Ack=623 Win=64914 [TCP CHECKSUM INCORRECT] Len=0
321 25.839371   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [SYN] Seq=0 Len=0 MSS=1260
322 25.850291   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460
323 25.850321   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=0
324 25.850660   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=42
325 25.861573   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=1 Ack=43 Win=64198 Len=37
326 25.863103   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [ACK] Seq=43 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=1260
327 25.863130   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1303 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=463
328 25.874417   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [ACK] Seq=38 Ack=1766 Win=64240 Len=0
329 25.876315   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=38 Ack=1766 Win=64240 Len=385
330 25.876905   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1766 Ack=423 Win=65113 [TCP CHECKSUM INCORRECT] Len=60
331 25.887773   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=423 Ack=1826 Win=64180 Len=17
332 25.888299   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1826 Ack=440 Win=65096 [TCP CHECKSUM INCORRECT] Len=44
333 25.899169   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=440 Ack=1870 Win=64136 Len=17
334 25.899574   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1870 Ack=457 Win=65079 [TCP CHECKSUM INCORRECT] Len=58
335 25.910618   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=457 Ack=1928 Win=64078 Len=31
336 25.911051   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=1928 Ack=488 Win=65048 [TCP CHECKSUM INCORRECT] Len=92
337 25.922068   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=488 Ack=2020 Win=63986 Len=70
338 25.922500   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2020 Ack=558 Win=64978 [TCP CHECKSUM INCORRECT] Len=34
339 25.933621   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=558 Ack=2054 Win=63952 Len=29
340 25.941165   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2054 Ack=587 Win=64949 [TCP CHECKSUM INCORRECT] Len=54
341 25.952164   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=587 Ack=2108 Win=63898 Len=17
342 25.952993   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2108 Ack=604 Win=64932 [TCP CHECKSUM INCORRECT] Len=72
343 25.963889   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=604 Ack=2180 Win=63826 Len=17
344 25.964366   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2180 Ack=621 Win=64915 [TCP CHECKSUM INCORRECT] Len=52
345 25.975253   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=621 Ack=2232 Win=63774 Len=17
346 25.975590   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2232 Ack=638 Win=64898 [TCP CHECKSUM INCORRECT] Len=32
347 25.986588   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=638 Ack=2264 Win=63742 Len=167
348 25.987262   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2264 Ack=805 Win=64731 [TCP CHECKSUM INCORRECT] Len=512
349 25.998464   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=805 Ack=2776 Win=63230 Len=89
350 25.998861   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2776 Ack=894 Win=64642 [TCP CHECKSUM INCORRECT] Len=46
351 26.009849   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=894 Ack=2822 Win=63184 Len=17
352 26.010175   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2822 Ack=911 Win=64625 [TCP CHECKSUM INCORRECT] Len=80
353 26.021220   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=911 Ack=2902 Win=63104 Len=33
354 26.022613   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [PSH, ACK] Seq=2902 Ack=944 Win=64592 [TCP CHECKSUM INCORRECT] Len=498
355 26.034018   x.x.x.10         x.x.x.99             TCP      2226 > 14492 [PSH, ACK] Seq=944 Ack=3400 Win=64240 Len=89
356 26.046501   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [SYN] Seq=0 Len=0 MSS=1260
357 26.057323   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460
358 26.057355   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=0
359 26.057661   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [PSH, ACK] Seq=1 Ack=1 Win=65535 [TCP CHECKSUM INCORRECT] Len=42
361 26.068606   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [PSH, ACK] Seq=1 Ack=43 Win=64198 Len=37
362 26.070087   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [ACK] Seq=43 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=1260
363 26.070113   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [PSH, ACK] Seq=1303 Ack=38 Win=65498 [TCP CHECKSUM INCORRECT] Len=485
364 26.081336   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [ACK] Seq=38 Ack=1788 Win=64240 Len=0
365 26.083330   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [PSH, ACK] Seq=38 Ack=1788 Win=64240 Len=385
366 26.083943   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [PSH, ACK] Seq=1788 Ack=423 Win=65113 [TCP CHECKSUM INCORRECT] Len=46
368 26.094921   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [PSH, ACK] Seq=423 Ack=1834 Win=64194 Len=17
369 26.095317   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [PSH, ACK] Seq=1834 Ack=440 Win=65096 [TCP CHECKSUM INCORRECT] Len=48
370 26.107553   x.x.x.10         x.x.x.99             TCP      2226 > 14493 [PSH, ACK] Seq=440 Ack=1882 Win=64146 Len=877
371 26.241285   x.x.x.99             x.x.x.10         TCP      14492 > 2226 [ACK] Seq=3400 Ack=1033 Win=64503 [TCP CHECKSUM INCORRECT] Len=0
372 26.241307   x.x.x.99             x.x.x.10         TCP      14493 > 2226 [ACK] Seq=1882 Ack=1317 Win=65535 [TCP CHECKSUM INCORRECT] Len=0
653 55.913838   x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
654 55.924547   x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
910 85.887176   x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
911 85.898010   x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
1155 115.859520  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
1156 115.870285  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
1395 145.934403  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
1396 145.945938  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
1649 175.906767  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
1650 175.917741  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
1887 205.881080  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
1888 205.891818  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
2112 235.854408  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
2113 235.865482  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
2398 265.928342  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
2399 265.939242  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
2671 295.900714  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
2672 295.911590  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
2880 315.705029  x.x.x.10         x.x.x.99             TCP      2226 > 14493 [RST] Seq=1317 Len=0
2973 325.975607  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive] 14492 > 2226 [ACK] Seq=3399 Ack=1033 Win=64503 Len=1
2974 325.986337  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive ACK] 2226 > 14492 [ACK] Seq=1033 Ack=3400 Win=64240 Len=0
2975 326.154327  x.x.x.10         x.x.x.99             TCP      [TCP Keep-Alive] 2226 > 14492 [ACK] Seq=1032 Ack=3400 Win=64240 Len=1
2976 326.154350  x.x.x.99             x.x.x.10         TCP      [TCP Keep-Alive ACK] 14492 > 2226 [ACK] Seq=3400 Ack=1033 Win=64503 [TCP CHECKSUM INCORRECT] Len=0

答案1

您应该在服务器上进行捕获以确定 RST 是否实际上是由服务器或其他中间设备发送的。

相关内容