TCP Fast Open client
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 8 repliesIn review
- v27 patches 16 repliesSuperseded
- v17 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- Added seqlock to update Fast Open metrics
- Move TCP magic code in inet_wait_for_connect() to inet_stream_connect()
- Move up MSG_FASTOPEN macro for better header formatting
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | net-tcp: Fast Open baseinclude/ include/ net/ +9 more | +86 | 0 replies | |
| 2/7 | net-tcp: Fast Open client - cookie cacheinclude/ net/ | +55 | 1 reply | |
| 3/7 | net-tcp: Fast Open client - sending SYN-datainclude/ include/ include/ +3 more | +130 | 3 replies | |
| 4/7 | net-tcp: Fast Open client - receiving SYN-ACKnet/ | +35 | 0 replies | |
| 5/7 | net-tcp: Fast Open client - sendmsg(MSG_FASTOPEN)Documentation/ include/ include/ +4 more | +92 | 1 reply | |
| 6/7 | net-tcp: Fast Open client - detecting SYN-data dropsinclude/ net/ net/ +1 more | +37 | 1 reply | |
| 7/7 | net-tcp: Fast Open client - cookie-less modeDocumentation/ include/ include/ +2 more | +15 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/7 | A-b |
| 2/7 | A-b |
| 3/7 | A-b |
| 4/7 | A-b |
| 5/7 | A-b |
| 6/7 | A-b |
| 7/7 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/7] TCP Fast Open client
ChangeLog since v2:
- Added seqlock to update Fast Open metrics
- Move TCP magic code in inet_wait_for_connect() to inet_stream_connect()
- Move up MSG_FASTOPEN macro for better header formatting
ChangeLog since v1:
- Reduce tons of code by storing Fast Open stats in the TCP metrics :)
- Clarify the purpose of using an experimental option in patch 1/7
This patch series implement the client functionality of TCP Fast Open. TCP Fast Open (TFO) allows data to be carried in the SYN and SYN-ACK packets and consumed by the receiving end during the initial connection handshake, thus providing a saving of up to one full round trip time (RTT) compared to standard TCP requiring a three-way handshake (3WHS) to complete before data can be exchanged.
The protocol change is detailed in the IETF internet draft at
http://www.ietf.org/id/draft-ietf-tcpm-fastopen-00.txt . The research paper (http://conferences.sigcomm.org/co-next/2011/papers/1569470463.pdf)
studied the performance impact of HTTP using Fast Open, based on this Linux implementation and the Chrome browser.
To use Fast Open, the client application (active SYN sender) must replace connect() socket call with sendmsg() or sendto() with the new MSG_FASTOPEN flag. If the server supports Fast Open the data exchange starts at TCP handshake. Otherwise the connection will automatically fall back to conventional TCP.
Yuchung Cheng (7):
net-tcp: Fast Open base
net-tcp: Fast Open client - cookie cache
net-tcp: Fast Open client - sending SYN-data
net-tcp: Fast Open client - receiving SYN-ACK
net-tcp: Fast Open client - sendmsg(MSG_FASTOPEN)
net-tcp: Fast Open client - detecting SYN-data drops
net-tcp: Fast Open client - cookie-less mode
Documentation/networking/ip-sysctl.txt | 13 +++ include/linux/snmp.h | 1 + include/linux/socket.h | 1 + include/linux/tcp.h | 17 ++++- include/net/inet_common.h | 6 +- include/net/tcp.h | 28 ++++++- net/ipv4/Makefile | 2 +- net/ipv4/af_inet.c | 29 +++++-- net/ipv4/proc.c | 1 + net/ipv4/syncookies.c | 2 +- net/ipv4/sysctl_net_ipv4.c | 7 ++ net/ipv4/tcp.c | 61 ++++++++++++- net/ipv4/tcp_fastopen.c | 11 +++ net/ipv4/tcp_input.c | 76 ++++++++++++++-- net/ipv4/tcp_ipv4.c | 5 +- net/ipv4/tcp_metrics.c | 61 +++++++++++++ net/ipv4/tcp_minisocks.c | 4 +- net/ipv4/tcp_output.c | 153 +++++++++++++++++++++++++++++--- net/ipv6/syncookies.c | 2 +- net/ipv6/tcp_ipv6.c | 2 +- 20 files changed, 438 insertions(+), 44 deletions(-) create mode 100644 net/ipv4/tcp_fastopen.c
Signature · 1 line
1.7.7.3