Skip to content

Instantly share code, notes, and snippets.

@justdoit0823
Last active October 24, 2017 13:03
Show Gist options
  • Save justdoit0823/f347b5d5a849592ec8999ce9c296d0d9 to your computer and use it in GitHub Desktop.
Save justdoit0823/f347b5d5a849592ec8999ce9c296d0d9 to your computer and use it in GitHub Desktop.
Diagnose network connection.
# list tcp connection whose packet hasn't been acknowledged
ss -tnp|awk '$3 > 0 {print $3, $4, $5, $6, $7}'
# list tcp connection hasn't read received packet
ss -tnp|awk '$2 > 0 {print $3, $4, $5, $6, $7}'
# show timer info about tcp connection
ss -tnpo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment