home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / rfc / rfc1784 < prev    next >
Text File  |  1995-03-21  |  6KB  |  228 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                          G. Malkin
  8. Request for Comments: 1784                                Xylogics, Inc.
  9. Updates: 1350                                                  A. Harkin
  10. Category: Standards Track                            Hewlett Packard Co.
  11.                                                               March 1995
  12.  
  13.  
  14.             TFTP Timeout Interval and Transfer Size Options
  15.  
  16. Status of this Memo
  17.  
  18.    This document specifies an Internet standards track protocol for the
  19.    Internet community, and requests discussion and suggestions for
  20.    improvements.  Please refer to the current edition of the "Internet
  21.    Official Protocol Standards" (STD 1) for the standardization state
  22.    and status of this protocol.  Distribution of this memo is unlimited.
  23.  
  24. Abstract
  25.  
  26.    The Trivial File Transfer Protocol [1] is a simple, lock-step, file
  27.    transfer protocol which allows a client to get or put a file onto a
  28.    remote host.
  29.  
  30.    This document describes two TFTP options. The first allows the client
  31.    and server to negotiate the Timeout Interval.  The second allows the
  32.    side receiving the file to determine the ultimate size of the
  33.    transfer before it begins.  The TFTP Option Extension mechanism is
  34.    described in [2].
  35.  
  36.    This document assumes that the reader is familiar with the
  37.    terminology and notation of both [1] and [2].
  38.  
  39. Timeout Interval Option Specification
  40.  
  41.    The TFTP Read Request or Write Request packet is modified to include
  42.    the timeout option as follows:
  43.  
  44.       +-------+---~~---+---+---~~---+---+---~~---+---+---~~---+---+
  45.       |  opc  |filename| 0 |  mode  | 0 | timeout| 0 |  #secs | 0 |
  46.       +-------+---~~---+---+---~~---+---+---~~---+---+---~~---+---+
  47.  
  48.       opc
  49.          The opcode field contains either a 1, for Read Requests, or 2,
  50.          for Write Requests, as defined in [1].
  51.  
  52.       filename
  53.          The name of the file to be read or written, as defined in [1].
  54.          This is a NULL-terminated field.
  55.  
  56.  
  57.  
  58. Malkin & Harkin                                                 [Page 1]
  59.  
  60. RFC 1784                      TFTP Options                    March 1995
  61.  
  62.  
  63.       mode
  64.          The mode of the file transfer: "netascii", "octet", or "mail",
  65.          as defined in [1].  This is a NULL-terminated field.
  66.  
  67.       timeout
  68.          The Timeout Interval option, "timeout" (case insensitive).
  69.          This is a NULL-terminated field.
  70.  
  71.       #secs
  72.          The number of seconds to wait before retransmitting, specified
  73.          in ASCII.  Valid values range between "1" and "255" octets,
  74.          inclusive.  This is a NULL-terminated field.
  75.  
  76.    For example:
  77.  
  78.       +-------+--------+---+--------+---+--------+---+--------+---+
  79.       |   1   | foobar | 0 | binary | 0 | timeout| 0 |    1   | 0 |
  80.       +-------+--------+---+--------+---+--------+---+--------+---+
  81.  
  82.    is a Read Request, for the file named "foobar", in binary transfer
  83.    mode, with a timeout interval of 1 second.
  84.  
  85.    If the server is willing to accept the timeout option, it sends an
  86.    Option Acknowledgment (OACK) to the client.  The specified timeout
  87.    value must match the value specified by the client.
  88.  
  89. Transfer Size Option Specification
  90.  
  91.    The TFTP Read Request or Write Request packet is modified to include
  92.    the tsize option as follows:
  93.  
  94.       +-------+---~~---+---+---~~---+---+---~~---+---+---~~---+---+
  95.       |  opc  |filename| 0 |  mode  | 0 | tsize  | 0 |  size  | 0 |
  96.       +-------+---~~---+---+---~~---+---+---~~---+---+---~~---+---+
  97.  
  98.       opc
  99.          The opcode field contains either a 1, for Read Requests, or 2,
  100.          for Write Requests, as defined in [1].
  101.  
  102.  
  103.       filename
  104.          The name of the file to be read or written, as defined in [1].
  105.          This is a NULL-terminated field.
  106.  
  107.       mode
  108.          The mode of the file transfer: "netascii", "octet", or "mail",
  109.          as defined in [1].  This is a NULL-terminated field.
  110.  
  111.  
  112.  
  113.  
  114. Malkin & Harkin                                                 [Page 2]
  115.  
  116. RFC 1784                      TFTP Options                    March 1995
  117.  
  118.  
  119.       tsize
  120.          The Transfer Size option, "tsize" (case insensitive).  This is
  121.          a NULL-terminated field.
  122.  
  123.       size
  124.          The size of the file to be transfered, specified as a
  125.          NULL-terminated ASCII string.
  126.  
  127.    For example:
  128.  
  129.       +-------+--------+---+--------+---+--------+---+--------+---+
  130.       |   2   | foobar | 0 | binary | 0 | tsize  | 0 | 673312 | 0 |
  131.       +-------+--------+---+--------+---+--------+---+--------+---+
  132.  
  133.    is a Write Request, with the 673312-octet file named "foobar", in
  134.    binary transfer mode.
  135.  
  136.    In Read Request packets, a size of "0" is specified in the request
  137.    and the size of the file, in octets, is returned in the OACK.  If the
  138.    file is too large for the client to handle, it may abort the transfer
  139.    with an Error packet (error code 3).  In Write Request packets, the
  140.    size of the file, in octets, is specified in the request and echoed
  141.    back in the OACK.  If the file is too large for the server to handle,
  142.    it may abort the transfer with an Error packet (error code 3).
  143.  
  144. Security Considerations
  145.  
  146.    Security issues are not discussed in this memo.
  147.  
  148. References
  149.  
  150.    [1] Sollins, K., "The TFTP Protocol (Revision 2)", STD 33, RFC 1350,
  151.        MIT, July 1992.
  152.  
  153.    [2] Malkin, G., and A. Harkin, "TFTP Option Extension", RFC 1782,
  154.        Xylogics, Inc., Hewlett Packard Co., March 1995.
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Malkin & Harkin                                                 [Page 3]
  171.  
  172. RFC 1784                      TFTP Options                    March 1995
  173.  
  174.  
  175. Authors' Addresses
  176.  
  177.        Gary Scott Malkin
  178.        Xylogics, Inc.
  179.        53 Third Avenue
  180.        Burlington, MA  01803
  181.  
  182.        Phone:  (617) 272-8140
  183.        EMail:  gmalkin@xylogics.com
  184.  
  185.  
  186.        Art Harkin
  187.        Internet Services Project
  188.        Information Networks Division
  189.        19420 Homestead Road MS 43LN
  190.        Cupertino, CA  95014
  191.  
  192.        Phone: (408) 447-3755
  193.        EMail: ash@cup.hp.com
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Malkin & Harkin                                                 [Page 4]
  227.  
  228.