From owner-freebsd-net@FreeBSD.ORG Fri Aug 1 13:12:21 2003 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 8036E37B401 for ; Fri, 1 Aug 2003 13:12:21 -0700 (PDT) Received: from linux.research.att.com (H-135-207-24-16.research.att.com [135.207.24.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76EA843F93 for ; Fri, 1 Aug 2003 13:12:20 -0700 (PDT) (envelope-from misha@research.att.com) Received: from bigmail.research.att.com (bigmail.research.att.com [135.207.30.101])h71KVspl012679; Fri, 1 Aug 2003 16:31:54 -0400 Received: from research.att.com (ha17-4.research.att.com [135.207.26.210]) h71KCEB14392; Fri, 1 Aug 2003 16:12:14 -0400 (EDT) Sender: misha@research.att.com Message-ID: <3F2ABA6C.3932CA5@research.att.com> Date: Fri, 01 Aug 2003 15:07:24 -0400 From: misha Organization: AT&T Labs - Research X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bruce M Simpson , Michael Sierchio References: <200308011514.LAA46005@chips.research.att.com> <20030801152408.GF27921@spc.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: T/TCP useless on FreeBSD 4.7? 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: Fri, 01 Aug 2003 20:12:21 -0000 Bruce, Michael: Thanks a lot for the sysctl values tips. While 4.7 release does not seem to have drop_synfin option, syncookies indeed used to be 1 (but now we changed it to 0) on both machines: > sysctl net.inet.tcp | grep -E 'rfc1644|drop_synfin|cook' net.inet.tcp.rfc1644: 1 net.inet.tcp.syncookies: 0 > Unfortunately, setting it to 0 did not help: the tcp dump looks exactly the same. In addition, I tried the following changes on the server (although it was clear this would not make any diff, but just to be diligent) (a) replace "send" call (as in T/TCP book) with "sendto" call according to the ttcp manpage: sendto(sock, buf, len, MSG_EOF, (struct sockaddr *)0, 0) (b) not send any reply at all, just read from the socket and close it. (c) set "TCP_NOPUSH" option on the server's socket before writing response to it (with sendto call above). In all cases, the tcp dump shows a timeout + retransmission by the client... Also, what do you think about that source ode snippet I included into my original mail? It would certainly explain the behavior, except it would also mean that T/TCP is no longer usable. Unless that piece of code is somehow bypassed with proper options... Thanks again, Michael Bruce M Simpson wrote: > On Fri, Aug 01, 2003 at 11:14:12AM -0400, michael rabinovich wrote: > > Does anyone know the status of T/TCP support on FreeBSD 4.7? > ... > > Am I missing something (after all, FreeBSD is supposed to be a ref > > implementation of T/TCP!) and if not is there is a simple way around > > this problem, short of going back to earlier FreeBSD releases? > > I don't use T/TCP on my production 4.8-RELEASE system, and the following > sysctl values look fairly default:- > > net.inet.tcp.rfc1644: 0 > net.inet.tcp.syncookies: 1 > net.inet.tcp.drop_synfin: 0 > > SYN cookies and T/TCP can't co-exist. Please do check the above sysctl > values; I know RFC 1644 has to be enabled, and syncookies have to be disabled, > as well as drop_synfin. > > HTH, > BMS > _______________________________________________ > 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"