25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Local Socket The local <strong>IP</strong> address <strong>and</strong> port over which the connection<br />

is active.<br />

Foreign Socket The remote <strong>IP</strong> address <strong>and</strong> port over which the<br />

connection is active.<br />

State The state of the connection. Most implementations use<br />

some form of the following values for state:<br />

650 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

CloseWait<br />

Closed<br />

Established<br />

FinWait_1<br />

FinWait_2<br />

LastAck<br />

Listen<br />

SynReceived<br />

SynSent<br />

TimeWait<br />

UDP<br />

(Because UDP is a connectionless protocol, they<br />

cannot be listed in a particular state. As such,<br />

NETSTAT simply indicates that they are UDP<br />

sockets.)<br />

Additional information about these states can be found<br />

in RFC 0793.<br />

Additionally, Example 17-2 is a sample routing table generated by NETSTAT.<br />

Example 17-2 Sample routing table<br />

:\> NETSTAT -r<br />

<strong>TCP</strong><strong>IP</strong> Name: <strong>TCP</strong><strong>IP</strong> 13:25:04<br />

Destination Gateway Flags Refcnt Interface<br />

----------- ------- ----- ------ ---------<br />

Default 10.44.36.129 UGS 001504 INTRF1<br />

Default 10.44.36.129 UGS 000006 INTRF2<br />

10.44.36.128 0.0.0.0 US 000003 INTRF1<br />

10.44.36.128 0.0.0.0 US 000000 INTRF2<br />

10.44.36.129 0.0.0.0 UHS 000000 INTRF1<br />

10.44.36.129 0.0.0.0 UHS 000000 INTRF2<br />

10.44.36.163 0.0.0.0 UH 000000 V<strong>IP</strong>AL1<br />

10.44.36.164 0.0.0.0 UH 000000 INTRF1<br />

10.44.36.165 0.0.0.0 UH 000000 INTRF2<br />

127.0.0.1 0.0.0.0 UH 000002 LOOPBACK

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!