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.

Data Contains information for this ICMP message. Typically, it<br />

will contain the portion of the original <strong>IP</strong> message for<br />

which this ICMP message was generated.<br />

Each of the ICMP messages is described individually.<br />

Echo (8) <strong>and</strong> Echo Reply (0)<br />

Echo is used to detect if another host is active in the network. It is used by the<br />

Ping comm<strong>and</strong> (refer to “Ping” on page 117). The sender initializes the identifier,<br />

sequence number, <strong>and</strong> data field. The datagram is then sent to the destination<br />

host. The recipient changes the type to Echo Reply <strong>and</strong> returns the datagram to<br />

the sender. See Figure 3-28 for more details.<br />

0 8 16 31<br />

identifier sequence number<br />

data ...<br />

Figure 3-28 Echo <strong>and</strong> Echo Reply<br />

Destination Unreachable (3)<br />

If this message is received from an intermediate router, it means that the router<br />

regards the destination <strong>IP</strong> address as unreachable.<br />

If this message is received from the destination host, it means that either the<br />

protocol specified in the protocol number field of the original datagram is not<br />

active or the specified port is inactive. (Refer to 4.2, “User Datagram Protocol<br />

(UDP)” on page 146 for additional information regarding ports.) See Figure 3-29<br />

for more details.<br />

0 8 16 31<br />

unused (zero)<br />

<strong>IP</strong> header - 64 bits of original data of the datagram<br />

Figure 3-29 ICMP: Destination Unreachable<br />

The ICMP header code field contains one of the following values:<br />

0 Network unreachable<br />

1 Host unreachable<br />

2 Protocol unreachable<br />

3 Port unreachable<br />

4 Fragmentation needed but the Do Not Fragment bit was set<br />

Chapter 3. Internetworking protocols 111

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

Saved successfully!

Ooh no, something went wrong!