跳到主要内容

2. 网关架构

网关架构称为协议转换器 (protocol translator) [NIST86], 如图 3 所示. 它实现 TCP/IP 和 OSI 协议栈, 并由一个应用级进程提供两者之间的连接. FTP 与 FTAM 之间的连接由两组协议映射定义, 分别对应 FTP 发起和 FTAM 发起的服务集.

      +------------+                               +-------------+
      |  FTP Host  |                               |  FTAM Host  |
      +------------+                               +-------------+
             |                                            |
             |                                            |
             |                                            |
             |                                            |
             |    +---------------------------------+     |
             |    |          FTP  -  FTAM           |     |
             |    |       Gateway Application       |     |
             |    |---------------------------------|     |
             |    |      FTP       |      FTAM      |     |
             |    |----------------+----------------|     |
             |    |    TCP/IP      |    TP4/et al   |     |
             |    +---------------------------------+     |
             |           /|\               /|\            |
             |            |                 |             |
             +------------+                 +-------------+

图 3 - 网关协议栈

该网关架构的一个基本特征是数据被立即映射并传输, 即任何被传输的文件都无需驻留在网关的文件系统上. 在本文档中, 术语 "filesystem" 指操作系统提供的文件访问和维护机制. 网关无需与文件系统交互, 有助于加快端到端的数据传输. 该架构另一个提升速度的特性是 FTP 和 FTAM 网络连接可以同时工作. 其他优点包括:

        1. FTP and FTAM hosts require no modification to utilize gateway
services.
        2. Users require no knowledge of the other protocol.
        3. Gateway access control is not impaired (since users cannot
directly access the gateway filesystem).
        4. No additional filesystem space is required on the gateway.
        5. Interactive nature of protocols is preserved.
        6. Users become aware of fatal errors immediately.

该设计的缺点包括开发网关所需的初始编码工作, 以及为使其保持最新而需要进行的后续重新编码工作.