TFTP Server Configuration

Source: Internet
Author: User
Tags file transfer protocol ftp protocol

TFTP Server Configuration

Zhang junhao, Haidian District, Beijing

 

I. TFTP (Trivial File Transfer Protocol, simple File Transfer Protocol or small File Transfer Protocol) is a simplified file transfer protocol, as defined in 1980, in the TCP/IP protocol family, a protocol is used to transmit simple files between the client and the server, providing file transfer services that are not complex and costly. The port number is 69.

Small file transfer protocols are very simple and can be easily implemented through a small amount of memory-this was an important consideration at the time. Therefore, TFTP is used to guide computers, such as routers without large storage capacity. It is still used to transmit small files between hosts on a network, for example, to direct a remote XWindow system terminal or other thin clients from a network host or server.

The small File Transfer Protocol is based on the earlier file transfer protocol, which is part of the pupprotocol. In the early work of TCP/IP protocol groups, TFTP is often the first Protocol completed on a new host type-because it is very simple.

Some details about the small File Transfer Protocol:

* Use UDP (port 69) as its transmission protocol (unlike FTP using TCP port 21 ).

* The directory content cannot be listed.

* There is no authentication or encryption mechanism.

* It is used to read or write files on a remote server.

* Three transmission modes are supported: "netascii", "octet", and "mail". The first two modes comply with the "ASCII" and "image (Binary)" modes in the FTP protocol; the third method is rarely used and has been deprecated.

Because the UDP protocol is used for small file transfer, you must support transmission and session control. Each file transmitted through TFTP constitutes an independent exchange. This transmission is represented by a step lock. Only one packet (one data block or one header validation) is passed on the network at any time ). Due to the lack of window switching technology, TFTP only provides low throughput when there are many potential connections.

Due to the lack of security in the small file transfer protocol, it is very dangerous to transmit on the open Internet, so it is generally used only in private local networks.

Option Negotiation is later added to the Protocol (rfc2347). The Protocol operation can be slightly changed by the protocol option (especially when the larger part size is used, the throughput is slightly increased ), however, the Protocol remains unchanged.

 

Ii. TFTP server configuration process

1. Download the TFTP server and client

Sudo apt-Get install tftpd-hpa tftp-HPA

2. modify the configuration file of the TFTP service

Sudo VI/etc/default/tftpd-HPA

3. Create a folder in the root directory that the server shares with other clients.

CD/

Sudo mkdir tftpboot

4. Restart the TFTP service to make the configuration take effect.

Sudo/etc/init. d/tftpd-HPA restart

5. download the files under the server's shared files/tftpboot to the local device.

TFTP server-IP (server-IP writes the actual server address)

Get 1.txt (1.txt is an existing file under/tftpboot for the client to download)

TFTP Server Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.