show ip tcp connections

Displays general information about each TCP connection on the router, including the percentage of free memory for each of the internal TCP buffers.
Syntax
show ip tcp connections [ port-num | ip-address ]
Parameters
port-num
Displays the information for the specific TCP port number. Values are SSH:22 TELNET:23 HTTP:80 BGP:179 SSL:443 MSDP:639 LDP:646.
ip-address
Displays information for the specified IP address of the remote device.
Modes

User EXEC mode

Privileged EXEC mode

Global Configuration mode

The show ip tcp connections command displays the following information:

Output field Description
Local IP address:port The IPv4 address and port number of the local router interface over which the TCP connection occurs.
Remote IP address:port The IPv4 address and port number of the remote router interface over which the TCP connection occurs.
TCP state The state of the TCP connection. Possible states include the following:
  • LISTEN - Waiting for a connection request.
  • SYN-SENT - Waiting for a matching connection request after having sent a connection request.
  • SYN-RECEIVED - Waiting for a confirming connection request acknowledgment after having both received and sent a connection request.
  • ESTABLISHED - Data can be sent and received over the connection. This is the normal operational state of the connection.
  • FIN-WAIT-1 - Waiting for a connection termination request from the remote TCP, or an acknowledgment of the connection termination request previously sent.
  • FIN-WAIT-2 - Waiting for a connection termination request from the remote TCP.
  • CLOSE-WAIT - Waiting for a connection termination request from the local user.
  • CLOSING - Waiting for a connection termination request acknowledgment from the remote TCP.
  • LAST-ACK - Waiting for an acknowledgment of the connection termination request previously sent to the remote TCP (which includes an acknowledgment of its connection termination request).
  • TIME-WAIT - Waiting for enough time to pass to be sure the remote TCP received the acknowledgment of its connection termination request.
  • CLOSED - There is no connection state.
FREE TCP = percentage The percentage of free TCP control block (TCP) space.
FREE TCP QUEUE BUFFER = percentage The percentage of free TCP queue buffer space.
FREE TCP SEND BUFFER = percentage The percentage of free TCP send buffer space.
FREE TCP OUT OF SEQUENCE BUFFER = percentage The percentage of free TCP out of sequence buffer space.
Examples

The following output displays the sample output of the TCP connections.

device# show ip tcp connections
Total 9 TCP connections
   LISTEN: 7; SYN-SENT: 0; SYN-RECEIVED 0; ESTABLISHED: 2; FIN-WAIT-1: 0
   FIN-WAIT-2: 0; CLOSE-WAIT: 0; LAST-ACK 0; CLOSING: 0; TIME-WAIT: 0
Local IP address:port <-> Remote IP address:port TCP state    RcvQue  RxBuffe SendQue TxBuffe
172.26.67.239    7500      10.176.160.115   22     ESTABLISHED  0       0       276     1      
0.0.0.0          161       0.0.0.0          0      LISTEN       0       0       0       0      
172.26.67.239    23        172.26.68.57     18516  ESTABLISHED  0       0       0       0      
0.0.0.0          23        0.0.0.0          0      LISTEN       0       0       0       0      
0.0.0.0          5080      0.0.0.0          0      LISTEN       0       0       0       0      
0.0.0.0          20514     0.0.0.0          0      LISTEN       0       0       0       0      
0.0.0.0          448       0.0.0.0          0      LISTEN       0       0       0       0      
0.0.0.0          22        0.0.0.0          0      LISTEN       0       0       0       0      
0.0.0.0          80        0.0.0.0          0      LISTEN       0       0       0       0      

TCP MEMORY USAGE PERCENTAGE
FREE TCP = 90 percent
FREE TCP QUEUE BUFFER = 100 percent
FREE TCP SEND BUFFER = 100 percent
FREE TCP OUT OF SEQUENCE BUFFER = 100 percent