Summary
- RFC 854, May 1983, specifies Telnet as "a fairly general, bi-directional, eight-bit byte oriented communications facility", and says a Telnet connection is "a Transmission Control Protocol (TCP) connection used to transmit data with interspersed TELNET control information".
- It rests on three ideas, named in the document: "the concept of a 'Network Virtual Terminal'", "the principle of negotiated options", and "a symmetric view of terminals and processes".
- The cost of mixing is explicit: commands are "the 'Interpret as Command' (IAC) escape character followed by the code for the command", so a data byte equal to the escape must be sent twice — the document's own summary being that "only the IAC need be doubled to be sent as data, and the other 255 codes may be passed transparently".
Three ideas that outlived the protocol
Almost every detail of Telnet is archaeology now. The three organising ideas are not: model the endpoint with something neutral, let both sides negotiate features on top of that model, and treat both ends as equals.
Every remote-terminal system since has had to answer the same three questions. Most answered by copying Telnet's skeleton and swapping the transport underneath — the compliment every protocol claims to want and none enjoys receiving.
The imaginary device
Telnet does not describe a terminal. It describes an "imaginary device" that provides "a standard, network-wide, intermediate representation of a canonical terminal", and then requires both ends to map their real hardware onto it.
That is a compiler trick applied to hardware: fix one intermediate form, write two translators, and skip the arithmetic of mapping every terminal to every other terminal. The naive approach needs a translator for every pair of terminal types; the virtual terminal needs one per terminal. The saving is the entire idea.
Negotiation inside the stream
Either party may ask for an option, and the document is precise about what the answer means: accepted, and the option takes effect immediately; refused, and the connection stays exactly as it was. No third state, no half-changed session waiting for a round trip to finish.
The awkward part is the plumbing. There is one connection, so the requests travel in the same direction as the text, interleaved with it. A byte of 255 in the middle of a session is not necessarily a character anyone typed. That is why the reader cannot be a filter scanning for patterns; it has to be a state machine that knows what it is in the middle of.
One escape byte, doubled
The design prices this honestly, which is more than most designs manage. Commands begin with a single escape byte. Any data byte carrying that same value is sent twice, so the receiver can tell a command from a coincidence.
The document states the trade in as many words: with one reserved value, "only the IAC need be doubled" while "the other 255 codes may be passed transparently". Reserve ten magic values and you have bought ten doubling rules, each paid on every payload, forever. The escape budget is set once and invoiced continuously.
Symmetry as a design value
Both endpoints are terminal and process at once; the document insists on the symmetric view rather than the client-and-server casting we now take for granted. It is elegant, and it doubles the work: every implementation must be able to negotiate in both directions, because neither side is the boss.
Later protocols largely abandoned it. Client and server roles make the state machines smaller, and the internet reliably chose smaller machines over symmetry. Telnet's symmetry is the road not taken, and the reason it is not taken is that asymmetry is cheaper to build and easier to debug.
The bill, forwarded
Telnet was not the last protocol to put its commands in the same pipe. SMTP's rule that a line consisting of a single period must be doubled is the same idea in a different hat: one reserved sequence, one doubling rule, one parser that has to be a state machine.
FTP took the other branch — a control connection and a separate data connection — and spent the following decades explaining itself to firewalls. The clean separation that looked tidier in 1985 became the design that needed helpers to survive.
So the trade is not settled even now. In-band control is cheap to specify and expensive to parse. Out-of-band control is clean to parse and expensive to keep open. Every protocol picks one and inherits the other's bill.
What the choice teaches
The cost of an in-band design scales with the size of the command space and the frequency of the escaped byte. Choose the reserved values as if each one will be paid for by every payload ever sent, because it will.
Telnet picked the option that needed no second connection, paid for it with one escape rule, and left the next generation an argument that has never really ended: how much structure belongs in the same stream as the message.
The spec writer pays once. The parser pays every time. Designs that look cheap are usually just invoiced to someone else.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






