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

📄 rfc2204.txt

📁 RFC 的详细文档!
💻 TXT
📖 第 1 页 / 共 5 页
字号:
   1. Speaker  -- SFID ------------> Listener   Start File
               <------------ SFPA --            Answer YES











Nash                         Informational                     [Page 26]

RFC 2204             ODETTE File Transfer Protocol        September 1997


   2. If the Credit Value is set to 2

      Speaker  -- Data ------------> Listener   Start File
               -- Data ------------>
               <------------- CDT --            Set Credit
               -- Data ------------>
               -- EFID ------------>            End File

4.5  End File Phase

4.5.1  Protocol Sequence

   The Speaker notifies the Listener that it has finished sending a
   Virtual File by sending an End File (EFID) command.  The Listener
   replies with a positive or negative End File command and has the
   option to request a Change Direction command from the Speaker.

   1. Speaker  -- EFID ------------> Listener   End File
               <------------ EFPA --            Answer YES


   2. Speaker  -- EFID ------------> Listener   End File
               <------------ EFPA --            Answer YES + CD
               -- CD -------------->            Change Direction
      Listener <------------ EERP -- Speaker    End to End Response
               -------------- RTR ->            Ready to Receive
               Go to Start File Phase


   3. Speaker  -- EFID ------------> Listener   End File
               <------------ EFNA --            Answer NO

4.6  End Session Phase

4.6.1  Protocol Sequence

   The Speaker terminates the session by sending an End Session (ESID)
   command.

   1. Speaker  -- EFID ------------> Listener   End File
               <------------ EFPA --            Answer YES
               -- CD -------------->            Change Direction
      Listener <------------ ESID -- Speaker    End Session








Nash                         Informational                     [Page 27]

RFC 2204             ODETTE File Transfer Protocol        September 1997


4.7  Problem Handling

   Error detection and handling should be done as close as possible to
   the problem.  This aids problem determination and correction.  Each
   layer of the reference model is responsible for it's own error
   handling.

   ODETTE-FTP can detect protocol errors through the construction of
   it's state machine, and uses activity timers to detect session hang
   conditions.  These mechanisms are separate from the End to End
   controls.

4.7.1  Protocol Errors

   If a protocol error occurs the session will be terminated and
   application activity aborted.  Both locations enter the IDLE state.

4.7.2  Timers

   To protect against application and network hang conditions ODETTE-FTP
   uses activity timers for all situations where a response is required.
   The timers and actions to be taken if they expire are described in
   section 8, the Protocol State Machine.

4.7.3  Clearing Centres

   The use of clearing centres introduces the possibility of errors
   occurring as a result of data processing activities within the
   centre.  Such errors are not directly related to ODETTE-FTP or the
   communication network and are therefore outside the scope of this
   specification.

5. Commands and Formats

   ODETTE-FTP entities communicate via Exchange Buffers.  The Command
   Exchange Buffers are described below.  Virtual File data is carried
   in Data Exchange Buffers which are described in Section 6.

5.1  Conventions

5.1.1  Representation unit:

   The basic unit of information is an octet, containing eight bits.

5.1.2  Values and Characters:

   The ISO 646 IRV 7-bit coded character set [ISO-646] is used to encode
   constants and strings within command exchange buffers.



Nash                         Informational                     [Page 28]

RFC 2204             ODETTE File Transfer Protocol        September 1997


5.2  Commands

   A Command Exchange Buffer contains a single command starting at the
   beginning of the buffer.  Commands and data are never mixed within an
   Exchange Buffer.  Each command has a fixed length and can not be
   compressed.

   Components:

   1. Command identifier:

      The first octet of an Exchange Buffer is the Command Identifier
      and defines the format of the buffer.

   2. Parameter(s):

      Command parameters are stored in fixed fields within a Command
      Exchange Buffer.  All values are required.

5.3  Command Formats

   The ODETTE-FTP commands are described below using the following
   definitions.

   Position (Pos.)

      Field offset within the command exchange buffer, relative to a
      zero origin.

      Field

      The name of the field.

   Description

      A description of the field.

   Format

      F    - A field containing fixed values.  All allowable values for
             the field are enumerated in the command definition.

      V    - A field with variable values within a defined range.  For
             example the SFIDFSIZ field may contain any integer value
             between 0000000 and 9999999.

      X(n) - An alphanumeric field of length n octets.




Nash                         Informational                     [Page 29]

RFC 2204             ODETTE File Transfer Protocol        September 1997


      9(n) - A numeric field of length n octets.

      All attributes are in character format.

      A String contains alphanumeric characters from the following set:

         The numerals:               0 to 9
         The upper case letters:     A to Z
         The following special set:  / - . & ( ) space.

      Space is not allowed as an embedded character.

      Numeric fields are always right justified and left padding with
      zeros must be done when needed.

