From owner-freebsd-net@FreeBSD.ORG Tue Mar 16 02:12:59 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A302B16A4CE; Tue, 16 Mar 2004 02:12:59 -0800 (PST) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C5F043D3F; Tue, 16 Mar 2004 02:12:58 -0800 (PST) (envelope-from tolyar@mx.ru) Received: from [194.87.2.159] (HELO dwarf.demos.su) by demos.su (CommuniGate Pro SMTP 4.1.8/D) with SMTP id 179031402; Tue, 16 Mar 2004 13:12:57 +0300 Date: Tue, 16 Mar 2004 13:12:56 +0300 From: Zherdev Anatoly To: Andre Oppermann Message-Id: <20040316131256.015a082d@dwarf.demos.su> In-Reply-To: <4056CFEA.6A231A9@freebsd.org> References: <20040316125335.5f64cac5@dwarf.demos.su> <4056CFEA.6A231A9@freebsd.org> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: Problem with closing tcp session between cisco and freebsd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 10:12:59 -0000 On Tue, 16 Mar 2004 10:59:06 +0100 Andre Oppermann wrote: > Zherdev Anatoly wrote: > > > > Hello. > > > > I have problem with tcp session close between cisco and freebsd > > Looks like that it bug in freebsd tcp stack. > > What version of FreeBSD and Cisco IOS do you run on these machines? OOPS. Sorry :( FreeBSD 4.9-STABLE cvsupped March 3 Cisco IOS 12.2.19a ip only Cisco 5300 > > -- > Andre > > > > CISCO state: > > > > sh tcp brief > > 62935208 CISCO..990 FREEBSD.513 FINWAIT1 > > > > FreeBSD state: > > > > netstat -an > > tcp4 57352 0 FREEBSD.513 CISCO.990 ESTABLISHED > > > > TCP session from cisco side: > > > > IP: s=CISCO (local), d=FREEBSD (FastEthernet0), len 41, > > sending TCP src=990, dst=513, seq=1411875745, ack=880111139, win=3983 ACK > > PSH FIN > > > > IP: s=FREEBSD (FastEthernet0), d=CISCO (FastEthernet0), len > > 40, rcvd 3 TCP src=513, dst=990, seq=880111139, ack=1411875745, win=0 ACK > > > > IP: s=CISCO (local), d=FREEBSD (FastEthernet0), len 41, > > sending TCP src=990, dst=513, seq=1411875745, ack=880111139, win=3983 ACK > > PSH FIN > > > > IP: s=FREEBSD (FastEthernet0), d=CISCO (FastEthernet0), len > > 40, rcvd 3 TCP src=513, dst=990, seq=880111139, ack=1411875745, win=0 ACK > > > > .... > > > > TCP session from FreeBSD side: > > > > 12:16:25.426584 IP CISCO.990 > FREEBSD.login: FP 1411875745:1411875746(1) ack 880111139 win 3714 > > > > 12:16:25.426675 IP FREEBSD.login > CISCO.990: . ack 1411875745 win 0 > > > > 12:16:35.121888 IP CISCO.990 > FREEBSD.login: FP 1411875745:1411875746(1) ack 880111139 win 3714 > > > > 12:16:35.121976 IP FREEBSD.login > CISCO.990: . ack 1411875745 win 0 > > > > .... > > > > CISCO send ACK on FreeBSD pocket and send FIN. FreeBSD send ACK with seq w/o changes win=0 (!) and ack=cisco_seq.Cisco wait ack=cisco_seq+1 on FIN but FreeBSD box don't send this and cisco retransmit FIN. > > > > -- > > Zherdev Anatoly. > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > -- Zherdev Anatoly.