TCP Fast Open

From HandWiki
Short description: Experimental TCP mechanism

In computer networking, TCP Fast Open (TFO) is an extension to speed up the opening of successive Transmission Control Protocol (TCP) connections between two endpoints. It works by using a TFO cookie (a TCP option), which is a cryptographic cookie stored on the client and set upon the initial connection with the server.[1] When the client later reconnects, it sends the initial SYN packet along with the TFO cookie data to authenticate itself. If successful, the server may start sending data to the client even before the reception of the final ACK packet of the three-way handshake, thus skipping a round-trip delay and lowering the latency in the start of data transmission.

The cookie is generated by applying a block cipher keyed on a key held secret by the server to the client's, generating an authentication tag that is difficult for third parties to spoof, even if they can forge a source IP address or make two-way connections to the same server from other IP addresses. Although it uses cryptographic techniques to generate the cookie, TFO is not intended to provide more security than the three-way handshake it replaces, and does not give any form of cryptographic protection to the resulting TCP connection, or provide identity assurance about either endpoint. It also is not intended to be resistant to man-in-the-middle attacks. If such resistance is required, it may be used in combination with a cryptographic protocol such as TLS or IPsec.

TFO has been difficult to deploy due to protocol ossification; in 2020, no Web browsers used it by default.[2]

TFO presents privacy challenges; the TFO cookie can allow persistently tracking a client across sessions, even by passive observers.[3]

History

The TFO proposal was originally presented in 2011[4] and was published as the experimental RFC 7413 in December 2014.[5] TCP Fast Open shares the goal of bypassing the three-way handshake of TCP with an earlier proposal from 1994, called T/TCP (RFC 1644). In contrast to TCP Fast Open, T/TCP paid no attention to security,[5] opening a path for vulnerabilities and failing to gain traction.

Characteristics

TFO implementations include the following:

See also

References

  1. Kerrisk, Michael (2012-08-01). "TCP Fast Open: expediting web services". LWN.net. https://lwn.net/Articles/508865/. 
  2. Rybczyńska 2020.
  3. Sy et al. 2020, p. 275-279.
  4. "TCP Fast Open". ACM CoNEXT. 2011-12-06. http://conferences.sigcomm.org/co-next/2011/papers/1569470463.pdf. 
  5. 5.0 5.1 Cheng, Yuchung; Chu, Jerry; Radhakrishnan, Sivasankar; Jain, Arvind (December 2014), TCP Fast Open, IETF, doi:10.17487/RFC7413, RFC 7413, https://tools.ietf.org/html/rfc7413, retrieved 27 June 2022 
  6. Kerrisk, Michael (2012-08-01). "TCP Fast Open: expediting web services". LWN.net. https://lwn.net/Articles/508865/. "The client-side support has been merged for Linux 3.6" 
  7. Vaughan-Nichols, Steven J (2012-12-11). "Linux 3.7 arrives, ARM developers rejoice". Linux and Open Source (ZDNet). http://www.zdnet.com/linux-3-7-arrives-arm-developers-rejoice-7000008638/. "Linux 3.7. TCP Fast Open will now be supported on servers" 
  8. "Linux Kernel 3.13, Section 1.10. TCP Fast Open enabled by default". 19 January 2014. http://kernelnewbies.org/Linux_3.13#head-159ff61ea3acfd67b88855e75dbbb140f8825c4a. Retrieved 11 February 2014. 
  9. "Linux Kernel 3.16, Section 1.4. TCP Fast Open server mode on IPv6 support". 3 August 2014. http://kernelnewbies.org/Linux_3.16#head-93fbb9abc6149e9c3055322f27cdc3a8fcc198e6. Retrieved 14 September 2014. 
  10. "Implementation of server-side TCP Fast Open (TFO) [RFC7413: MFC into stable/10 branch"]. 2015-12-28. https://svnweb.freebsd.org/base?view=revision&revision=292823. 
  11. "This is an implementation of the client side of TCP Fast Open (TFO) [RFC7413"]. 2018-02-26. https://svnweb.freebsd.org/base?view=revision&revision=330001. 
  12. "Enable TCP_FASTOPEN by default for FreeBSD 12". 2018-06-24. https://svnweb.freebsd.org/base?view=revision&revision=335610. 
  13. "1188435 - Support TCP Fast Open". 2017-05-05. https://bugzilla.mozilla.org/show_bug.cgi?id=1188435. 
  14. "1398201 - Disable TCP Fast Open for 57". 2017-09-10. https://bugzilla.mozilla.org/show_bug.cgi?id=1398201. 
  15. "1689604 - Remove TCP FastOpen". 2021-03-23. https://bugzilla.mozilla.org/show_bug.cgi?id=1689604. 
  16. "Exim 4.88 released". 2016-12-25. https://lists.exim.org/lurker/message/20161225.101705.4bbe7ae8.en.html. 
  17. "Unbound 1.5.10". https://www.unbound.net/pipermail/unbound-users/2016-September/004466.html. 
  18. "Release Notes for BIND Version 9.11.0". 2016-10-05. https://ftp.isc.org/isc/bind9/9.11.0/RELEASE-NOTES-bind-9.11.0.html. 
  19. "Knot DNS 2.6.0". 2017-09-29. https://gitlab.labs.nic.cz/knot/knot-dns/tags/v2.6.0. 
  20. "Your App and Next Generation Networks". Apple Inc.. 2015. https://developer.apple.com/videos/wwdc/2015/?id=719. 
  21. "Windows 10 build 14352 - New web platform features". Microsoft. https://developer.microsoft.com/en-us/microsoft-edge/platform/changelog/desktop/14352/. Retrieved 2016-05-27. 
  22. "Changelogs for 4.1.x". PowerDNS. 2017-12-04. https://doc.powerdns.com/recursor/changelog/4.1.html. 
  23. Kelley, Simon (2019-03-10). "Support TCP fastopen on incoming and outgoing connections.". http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=608aa9fcfca2ffeba40d78c7c4e0dcb50e0d5704. 

Bibliography

External links

  • RFC 7413 specification