- Id: RS-014.
- Status: Working draft.
- Type: Implementation.
This document describes Ping, a trivial service used to test the underlying implementation and deployment of Relaynet, thus mitigating integration issues.
Relaynet consists of endpoints, gateways and couriers, which may run on different operating systems, on different hardware and in different physical environments. These components support different messaging protocols and message transport bindings, and may be built and run by different organizations.
This specification mitigates the integration issues that could arise from the implementation and deployment of Relaynet by offering a very simple service that can be used to test that applications can exchange messages.
Ping is a trivial service: Given applications A and B, application A sends a ping message to application B, to which application B has to respond with a pong message.
A transaction is initiated with a ping message and is completed when the pong message reaches its destination.
The two applications MAY continue to run subsequent transactions. This could be useful to test the stability of the channel and the underlying session provided by the Channel Session Protocol.
This service employs the following messages.
This is the message that initiates a transaction. Its type MUST be
application/vnd.relaynet.ping-v1.ping, and its payload MUST comply with the following byte sequence (little-endian):
- The ping id: A sequence of exactly 36 octets. It SHOULD be a UUID4 value.
- The DER serialization of the Parcel Delivery Authorization (PDA) to use to reply with a pong message. This value MUST be length-prefixed with a 14-bit unsigned integer (2 octets), so the maximum length of the DER-encoded PDA is 16 KiB.
This message MUST be sent by the application receiving a ping message. Its type MUST be
application/vnd.relaynet.ping-v1.pong. The payload MUST be a sequence of 36 octets representing the ping id.