TCP/IP 笔记 6 netstat -s 命令查看每个协议统计数据
netstat -s 命令,查看每个协议统计数据的常用方法
lenovo-myc@lenovomyc-Lenovo-Product:~$ netstat -s Ip: 1533249 total packets received 0 forwarded 3 with unknown protocol 0 incoming packets discarded 1532735 incoming packets delivered 1003949 requests sent out 24 outgoing packets dropped 173 dropped because of missing route Icmp: ICMP的数据统计 938 ICMP messages received 2 input ICMP message failed. ICMP input histogram: destination unreachable: 938 3530 ICMP messages sent 0 ICMP messages failed ICMP output histogram: destination unreachable: 3530 IcmpMsg: InType3: 938 OutType3: 3530 Tcp: 42120 active connections openings 2 passive connection openings 2890 failed connection attempts 1163 connection resets received 4 connections established 802662 segments received 804241 segments send out 88944 segments retransmited 480 bad segments received. 10619 resets sent Udp: 1128215 packets received 3527 packets to unknown port received. 0 packet receive errors 100829 packets sent UdpLite: TcpExt: 5683 TCP sockets finished time wait in fast timer 82 packets rejects in established connections because of timestamp 24590 delayed acks sent 5 delayed acks further delayed because of locked socket Quick ack mode was activated 14663 times 373180 packet headers predicted 116427 acknowledgments not containing data payload received 19329 predicted acknowledgments 1 times recovered from packet loss due to fast retransmit 161 times recovered from packet loss by selective acknowledgements Detected reordering 1 times using FACK Detected reordering 2 times using SACK Detected reordering 5 times using time stamp 10 congestion windows fully recovered without slow start 3 congestion windows partially recovered using Hoe heuristic 51 congestion windows recovered without slow start by DSACK 214 congestion windows recovered without slow start after partial ack 19 timeouts after SACK recovery 6 timeouts in loss state 171 fast retransmits 35 forward retransmits 41 retransmits in slow start 12491 other TCP timeouts TCPLossProbes: 10455 TCPLossProbeRecovery: 874 7 SACK retransmits failed 14751 DSACKs sent for old packets 271 DSACKs sent for out of order packets 2272 DSACKs received 19 DSACKs for out of order packets received 1800 connections reset due to unexpected data 815 connections reset due to early user close 10557 connections aborted due to timeout TCPSACKDiscard: 14 TCPDSACKIgnoredNoUndo: 287 TCPSpuriousRTOs: 4 TCPSackShifted: 25 TCPSackMerged: 54 TCPSackShiftFallback: 3112 IPReversePathFilter: 15 TCPRetransFail: 21 TCPRcvCoalesce: 152920 TCPOFOQueue: 80259 TCPOFOMerge: 279 TCPChallengeACK: 486 TCPSYNChallenge: 485 TCPSpuriousRtxHostQueues: 1 IpExt: InNoRoutes: 44 InMcastPkts: 66158 OutMcastPkts: 3212 InBcastPkts: 559882 OutBcastPkts: 679 InOctets: 1158920000 OutOctets: 157675331 InMcastOctets: 9253517 OutMcastOctets: 124624 InBcastOctets: 47900722 OutBcastOctets: 93215 InNoECTPkts: 1767197 InECT1Pkts: 30 InECT0Pkts: 938 InCEPkts: 456