Linux下观察网络性能工具(2)

# ip -s link
1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdisc noqueue state UNKNOWN
    link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
    RX:bytes  packets  errors  dropped overrun mcast 
    2255610398556534  0      0      0      0     
    TX:bytes  packets  errors  dropped carrier collsns
    2255610398556534  0      0      0      0     
2:eth0:<BROADCAST,MULTICAST,UP,LOWER_UP>mtu1500qdisc pfifo_fast state UP qlen1000
    link/ether00:19:bb:5b:07:34brd ff:ff:ff:ff:ff:ff
    RX:bytes  packets  errors  dropped overrun mcast 
    32683320875724229790      0      0      16733497
    TX:bytes  packets  errors  dropped carrier collsns
    2604833405168312850      0      0      0

“netstat -s” 提供了各个协议下的统计信息,有些统计值比如retransmit是很有用的,只有 “netstat -s” 能看到:

# netstat -s
 
...
 
Tcp:
    71479active connections openings
    7181passive connection openings
    13723failed connection attempts
    407connection resets received
    1connections established
    18969163segments received
    11210435segments send out
    85883segments retransmited
    0bad segments received.
    80162resets sent
...
475fast retransmits
30forward retransmits
110retransmits inslow start
22772other TCP timeouts
5sack retransmits failed
...

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/15580.html