Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 673 Bytes

README.md

File metadata and controls

36 lines (20 loc) · 673 Bytes

tfoecho

Test code for TCP Fast Open

TCP Fast Open

TCP Fast Open is an extension to TCP Protocol which enables to transfer data in SYN packets. For more details, read an LWN article: http://lwn.net/Articles/508865/

Requirements

  • Linux 3.7 or later
  • C++11 compliant compiler (confirmed with GCC 4.8.1)

Build

make

Run

Before running:

Make sure to enable TCP Fast open on both sides:

sudo sysctl -w net.ipv4.tcp_fastopen=3

On server:

./server

On Client:

./client <server addr> <message size> <test count> <threads>

for example, ./client 192.168.1.1 1024 1000 8 sends random packets of 1024 bytes 1000 times in 8 threads.