RJE Using Only Telnet (VTP)
The intent of this model is, bluntly, to provide an official "quick and dirty" form of the protocol. Many organizatons, both users and servers, are often confronted with problem of providing a service quickly or within very tight budgetary constraints. This model is intended for these situations. With this model, the user is required only to be able to establish a Telnet connection via the RJE contact socket. Commands, replies, and data are all sent over the Telnet connecton. Card input or printer output has the appearance of coming from or going to the user's terminal. The user's system may allow output to be diverted from the terminal to another device such as the line printer. The technique of diverting terminal output was used with great success in the MARK I ANTS systems where various devices were not assigned socket numbers as in a TIP. This technique is also useful for hosts that allow program access to the network only through the user's Telnet connection. This situation may exist in the early phases of a server's availability to the network. When data is transferred in this mode an end-of-data marker will be sent to aid the receiving host in determining when to stop diverting the data. This model will have to handle the problems of data traveling on a connection essentially meant for control. The use of this data transfer mechanism is intended as an intermediate measure required by limited resources. For now we let it stand that the designers are aware of the problems inherent in embedding commands or replies in the data stream. We will leave the exact resolution of the problem to the formal definition.
This proposed NETRJE protocol uses a schedule verb, SCHED for job submission. For this model, there are two forms of SCHED that are relevant. First, there is the "SCHED <server pathname>" form. This command indicates to the server that there exists at the server site a file with all necessary job control information and data to define a job. The server will then attempt to place the job in the job queue and reply to the user indicating success or failure and possibly a job-id. This job-id will be used when inquiring about the job status or retrieving the job's output.
When the job finishes, the server will take one of two actions:
- a) if the user is still logged in, the server will send a reply notifying the user of his job completion; or,
- b) if the user is not logged in, the server will save the status of the job which may later be interrogated via the STATUS command (see below).
The otherform of SCHED of relevance to this model has the syntax:
SCHED INPUT <CRLF><data><CRLF>.<CFLF>
This allows the user to sit down at a terminal and type his own job control or possibly a program. It also allows those users whose local systems provide a facility to transmit files with User TELNET to transmit user input job fles in this way. The RJE Server would insert the job into the local job stream, returning the proper indication of success or failure along with identification of the job.
Just as the SCHED command provides several ways for job submission, the OUTPUT command provides several options for retrieving output. The form
OUTPUT<job-id><server pathname>DISCARD
is sent to the server to initiate the output to the user's site according to output specifications defined by previous OUTDEF commands (see below). The optional DISCARD argument to the OUTPUT command indicates, if present, that the file is to be destroyed after transmission has completed successfully.
The OUTDEF command for a job may be sent at any time after the job has been scheduled and before it is retrieved using the OUTPUT command. This command will specify the parameters necessary to effect the transfer of the output to the user or to define the disposition of the output. We realize that the OUTDEF <job-id><server pathname> command (indicating that output is to be placed in a file described by the pathname) may be difficult for some systems to implement. These systems would merely respond negatively indicating their inability to perform the function.
A scenario is now in order to illustrate the model. The user has logged in to Multics and is ready to submit an RJE job in the following way (XXX will denote the as yet unspecified reply code for the reply):
SCHED MY-JOB>TREK
The system responds with a reply indicating the job has been submitted successfully and returns a job-id, say XA1423.
XXX JOB XA1423 was successfully submitted.
At some later time a message appears.
XXX JOB XA1423 has completed.
The user or user process now sends OUTDEF XA1423 TELNET indicating that the job should be sent on the TELNET connection. A reply returns
XXX last command successful.
The user now sends
OUTPUT XA1423
and the server replies with
XXX Output ready. Type an empty line when ready.
The user then sends an empty line when he is read to receive the output. This exchange allows the user to effect output diversion at his local site if necessary after he has confirmed the server is ready.
If the user had not wished to wait on his output and had logged off after getting the successful submission, the next time the user logged in he could inquire as to the status of the job or all jobs under his usercode and then proceeded to output any or all of them.