C H A P T E R 19

TCP

TCP is a portable implementation of the industry-standard TCP based on RFC 793. The software consists of the core TCP protocol, a library that provides a SLI to support IPv4. Applications and TELNET Server and FTP server that support IPv4 based connections (optional). TCP interacts with the network layer protocols and uses their services for end-to-end communication.

##

19.1 TCP Commands

The list of TCP commands is as follows:

- show tcp statistics

- show tcp connections

- show tcp listeners

- show tcp retransmission details

### 19.1.1 `show tcp statistics`

Displays the `tcp` statistics.

    show tcp statistics

Mode | Privileged EXEC
Example | SEFOS# show tcp statistics Max Connections : 0 Active Opens : 2282 Passive Opens : 2155 Attempts Fail : 1 Estab Resets : 0 Current Estab : 10 Input Segments : 832803 Output Segments : 648266 Retransmitted Segments : 808 Input Errors : 0 TCP Segments with RST flag Set: 48 Input Errors : 0 HC Input Segments : 832803 HC Output Segments : 648266

#### Related Commands

- show tcp connections - Displays the TCP connections

- show tcp listeners - Displays the TCP listeners

- show tcp retransmission details - Displays the TCP retransmission details

### 19.1.2 `show tcp connections`

Displays the tcp connections.

    show tcp connections

Mode | Privileged EXEC
Example | SEFOS# show tcp connections TCP Connections =============== Local IP Address Type : IPv4 Local IP : 127.0.0.1 Local Port : 35040 Remote IP Address Type : IPv4 Remote IP : 127.0.0.1 Remote Port : 631
| TCP State : FinWait1 Local IP Address Type : IPv4 Local IP : 127.0.0.1 Local Port : 35041 Remote IP Address Type : IPv4 Remote IP : 127.0.0.1 Remote Port : 631 TCP State : FinWait1 Local IP Address Type : IPv4 Local IP : 127.0.0.1 Local Port : 35042 Remote IP Address Type : IPv4 Remote IP : 127.0.0.1 Remote Port : 631 TCP State : FinWait1
| Local IP Address Type : IPv4 Local IP : 127.0.0.1 Local Port : 35041 Remote IP Address Type : IPv4 Remote IP : 127.0.0.1 Remote Port : 631 TCP State : FinWait1
| Local IP Address Type : IPv4 Local IP : 127.0.0.1 Local Port : 35042 Remote IP Address Type : IPv4 Remote IP : 127.0.0.1 Remote Port : 631 TCP State : FinWait1 Local IP Address Type : IPv4 Local IP : 172.30.4.110
| Local Port : 22 Remote IP Address Type : IPv4 Remote IP : 10.203.113.47 Remote Port : 4886 TCP State : Closed Local IP Address Type : IPv4
| Local IP : 172.30.4.110 Local Port : 22 Remote IP Address Type : IPv4 Remote IP : 10.203.113.113 Remote Port : 4391 TCP State : Closed
| Local IP Address Type : IPv4 Local IP : 172.30.4.110 Local Port : 32911 Remote IP Address Type : IPv4 Remote IP : 172.31.112.88 Remote Port : 2003 TCP State : Closed

#### Related Commands

- show tcp statistics - Displays the TCP statistics

- show tcp listeners - Displays the TCP listeners

- show tcp retransmission details - Displays the TCP retransmission details

### 19.1.3 `show tcp listeners`

Displays the `tcp` listeners.

    show tcp listeners

Mode | Privileged EXEC
Example | SEFOS# show tcp listeners TCP Listeners =============== Local IP Address Type : 0 Local IP : 0.0.0.0 Local Port : 23
| Local IP Address Type : IPv4 Local IP : 0.0.0.0 Local Port : 22 Local IP Address Type : IPv4 Local IP : 0.0.0.0 Local Port : 80

#### Related Commands

- show tcp statistics - Displays the TCP statistics

- show tcp connections - Displays the TCP connections

- show tcp retransmission details - Displays the TCP retransmission details

### 19.1.4 `show tcp retransmission details`

Displays the `tcp` retransmission details.

    show tcp retransmission details

Mode | Privileged EXEC
Example | SEFOS# sh tcp retransmission details RTO Algorithm Used : VAN JACOBSON Min Retransmission Timeout : 0 msec Max Retransmission Timeout : 0 msec

#### Related Commands

- show tcp statistics - Displays the TCP statistics

- show tcp connections - Displays the TCP connections

- show tcp listeners - Displays the TCP listeners

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.