Trivial File Transfer Protocol

Trivial File Transfer Protocol

Trivial File Transport Protocol(TFTP) is a very simple file transfer protocol, with the functionality of a very basic form of FTP; it was first defined in 1980.Fact|date=September 2008

Since it is so simple, it is easy to implement in a very small amount of memory — an important consideration at that time. TFTP was therefore useful for booting computers such as routers which did not have any data storage devices. It is still used to transfer small files between hosts on a network, such as IP phone firmware, operating system images, or when a remote X Window System terminal or any other thin client boots from a network host or server.

TFTP is based in part on the earlier protocol EFTP, which was part of the PUP protocol suite. In the early days of work on the TCP/IP protocol suite, TFTP was often the first protocol implemented on a new host type, because it was so simple.

The original versions of TFTP, prior to RFC 1350, displayed a particularly bad protocol flaw, which was named Sorcerer's Apprentice Syndrome (after the "Sorcerer's Apprentice" segment of Fantasia) when it was discovered.

TFTP support appeared first as part of 4.3 BSD. It is included with Mac OS X from version 10.5.

Recently, TFTP has been used by computer worms such as Blaster as a method of spreading and infecting new hosts.Fact|date=June 2008

Technical information

ome details of TFTP

* It uses UDP port 69 as its transport protocol (unlike FTP which uses TCP port 21).
* It cannot list directory contents.
* It has no authentication or encryption mechanisms.
* It is used to read files from, or write files to, a remote server.
* It supports three different transfer modes, "netascii", "octet" and "mail", with the first two corresponding to the "ASCII" and "image" (binary) modes of the FTP protocol; the third is obsoleted by RFC1350.
* The original protocol has a file size limit of 32 MB, although this was extended when RFC 2347 introduced option negotiation, which was used in RFC 2348 to introduce block-size negotiation in 1998 (allowing a maximum of 4 GB and potentially higher throughput). If the server and client support block number wraparound, file size is essentially unlimited.
* Since TFTP utilizes UDP, it has to supply its own transport and session support. Each file transferred via TFTP constitutes an independent exchange. That transfer is performed in lock-step, with only one packet (either a block of data, or an 'acknowledgement') ever in flight on the network at any time. Due to this lack of windowing, TFTP provides low throughput over high latency links.
*Due to the lack of security, it is dangerous over the open Internet. Thus, TFTP is generally only used on private, local networks.

Details of a TFTP session

* The initiating host A sends an RRQ (read request) or WRQ (write request) packet to host B at the well-known port number 69, containing the filename and transfer mode.
* B replies with an ACK (acknowledgement) packet to WRQ and directly with a DATA packet to RRQ. Packet is sent from a freshly allocated ephemeral port, and all future packets to host B should be to this port.
* The source host sends numbered DATA packets to the destination host, all but the last containing a full-sized block of data. The destination host replies with numbered ACK packets for all DATA packets.
* The final DATA packet must contain less than a full-sized block of data to signal that it is the last. If the size of the transferred file is an exact multiple of the block-size, the source sends a final DATA packet containing 0 bytes of data

Example command in TFTP in Windows

Transfers files to and from a remote computer running the TFTP service.

TFTP [-i] host [GET | PUT] source [destination] -i Specifies binary image transfer mode (also called octet). In binary image mode the file is moved literally, byte by byte. Use this mode when transferring binary files. host Specifies the local or remote host. GET Transfers the file destination on the remote host to the file source on the local host. PUT Transfers the file source on the local host to the file destination on the remote host. source Specifies the file to transfer. destination Specifies where to transfer the file.

TFTP Usage example

user@host:~$ tftp 192.168.1.1

tftp> get file.txt

Popular TFTP Servers

* [http://www.tftp-server.com/ WinAgents TFTP Server] , for Windows
* [http://tftpd32.jounin.net/tftpd32.html TFTPD32] - The Cisco recommended TFTP serverFact|date=October 2008
* [http://innerdive.com/products/tftp_server/ Innerdive TFTP Server] , for Windows
* [http://kin.klever.net/pumpkin PumpKIN] - Open source, for Windows
* [http://www.packettrap.com/product/index.aspx?pid=pro&fid=TFTPServer PacketTrap TFTP Server] , for Windows

References

* Karen R. Sollins, " [http://www.isi.edu/in-notes/ien/ien133.txt The TFTP Protocol] " (IEN 133, January, 1980)
* Karen R. Sollins, "TFTP Protocol (revision 1)" (RFC 783, June, 1981)
* Karen R. Sollins, "TFTP Protocol (revision 2)" (RFC 1350, July, 1992)
* R. Finlayson, "Bootstrap loading using TFTP" (RFC 906, June, 1984)
* Gary Malkin, A. Harkin, "TFTP Option Negotiation Analysis" (RFC 1785, March 1995)
* Gary Malkin, A. Harkin, "TFTP Option Extension" (RFC 2347, May 1998)
* Gary Malkin, A. Harkin, "TFTP Blocksize Option" (RFC 2348, May 1998)
* Gary Malkin, A. Harkin, "TFTP Timeout Interval and Transfer Size Options" (RFC 2349, May 1998)
* E. Lear, "Uniform Resource Identifier (URI) Scheme and Applicability Statement for the Trivial File Transfer Protocol (TFTP)" (RFC 3617, October 2003)

See also

* List of well-known ports (computing)
* Simple File Transfer Protocol
* SSH file transfer protocol

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Trivial File Transfer Protocol — Fonction Transfert de fichier simple Sigle TFTP Port 69 RFC …   Wikipédia en Français

  • Trivial File Transfer Protocol — TFTP (Trivial File Transfer Protocol) Familie: TCP/IP Einsatzgebiet: Laden von Betriebssystemen und anderen Daten über das Netzwerk Ports: 69/UDP TFTP im TCP/IP‑Protokollstapel: Anwendung TFTP Transport …   Deutsch Wikipedia

  • Trivial File Transfer Protocol — TFTP Название: Trivial File Transfer Protocol Уровень (по модели OSI): Прикладной Семейство: IP Создан в: 1980 г. Порт/ID: 69/UDP Назначение протокола: Передача файлов Спецификация: RFC 1350 / …   Википедия

  • Trivial File Transfer Protocol —    Abbreviated TFTP. A little used and simplified version of the TCP/IP file transfer protocol that does not include password protection. Because it has no security associated with it, most system administrators do not support its use and… …   Dictionary of networking

  • Trivial File Transfer Protocol — simple protocol for transferring files, simple version of FTP that does not have the ability to check user identity, TFTP …   English contemporary dictionary

  • trivial file transfer protocol —    (TFTP)    A protocol used by BOOTP and X terminals to send and receive control information …   IT glossary of terms, acronyms and abbreviations

  • File Transfer Protocol — (FTP) is a network protocol used to transfer data from one computer to another through a network such as the Internet.FTP is a file transfer protocol for exchanging and manipulating files over a TCP computer network. A FTP client may connect to a …   Wikipedia

  • File Transfer Protocol — FTP (File Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Datenübertragung, Dateiverwaltung Port: 20/TCP DATA Port, 21/TCP Control Port FTP im TCP/IP‑Protokollstapel: Anwendung FTP …   Deutsch Wikipedia

  • File Transfer Protocol — Pour les articles homonymes, voir FTP. File Transfer Protocol Fonction Transfert de fichier Sigle F …   Wikipédia en Français

  • File transfer protocol — Pour les articles homonymes, voir FTP. Pile de protocoles 7 • Application 6 • …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”