Translated message

A translation of this page exists in English.

TIME-WAIT 状況にある TCP 接続の再利用を加速させる方法

Solution Verified - Updated -

Issue

しばしば、TCP クライアントが、最近終了した接続と同じソースポートとアドレスを再利用する RHEL サーバーに接続しようとします。RHEL サーバーが、新しい接続のシーケンス番号に一致しない ACK (SYN ではない) を持つ SYN パケットにリプライします。これにより、クライアントが RST を送り返すようになり、接続が確立できません。sysctl net.ipv4.tcp_tw_recycle または net.ipv4.tcp_tw_reuse 、もしくは両方を確立しても、問題を解決できません。

Environment

  • Red Hat Enterprise Linux 5 上の TCP サーバー (おそらくRHEL3、RHEL4、および RHEL6 にも適用)
  • クライアントが、(tcpdumpごとの) TCP タイムスタンプオプションを使用していません。
  • クライアントが、サーバーに TIME-WAIT (netstat ごとまたは同じ接続が終了してから 60 秒以内) 状態の接続が残っている場合に、同じソース/目的地のアドレスおよびポートのクアドルプレットを再度使用しようとします。

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content