Skip to content

Instantly share code, notes, and snippets.

@rmounce
Created August 28, 2019 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmounce/74dd5e92e6304688219024349bfaad0e to your computer and use it in GitHub Desktop.
Save rmounce/74dd5e92e6304688219024349bfaad0e to your computer and use it in GitHub Desktop.
iOS 12.4.0 netstat
Ryans-iPhone:~ root# netstat -sp tcp
tcp:
222886 packets sent
50341 data packets (26956826 bytes)
624 data packets (189481 bytes) retransmitted
0 resend initiated by MTU discovery
137560 ack-only packets (35 delayed)
0 URG only packet
0 window probe packet
25896 window update packets
8539 control packets
0 data packet sent after flow control
219640 checksummed in software
94627 segments (75697521 bytes) over IPv4
125013 segments (9929780 bytes) over IPv6
312110 packets received
55438 acks (for 26943535 bytes)
1006 duplicate acks
0 ack for unsent data
235617 packets (276920280 bytes) received in-sequence
690 completely duplicate packets (117674 bytes)
5 old duplicate packets
0 received packet dropped due to low memory
11 packets with some dup. data (152 bytes duped)
17878 out-of-order packets (25533277 bytes)
0 packet (0 byte) of data after window
0 window probe
1425 window update packets
1121 packets received after close
0 bad reset
0 discarded for bad checksum
187112 checksummed in software
126 segments (0 byte) over IPv4
186986 segments (215350740 bytes) over IPv6
0 discarded for bad header offset field
0 discarded because packet too short
3711 connection requests
1307 connection accepts
4 bad connection attempts
0 listen queue overflow
4910 connections established (including accepts)
7458 connections closed (including 209 drops)
778 connections updated cached RTT on close
778 connections updated cached RTT variance on close
263 connections updated cached ssthresh on close
4 embryonic connections dropped
197233 segments updated rtt (of 50607 attempts)
1001 retransmit timeouts
62 connections dropped by rexmit timeout
0 connection dropped after retransmitting FIN
0 persist timeout
0 connection dropped by persist timeout
210 keepalive timeouts
190 keepalive probes sent
3 connections dropped by keepalive
1382 correct ACK header predictions
226080 correct data packet header predictions
0 SACK recovery episode
0 segment rexmit in SACK recovery episodes
130 byte rexmits in SACK recovery episodes
41 SACK options (SACK blocks) received
48981 SACK options (SACK blocks) sent
393 SACK scoreboard overflow
0 LRO coalesced packet
0 time LRO flow table was full
0 collision in LRO flow table
0 time LRO coalesced 2 packets
0 time LRO coalesced 3 or 4 packets
0 time LRO coalesced 5 or more packets
0 limited transmit done
0 early retransmit done
10 times cumulative ack advanced along with SACK
4 probe timeouts
1829 times retransmit timeout triggered after probe
0 time probe packets were sent for an interface
3 times couldn't send probe packets for an interface
470 times fast recovery after tail loss
61 times recovered last packet
0 SACK based rescue retransmit
0 client connection attempted to negotiate ECN
5 client connections successfully negotiated ECN
0 time graceful fallback to Non-ECN connection
3 times lost ECN negotiating SYN, followed by retransmission
0 server connection attempted to negotiate ECN
1747 server connections successfully negotiated ECN
3 times lost ECN negotiating SYN-ACK, followed by retransmission
25 times received congestion experienced (CE) notification
37 times CWR was sent in response to ECE
619 times sent ECE notification
1029 connections received CE atleast once
2 connections received ECE atleast once
11 connections using ECN have seen packet loss but no CE
7 connections using ECN have seen packet loss and CE
349 connections using ECN received CE but no packet loss
14 connections fell back to non-ECN due to SYN-loss
4 connections fell back to non-ECN due to reordering
4 connections fell back to non-ECN due to excessive CE-markings
0 time packet reordering was detected on a connection
0 time transmitted packets were reordered
119 times fast recovery was delayed to handle reordering
2 times retransmission was avoided by delaying recovery
14 retransmissions not needed
73 times DSACK option was sent
140 times DSACK option was received
2 times DSACK was disabled on a connection
17 times recovered from bad retransmission using DSACK
1 time ignored DSACK due to ack loss
492 times ignored old DSACK options
0 time PMTU Blackhole detection, size reverted
1 connection were dropped after long sleep
0 time a TFO-cookie has been announced
1 SYN with data and a valid TFO-cookie have been received
0 SYN with TFO-cookie-request received
0 time an invalid TFO-cookie has been received
0 time we requested a TFO-cookie
0 time the peer announced a TFO-cookie
0 time we combined SYN with data and a TFO-cookie
0 time our SYN with data has been acknowledged
0 time a connection-attempt with TFO fell back to regular TCP
0 time a TFO-connection blackhole'd
0 time maximum segment size was changed to default
0 time maximum segment size was changed to medium
0 time maximum segment size was changed to low
0 timer drift less or equal to 1 ms
0 timer drift less or equal to 10 ms
80216 timer drifts less or equal to 20 ms
125 timer drifts less or equal to 50 ms
17 timer drifts less or equal to 100 ms
21 timer drifts less or equal to 200 ms
15 timer drifts less or equal to 500 ms
0 timer drift less or equal to 1000 ms
0 timer drift greater than to 1000 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment