Echo protocol

From Wikipedia, the free encyclopedia

The Echo service is an internet protocol defined in RFC 862. It was originally proposed as a way to test and measure an IP network. Now, testing and measurement is more commonly done with ping and traceroute.

A host may connect to a server that supports the Echo protocol on either TCP or UDP port 7. The server then sends back any data it receives, with no modification by the Echo server.

Contents

[edit] Inetd implementation of Echo

On Linux, FreeBSD, and other 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    internal

[edit] Examples of use

  • As a generic network service which is guaranteed to read, and additionally write back, what is sent to it. Such a service is useful for debugging TCP and UDP based network code (such as event-loops) without disrupting the current operation of existing services.

[edit] See also

[edit] External links

Languages