Windows 2003 sp2 上的 TCP RST 每 5 分鐘重設一次

Windows 2003 sp2 上的 TCP RST 每 5 分鐘重設一次

最近,一位 Web 開發人員來找我,詢問為什麼他在存取 SQL 資料庫的應用程式中收到連線錯誤。

因此,我按照正常的故障排除步驟來隔離或重現問題。我發現,如果我使用查詢分析器連接到資料庫並讓連接空閒 5 分鐘,它就會斷開連接。意思是...我將無法再在查詢分析器的物件瀏覽器中刷新我的表或任何其他物件/節點。我必須右鍵單擊該實例並刷新它才能重新建立連接。接下來,我使用wireshark 並在客戶端電腦的網路卡上進行捕獲。果然,如果連線空閒時間超過 5 分鐘,它就會每 5 分鐘收到一次 TCP RST 重設。我還在 SQL Server 上運行了捕獲,並注意到了 TCP RST 重設命令。下面附上來自客戶端電腦的捕獲。如果有人可以幫忙...那就太好了。

-我對照另一台伺服器檢查了 SQL Server 2000 中的所有設置,它們似乎都是相同的。

- 如果我連接到任何其他 SQL Server 2000 伺服器,則不會有問題。

- 如果連接到伺服器本身上的 SQL,則不會出現問題...因此只能透過網路。

-我諮詢了網路團隊,得到的答案是:SQL Server 和您的桌面之間沒有防火牆或代理程式。流量如下所示:桌面->接取交換器->發行交換器->核心交換器->資料中心交換器->SQL Server 所有交換器上都沒有設定安全ACL。他們還說 NAT 沒有打開。

- SQL Server 企業管理器不會有問題。

- 同時執行 SQL Profiler,在 RST 期間沒有看到任何異常情況

我已經在谷歌上搜尋了這個問題的解決方案。沒有運氣!

我的問題是:

可能是什麼原因造成的?

序號錯誤?

網路團隊可能忽略了路由器或交換器中的設定?

在 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 是否實際上是由伺服器或其他中間裝置發送的。

相關內容