From: Evgeniy Polyakov Subject: Re: [PATCH] TCP FIN gets dropped prematurely, results in ack storm Date: Tue, 1 May 2007 22:25:06 +0400 Message-ID: <20070501182506.GA17626@2ka.mipt.ru> References: <20070501151354.GB1751@kvack.org> <20070501182006.GA12030@2ka.mipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Cc: David Miller , netdev@vger.kernel.org To: Benjamin LaHaise Return-path: Received: from relay.2ka.mipt.ru ([194.85.82.65]:49383 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030936AbXEASZO (ORCPT ); Tue, 1 May 2007 14:25:14 -0400 Content-Disposition: inline In-Reply-To: <20070501182006.GA12030@2ka.mipt.ru> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, May 01, 2007 at 10:20:07PM +0400, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote: > On Tue, May 01, 2007 at 11:13:54AM -0400, Benjamin LaHaise (bcrl@kvack.org) wrote: > > Hello, > > > > While testing a failover scenario, I managed to trigger an ack storm > > between a Linux box and another system. Although the cause of this particular > > ACK storm was due to the other box forgetting that it sent out a FIN (the > > second node was unaware of the FIN the first sent in its dying gasp, which > > is what I'm trying to fix, but it's a tricky race), the resulting Linux > > behaviour wasn't very robust. Is there any particularly good reason that > > One of the packets sent by broken 1.1 host has incorrect checksum, so it > will be dropped by 2.2 system in theory, could that packet somehow break > 2.2 stack's state machine? It seems so, 2.2 stack expects i-1 sequence number, so when you add fin into both (i-1)'th and i'th packets, 2.2 system correctly completes session thinking that i-1 is the real last message, which is not. -- Evgeniy Polyakov