How to use netstat to check network package retransmission

1
2
3
4
5
6
7
$ while [ 1 ]; do netstat -s | grep 'segments retransmited' ; sleep 1; done
2500906 segments retransmited
2500912 segments retransmited
2501072 segments retransmited
2501102 segments retransmited
2501191 segments retransmited