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

📄 rfc1350.4up.ps

📁 this gives details of the network programming
💻 PS
📖 第 1 页 / 共 4 页
字号:
/do_header {	% print default simple header  gsave    d_header_x d_header_y HFpt_h 3 div add translate    HF setfont    user_header_p {      5 0 moveto user_header_left_str show      d_header_w user_header_center_str stringwidth pop sub 2 div      0 moveto user_header_center_str show      d_header_w user_header_right_str stringwidth pop sub 5 sub      0 moveto user_header_right_str show    } {      5 0 moveto fname show      45 0 rmoveto fmodstr show      45 0 rmoveto pagenumstr show    } ifelse  grestore} def%%EndResource/d_page_w 547 def/d_page_h 794 def/d_header_x 0 def/d_header_y 779 def/d_header_w 547 def/d_header_h 15 def/d_footer_x 0 def/d_footer_y 0 def/d_footer_w 547 def/d_footer_h 0 def/d_output_w 547 def/d_output_h 779 def/cols 1 def%%EndSetup%%Page: (1-4) 1%%BeginPageSetup_S24 818 translate%Page: (1) 1%BeginPageSetup_S% N-up sub-page 1/40 -392 translate0.490859 dup scale/pagenum 1 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1350.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1350.txt) def% User defined strings:/fmodstr (Wed Jul 08 00:00:00 1992) def/pagenumstr (1) def/user_header_p true def/user_header_left_str (RFC1350) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 1 of 11) def%%EndPageSetupdo_header5 686 M(Network Working Group                                         K. Sollins) s5 673 M(Request For Comments: 1350                                           MIT) s5 660 M(STD: 33                                                        July 1992) s5 647 M(Obsoletes: RFC 783) s5 608 M(                     THE TFTP PROTOCOL \(REVISION 2\)) s5 582 M(Status of this Memo) s5 556 M(   This RFC specifies an IAB standards track protocol for the Internet) s5 543 M(   community, and requests discussion and suggestions for improvements.) s5 530 M(   Please refer to the current edition of the "IAB Official Protocol) s5 517 M(   Standards" for the standardization state and status of this protocol.) s5 504 M(   Distribution of this memo is unlimited.) s5 478 M(Summary) s5 452 M(   TFTP is a very simple protocol used to transfer files.  It is from) s5 439 M(   this that its name comes, Trivial File Transfer Protocol or TFTP.) s5 426 M(   Each nonterminal packet is acknowledged separately.  This document) s5 413 M(   describes the protocol and its types of packets.  The document also) s5 400 M(   explains the reasons behind some of the design decisions.) s5 374 M(Acknowlegements) s5 348 M(   The protocol was originally designed by Noel Chiappa, and was) s5 335 M(   redesigned by him, Bob Baldwin and Dave Clark, with comments from) s5 322 M(   Steve Szymanski.  The current revision of the document includes) s5 309 M(   modifications stemming from discussions with and suggestions from) s5 296 M(   Larry Allen, Noel Chiappa, Dave Clark, Geoff Cooper, Mike Greenwald,) s5 283 M(   Liza Martin, David Reed, Craig Milo Rogers \(of USC-ISI\), Kathy) s5 270 M(   Yellick, and the author.  The acknowledgement and retransmission) s5 257 M(   scheme was inspired by TCP, and the error mechanism was suggested by) s5 244 M(   PARC's EFTP abort message.) s5 218 M(   The May, 1992 revision to fix the "Sorcerer's Apprentice" protocol) s5 205 M(   bug [4] and other minor document problems was done by Noel Chiappa.) s5 179 M(   This research was supported by the Advanced Research Projects Agency) s5 166 M(   of the Department of Defense and was monitored by the Office of Naval) s5 153 M(   Research under contract number N00014-75-C-0661.) s5 127 M(1. Purpose) s5 101 M(   TFTP is a simple protocol to transfer files, and therefore was named) s5 88 M(   the Trivial File Transfer Protocol or TFTP.  It has been implemented) s5 75 M(   on top of the Internet User Datagram protocol \(UDP or Datagram\) [2]) s5 23 M(Sollins                                                         [Page 1]) s_R%Page: (2) 2%BeginPageSetup_S% N-up sub-page 2/4278 -392 translate0.490859 dup scale/pagenum 2 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1350.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1350.txt) def% User defined strings:/fmodstr (Wed Jul 08 00:00:00 1992) def/pagenumstr (2) def/user_header_p true def/user_header_left_str (RFC1350) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 2 of 11) def%%EndPageSetupdo_header5 751 M(RFC 1350                    TFTP Revision 2                    July 1992) s5 712 M(   so it may be used to move files between machines on different) s5 699 M(   networks implementing UDP.  \(This should not exclude the possibility) s5 686 M(   of implementing TFTP on top of other datagram protocols.\)  It is) s5 673 M(   designed to be small and easy to implement.  Therefore, it lacks most) s5 660 M(   of the features of a regular FTP.  The only thing it can do is read) s5 647 M(   and write files \(or mail\) from/to a remote server.  It cannot list) s5 634 M(   directories, and currently has no provisions for user authentication.) s5 621 M(   In common with other Internet protocols, it passes 8 bit bytes of) s5 608 M(   data.) s5 582 M(   Three modes of transfer are currently supported: netascii \(This is) s5 569 M(   ascii as defined in "USA Standard Code for Information Interchange") s5 556 M(   [1] with the modifications specified in "Telnet Protocol) s5 543 M(   Specification" [3].\)  Note that it is 8 bit ascii.  The term) s5 530 M(   "netascii" will be used throughout this document to mean this) s5 517 M(   particular version of ascii.\); octet \(This replaces the "binary" mode) s5 504 M(   of previous versions of this document.\) raw 8 bit bytes; mail,) s5 491 M(   netascii characters sent to a user rather than a file.  \(The mail) s5 478 M(   mode is obsolete and should not be implemented or used.\)  Additional) s5 465 M(   modes can be defined by pairs of cooperating hosts.) s5 439 M(   Reference [4] \(section 4.2\) should be consulted for further valuable) s5 426 M(   directives and suggestions on TFTP.) s5 400 M(2. Overview of the Protocol) s5 374 M(   Any transfer begins with a request to read or write a file, which) s5 361 M(   also serves to request a connection.  If the server grants the) s5 348 M(   request, the connection is opened and the file is sent in fixed) s5 335 M(   length blocks of 512 bytes.  Each data packet contains one block of) s5 322 M(   data, and must be acknowledged by an acknowledgment packet before the) s5 309 M(   next packet can be sent.  A data packet of less than 512 bytes) s5 296 M(   signals termination of a transfer.  If a packet gets lost in the) s5 283 M(   network, the intended recipient will timeout and may retransmit his) s5 270 M(   last packet \(which may be data or an acknowledgment\), thus causing) s5 257 M(   the sender of the lost packet to retransmit that lost packet.  The) s5 244 M(   sender has to keep just one packet on hand for retransmission, since) s5 231 M(   the lock step acknowledgment guarantees that all older packets have) s5 218 M(   been received.  Notice that both machines involved in a transfer are) s5 205 M(   considered senders and receivers.  One sends data and receives) s5 192 M(   acknowledgments, the other sends acknowledgments and receives data.) s5 166 M(   Most errors cause termination of the connection.  An error is) s5 153 M(   signalled by sending an error packet.  This packet is not) s5 140 M(   acknowledged, and not retransmitted \(i.e., a TFTP server or user may) s5 127 M(   terminate after sending an error message\), so the other end of the) s5 114 M(   connection may not get it.  Therefore timeouts are used to detect) s5 101 M(   such a termination when the error packet has been lost.  Errors are) s5 49 M(Sollins                                                         [Page 2]) s_R%Page: (3) 3%BeginPageSetup_S% N-up sub-page 3/40 -794 translate0.490859 dup scale/pagenum 3 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1350.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1350.txt) def% User defined strings:/fmodstr (Wed Jul 08 00:00:00 1992) def/pagenumstr (3) def/user_header_p true def/user_header_left_str (RFC1350) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 3 of 11) def%%EndPageSetupdo_header5 751 M(RFC 1350                    TFTP Revision 2                    July 1992) s5 712 M(   caused by three types of events: not being able to satisfy the) s5 699 M(   request \(e.g., file not found, access violation, or no such user\),) s5 686 M(   receiving a packet which cannot be explained by a delay or) s5 673 M(   duplication in the network \(e.g., an incorrectly formed packet\), and) s5 660 M(   losing access to a necessary resource \(e.g., disk full or access) s5 647 M(   denied during a transfer\).) s5 621 M(   TFTP recognizes only one error condition that does not cause) s5 608 M(   termination, the source port of a received packet being incorrect.) s5 595 M(   In this case, an error packet is sent to the originating host.) s5 569 M(   This protocol is very restrictive, in order to simplify) s5 556 M(   implementation.  For example, the fixed length blocks make allocation) s5 543 M(   straight forward, and the lock step acknowledgement provides flow) s5 530 M(   control and eliminates the need to reorder incoming data packets.) s5 504 M(3. Relation to other Protocols) s5 478 M(   As mentioned TFTP is designed to be implemented on top of the) s5 465 M(   Datagram protocol \(UDP\).  Since Datagram is implemented on the) s5 452 M(   Internet protocol, packets will have an Internet header, a Datagram) s5 439 M(   header, and a TFTP header.  Additionally, the packets may have a) s5 426 M(   header \(LNI, ARPA header, etc.\)  to allow them through the local) s5 413 M(   transport medium.  As shown in Figure 3-1, the order of the contents) s5 400 M(   of a packet will be: local medium header, if used, Internet header,) s5 387 M(   Datagram header, TFTP header, followed by the remainder of the TFTP) s5 374 M(   packet.  \(This may or may not be data depending on the type of packet) s5 361 M(   as specified in the TFTP header.\)  TFTP does not specify any of the) s5 348 M(   values in the Internet header.  On the other hand, the source and) s5 335 M(   destination port fields of the Datagram header \(its format is given) s5 322 M(   in the appendix\) are used by TFTP and the length field reflects the) s5 309 M(   size of the TFTP packet.  The transfer identifiers \(TID's\) used by) s5 296 M(   TFTP are passed to the Datagram layer to be used as ports; therefore) s5 283 M(   they must be between 0 and 65,535.  The initialization of TID's is) s5 270 M(   discussed in the section on initial connection protocol.) s5 244 M(   The  TFTP header consists of a 2 byte opcode field which indicates) s5 231 M(   the packet's type \(e.g., DATA, ERROR, etc.\)  These opcodes and  the) s5 218 M(   formats of  the various types of packets are discussed further in the) s5 205 M(   section on TFTP packets.) s5 49 M(Sollins                                                         [Page 3]) s_R%Page: (4) 4%BeginPageSetup_S% N-up sub-page 4/4278 -794 translate0.490859 dup scale/pagenum 4 def/fname (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/rfc1350.txt) def/fdir (/usr/local/share/doc/rfc/Mirrors/ftp.isi.edu/in-notes/) def/ftail (rfc1350.txt) def% User defined strings:/fmodstr (Wed Jul 08 00:00:00 1992) def/pagenumstr (4) def/user_header_p true def/user_header_left_str (RFC1350) def/user_header_center_str (RFC.net) def/user_header_right_str (Page 4 of 11) def%%EndPageSetupdo_header5 751 M(RFC 1350                    TFTP Revision 2                    July 1992) s5 712 M(          ---------------------------------------------------) s5 699 M

⌨️ 快捷键说明

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