Skip to main content

Higher Level Protocols Built on TELNET

The difficulty noted in RFC 513 concerning the vagueness of "interesting things" occurs when a higher level protocol makes use of the TELNET SYNCH sequence to force commands of interest to it through to its interpreter. A higher level protocol designed in such a way represents a violation of the protocol layering discipline:

The TELNET SYNCH mechanism is being misused by attempting to give it meaning at two different levels of protocol.

The problem stems from the fact that, in general, a (increasing) number of different higher level protocols can be designed with TELNET as a base. A TELNET interpreter has no way of knowing the higher level protocol interpreter (if any) to which it is passing characters, and therefore, can not tell which things are "interesting" to the higher level protocol interpreter. That is, just as an NCP should not have to know whether the data it handles is for a TELNET connection, an FTP data connection, etc., a TELNET interpreter should not be required to know the kind of process for which it is handling characters. This should, in fact, result in a simplification of the design and implementation of TELNET protocol interpreters.

This difficulty can be resolved by proper design of protocols that make use of TELNET as a base. In particular, if in such a higher level protocol it is important to be able to force commands through to the protocol interpreter, the higher level protocol should include its own synch sequence: i.e., an "out of band" signal used with an "in band" data mark. The TELNET protocol provides the Interrupt Process character (IP) for use as an "out of band" signal. A synch sequence for a protocol built upon TELNET would be:

  1. Insert the TELNET IP control character into the data stream;

  2. Insert the higher level protocol data mark character (HDM) into the data stream following whatever higher level protocol commands are important at the time.

Receipt of the IP TELNET command causes the higher level protocol interpreter to be interrupted, enabling it to scan the data stream (up to and including the HDM) for commands it considers important.