display tcp statistics

Syntax

display tcp statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display tcp statistics to display statistics of TCP traffic.

Related commands: display tcp status and reset tcp statistics.

Examples

# Display statistics of TCP traffic.

<Sysname> display tcp statistics
Received packets:
     Total: 8457
     packets in sequence: 3660 (5272 bytes)
     window probe packets: 0, window update packets: 0
     checksum error: 0, offset error: 0, short error: 0

     duplicate packets: 1 (8 bytes), partially duplicate packets: 0 (0 bytes)
     out-of-order packets: 17 (0 bytes)
     packets of data after window: 0 (0 bytes)
     packets received after close: 0

     ACK packets: 4625 (141989 bytes)
     duplicate ACK packets: 1702, too much ACK packets: 0

Sent packets:
     Total: 6726
     urgent packets: 0
     control packets: 21 (including 0 RST)
     window probe packets: 0, window update packets: 0

     data packets: 6484 (141984 bytes) data packets retransmitted: 0 (0 bytes)
     ACK-only packets: 221 (177 delayed)

Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 1682, keepalive probe: 1682, Keepalive timeout, so connections disconnected : 0
Initiated connections: 0, accepted connections: 22, established connections: 22
Closed connections: 49 (dropped: 0, initiated dropped: 0)
Packets dropped with MD5 authentication: 0
Packets permitted with MD5 authentication: 0  

Table 27: Command output

Field

Description

Received packets:

Total

Total number of packets received.

packets in sequence

Number of packets arriving in sequence.

window probe packets

Number of window probe packets received.

window update packets

Number of window update packets received.

checksum error

Number of checksum error packets received.

offset error

Number of offset error packets received.

short error

Number of received packets with length being too small.

duplicate packets

Number of completely duplicate packets received.

partially duplicate packets

Number of partially duplicate packets received.

out-of-order packets

Number of out-of-order packets received.

packets of data after window

Number of packets outside the receiving window.

packets received after close

Number of packets that arrived after connection is closed.

ACK packets

Number of ACK packets received.

duplicate ACK packets

Number of duplicate ACK packets received.

too much ACK packets

Number of ACK packets for data unsent.

Sent packets:

Total

Total number of packets sent.

urgent packets

Number of urgent packets sent.

control packets

Number of control packets sent.

window probe packets

Number of window probe packets sent. In the brackets are resent packets.

window update packets

Number of window update packets sent.

data packets

Number of data packets sent.

data packets retransmitted

Number of data packets retransmitted.

ACK-only packets

Number of ACK packets sent. In brackets are delayed ACK packets.

Retransmitted timeout

Number of retransmission timer timeouts.

connections dropped in retransmitted timeout

Number of connections broken due to retransmission timeouts.

Keepalive timeout

Number of keepalive timer timeouts.

keepalive probe

Number of keepalive probe packets sent.

Keepalive timeout, so connections disconnected

Number of connections broken due to timeout of the keepalive timer.

Initiated connections

Number of connections initiated.

accepted connections

Number of connections accepted.

established connections

Number of connections established.

Closed connections

Number of connections closed. In brackets are connections closed accidentally (before receiving SYN from the peer) and connections closed initiatively (after receiving SYN from the peer).

Packets dropped with MD5 authentication

Number of packets dropped by MD5 authentication.

Packets permitted with MD5 authentication

Number of packets permitted by MD5 authentication.