⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc123.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
字号:
Network Working Group                                         S. CrockerRequest for Comments: 123                                           UCLANIC #5837                                                    20 April 71Categories: D.1Obsoletes: RFCs 66, 80Updates: RFCs 98, 101                        A Proferred Official ICPBy Initial Connection Protocol (ICP), I mean a third level protocolwhich is initiated by a user process at one site in order to contact aserver process at another site.  Typically, the user process will be aTelnet and the server process will be a logger, but there may be othercases.In this RFC, I wish to describe a family of ICPs suitable forestablishing one pair of connections (one in each direction) between anyuser process and any server process, and to propose further a particularsubset of this family as the standard ICP for connecting user processesto loggers on systems which accept teletype-like devices.NotationWe have no standard notation for describing system calls which initiateand close connections or cause data to be sent, so I will use thefollowing ad hoc notation.Init (local = l, foreign = f, size = s)   causes the local Host to attempt to establish a connection between   socket l at the local Host and socket f, with a byte size of s for   the connection.   l is a 32 bit local socket number,   f is a 40 bit foreign socket number, the high-order eight bits   of which specify the foreign Host, and   s is an eight bit non-zero byte size.   The sum of l and f must be odd.Listen (local = l, size = s)   causes the local Host to wait for a request for connection to local   socket l with byte size s.  The process will be woken when a   connection is established.  The parameters l and s are the same as   for Init.                                                                [Page 1]Send (socket = l, data = d)   The data named by d is sent over the connection attached to local   socket l. l must be a send socket attached to a connection.  d is the   name of a data area.Receive (socket = l, data = d)   The receive side counterpart to send.Close (socket = l)   Any connection currently attached to a local socket l is closed.A Family of ICPsBriefly, a server process at a site attaches a well-advertised sendsocket L and listens.  A user process initiates connection to L from itsreceive socket U.  The byte size for this connection is 32.  The serverprocess then transmits a 32-bit even number S and closes the connection.The 32-bit number S and its successor, S+1, are the socket number theserver will use.  The final steps are for sockets S and S+1 at theserver site to be connected to sockets U+1 and U respectively at theuser site.Using the notation, the server executes the following sequence:   Listen (socket = L, size = 32)   [Wait until a user connects]   Send (socket = L, data = S)   Close (socket = L)   Init (local = S, foreign = U+1, size = Bu)   Init (local = S+1, foreign = U, size = Bs)The user executes the following:   Init (local = U, foreign = L, size = 32)   Receive (socket = U, data = S)   Close (socket = U)   Init (local = U+1, foreign = S, size = Bu)   Init (local = U, foreign = S+1, size = Bs)Note that L is a send socket (odd), while S and U are receive sockets(even).  Where L, S or U are used as values of local, they are 32-bitnumbers; where they are values of foreign, they are 40-bit numbers.  Theparameters Bs and Bu are the byte sizes to be sent by the server anduser, respectively.                                                                [Page 2]Examination of the above sequences reveals that an ICP is characterizedby the three numbers L, Bs and Bu, and must meet the restrictions that   (a) L is a send socket,   (b) Bs and Bu are legal byte sizes, and   (c) for each L there is only on pair of associated byte sizes.This last restriction prevents two distinct services from beingavailable through the same socket and distinguished only by the bytesizes.Telnet ICPFor connecting teletype-like users, i.e. interactive and ASCII, to Hostsserving such users, I propose an ICP of the form described above andcharacterized by L = 1, Bs = Bu = 8. [There has been some confusionabout socket numbers.  Here I specifically mean L = X00000001]FormalitiesI propose that the Telnet ICP be made official.  Comments should bepublished before the May NWG meeting, the subject will be discussedthere, and we will decide there to accept or reject this protocol.       [ This RFC was put into machine readable form for entry ]          [ into the online RFC archives by Jeff Sorte 5/97 ]                                                                [Page 3]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -