Skip to main content

2. The Generic Echo Function

The following section will describe the echo function in a generic fashion. This memo defines an echo-request entity. The function of the echo-request entity is to accept an incoming echo-request PDU, perform some processing, and generate an echo-reply PDU. Depending on the echo implementation, the echo-request entity may be thought of as an entity that exists above the network layer, or as an entity that co-exists with the network layer. Subsequent sections will detail the short and long term implementation mechanisms.

For the purposes of this memo, the term "ping" shall be used to mean the act of transmitting an echo-request PDU to a remote system (with the expectation that an echo-reply PDU will be sent back to the transmitter).

2.1 The Echo Request​

When a system decides to ping a remote system, an echo-request is built. All fields of the PDU header are assigned normal values (see implementation specific sections for more information). The address of the system to be pinged is inserted as the destination NSAP address. The rules of segmentation defined for a DT PDU also apply to the echo-request PDU.

The echo-request is switched through the network toward its destination. Upon reaching the destination system, the PDU is processed according to normal processing rules. At the end of the input processing, the echo-request PDU is delivered to the echo-request entity.

The echo-request entity will build and dispatch the echo-reply PDU. This is a new PDU. Except as noted below, this second PDU is built using the normal construction procedures. The destination address of the echo-reply PDU is taken from the source address of the echo-request PDU. Most options present in the echo-request PDU are copied into the echo-reply PDU (see implementation notes for more information).

2.2 The Echo Reply​

The entire echo-request PDU is included in the data portion of the echo-reply PDU. This includes the echo-request PDU header as well as the any data that accompanies the echo-request PDU. The entire echo-request PDU is included in the echo-reply so that fields such as the echo-request lifetime may be examined when the reply is received. After the echo-reply PDU is built, it is transmitted toward the new destination (the original source of the echo-request). The rules of segmentation defined for a DT PDU also apply to the echo-reply PDU.

The echo-reply PDU is relayed through the network toward its destination. Upon reaching its destination, it is processed by the PDU input function and delivered to the entity that created the echo-request.