NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Google
Web TCP/IP Guide






Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Internet Layer (OSI Network Layer) Protocols
           9  Internet Control Message Protocol (ICMP/ICMPv4 and ICMPv6)
                9  ICMP Message Types and Formats
                     9  ICMP Version 4 (ICMPv4) Informational Message Types and Formats

Previous Topic/Section
ICMP Version 4 (ICMPv4) Informational Message Types and Formats
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
ICMPv4 Timestamp (Request) and Timestamp Reply Messages
Next Topic/Section

ICMPv4 Echo (Request) and Echo Reply Messages
(Page 2 of 3)

ICMPv4 Echo and Echo Reply Message Format

Table 96 and Figure 146 show the format for both ICMPv4 Echo and Echo Reply messages.


Table 96: ICMPv4 Echo and Echo Reply Message Format

Field Name

Size (bytes)

Description

Type

1

Type: Identifies the ICMP message type. For Echo messages the value is 8; for Echo Reply messages the value is 0.

Code

1

Code: Not used for Echo and Echo Reply messages; set to 0.

Checksum

2

Checksum: 16-bit checksum field for the ICMP header, as described in the topic on the ICMP common message format.

Identifier

2

Identifier: An identification field that can be used to help in matching Echo and Echo Reply messages.

Sequence Number

2

Sequence Number: A sequence number to help in matching Echo and Echo Reply messages.

Optional Data

Variable

Optional Data: Additional data to be sent along with the message (not specified.)



Figure 146: ICMPv4 Echo and Echo Reply Message Format

 


It is possible that a source device may want to send more than one Echo message to either a single destination or multiple destinations. Conversely, a single destination might receive Echo messages from more than one source. It is essential that a device receiving an Echo Reply knows which Echo prompted it to be sent.

Two special fields are used within the format of these messages to allow Echo and Echo Reply messages to be matched together, and to allow a sequence of messages to be exchanged. The Identifier field was envisioned as being used as a higher-level label, like a session identifier, while the Sequence Number was seen as something to identify individual test messages within a series. However, the use of these fields is up to the particular implementation. In some cases, the Identifier field is filled in with the process number of the application that is using the Echo or Echo Reply message, to allow several users to use utilities like ping without interference.


Previous Topic/Section
ICMP Version 4 (ICMPv4) Informational Message Types and Formats
Previous Page
Pages in Current Topic/Section
1
2
3
Next Page
ICMPv4 Timestamp (Request) and Timestamp Reply Messages
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.