Monitoring TCP Statistics for IPv6
Purpose
Display all TCP statistics (both IPv4 and IPv6). The TCP statistics are displayed only for the connections that are active within the context of the virtual router:
- You can use the ip keyword to display only IPv4 statistics.
- You can use the ipv6 keyword to display only IPv6 statistics.
- You can use the brief keyword to display summary information or the detailed keyword to display extensive information.
- You can use the diagnostic keyword to display diagnostic information collected on the TCP statistics in addition to the detailed information. This command shows information only for the connections that are active within the context of the virtual router in which you issue the command.
![]() | Note:
|
Action
To display TCP statistics for IPv6:
host1#show ipv6 tcp statistics TCP Global Statistics: Connections: 7358 attempted, 4 accepted, 7362 established 0 dropped, 14718 closed Rcvd: 75923 total pkts, 53608 in-sequence pkts, 3120303 bytes 0 chksum err pkts, 0 authentication err pkts, 0 bad offset pkts 0 short pkts, 0 duplicate pkts, 0 out of order pkts Sent: 82352 total pkts, 44404 data pkts, 657095 bytes 34 retransmitted pkts, 487 retransmitted bytes
TCP Session Statistics: Local addr: 0.0.0.0, Local port: 23 Remote addr: 0.0.0.0, Remote port: 0 State: LISTEN Authentication: None Rcvd: 4 total pkts, 0 in-sequence pkts, 0 bytes 0 chksum err pkts, 0 bad offset pkts, 0 short pkts 0 duplicate pkts, 0 out of order pkts Sent: 0 total pkts, 0 data pkts, 0 bytes 0 retransmitted pkts, 0 retransmitted bytes
Local addr: 192.168.1.250, Local port: 23 Remote addr: 10.10.0.77, Remote port: 2170 State: ESTABLISHED Authentication: None Rcvd: 61 total pkts, 34 in-sequence pkts, 41 bytes 0 chksum err pkts, 0 bad offset pkts, 0 short pkts 0 duplicate pkts, 0 out of order pkts Sent: 64 total pkts, 45 data
Local addr: 192.168.1.250, Local port: 23 Remote addr: 10.10.0.77, Remote port: 2170 State: ESTABLISHED Authentication: None Rcvd: 61 total pkts, 34 in-sequence pkts, 41 bytes 0 chksum err pkts, 0 bad offset pkts, 0 short pkts 0 duplicate pkts, 0 out of order pkts Sent: 64 total pkts, 45 data pkts, 2304 bytes 0 retransmitted pkts, 0 retransmitted bytes Local addr: 192.168.1.250, Local port: 23 Remote addr: 192.168.1.139, Remote port: 1038 State: ESTABLISHED Authentication: None Rcvd: 295 total pkts, 159 in-sequence pkts, 299 bytes 0 chksum err pkts, 0 bad offset pkts, 0 short pkts 0 duplicate pkts, 0 out of order pkts Sent: 281 total pkts, 210 data pkts, 3089 bytes 0 retransmitted pkts, 0 retransmitted bytes
To display diagnostic information for all TCP statistics (both IPv4 and IPv6):
host1#show tcp statistics diagnostic ... Global Diagnostic Data Unknown Connection log Source address/port -> local port 128.127.126.125/124 -> 8080 count: 3 111.111.111.111/222 -> 3333 count: 4 # connection-reqs rejected: 0 # connection-reqs pending: 0 # sonewconn calls that fail: 0 ... Diagnostics: PRU_ Operations counters: PRU_ATTACH: 0 PRU_DETACH: 0 PRU_BIND: 1 PRU_LISTEN: 1 PRU_CONNECT: 0 PRU_ACCEPT: 0 PRU_DISCONNECT: 0 PRU_SHUTDOWN: 0 PRU_RCVD: 0 PRU_SEND: 0 PRU_ABORT: 0 PRU_CONTROL: 0 PRU_SENSE: 0 PRU_RCVOOB: 0 PRU_SENDOOB: 0 PRU_SOCKADDR: 0 PRU_PEERADDR: 0 PRU_CONNECT2: 0 PRU_FASTTIMO: 0 PRU_SLOWTIMO: 0 PRU_PROTORCV: 0 PRU_PROTOSEND: 0 Wildcard Matches: 2 Rcv'd Packets after connection closed: 0 Connect request rejected: 0 Connect request approval pending 0 New soconnect failed 0 # Write-Wakeups: 0 # Read wakeups 0 # receives after close 0 Retransmit timer: 0 Persistence timer: 0 Keepalive timer: 0 2MSL timer: 0 tcpDisconnect()s: 0 keep T/O pre-estab: 0 tcpkeeptimeo_idle: 0 ... TCP Connection Event Log (most recent at bottom) TCPS_ELOG_PRU_ATTACH TCPS_ELOG_PRU_BIND
To display extensive information for all TCP statistics (both IPv4 and IPv6):
host1#show tcp statistics detailed ...
RST/SYN-Ack Protection is: ENABLED RSTs acked: 0 ...Bogus RSTs: 0 SYNs acked: 0 ...Bogus SYNs: 0 Data Insertions rejected: 0 PMTUD Information: PMTUD: ENABLED Administrative Minimum MTU: 512 Administrative Maximum MTU: none Timer 1: 10 minutes Timer 2: 2 minutes # ICMP TooBigs: 0 # ICMP TooBigs for unk. connection: 0 PMTU Increase Attempts: 17 Black Hole Detect Threshold: 50 retransmissions ... MTU/MSS Information ENABLED on this connection MSS in effect: 536 Calculated MSS to peer: 536 MSS received from peer: 0 Application set MSS: 0 Xmit Interface MSS: 0 MSS Sent to Peer: 0 "ICMP DestUn, Frag Req'd and DF Set" messages: 0 Number of attempts to increase PMTU: 0 Time to next increase attempt: 0 seconds Black Hole Detection State: none ... Out-of-order Packet Queue Information
Buffers Outstanding: 25 High Water: 28 Buffers discarded: 15 ... TCP-Paws is disabled
Meaning
Table 49 lists the show ipv6 tcp statistics command output fields.
Table 49: show ipv6 tcp statistics Output Fields
Field Name | Field Description |
---|---|
TCP Global Statistics Connections |
|
TCP Global Statistics Rcvd |
|
TCP Global Statistics Sent |
|
Global Diagnostic Data Unknown Connection log | Includes the following global statistics:
|
TCP Session Statistics |
|
TCP Session Statistics Rcvd |
|
TCP Session Statistics Sent |
|
PRU_ Operations counters | Number of calls for each of the indicated PRU_operations within the TCP service API. These are per-connection statistics. |
Wildcard Matches | Number of packets received that matched this TCP connection due to wildcard matching. Matching is expected for listening server connections, such as Telnet, but is not expected for established connections. This is a per-connection statistic. |
Rcv'd Packets after connection closed | Number of packets received on the connection after the connection has been closed (and before the data structure gets removed). This is a per-connection statistic. |
Connect request rejected | Number of times an incoming connection request was not approved. This is a per-connection statistic. |
Connect request approval pending | Number of times that an incoming connection request was held pending, waiting for a subsequent packet. This is a per-connection statistic. |
New soconnect failed | Number of times a SONEWCONN() was tried on a listening connection and failed. This is a per-connection statistic. |
# Write-Wakeups | Number of times a “ write wakeup” occurred on the connection. This is a per-connection statistic. |
# Read wakeups | Number of times a “ read wakeup” occurred on the connection. This is a per-connection statistic. |
# receives after close | Number of packets received with data after the connection entered the close-wait state. This is a per-connection statistic. |
Retransmit timer | Current value of the retransmit timer |
Persistence timer | Current value of the persistence timer |
Keepalive timer | Current value of the keepalive timer |
2MSL timer | Current value of the 2MSL (max segment lifetime) timer |
tcpDisconnect()s | Number of times BsdTcp::tcpDisconnect() was called. This is a per-connection statistic. |
keep T/O pre-estab | Number of times the keepalive timer expired before the connection reached the established state. This is a per-connection statistic. |
tcpkeeptimeo_idle | Number of times the keepalive timer popped, but no keepalive was sent because of connection idle-time considerations. This is a per-connection statistic. |
TCP Connection Event Log (most recent at bottom) | Event log for the TCP connection. It shows the last 32 events that occurred on the connection. The most recent event is at the bottom of the list. This is per-connection data.
The following events can be recorded:
|
RST/SYN-Ack DoS Protection | Specifies when this function is enabled:
|
PMTUD information | Information regarding path MTU discovery:
|
MTU/MSS information | Information regarding path MTU/MSS:
|
Out-of-Order Packet Queue Information | Information regarding packet queue buffers:
|
TCP PAWS is [enabled/disabled] | Status of the TCP PAWS option; enabled indicates that PAWS is functioning normally (default mode) for TCP segments; disabled indicates that PAWS is disabled for TCP segments |