Echo Protocol
A tiny service that sends back whatever it receives, used as a debugging and measurement tool.
Postel, J., "Echo Protocol", STD 20, RFC 862, DOI 10.17487/RFC0862, May 1983, <https://www.rfc-editor.org/info/rfc862>.
@misc{rfc862,
series = {Request for Comments},
number = 862,
howpublished = {RFC 862},
publisher = {RFC Editor},
doi = {10.17487/RFC0862},
url = {https://www.rfc-editor.org/info/rfc862},
author = {J. Postel},
title = {{Echo Protocol}},
pagetotal = 1,
year = 1983,
month = may,
} RFC text
Network Working Group J. Postel
Request for Comments: 862 ISI
May 1983
Echo Protocol
This RFC specifies a standard for the ARPA Internet community. Hosts on
the ARPA Internet that choose to implement an Echo Protocol are expected
to adopt and implement this standard.
A very useful debugging and measurement tool is an echo service. An
echo service simply sends back to the originating source any data it
receives.
TCP Based Echo Service
One echo service is defined as a connection based application on TCP.
A server listens for TCP connections on TCP port 7. Once a
connection is established any data received is sent back. This
continues until the calling user terminates the connection.
UDP Based Echo Service
Another echo service is defined as a datagram based application on
UDP. A server listens for UDP datagrams on UDP port 7. When a
datagram is received, the data from it is sent back in an answering
datagram.
AI ELI5
On this page
§1What an Echo Service Is
The RFC calls an echo service a very useful debugging and measurement tool. It simply sends back to the originating source any data it receives. Hosts that choose to implement an Echo Protocol are expected to adopt this standard; implementing it is optional.
Send it anything and it hands the same thing back, which shows the connection works.
§2TCP and UDP Echo
The TCP-based service is connection based. A server listens for TCP connections on port 7. Once a connection is established, any data received is sent back, and this continues until the calling user terminates the connection.
The UDP-based service is datagram based. A server listens for UDP datagrams on port 7. When a datagram is received, its data is sent back in an answering datagram.
On a phone call (TCP) it repeats everything until you hang up. By postcard (UDP) it mails back each postcard's message.
§3Standard Status
RFC 862 is an Internet Standard from May 1983. The text is short and defines only the two port 7 behaviors above; it sets no message format, limits or security rules.
It is a very small rulebook with only two rules: listen on number 7 and send back what you hear.