TCP Cookie Transactions

From HandWiki
Short description: Extension of Transmission Control Protocol

TCP Cookie Transactions (TCPCT) is specified in RFC 6013 (historic status, formerly experimental) as an extension of Transmission Control Protocol (TCP) intended to secure it against denial-of-service attacks, such as resource exhaustion by SYN flooding and malicious connection termination by third parties.[1] Unlike the original SYN cookies approach,[2] TCPCT does not conflict with other TCP extensions, but requires TCPCT support in the client (initiator) as well as the server (responder) TCP stack.[3]

The immediate reason for the TCPCT extension is deployment of the DNSSEC protocol. Prior to DNSSEC, DNS requests primarily used short UDP packets, but due to the size of DNSSEC exchanges, and shortcomings of IP fragmentation, UDP is less practical for DNSSEC.[4][5] Thus DNSSEC-enabled requests create a large number of short-lived TCP connections.[3][6]

TCPCT avoids resource exhaustion on server-side by not allocating any resources until the completion of the three-way handshake. Additionally, TCPCT allows the server to release memory immediately after the connection closes, while it persists in the TIME-WAIT state.[3]

TCPCT support was partly merged into the Linux kernel in December 2009,[7][8] but was removed in May 2013 because it was never fully implemented and had a performance cost.[9]

TCPCT was deprecated in 2016 in favor of TCP Fast Open. Status of the original RFC was changed to "historic".[10]

See also

References

  1. Simpson, W. (January 2011), TCP Cookie Transactions, IETF, doi:10.17487/RFC6013, RFC 6013, https://tools.ietf.org/html/rfc6013, retrieved March 16, 2012 
  2. Daniel J. Bernstein. "SYN cookies". http://cr.yp.to/syncookies.html. "SYN cookies "do not allow to use TCP extensions" such as large windows. [...] A connection saved by SYN cookies can't use large windows" 
  3. 3.0 3.1 3.2 Perry E. Metzger, William Allen Simpson, Paul Vixie (December 2009). Improving TCP Security With Robust Cookies. http://www.usenix.org/publications/login/2009-12/openpdfs/metzger.pdf. 
  4. B. Carpenter and S. Brim, “Middleboxes: Taxonomy and Issues,” RFC 3234, February 2002.
  5. P. Srisuresh and K. Egevang, “Traditional IP Network Address Translator (Traditional NAT),” RFC 3022, January 2001
  6. D. Wessels (June 2009). DNSSEC, EDNS, and TCP. DNS-OARC. http://www.nanog.org/meetings/nanog46/presentations/Wednesday/wessels_light_N46.pdf. 
  7. Jake Edge (16 December 2009). "TCP cookie transactions". LWN.net. https://lwn.net/Articles/366986/. 
  8. "Linux_2_6_33 - Linux Kernel Newbies". http://kernelnewbies.org/Linux_2_6_33#head-2c3c3a8cb87d5b7a6f1182e418abf071cda22c8c. 
  9. Jonathan Corbet (8 May 2013). "What's coming in 3.10, part 2". LWN.net. https://lwn.net/Articles/549477/. 
  10. Moving Outdated TCP Extensions and TCP-Related Documents to Historic or Informational Status, IETF, 2016, p. 4. sec. 2.1, doi:10.17487/RFC7805, RFC 7805, https://tools.ietf.org/html/rfc7805