5.3.1  SSRM - Start Session Ready Message

   o-------------------------------------------------------------------o
   |       SSRM        Start Session Ready Message                     |
   |                                                                   |
   |       Start Session Phase     Initiator <---- Responder           |
   |-------------------------------------------------------------------|
   | Pos | Field     | Description                           | Format  |
   |-----+-----------+---------------------------------------+---------|
   |   0 | SSRMCMD   | SSRM Command, 'I'                     | F X(1)  |
   |   1 | SSRMMSG   | Ready Message, 'ODETTE FTP READY '    | F X(17) |
   |  18 | SSRMCR    | Carriage Return                       | F X(1)  |
   o-------------------------------------------------------------------o

   SSRMCMD   Command Code                                      Character

      Value: 'I'  SSRM Command identifier.

   SSRMMSG   Ready Message                                    String(17)

      Value: 'ODETTE FTP READY '

   SSRMCR    Carriage Return                                   Character

      Value: Character with hex value '0D' or '8D'.











Nash                         Informational                     [Page 30]

RFC 2204             ODETTE File Transfer Protocol        September 1997


5.3.2  SSID - Start Session

   o-------------------------------------------------------------------o
   |       SSID        Start Session                                   |
   |                                                                   |
   |       Start Session Phase     Initiator <---> Responder           |
   |-------------------------------------------------------------------|
   | Pos | Field     | Description                           | Format  |
   |-----+-----------+---------------------------------------+---------|
   |   0 | SSIDCMD   | SSID Command 'X'                      | F X(1)  |
   |   1 | SSIDLEV   | Protocol Release Level                | F 9(1)  |
   |   2 | SSIDCODE  | Initiator's Identification Code       | V X(25) |
   |  27 | SSIDPSWD  | Initiator's Password                  | V X(8)  |
   |  35 | SSIDSDEB  | Exchange Buffer Size                  | V 9(5)  |
   |  40 | SSIDSR    | Send / Receive Capabilities (S/R/B)   | F X(1)  |
   |  41 | SSIDCMPR  | Compression Indicator (Y/N)           | F X(1)  |
   |  42 | SSIDREST  | Restart Indicator (Y/N)               | F X(1)  |
   |  43 | SSIDSPEC  | Special Logic Indicator (N)           | F X(1)  |
   |  44 | SSIDCRED  | Credit                                | V 9(3)  |
   |  47 | SSIDRSV1  | Reserved                              | F X(5)  |
   |  52 | SSIDUSER  | User Data                             | V X(8)  |
   |  60 | SSIDCR    | Carriage Return                       | F X(1)  |
   o-------------------------------------------------------------------o

   SSIDCMD   Command Code                                      Character

      Value: 'X'  SSID Command identifier.

   SSIDLEV   Protocol Release Level                           Numeric(1)

      Value: '1' ODETTE-FTP protocol release level 1.

             Future release levels will have higher numbers.  The
             protocol release level is negotiable, with the lowest level
             being selected.

   SSIDCODE  Initiator's Identification Code                  String(25)

    Format:  See Identification Code (Section 5.4)

             Uniquely identifies the Initiator (sender) participating
             in the ODETTE-FTP session.

   SSIDPSWD  Password                                          String(8)

             Key to authenticate the sender.  Assigned by bilateral
             agreement.




Nash                         Informational                     [Page 31]

RFC 2204             ODETTE File Transfer Protocol        September 1997


   SSIDSDEB  Exchange Buffer Size                             Numeric(5)

    Minimum: 128
    Maximum: 99999

             The length, in octets, of the largest Exchange Buffer that
             can be accepted by the location.  The length includes the
             command octet but does not include the Stream Transmission
             Header.

             After negotiation the smallest size will be selected.

   SSIDSR    Send / Receive Capabilities                       Character

      Value: 'S'  Location can only send files.
             'R'  Location can only receive files.
             'B'  Location can both send and receive files.

             Sending and receiving will be serialised during the
             session, so parallel sessions will not take place.

             An error occurs if adjacent locations both specify the send
             or receive capability.

   SSIDCMPR  Compression Indication                            Character

      Value: 'Y'  The location can handle compressed data.
             'N'  The location can not handle compressed data.

             Compression is only used if supported by both locations.
             The compression mechanism is described in Section 6.2

   SSIDREST  Restart Indication                                Character

      Value: 'Y'  The location can handle the restart of a partially
                  transmitted file.
             'N'  The location can not restart a file.

   SSIDSPEC  Special Logic Indication                          Character

      Value: 'N'  Only valid value for TCP.

             The Special Logic extensions are only useful in an X.25
             environment and are not supported for TCP/IP.







Nash                         Informational                     [Page 32]

RFC 2204             ODETTE File Transfer Protocol        September 1997


   SSIDCRED  Credit                                           Numeric(3)

    Maximum: 999

             The number of consecutive Data Exchange Buffers sent by the
          

⌨️ 快捷键说明

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