TCP Fast Open explained

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.

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

History

The TFO proposal was originally presented in 2011[2] and was published as the experimental RFC 7413 in December 2014.[3] 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, opening a path for vulnerabilities and failing to gain traction.

Characteristics

TFO implementations include the following:

See also

Bibliography

External links

Notes and References

  1. News: Michael . Kerrisk . 2012-08-01 . TCP Fast Open: expediting web services . .
  2. News: TCP Fast Open. Radhakrishnan S, Cheng Y, Chu J, Jain A, Raghavan B . 2011-12-06. ACM CoNEXT .
  3. 7413. TCP Fast Open . IETF. December 2014. 27 June 2022 . Yuchung . Cheng. Jerry . Chu. Sivasankar . Radhakrishnan. Arvind . Jain . amp .
  4. News: Michael . Kerrisk . TCP Fast Open: expediting web services . LWN.net . 2012-08-01 . The client-side support has been merged for Linux 3.6.
  5. News: Steven J . Vaughan-Nichols . Linux 3.7 arrives, ARM developers rejoice . ZDNet . Linux and Open Source . 2012-12-11 . Linux 3.7. TCP Fast Open will now be supported on servers.
  6. Web site: Linux Kernel 3.13, Section 1.10. TCP Fast Open enabled by default . 19 January 2014 . 11 February 2014 . kernelnewbies.org.
  7. Web site: Linux Kernel 3.16, Section 1.4. TCP Fast Open server mode on IPv6 support . 3 August 2014 . 14 September 2014 . kernelnewbies.org.
  8. Web site: Implementation of server-side TCP Fast Open (TFO) [RFC7413]

    MFC into stable/10 branch]

    . 2015-12-28.
  9. Web site: This is an implementation of the client side of TCP Fast Open (TFO) [RFC7413]]. 2018-02-26.
  10. Web site: Enable TCP_FASTOPEN by default for FreeBSD 12. 2018-06-24.
  11. Web site: 1188435 - Support TCP Fast Open. 2017-05-05.
  12. Web site: 1398201 - Disable TCP Fast Open for 57. 2017-09-10.
  13. Web site: 1689604 - Remove TCP FastOpen. 2021-03-23.
  14. Web site: Exim 4.88 released. 2016-12-25.
  15. Web site: Unbound 1.5.10. 2017-12-05.
  16. Web site: Release Notes for BIND Version 9.11.0. 2016-10-05.
  17. Web site: Knot DNS 2.6.0. 2017-09-29.
  18. Web site: Your App and Next Generation Networks. Apple Inc.. 2015.
  19. Web site: Windows 10 build 14352 - New web platform features. Microsoft. 2016-05-27.
  20. Web site: Changelogs for 4.1.x. PowerDNS. 2017-12-04.
  21. Web site: Support TCP fastopen on incoming and outgoing connections. . Kelley . Simon . 2019-03-10.