1. 引言
在未来数年内, TCP/IP 与 OSI 协议族将在互联网社区中共存. 随着越来越多的 OSI 主机部署到互联网上, 对这两个协议族之间网关的需求也变得更加迫切.
本规范描述了一个应用层网关 (application layer gateway), 它在 TCP/IP 的文件传输协议 (File Transfer Protocol, FTP) 与 OSI 的文件传送, 访问和管理协议 (File Transfer, Access, and Management, FTAM) 之间提供互操作性. 所提出的应用层网关基于 FTP 与 FTAM 协议之间的一组双向映射. 由于这两种协议的命令结构差异很大, 它们之间的映射并非一一对应. 本文假定读者已了解文件传输协议 (FTP) [RFC959] 和文件传送, 访问和管理协议 (FTAM) [ISO8571-1,2,3,4,5].
这些映射的两个重要目标是:
Provide FTP users with as much emulated FTP capability on an
FTAM Responder as possible, and
Provide FTAM users with as much emulated FTAM capability on an
FTP Server as possible.
虽然预期该应用层网关将在 TCP/IP 和 OSI 的完整协议族上实现, 但此类网关至少有一种实现 (包含在 ISO Development Environment 中) 可以配置为在 OSI 或 TCP/IP 下层服务之上运行 FTAM.
1.1. 与其他工作的关系
本规范中提出的思想基于在 MILNET 上实地部署该网关所汲取的经验 (该网关自 1989 年起在 NCTS Washington D.C. 运行), 也基于美国国家标准与技术研究院 (National Institute of Standards and Technology, NIST) 的 M. A. Wallace 等人的工作 [NIST86]. 1986 年, NIST 发表了一份 FTP-FTAM 网关设计文档. 此后, 至少已开发出该网关的一种实现 (针对 FTP 和 FTAM 协议的一个子集) [MITRE87], 并已包含在 ISODE 中. 该实现基于 NIST 的协议转换器网关设计 [NIST86].
本文档对推进 FTP-FTAM 网关概念的贡献在于:
* Enhance the user interaction capability provided by the ISODE
implementation of the FTP-FTAM application layer gateway.
* Clarify and enhance the mappings (FTP to FTAM, FTAM to FTP)
documented by NIST.
* Provide guidelines for fielding the FTP-FTAM application layer
gateway on the Internet so that it is useful as an Internet
resource.
* Produce a formal specification for the FTP-FTAM gateway suitable
for implementors to use in building additional FTP-FTAM
gateways.
* Provide a formal specification for organizations wishing to
procure FTP-FTAM gateways.
1.2. 网关操作概述
该网关提供虚拟的端到端应用文件传输服务. 当通过 FTP 发送数据时, 网关立即把所请求的功能映射为 FTAM, 并把它传递给 FTAM 主机. 以类似方式, 但使用另一组映射, FTAM 请求被发送到网关, 立即映射为 FTP 功能, 再转交给 FTP 主机.
在 FTP 中, 参与文件传输的双方是客户端 (Client) 和服务器 (Server). 客户端负责发起与服务器的连接. 连接建立后, 所有服务请求都由客户端发出. FTP-FTAM 网关不支持 FTP 的三节点模型.
在 FTAM 中, 参与文件传输的双方是发起方 (Initiator) 和响应方 (Responder). 发起方负责发起与响应方的连接. 连接建立后, 发起方或响应方都可以向对方发出服务请求.
FTP-FTAM 网关提供两组服务:
1. FTP-Initiated Gateway Services
Utilized when an FTP Client contacts the FTP-FTAM gateway to
instigate a file transfer with an FTAM Responder.
2. FTAM-Initiated Gateway Services
Utilized when an FTAM Initiator contacts the FTP-FTAM
gateway to instigate a file transfer with an FTP Server.
网关服务的名称用于标识 FTP-FTAM 网关在执行文件传输时所扮演的角色. 例如, 当文件传输由 FTP Client 发起时, 它联系网关的 FTP Server 部分, 后者把协议信息映射到网关的 FTAM Initiator 部分, 该部分再联系远端的 FTAM Responder. 这一示例场景使用的是 FTP 发起的网关服务.
图 1 从应用进程的角度说明了 FTP 发起的服务. 图 2 说明了 FTAMInitiated 服务的相应视角.
TCP Host OSI Host
+--------------+ +------------------+
| FTP Client | | FTAM Responder |
+--------------+ +------------------+
| |
| |
| |
| FTP-FTAM Gateway |
| +--------------------------------+ |
+-- | FTP Server FTAM Initiator | --+
+--------------------------------+
图 1 - FTP 发起的网关服务
TCP Host OSI Host
+--------------+ +------------------+
| FTP Server | | FTAM Initiator |
+--------------+ +------------------+
| |
| |
| |
| |
| FTP-FTAM Gateway |
| +--------------------------------+ |
+-- | FTP Client FTAM Responder | --+
+--------------------------------+
图 2 - FTAM 发起的网关服务