From: Simon Horman Subject: Re: [PATCHv2 net-next 0/2] ipvs: drop packet during rescheduling Date: Mon, 7 Mar 2016 11:57:45 +0900 Message-ID: <20160307025745.GB3292@verge.net.au> References: <1457183003-7073-1-git-send-email-ja@ssi.bg> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1457319466; bh=ydhcDeG4IQWoivL4bnbCtePAjU+CUBRbST253PoDvU8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XP03mUKRSsIsvvJPBP6sfdTkJeEJWf8uzLEXGG+spCazujIW+P9Auo1zc31hwE7Hp 9v5I74OJcVmK/0fz/thZDw7IpOKiYKXcg6A3MkYvlTbvA1y3EEpkcq63EuTx24GhHO drLDDhXHIo7dDYEQVEMjj/gQ7aWgPrraS+XA2X/Q= Content-Disposition: inline In-Reply-To: <1457183003-7073-1-git-send-email-ja@ssi.bg> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julian Anastasov Cc: lvs-devel@vger.kernel.org, Jiri Bohac On Sat, Mar 05, 2016 at 03:03:21PM +0200, Julian Anastasov wrote: > Jiri Bohac is reporting for a problem with the connection > rescheduling mechanism added in 3.10 when new SYNs in > connection to dead real server can be redirected to another > real server. His solution is to drop SYNs until the IPVS > connection and its conntrack are properly removed, so that > a new connection can be established later from client's > retransmissions. Alternative would be to redirect the > conntrack (its reply direction) to the new real server but > we do not see such solution. > > The second patch addresses another scenario: client restarts > TCP connection by reusing the same IPVS connection: > > - IPVS conn is established, eg. FTP without persistence > - restart client box > - start new TCP connection from same port to reuse IPVS conn > C: SYN with new SEQ > S: ACK with ACK_SEQ=old SEQ > C: RST SEQ=old SEQ, IPVS conn:EST->CLOSE > retransmit pause > C: SYN, still in CLOSE? => DROP, expire IPVS conn > Expire IPVS connection > retransmit pause > C: SYN, create connection > > In this case we should allow rescheduling in CLOSE state. > In the worst case for this scenario with initial RTO=3 secs > the client can be delayed for 9 seconds. Thanks, I have queued these up dropping the previous versions