📄 rfc725.txt
字号:
NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing Network CAC Technical Memorandum No. 86 CCTC-WAD No. 7508 ARPANET RFC No. 725 NIC No. 38316 An RJE Protocol for a Resource Sharing Network by John Day Gary R. Grossman Prepared for the Command and Control Technical Center WWMCCS ADP Directorate of the Defense Communications Agency Washington, D.C. 20305 under contract DCAl00-76-C-0088 Center for Advanced Computation University of Illinois at Urbana-Champaign Urbana, Illinois 61801 March 1, 1977 Approved for Release - Peter A. Alsberg, Principal InvestigatorNWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkFor many users of the ARPANET, an RJE protocol is probably as importantin terms of utility as a TELNET (VTP) protocol. In fact, the facilitiesprovided by a TELNET and an RJE protocol are probably of most interestto most users of computer networks. For these users, the net provides afast, cheap RJE surrogate, just as TELNET provides a telephone surrogatefor the timesharing user. The collection (and layers) of protocols thatprovide these services must be organized to efficiently support a widevariety of applications and user needs. They should not pose an unduesoftware burden on the user.The "official" NETRJE protocol for the ARPANET has met an underwhelmingresponse from both the user and server community. I believe there aretwo basic reasons. First, a large commitment of resources is necessaryto implement NETRJE. Second, the protocol creates serious securityproblems.In order to support the ARPA RJE protocol, a user must implement UserTelnet, Server FTP, and User RJE, while a server must implement ServerTelnet, User FTP, and Server RJE. In addition when an RJE session isgoing on all three of these protocol implementations will be executingfor most of the life of the session. This could entail considerableburden for some systems. Although it may not be out of line to requirea service to shoulder such burdens, it is out of line to require a userto assume them in order to gain a rather basic service. Most userinstallations are oriented toward meeting their user's needs not towardimplementing large amounts of network software. (In fact one of thebetter aspects of the previous ARPANET protocol designs was that theyattempted to minimize the work for the user. (It must be admittedthough that compassion for the user was not the reason for thisapproach.)In order to support a "hot line printer" (i.e., a job is automaticallyprinted when it is completed), the user must store his user code andpassword for the output host at the server host. This, of course,presents a rather severe security problem. Although the ARPANET can notbe made totally secure without massive revision, there are some basicprecautions that can be taken to protect users from being victimized byevery first year Computer Science student with access to the net.The RJE protocol proposed here tries to mitigate the implementationproblems and security problems. The protocol is designed to providethree levels of service. A user or server has the perogative toimplement the protocol at whatever level their resources allow. Theservice can then be upgraded to cleaner or more sophisticated approacheswhen and if the opportunity arises.This protocol is described in terms of the ARPANET. Several aspects of [page 1]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing Networkthe design (such as the reply structure) were made to coincide withexisting ARPANET conventions. This was done to facilitate understandingand limit the discussion to the protocol itself. Although the protocolis described in ARPANET terms, it should be applicable to other networkenvironments.This paper is not considered to be complete in every detail. It waswritten primarily to elicit comments from the network community and tomeasure the desire of the community to adopt such a procedure. We havetried to describe enough of the protocol so that the reader can get anidea of how things are to work without getting bogged down in the detailthat would be necessary for implementation. Below is an outline of thefinal protocol document as presently conceived. Sections marked with anasterisk are to be provided later. [page 2]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkIntroductionPart I The NETRJE Models 1. Telnet (VTP) Model 2. Telnet with Data Transfer Model 3. Telnet with FTP Model Scenarios for the Models* Suggested Implementaton Schemes for Various ApplicationsPart II The Server RJE Commands* General Conventions Commands Replies Numerical List Command-Reply List* Details of the Data Transfer* Minimal Requirements for a User RJE* Minimal Requirements for a Server RJE* Glossary of Terms [page 3]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkPart I THE NETRJE MODELS------------------------This section describes the proposed NETRJE protocol in a narrative form.A formal definition will be included in Part II after review. Thenarrative should provide the general reader with the flavor of theprotocol without getting bogged down in unnecessary detail. Theproposed NETRJE protocol provides three different models for jobsubmission and retrieval. The three models can be characterized as 1)RJE using Telnet only, 2) RJE using Telnet and Data Transfer, and 3) RJEusing FTP. This approach provides flexibility for both implementors andusers. User and server sites constrained by manpower or machineresources may implement only the simpler models. The user may use thedifferent models separately or in any consistent combination which bestsuits his requirements and convenience. Servers should assume that theminimal implementation of a more sophisticated model includes theminimal implementations of all less sophisticated models. (There are,however, certain minimal requirements that must be supported.) Thissecton will discuss each of these models in turn, and show each one canbe used to provide a useful network RJE functon.This protocol does not contain the security difficulties of the presentprotocol. This has been avoided by requiring that the burden ofimplementing the "hot line printer" or "hot card reader" be put on theuser system. Thus, those systems which desire such a facility may stillsupport it. The user implementaton will be slightly more complicated.The trade-off is the increased security of the protocol.End-to-end protocols are assumed to be available and to provide anordered, error free bit stream to the RJE protocol. It is also assumedthat a suitable virtual terminal protocol such as Telnet, is used toformat the control connection.RJE Using Only Telnet (VTP)---------------------------The intent of this model is, bluntly, to provide an official "quick anddirty" form of the protocol. Many organizatons, both users and servers,are often confronted with problem of providing a service quickly orwithin very tight budgetary constraints. This model is intended forthese situations. With this model, the user is required only to be ableto establish a Telnet connection via the RJE contact socket. Commands,replies, and data are all sent over the Telnet connecton. Card input orprinter output has the appearance of coming from or going to the user'sterminal. The user's system may allow output to be diverted from theterminal to another device such as the line printer. The technique ofdiverting terminal output was used with great success in the MARK I ANTS [page 4]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing Networksystems where various devices were not assigned socket numbers as in aTIP. This technique is also useful for hosts that allow program accessto the network only through the user's Telnet connection. Thissituation may exist in the early phases of a server's availability tothe network. When data is transferred in this mode an end-of-datamarker will be sent to aid the receiving host in determining when tostop diverting the data. This model will have to handle the problems ofdata traveling on a connection essentially meant for control. The useof this data transfer mechanism is intended as an intermediate measurerequired by limited resources. For now we let it stand that thedesigners are aware of the problems inherent in embedding commands orreplies in the data stream. We will leave the exact resolution of theproblem to the formal definition.This proposed NETRJE protocol uses a schedule verb, SCHED for jobsubmission. For this model, there are two forms of SCHED that arerelevant. First, there is the "SCHED <server pathname>" form. Thiscommand indicates to the server that there exists at the server site afile with all necessary job control information and data to define ajob. The server will then attempt to place the job in the job queue andreply to the user indicating success or failure and possibly a job-id.This job-id will be used when inquiring about the job status orretrieving 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 jobcontrol or possibly a program. It also allows those users whose localsystems provide a facility to transmit files with User TELNET totransmit user input job fles in this way. The RJE Server would insertthe job into the local job stream, returning the proper indication ofsuccess or failure along with identification of the job.Just as the SCHED command provides several ways for job submission, theOUTPUT command provides several options for retrieving output. The form [page 5]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing Network OUTPUT<job-id><server pathname>DISCARDis sent to the server to initiate the output to the user's siteaccording to output specifications defined by previous OUTDEF commands(see below). The optional DISCARD argument to the OUTPUT commandindicates, if present, that the file is to be destroyed aftertransmission has completed successfully.The OUTDEF command for a job may be sent at any time after the job hasbeen scheduled and before it is retrieved using the OUTPUT command.This command will specify the parameters necessary to effect thetransfer of the output to the user or to define the disposition of theoutput. We realize that the OUTDEF <job-id><server pathname> command(indicating that output is to be placed in a file described by thepathname) may be difficult for some systems to implement. These systemswould merely respond negatively indicating their inability to performthe function.A scenario is now in order to illustrate the model. The user has loggedin 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>TREKThe system responds with a reply indicating the job has been submittedsuccessfully 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 thatthe job should be sent on the TELNET connection. A reply returns XXX last command successful.The user now sends OUTPUT XA1423and 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. [page 6]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkThis exchange allows the user to effect output diversion at his localsite if necessary after he has confirmed the server is ready.If the user had not wished to wait on his output and had logged offafter getting the successful submission, the next time the user loggedin he could inquire as to the status of the job or all jobs under hisusercode and then proceeded to output any or all of them.RJE with TELNET and Data Transfer---------------------------------The previous model provided a minimal implementation for NETRJE. Thismodel provides better data transfer facilities without requiring an FTPimplementation. This model requires no new commands, but doesmanipulate connections differently, so that data is not required to flowon the command connection (see Fig. 2). Data is sent on separatedefault connections (unless otherwise specified) as in the CCN NETRJSprotocol. However, for this protocol the defaults used will be the sameoffsets from the control connection as those in FTP.The use of this model is indicated to the Server by either the INDEFcommand or a SCHED command with no arguments. The INDEF command allowsthe user to specify a socket other than the default socket as the sourceof the input. On receipt of the SCHED or INDEF indicating thistechnique is to be used, the Server will attempt to connect to theappropriate socket. If a SCHED command was sent, the user protocolinterpreter could start sending cards as soon as the data connection isestablished. (It is assumed that the user interface has indicated tothe RJE protocol interpreter where the cards are to come from.) If thecommand was INDEF, then the Server will not start reading until theSCHED is received. Similarly, when the output is ready, either anOUTDEF or OUTPUT command is sent to set up and start the printing. TheINDEF and OUTDEF commands used with this mode will also allow movingdata to or from a TIP or printer.This model requires definiton of actual data transfer formats for thereader and printer lines. We propose that the formats and connectionschemes of the present FTP be adopted. This solution has the advantageof not requiring extra coding efforts for users with FTP implementationsand may allow them to organize their FTP implementations and may allowthem to organize their FTP and NETRJE implementations in such a way asto take advantage of common algorithms. One might easily confuse thissolution with a revival of the Data Transfer Protocol. Some thought ona more rigorous definition of a Data Transfer Protocol for the commonuse of FTP and RJE might be worthwhile in the future. [page 7]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkLet us consider a scenario.The user wishes to submit a card deck to the Server. He then types SCHED<CRLF>The Server opens a connection to the user's default card reader socketwhile sending a reply to the user on the control connection. XXX attempting connection to card reader.When the connection is opened, another reply: XXX transfer startedand when completed: XXX JOB XA 1423 was successfully submitted.When the job completes and the completion message is sent to the user,he may wish to send the output to his TIP printer on socket Y. He willthen type OUTDEF XA1423 255, Y (255 being his host address).The Server will then attempt to connect to the socket and will reply XXX printer connection successful.When the user has satisfied himself all is in readiness, he will type OUTPUT XA1423and the Server will start sending and reply to the user XXX print started.When the transfer is complete the Server will close the data connectionand send an appropriate reply. [page 8]NWG/RFC# 725 DAY GRG 25-APR-77 12:41 38316An RJE Protocol for a Resource Sharing NetworkNETRJE Using FTP----------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -