From owner-freebsd-net@freebsd.org Thu Jul 5 18:33:19 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F452101643A for ; Thu, 5 Jul 2018 18:33:19 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E05EB8F4B3 for ; Thu, 5 Jul 2018 18:33:18 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from [IPv6:2003:cd:6f1a:9700:5125:5337:bf8b:3f99] (p200300CD6F1A970051255337BF8B3F99.dip0.t-ipconnect.de [IPv6:2003:cd:6f1a:9700:5125:5337:bf8b:3f99]) (Authenticated sender: lurchi) by mail-n.franken.de (Postfix) with ESMTPSA id 74E4872106C16; Thu, 5 Jul 2018 20:33:08 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: Does TCP_FASTOPEN actually work? From: Michael Tuexen In-Reply-To: <8f67a706-a650-bba2-a7dc-c25e676e1c97@degoeje.nl> Date: Thu, 5 Jul 2018 20:33:07 +0200 Cc: freebsd-net@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9B19385C-CBD4-4C12-9E84-E12CAAF23092@lurchi.franken.de> References: <8f67a706-a650-bba2-a7dc-c25e676e1c97@degoeje.nl> To: Pieter de Goeje X-Mailer: Apple Mail (2.3445.8.2) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 18:33:19 -0000 > On 5. Jul 2018, at 17:23, Pieter de Goeje wrote: >=20 > I'm trying to test this new feature, but I have trouble getting the = client to actually send a cached cookie. It keeps requesting new ones = and as a consequence it never sends data in the initial SYN packet. = Tcpdump shows that the server correctly replies to a cookie request with = a cookie. Can you provide a tracefile? >=20 > Or am I misunderstanding how it should work and is the cookie cache = per-process instead of system wide? No, the cache is system wide. You can use https://reviews.freebsd.org/D14554 to see the entries. >=20 > I'm using the test programs from = https://people.freebsd.org/~pkelsey/tfo-tools/ for this purpose. How are you using the client and server? >=20 > Server and client run on r335760 or later, with no changes to = net.inet.tcp.fastopen except that server_enable was set to 1. Is client_enable =3D 1? >=20 > Related issue is that TCP_FASTOPEN is currently undocumented in = tcp(4). >=20 > - Pieter > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"