为什么 TFTP 在 UDP 之上使用自己的协议

Why TFTP use its own protocol on top of UDP

TFTP 协议建立在 UDP 之上。为了数据完整性,为什么他们在 TCP 存在时使用 UDP?

TFTP 设计用于 bootstrap 阶段,此时只有最少量的代码 运行,甚至可能不包括 TCP。

>>>TFTP is designed to be used during a bootstrap phase when only ...

其实恰恰相反;

简单文件传输协议 (TFTP) 标准 RFC 783 was published in 1981 and the Bootstrap Loading using TFTP standard RFC 9061984.

发布

RFC 906 被认为是第一个描述如何从通信网络 bootstrap 计算机系统的标准。

在 TFTP 中使用 UDP 是因为它是最简单的可用传输方式。来自 RFC 783:

  1. Purpose

TFTP is a simple protocol to transfer files, and therefore was named the Trivial File Transfer Protocol or TFTP. It has been implemented on top of the Internet User Datagram protocol (UDP or Datagram) so it may be used to move files between machines on different networks implementing UDP. (This should not exlude the possibility of implementing TFTP on top of other datagram protocols.) It is designed to be small and easy to implement. Therefore, it lacks most of the features of a regular FTP.

...