Networking

TCP Dump

  • Capture pcap file using tcpdump -i <interface> -s 65535 -w <file>
  • Then open it using wireshark
  • Other options is to use tcpick(8)

References:

Linux ftrace TCP Retransmit Tracing

References:

Monitor TCP Accept Queue Length and Overflows

Check for overflows

[centos ~]$ nstat -az | grep -i listen
TcpExtListenOverflows           3518352            0.0
TcpExtListenDrops               3518388            0.0
TcpExtTCPFastOpenListenOverflow 0  0.0

[centos ~]$ netstat -s | grep -i LISTEN
    3518352 times the listen queue of a socket overflowed
    3518388 SYNs to LISTEN sockets dropped

Monitor queue sizes:

$ ss -n state syn-recv sport = :80 | wc -l
119

References:

On HTTP

References