Files

19 lines
626 B
Markdown
Raw Permalink Normal View History

2020-02-06 12:37:37 -05:00
<div class="cwikmeta" style="visibility:hidden;">
{
"title":"PING",
2020-02-06 18:24:36 -05:00
"related":["/protocol/network/messages/pong.md"]
2020-02-06 12:37:37 -05:00
} </div>
2020-02-06 18:24:36 -05:00
# Request: Ping ("ping")
2020-02-06 12:37:37 -05:00
Connection keep-alive, "aliveness" and latency discovery.
If a node receives a `ping` message, it replies as quickly as possible with a [`pong`](/protocol/network/messages/pong.md) message with the provided *nonce*.
2020-02-06 12:37:37 -05:00
2020-02-06 18:24:36 -05:00
## Message Format
2021-02-24 17:53:28 +01:00
| Field | Length | Format | Description |
2020-02-06 18:24:36 -05:00
|--|--|--|--|
| nonce | 8 bytes | unsigned 64 bit integer<sup>[(LE)](/protocol/misc/endian/little.md)</sup> | An arbitrary value provided to connect the ping message with the `pong` reply. |