Inetd Implementation
On UNIX-like operating systems an echo server is built into the inetd daemon. The echo service is usually not enabled by default. It may be enabled by adding the following lines to the file /etc/inetd.conf and telling inetd to reload its configuration:
echo stream tcp nowait root internal echo dgram udp wait root internalRead more about this topic: Echo Protocol