search

Selasa, 13 Mei 2008

About TFTP


TFTP is a simple protocol used to transfer files, and therefore was named the Trivial File Transfer Protocol or TFTP. The only thing it can do is read and write files from/to a remote server. It cannot list directories content or change the working directory, and currently has no provisions for user authentication, so a TFTP server must have set a dedicated working directory from which send and receive files.

A TFTP server cannot receive a file from a client unless a file with the same name and with full write permissions already exists in the current working folder. That's why this application has a toolbar button to create the files you plan to upload to your Mac with the proper permissions already set, so that your TFTP clients may upload their files overwriting the ones already existing in the TFTP current folder.

It is even necessary to set the permissions for the TFTP working folder to Read/Write/eXecute for all (owner user, group and others) and to set the permissions for all the parent folders in its hierarchy tree to Read/Write/eXecute for the owner user and Read/eXecute for group and others (these should be the default settings for any newly created folder). In the bottom part of the TftpServer's window you will be alerted when these permissions are not properly set.

Many users get the typical File not found error message when trying to upload a file from a TFTP client, therefore you should check that all of the conditions below are met to avoid such an error:

* the TFTP server's current folder and all its parent folders' permissions must be properly set, so that you see two gree Finder icons at the bottom of the TftpServer window;
* a file having the same name of the one to upload and with Read/Write permissions for all users must already exist in the TFTP server's current folder, therefore you see such a file listed in the TftpServer file listing.

Also note that a RFC-compliant TFTP server can't manage files larger than 32 Mb in standard mode; to overcome this limitation most TFTP servers, including the one included in Mac OS X, support extended mode to allows a tftp client to transfer files up to 4 Gb large, but this requires even the tftp client to support extended mode (for example, you can start the Mac OS X tftp client in extended mode with the command tftp -e hostname).

The problem is that some network devices (Cisco IOS devices are the most common and annoying case) don't support tftp extended mode though, so don't wonder when you are trying to transfer the latest IOS 12.4 image large 56 Mb to your Cisco router and the tftp transfer fails after 32 Mb have been transferred. In this case you must use a FTP server to tranfer the latest Enterprise Plus IDS/FW with IPsec IOS 12.4 image to your Cisco router (copy ftp: flash:)
For more informations about the TFTP protocol please read RFC 1350, which fully explains it

No comments yet