ArticleslgStudy

computer science

TD/SMP

TD/SMP is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TD/SMP rather than just read about it. In short: TD/SMP, short for Terminal Device/Session Management Protocol, was a terminal multiplexer system introduced by DEC on their VT330/340 terminals in 1987. The terminal-side software was referred to as SSU, for Session Support Utility.

Key takeaways

  • TD/SMP belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TD/SMP to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TD/SMP from memory before moving on to harder problems.

Reference excerpt

TD/SMP, short for Terminal Device/Session Management Protocol, was a terminal multiplexer system introduced by DEC on their VT330/340 terminals in 1987. The terminal-side software was referred to as SSU, for Session Support Utility. TD/SMP allowed data from two separate host sessions to be sent to a compatible computer terminal over a single serial port. Earlier terminals had supported multiple sessions, but using separated physical connections to the host. Using TD/SMP also allowed you to free up any additional serial ports, for running a printer or similar tasks. The format was patented and never described in depth, limiting it to DEC's own terminal servers and terminals. More recently, the protocol has been reverse engineered by retrocomputing programmers. The system worked by embedding short commands, typically around six bytes long, into a serial connection. Commands started with the DC4 (0x14) character and ending with FS (0x1C), with the commands themselves consisting of a single character followed by, typically, two single-byte parameter values. All of the data was encoded by adding 0x40 to the decimal value to ensure the resulting string was within the printable character range, so a 0 would be sent as @. The exception to this rule were session names, which were encoded as decimal numbers, so session A was encoded as 1. Sessions normally started at 1, and session 0 referred to all sessions, used with RESET and certain other messages. When being used, certain control characters had to be escaped, sending a real DC4 with a DC4 and then the letter T, or Q and S for XON and XOFF. The system supported multiple named sessions and could switch data flow between them. When a connection was first started, the terminal sent a PROBE message to start the system up, or not do this if it wished to operate like a normal terminal without multiple sessions. If PROBE was sent, the host would respond with a short four-character message stating whether it was opening a new connection or if this user had previous sessions already open that it would want to reconnect. A series of OPEN_SESSION and REQUEST_RESTORE and similar messages were used to reconnect if desired. Once the connections were set up, either end could use SELECT_SESSION, after which any additional data from that end would be sent to that connection. For instance, the host could update multiple sessions by sending SELECT_SESSION, data, and then another SELECT_SESSION in series. Either end could select any open session at any time. DEC terminals generally lacked hardware flow control and used XON/XOFF. Host machines were often slow to respond to these characters, which risked the possibility of overflowing the buffers in the host or terminal server and losing data. To address this, TD/SMP introduced the concept of "credits" that controlled how much data each side of the connection could send before it was sent. For instance, a terminal server on a host machine might have a 2 kB buffer for any given connection, and during session setup it would send the ADD_CREDITS message to the terminal to something close to 2,000, say 1,800 bytes. This allows the terminal to start sending data, subtracting one from the credits for every character, and stopping if the value ever reaches zero. Similarly, the terminal might send a similar message to the host to add 4,000 credits, giving it room to send several pages of data and allowing the terminal to do local scrolling up and down. It was up to the implementations on both ends of the connection to periodically send ADD_CREDITS messages so the other end did not run out in the middle of a session. For instance, the host might add another 1,000 credits to the incoming connection when it saw the remaining credits had dropped to 800. Either end could force the connection to stop by sending a ZERO_CREDITS message, and enquire using VERIFY_CREDITS.

References

Worked examples

Example 1 — a first encounter with TD/SMP

Start with the simplest possible case. Write down what TD/SMP claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TD/SMP before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TD/SMP ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TD/SMP

In research
TD/SMP appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TD/SMP in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TD/SMP is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer-related introductions in 1987, Computing stubs, Digital Equipment Corporation, so understanding it makes those chapters shorter.
In everyday life
Look for TD/SMP outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TD/SMP” →

How to study TD/SMP in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TD/SMP means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TD/SMP out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TD/SMP in simple terms?

TD/SMP, short for Terminal Device/Session Management Protocol, was a terminal multiplexer system introduced by DEC on their VT330/340 terminals in 1987. The terminal-side software was referred to as SSU, for Session Support Utility.

Why does TD/SMP matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TD/SMP?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TD/SMP.

Tags

  • Computer-related introductions in 1987
  • Computing stubs
  • Digital Equipment Corporation
  • Terminal multiplexers

Keep exploring