Description of TCP Fast Open

Related introduction
 
 
Acceleration principle
The general meaning is that a TFO cookie will be obtained after the TCP connection is established through the three-way handshake for the first time. Before the TFO cookie times out, establishing a TCP connection to the same IP does not need to go through the TCP handshake process, and data can be transmitted directly. I don't know how the specific timeout is specified. Anyway, I repeatedly open and close the browser TFO cookie is always there.
 
 
Linux enable TFO option
vi /etc/sysctl.conf
join in
net.ipv4.tcp_fastopen = 3
 
1 means that the client is turned on, 2 means that the server is turned on, and 3 is the AND operation of 1 and 2, which means that the client and the server are turned on at the same time
apache does not yet support TFO feature
nginx is added to fastopen after listen, and the number indicates the queue length
listen 80 fastopen=100 default_server;
Chrome open tfo option can support
Firefox is said to be supported after version 55
 
Windows 10 enables TFO option
IIS on windows10 supports tcp fast open by default and does not need to be turned on
The edge browser has a TCP fast open option, but I use wireshark to capture packets, and the TFO function is not actually enabled. I don't know the reason for this.
Chrome does not yet support TFO on Windows
Only after firefox55 version is supported
IOS enable TFO option
It is supported after ios9, but it can only be used when developing apps, and safari is still not supported until version 11beta
android enable TFO option
手上没有安卓手机,但是安卓上的chrome是支持的,不确定是否默认开启的。
 
 
总结起来就是浏览器只有linux和android上的chrome可以用
服务器只有windows 10上的IIS和linux上的nginx可以用

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326606312&siteId=291194637