# ss -s
Total: 319 (kernel 752)
TCP: 187 (estab 114, closed 58, orphaned 0, synrecv 0, timewait 58/0), ports 0
Transport Total IP IPv6
* 752 - -
RAW 0 0 0
UDP 3 2 1
TCP 129 113 16
INET 132 115 17
FRAG 0 0 0
netstat命令
代码如下:
# netstat -i
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 9001 0 2194916 0 0 0 1424609 0 0 0 BMRU
lo 65536 0 7670598 0 0 0 7670598 0 0 0 LRU</p> <p># netstat -s
Ip:
9743496 total packets received
0 forwarded
0 incoming packets discarded
9743494 incoming packets delivered
9068146 requests sent out
Icmp:
2147 ICMP messages received
1143 input ICMP message failed.
InCsumErrors: 2
ICMP input histogram:
destination unreachable: 1361
timeout in transit: 56
source quenches: 1
echo requests: 701
echo replies: 26
750 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
destination unreachable: 23
echo request: 26
echo replies: 701
IcmpMsg:
InType0: 26
InType3: 1361
InType4: 1
InType8: 701
InType11: 56
OutType0: 701
OutType3: 23
OutType8: 26
Tcp:
679665 active connections openings
911387 passive connection openings
58018 failed connection attempts
14608 connection resets received
118 connections established
9696894 segments received
9047825 segments send out
6700 segments retransmited
47 bad segments received.
67249 resets sent
Udp:
44425 packets received
23 packets to unknown port received.
0 packet receive errors
44457 packets sent
UdpLite:
TcpExt:
140 invalid SYN cookies received
704 resets received for embryonic SYN_RECV sockets
23 packets pruned from receive queue because of socket buffer overrun
616402 TCP sockets finished time wait in fast timer
20 packets rejects in established connections because of timestamp
52124 delayed acks sent
45 delayed acks further delayed because of locked socket
Quick ack mode was activated 1519 times
32 SYNs to LISTEN sockets dropped
19258 packets directly queued to recvmsg prequeue.
45185 bytes directly in process context from backlog
394312 bytes directly received in process context from prequeue
943942 packet headers predicted
3478 packets header predicted and directly queued to user
3246338 acknowledgments not containing data payload received
547737 predicted acknowledgments
650 times recovered from packet loss by selective acknowledgements
Detected reordering 1 times using FACK
Detected reordering 8 times using SACK
Detected reordering 23 times using time stamp
1 congestion windows fully recovered without slow start
23 congestion windows partially recovered using Hoe heuristic
1 congestion windows recovered without slow start by DSACK
854 congestion windows recovered without slow start after partial ack
TCPLostRetransmit: 162
135 timeouts after SACK recovery
18 timeouts in loss state
1517 fast retransmits
104 forward retransmits
172 retransmits in slow start
2764 other TCP timeouts
TCPLossProbes: 5202
TCPLossProbeRecovery: 2859
74 SACK retransmits failed
460 packets collapsed in receive queue due to low socket buffer
1646 DSACKs sent for old packets
21 DSACKs sent for out of order packets
879 DSACKs received
4314 connections reset due to unexpected data
346 connections reset due to early user close
186 connections aborted due to timeout
TCPDSACKIgnoredNoUndo: 615
TCPSpuriousRTOs: 95
TCPSackShifted: 402
TCPSackMerged: 2048
TCPSackShiftFallback: 2592
TCPRcvCoalesce: 145187
TCPOFOQueue: 36673
TCPOFOMerge: 21
TCPChallengeACK: 329
TCPSYNChallenge: 47
IpExt:
InNoRoutes: 2
InOctets: 1570012766
OutOctets: 1159491497
InNoECTPkts: 9838700
InECT0Pkts: 10
InCEPkts: 3