Skip to content

Instantly share code, notes, and snippets.

@jakwuh
Created September 15, 2017 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakwuh/a282abccf0ba0025ccb7f8c2f47d08fd to your computer and use it in GitHub Desktop.
Save jakwuh/a282abccf0ba0025ccb7f8c2f47d08fd to your computer and use it in GitHub Desktop.
TCP_NODELAY experiment
> tcpdump -i lo0 dst port 1995
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo0, link-type NULL (BSD loopback), capture size 262144 bytes
22:29:03.261714 IP localhost.62949 > localhost.perf-port: Flags [SEW], seq 1585304512, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 259925136 ecr 0,sackOK,eol], length 0
22:29:03.361942 IP localhost.62949 > localhost.perf-port: Flags [S], seq 1585304512, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 259925236 ecr 0,sackOK,eol], length 0
22:29:03.462581 IP localhost.62949 > localhost.perf-port: Flags [S], seq 1585304512, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 259925336 ecr 0,sackOK,eol], length 0
22:29:03.562713 IP localhost.62949 > localhost.perf-port: Flags [S], seq 1585304512, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 259925436 ecr 0,sackOK,eol], length 0
22:29:03.664244 IP localhost.62949 > localhost.perf-port: Flags [S], seq 1585304512, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 259925536 ecr 0,sackOK,eol], length 0
22:29:03.762258 IP localhost.62949 > localhost.perf-port: Flags [.], ack 160266068, win 12759, options [nop,nop,TS val 259925633 ecr 259925633], length 0
22:29:03.862094 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259925732 ecr 259925633], length 0
22:29:03.963215 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259925832 ecr 259925633], length 0
22:29:03.963226 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259925832 ecr 259925633], length 0
22:29:04.062815 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259925931 ecr 259925633], length 0
22:29:04.163657 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259926031 ecr 259925633], length 0
22:29:04.164912 IP localhost.62949 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 259926032 ecr 259925633], length 0
22:29:04.263753 IP localhost.62949 > localhost.perf-port: Flags [.], ack 2, win 12759, options [nop,nop,TS val 259926129 ecr 259926129], length 0
22:29:04.764318 IP localhost.62949 > localhost.perf-port: Flags [.], ack 11, win 12759, options [nop,nop,TS val 259926626 ecr 259926626], length 0
tcpdump -i lo0 dst port 1995
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo0, link-type NULL (BSD loopback), capture size 262144 bytes
23:00:31.463088 IP localhost.63181 > localhost.perf-port: Flags [S], seq 1056168777, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 261804677 ecr 0,sackOK,eol], length 0
23:00:31.564284 IP localhost.63181 > localhost.perf-port: Flags [S], seq 1056168777, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 261804778 ecr 0,sackOK,eol], length 0
23:00:31.664930 IP localhost.63181 > localhost.perf-port: Flags [S], seq 1056168777, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 261804878 ecr 0,sackOK,eol], length 0
23:00:31.766255 IP localhost.63181 > localhost.perf-port: Flags [S], seq 1056168777, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 261804978 ecr 0,sackOK,eol], length 0
23:00:31.866550 IP localhost.63181 > localhost.perf-port: Flags [S], seq 1056168777, win 65535, options [mss 16344,nop,wscale 5,nop,nop,TS val 261805078 ecr 0,sackOK,eol], length 0
23:00:31.963310 IP localhost.63181 > localhost.perf-port: Flags [.], ack 3329420606, win 12759, options [nop,nop,TS val 261805174 ecr 261805174], length 0
23:00:32.064152 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805274 ecr 261805174], length 0
23:00:32.065352 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805275 ecr 261805174], length 0
23:00:32.165372 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805374 ecr 261805174], length 0
23:00:32.265639 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805473 ecr 261805174], length 0
23:00:32.266760 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805474 ecr 261805174], length 0
23:00:32.366504 IP localhost.63181 > localhost.perf-port: Flags [.], ack 1, win 12759, options [nop,nop,TS val 261805573 ecr 261805174], length 0
23:00:32.465475 IP localhost.63181 > localhost.perf-port: Flags [.], ack 2, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465497 IP localhost.63181 > localhost.perf-port: Flags [.], ack 3, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465539 IP localhost.63181 > localhost.perf-port: Flags [.], ack 4, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465611 IP localhost.63181 > localhost.perf-port: Flags [.], ack 5, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465671 IP localhost.63181 > localhost.perf-port: Flags [.], ack 6, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465687 IP localhost.63181 > localhost.perf-port: Flags [.], ack 7, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465721 IP localhost.63181 > localhost.perf-port: Flags [.], ack 8, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465750 IP localhost.63181 > localhost.perf-port: Flags [.], ack 9, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465807 IP localhost.63181 > localhost.perf-port: Flags [.], ack 10, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
23:00:32.465825 IP localhost.63181 > localhost.perf-port: Flags [.], ack 11, win 12759, options [nop,nop,TS val 261805671 ecr 261805671], length 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment