[20170504]Linux TCP keepalive timers.txt

lfree發表於2017-05-04

[20170504]Linux TCP keepalive timers.txt

--//上午仔細看一些文件,發現實際上netstat命令就有輸出,引數--timer或者-o引數.

# netstat -otun
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       Timer
tcp        0      0 192.168.100.78:60479        192.168.100.78:1521         ESTABLISHED off (0.00/0/0)
tcp        0    224 192.168.100.78:22           192.168.101.6:50855         ESTABLISHED on (0.38/0/0)
tcp        0      0 192.168.100.78:1521         192.168.100.78:60479        ESTABLISHED keepalive (5864.73/0/0)
tcp        0      0 192.168.100.78:22           192.168.101.6:50817         ESTABLISHED keepalive (115.84/0/0)

The interpretation of field is, first field = timer countdown value, second field = no. of retransmissions, third field
= number of keepalive probes sent.

--//引數1記數到0發出請求檢查網路.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2138396/,如需轉載,請註明出處,否則將追究法律責任。

相關文章