TCPCT uses option-number 253, reserved for experimental use and should not be used in production environments. Further, TCPCT does not fully implement RFC 6013. As a nice side-effect, removing TCPCT increases TCP's performance for very short flows: Doing an apache-benchmark with -c 100 -n 100000, sending HTTP-requests for files of 1KB size. before this patch: average (among 7 runs) of 20845.5 Requests/Second after: average (among 7 runs) of 21403.6 Requests/Second
Showing the changes to include/uapi/linux (1 of 18 files). Show all
Unified · Split
| @@ -102,7 +102,6 @@ enum { · 101 unmodified lines | ||
| 102 | 102 | #define TCP_QUICKACK 12 /* Block/reenable quick acks */ |
| 103 | 103 | #define TCP_CONGESTION 13 /* Congestion control algorithm */ |
| 104 | 104 | #define TCP_MD5SIG 14 /* TCP MD5 Signature (RFC2385) */ |
| 105 | −#define TCP_COOKIE_TRANSACTIONS 15 /* TCP Cookie Transactions */ | |
| 106 | 105 | #define TCP_THIN_LINEAR_TIMEOUTS 16 /* Use linear timeouts for thin streams*/ |
| 107 | 106 | #define TCP_THIN_DUPACK 17 /* Fast retrans. after 1 dupack */ |
| 108 | 107 | #define TCP_USER_TIMEOUT 18 /* How long for loss retry before timeout */ |
| @@ -199,29 +198,4 @@ struct tcp_md5sig { · 90 unmodified lines | ||
| 199 | 198 | __u8 tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* key (binary) */ |
| 200 | 199 | }; |
| 201 | 200 | |
| 202 | −/* for TCP_COOKIE_TRANSACTIONS (TCPCT) socket option */ | |
| 203 | −#define TCP_COOKIE_MIN 8 /* 64-bits */ | |
| 204 | −#define TCP_COOKIE_MAX 16 /* 128-bits */ | |
| 205 | −#define TCP_COOKIE_PAIR_SIZE (2*TCP_COOKIE_MAX) | |
| 206 | − | |
| 207 | −/* Flags for both getsockopt and setsockopt */ | |
| 208 | −#define TCP_COOKIE_IN_ALWAYS (1 << 0) /* Discard SYN without cookie */ | |
| 209 | −#define TCP_COOKIE_OUT_NEVER (1 << 1) /* Prohibit outgoing cookies, | |
| 210 | − * supercedes everything. */ | |
| 211 | − | |
| 212 | −/* Flags for getsockopt */ | |
| 213 | −#define TCP_S_DATA_IN (1 << 2) /* Was data received? */ | |
| 214 | −#define TCP_S_DATA_OUT (1 << 3) /* Was data sent? */ | |
| 215 | − | |
| 216 | −/* TCP_COOKIE_TRANSACTIONS data */ | |
| 217 | −struct tcp_cookie_transactions { | |
| 218 | − __u16 tcpct_flags; /* see above */ | |
| 219 | − __u8 __tcpct_pad1; /* zero */ | |
| 220 | − __u8 tcpct_cookie_desired; /* bytes */ | |
| 221 | − __u16 tcpct_s_data_desired; /* bytes of variable data */ | |
| 222 | − __u16 tcpct_used; /* bytes in value */ | |
| 223 | − __u8 tcpct_value[TCP_MSS_DEFAULT]; | |
| 224 | −}; | |
| 225 | − | |
| 226 | − | |
| 227 | 201 | #endif /* _UAPI_LINUX_TCP_H */ |