Skip to main content

II. Overview of the Data Reconfiguration Service

Elements of the Data Reconfiguration Service​

An implementation of the Data Reconfiguration Service (DRS) includes modules for connection protocols, a handler of some requests that can be made of the service, a compiler and/or interpreter (called the Form Machine) to act on those requests, and a file storage module for saving and retrieving definitions of data reconfigurations (forms). This section highlights connection protocols and requests. The next section covers the Form Machine language in some detail. File storage is not described in this document because it is transparent to the use of the service and its implementation is different at each DRS host.

Conceptual Network Connections​

There are three conceptual network connections to the DRS, see Fig. 1.

  1. The control connection (CC) is between an originating user and the DRS. A form specifying data reconfiguration is defined over this connection and is applied to data passing over the two connections described below.
  2. The user connection (UC) is between a user process and the DRS.
  3. The server connection (SC) is between the DRS and the serving process.

Since the goal is to adapt the network to user and server processes, a minimum of requirements are imposed on the UC and SC.

      +-------------+   CC   +-----------+   SC   +-----------+
| ORIGINATING +--------+ DRS +--------+ SERVER |
| USER | ^ | | ^ | PROCESS |
+-------------+ | +------+----+ | +-----------+
| / |
Telnet / <------ Simplex or Duplex
Protocol UC/ Connections
Connection /
/
+-----+-----+
| USER |
| PROCESS |
+-----------+

Figure 1. DRS Network Connections

Connection Protocols and Message Formats​

Over a control connection the dialog is directly between an originating user and the DRS. Here the user is defining forms or assigning forms to connections for reformatting.

The user connects to the DRS via the initial connection protocol (ICP) specified in NWG/RFC #80, version 1. Rather than going through a logger, the user calls on a particular socket on which the DRS always listens. DRS switches the user to another socket pair.

Messages sent over a control connection are of the types and formats to be specified for TELNET. Thus, a user at a terminal should be able to connect to a DRS via his local TELNET, for example, as shown in Fig. 2.

                                          +--------------+
+--------+ CC | |
+-------+ TELNET +-------+ DRS |
| +--------+ | |
| +--------------+
+----------+---------+
| USER |
|(TERMINAL OR PROGRAM|
+--------------------+

Figure 2. A TELNET Connection to DRS

When a user connects to DRS he supplies a six-character user ID (UID) as a qualifier to guarantee the uniqueness of his form names. He will have (at least) the following commands:

  1. DEFFORM (name)

  2. ENDFORM (name)

    These two commands define a form, the text of which is chronologically entered between them. The (name) is six characters. The form is stored in the DRS local file system.

  3. PURGE (name)

    The named form, as qualified by the current UID, is purged from the DRS file system.

  4. LISTNAMES (UID)

    The unqualified names of all forms assigned to UID are returned.

  5. LISTFORM (name)

    The source text of a named form is returned.

  6. DUPLEXCONNECT (user site, user send, user receive, user method, server site, server send, server receive, server method, user-to-server form, server-to-user form)

  7. SIMPLEXCONNECT (send site, send socket, send method, receive site, receive socket, receive method, form)

Either one, both, or neither of the two parties specified in 6 or 7 may be at the same host as the party issuing the request. Sites and sockets specify user and server for the connection. Method indicates the way in which the connection is established. Three options are provided:

  1. Site/socket already connected to DRS as a dummy control connection. (A dummy control connection should not also be the real control connection.)
  2. Connect via standard ICP. (Only for command no. 6.)
  3. Connect directly via STR, RTS.

Example Connection Configurations​

There are basically two modes of DRS operation: 1) the user wishes to establish a DRS UC/SC connection(s) between two programs and 2) the user wants to establish the same connection(s) where he (his terminal) is at the end of the UC or the SC. The latter case is appropriate when the user wishes to interact from his terminal with the serving process (e.g., a logger).

In the first case (Fig. 1, where the originating user is either a terminal or a program) the user issues the appropriate CONNECT command. The UC/SC can be simplex or duplex.

The second case has two possible configurations, shown in Figs. 3 and 4.

              +--------+  CC  +--------+      +------+
| +------+ | SC | |
+------+ /| TELNET | UC | DRS +------+ SP |
| |/ | +------+ | | |
| USER | /+--------+ +--------+ +------+
| |/
+------+

Figure 3. Use of Dummy Control Connection

+--------+
+------+ /| USER | CC +--------+ +------+
| |/ | SIDE +------+ | SC | |
| USER | +--------+ UC | DRS +------+ SP |
| |\ | SERVING+------+ | | |
+------+ \| SIDE | +--------+ +------+
+--------+

Figure 4. Use of Server TELNET

In Fig. 3 the user instructs his TELNET to make two duplex connections to DRS. One is used for control information (the CC) and the other is a dummy. When he issues the CONNECT he references the dummy duplex connection (UC) using the "already connected" option.

In Fig. 4 the user has his TELNET (user side) call the DRS. When he issues the CONNECT the DRS calls the TELNET (server side) which accepts the call on behalf of the console. This distinction is known only to the user since to the DRS the configuration in Fig. 4 appears identical to that in Fig. 1. Two points should be noted:

  1. TELNET protocol is needed only to define forms and direct connections. It is not required for the using and serving processes.
  2. The using and serving processes need only a minimum of modification for network use, i.e., an NCP interface.