Jump to content

Discard Protocol

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 208.122.95.193 (talk) at 13:12, 8 September 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The DISCARD protocol is an Internet protocol defined in RFC 863. It is intended for testing and measurement purposes.

A host may send data to a host that supports the DISCARD protocol, on either TCP or UDP port 9. Everything sent to the server is discarded. No response is sent back.

Inetd implementation of DISCARD

On Linux, FreeBSD, and other UNIX-like operating systems a discard server is built into the inetd daemon. The discard 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:

discard   stream  tcp     nowait  root    internal
discard   dgram   udp     wait    root    internal

Examples of use

  • The TCP/UDP equivalent of /dev/null. Such a service is guaranteed to receive what is sent to it and can be used for debugging TCP and/or UDP code requiring a guaranteed reception of payload sent.

See also

  • RFC 348, The Discard process
  • RFC 863, The Discard protocol